How to find out the Wi-Fi Direct password on your phone: all the working methods

Technology Wi-Fi Direct Allows devices to exchange data directly, without the intermediary of a router. But what if you've forgotten the password for such a network and need to connect a new device urgently? Unlike regular Wi-Fi, where the password can be found in the router settings, with Wi-Fi Direct It's more complicated: it's generated automatically and often hidden from the user.

In this article we will look at All current methods for extracting Wi-Fi Direct passwords on Android smartphones, including methods for both rooted and non-rooted devices. You'll learn how to do this on phones. Samsung, Xiaomi, Honor and other brands, as well as potential pitfalls along the way. Important: Some methods require technical skills, so read the warnings carefully before using them.

What is Wi-Fi Direct and why is its password difficult to find?

Wi-Fi Direct — is a wireless communication standard that allows devices (smartphones, printers, TVs) to create a direct network peer-to-peer Without a router. The password for such a network is generated automatically upon first connection and typically consists of 8 digits. The main problem is that manufacturers often don't provide an interface for viewing it.

Here's why standard methods don't work:

  • 🔍 There is no menu in the settings: Unlike saved Wi-Fi networks, where the password can be viewed through Settings → Wi-Fi → Saved Networks, there is no such item for Wi-Fi Direct.
  • 📱 Firmware dependency: On Samsung With One UI And Xiaomi With MIUI Password generation algorithms vary. There is no universal solution.
  • 🔒 Security restrictions: Android hides direct connection passwords to prevent unauthorized access.

However, there are workarounds. Below, we'll cover them from simple to complex, starting with non-root methods.

📊 What smartphone do you have?
Samsung
Xiaomi/Redmi/Poco
Honor/Huawei
Another Android
iPhone

Method 1: View the password in the Wi-Fi Direct settings (for some models)

Some manufacturers offer the option to view the password directly in the interface. This method works on some devices. Samsung (series Galaxy S/A With One UI 4.0+) And Xiaomi (on MIUI 13-14). Check your phone:

  1. Open Settings → Connections → Wi-Fi.
  2. Tap the three dots (⋮) in the upper right corner and select Wi-Fi Direct.
  3. Activate the function and wait until the phone finds other devices.
  4. Click on your device's name in the list (e.g. Galaxy S23 Ultra).
  5. In some firmware versions, a window will appear with a QR code and a password text line below it.

If the password is not displayed, try:

  • 📷 Take a photo of the QR code and decrypt it using a scanner application (for example, Google Lens).
  • 🔄 Restart Wi-Fi Direct: disable and re-enable the function - sometimes the password is reset to the default (for example, 12345678).
⚠️ Attention: On Honor/Huawei With Magic UI And EMUI This method doesn't work - the manufacturer completely hides the password in the interface.

Method 2: Use Wi-Fi Configuration File (No Root)

Android stores connection data in a file wpa_supplicant.conf. Although accessing it usually requires root access, on some devices it can be extracted via ADB (Android Debug Bridge). This method is suitable for experienced users.

Instructions:

  1. Turn on USB debugging V Settings → About phone → Build number (tap 7 times) → Developer settings.
  2. Connect your phone to your PC and run the following in the command line:
    adb pull /data/misc/wifi/WifiConfigStore.xml

    or (for older versions of Android):

    adb pull /data/misc/wifi/wpa_supplicant.conf
  3. Open the downloaded file in a text editor and find the line with p2p_ (prefix for Wi-Fi Direct). The password will be in the field psk.

Example of file content:


network={

ssid="DIRECT-xx-GalaxyS22"

psk="12345678"

key_mgmt=WPA-PSK

p2p_client_list=1

}

⚠️ Attention: On Android 10+, access to these files is often blocked even through ADB. If the command returns an error Permission denied, proceed to methods with root.
Manufacturer Android version Possibility of extraction without root Notes
Samsung 9.0–11.0 ✅ Yes Via ADB or a file manager with permissions
Xiaomi 10.0–12.0 ⚠️ Partially You need to disable MIUI Optimization in developer settings.
Honor/Huawei Any ❌ No Complete blocking of access to configuration files
Google Pixel 12.0+ ✅ Yes Via ADB with confirmation on the phone

Method 3: Obtaining root rights and viewing the password

If the previous methods didn’t work, there remains a radical option - obtaining root rightsThis gives you full access to system files, but it voids your warranty and may cause your phone to malfunction. Use at your own risk!

Step-by-step instructions:

  1. Unlock Bootloader (instructions vary for each brand). For Xiaomi you need to get permission through Mi Unlock Tool.
  2. Install a custom recovery (TWRP) and sew Magisk to obtain root.
  3. Download a file manager with root support (for example, Root Explorer or FX File Explorer).
  4. Follow the path /data/misc/wifi/ and open the file WifiConfigStore.xml or wpa_supplicant.conf.
  5. Find the block with ssid="DIRECT-xx-..." - there will be a line in it psk="your_password".

Alternative method via terminal:

su

cat /data/misc/wifi/WifiConfigStore.xml | grep psk

⚠️ Attention: On Samsung With Knox gaining root will trigger the flag Knox 0x1, which blocks the work Samsung Pay, Secure Folder and other services.

Make sure your phone model is supported

Make a backup copy of your data

Charge your phone to 80%+

Download official firmware and tools

Disable OEM lock in Developer Options-->

Method 4: Reset Wi-Fi Direct and generate a new password

If you have lost your password and were unable to obtain it using previous methods, you can reset Wi-Fi Direct settings and set a new code. This method works on most devices, but will require you to reconfigure your connections.

Instructions:

  • 📱 For Samsung:
    1. Go to Settings → General → Reset → Reset network settings.
    2. Confirm the action. After rebooting, Wi-Fi Direct will receive a new password (usually 12345678 or 00000000).
  • 📱 For Xiaomi:
    1. Open Settings → Storage → Clear data for the application Wi-Fi Direct.
    2. Or perform a reset via Settings → Advanced → Network reset.
  • 📱 For Honor/Huawei:
    1. Press and hold the power and volume buttons to go to Recovery Mode.
    2. Select Wipe data/factory resetWipe cache partition.
  • After reset:

    1. Reactivate Wi-Fi Direct.
    2. When you first connect to another device, the system will prompt you to enter a password - use the standard one (12345678) or come up with your own.
    What to do if resetting doesn't help?

    If your password still isn't showing up after resetting, try:

    1. Update your phone firmware to the latest version.

    2. Install an alternative launcher (for example, Nova Launcher) - sometimes this reveals hidden settings.

    3. Contact the manufacturer's service center with proof of ownership of the device (receipt, box).

    Method 5: Alternative methods of connection without a password

    If none of the methods worked, consider the following workarounds:

    • 🔗 Use QR code:

      On some devices (eg. Samsung GalaxyWhen Wi-Fi Direct is activated, a QR code appears. Scan it with another phone's camera—this will automatically connect the device without entering a password.

    • 📶 Create an access point:

      Instead of Wi-Fi Direct, enable Modem mode in the settings and share the internet via regular Wi-Fi. You can find the access point password in Settings → Connections → Tethering & portable hotspot.

    • 🖨️ Connecting via NFC:

      If both devices support NFC, touch them together - this can initiate an automatic connection without a password (works on Samsung and some Xiaomi).

    For printers and TVs:

    • 🖥️ Use WPS: Click the button WPS on the printer/TV within 2 minutes after activating Wi-Fi Direct on the phone.
    • 📺 Direct USB connection: Some Smart TV (For example, LG or Sony) allow you to transfer files via cable USB-OTG.

    Common mistakes and how to avoid them

    When using Wi-Fi Direct, users often encounter common issues. Here's how to solve them:

    Error Cause Solution
    "Unable to connect" Incorrect password or incompatible Wi-Fi protocols Reset Wi-Fi Direct settings on both devices and try the default password (12345678)
    "Device not found" Wi-Fi Direct is disabled or the devices are too far away. Make sure the distance is no more than 10 meters and enable the function on both devices.
    "The connection is broken." Interference from other networks or weak signal Go to your router settings and change the Wi-Fi channel to 6 or 11 (less busy)
    "There is no Wi-Fi Direct option" The function is hidden or disabled by the manufacturer Try to activate it through Settings → Advanced → Lab (For Xiaomi)

    If you see the message "Wi-Fi Direct is not supported":

    • 📵 Check if it is enabled Wi-Fi And Bluetooth - some devices require them to work simultaneously.
    • 🔄 Restart your phone and try again.
    • 📱 Update your firmware - older versions of Android (below 8.0) may lack drivers for Wi-Fi Direct.

    FAQ: Answers to Frequently Asked Questions

    Is it possible to find out the Wi-Fi Direct password on an iPhone?

    No, Apple does not support the technology Wi-Fi Direct in its usual form. Instead, it is used AirDrop for file transfer and Peer-to-Peer AirPlay for streaming. If you need to connect to an Android device via Wi-Fi Direct, use your phone on Android as an intermediary.

    Why is Wi-Fi Direct slower than regular Wi-Fi?

    Speed ​​is limited by standard 802.11n (up to 250 Mbps) and lack of optimization for direct connections. To speed things up:

    • Place the devices closer to each other (within 5 meters).
    • Disable other wireless networks that are causing interference.
    • Use the format 5 GHz, if both devices support it.
    Is it possible to change the Wi-Fi Direct password to your own?

    On most devices, the password is generated automatically and cannot be changed through the interface. However, after a factory reset (see Method 4) some phones (for example, Samsung) allow you to enter your code when you first connect. The password must be exactly 8 characters long (numbers or letters).

    Is it safe to use Wi-Fi Direct in public places?

    No, it is unsafeWi-Fi Direct does not encrypt traffic as securely as modern routers (no support WPA3). Attackers can intercept data, especially if they exploit vulnerabilities in the protocol. WPSTo transfer confidential files, use:

    • 🔐 Encrypted archives (ZIP with password).
    • 📱 Messengers with end-to-end encryption (Telegram, Signal).
    • 🔗 VPN tunnel (for example, WireGuard) over Wi-Fi Direct.
    How do I connect a printer via Wi-Fi Direct if I don't know the password?

    Most printers (Canon, HP, Epson) have a default Wi-Fi Direct password specified in the documentation. Try:

    • 12345678 or 00000000 — universal codes.
    • Check the sticker on the printer body - sometimes the password is indicated there.
    • Use the button WPS on the printer for automatic connection.

    If nothing helps, reset the printer to factory settings (usually by holding the power button for 10 seconds).