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

Forgot your home Wi-Fi password and your router is out of reach? Or need to connect a new gadget, but the sticker with the code has long since worn off? If you have a phone Xiaomi, Redmi or POCOThere are several ways to retrieve a saved password—without jailbreaking, rooting, or complex manipulation. In this article, we'll cover all the current methods, including hidden MIUI features, standard Android tools, and workarounds for older firmware versions.

Important: We only consider legal methods Obtaining the password for a network to which the phone is already connected. If you try to hack someone else's Wi-Fi, it's illegal (Article 272 of the Russian Criminal Code on unauthorized access to computer information). All instructions below only work for networks to which you have access rights.

The content of the article is based on the latest versions MIUI 14/15 And Android 13/14, but most of the methods are also applicable to older models (eg. Redmi Note 8 Pro or Mi 9T). If your smartphone runs on "pure" Android (for example, POCO F5 (with global firmware), some menu items may differ - we will warn you about this separately.

Method 1: Viewing the password through MIUI settings (the easiest way)

Modern versions MIUI Allows you to see the password for the current network directly in the Wi-Fi menu—without the need for additional apps. This method works on most devices. Xiaomi, released after 2020 (for example, Redmi Note 10 Pro, Xiaomi 12T, POCO X5).

Instructions:

  • 📱 Open SettingsWi-Fi.
  • 🔗 Click on the name of your network (the one you are currently connected to).
  • 🔑 In the window that opens, tap the icon Share (or "Share") - usually a QR code icon.
  • 🔍 The system will ask for confirmation PIN code, imprint or graphic keyAfter authorization, you will see the password under the QR code.

⚠️ Attention: On some firmware versions (especially Chinese or custom ones), the "Share" option may be missing. If it's not there, proceed to the next method.

Check your MIUI version in Settings → About phone

Update your firmware to the latest version

Try an alternative method through Google Drive (described below)

Use ADB (for advanced users)-->

Method 2: Export passwords via Google Drive (for Android 10+)

Android 10 and later allows you to save Wi-Fi passwords Google account. If your Xiaomi syncs with Google, you can extract the password via the web interface. This method even works on phones with "pure" Android (for example, POCO F4 GT on global firmware).

Step-by-step instructions:

  1. 🔄 Make sure password syncing is enabled on your phone:
    • Open SettingsGoogleManaging your Google account.
    • Go to the tab SecurityPasswords.
    • Check that the option Saving network passwords active.
  • 🌐 Open the page on your computer or other phone passwords.google.com (log in with the same account as on Xiaomi).
  • 🔍 In the section Passwords find the tab Wi-Fi — there will be saved networks and their passwords.
  • 💡 Helpful tip: If the network isn't listed, syncing is disabled. Enable it and connect to Wi-Fi again—the password will be saved automatically.

    Redmi Note (any model)

    POCO (F/X/M series)

    Xiaomi (flagship series 11/12/13)

    Another brand (specify in the comments)-->

    Method 3: Using Wi-Fi configuration file (for root users)

    If on yours Xiaomi installed root rights, you can extract the password directly from the system file wpa_supplicant.confThis method is suitable for advanced users and requires caution—incorrect steps may disrupt Wi-Fi operation.

    Instructions:

    • 🛠️ Install any file manager with root support (for example, Root Explorer or Solid Explorer).
    • 📁 Follow the path:
      /data/misc/wifi/WifiConfigStore/

      Or (for older versions of Android):

      /data/misc/wifi/
    • 📄 Open the file wpa_supplicant.conf text editor.
    • 🔍 Find the block with the name of your network (ssid="...") - there will be a line next to it psk="..." with a password.

    ⚠️ Attention: Changing or deleting this file may result in loss of all saved Wi-Fi networksWe recommend making a backup copy before editing.

    What to do if the file is missing?

    On some firmware versions (e.g. MIUI 12.5+), the file path may differ. Try searching for it using the built-in file manager search by typing wpa_supplicant. Also check the folders:

    /data/vendor/wifi/
    

    /data/misc/apexdata/com.android.wifi/

    If the file is missing altogether, then your version of MIUI uses a different password storage mechanism (for example, via Keystore).

    4. Method: ADB commands (without root, but with a computer)

    If you have access to your computer, you can extract the password through Android Debug Bridge (ADB)This method does not require root, but it does require USB debugging and some technical skills.

    Step-by-step instructions:

    1. 🖥️ Install ADB Tools to the computer.
    2. 📱 On your phone, enable:
      • Settings → About phone → MIUI version (tap 7 times to activate developer mode).
      • Settings → Advanced → Developer options → USB debugging.
  • 🔌 Connect your phone to your computer via USB (select the mode File transfer).
  • 🐍 Open Command Prompt (Windows) or Terminal (macOS/Linux) and run:
    adb shell
    

    su -c "cat /data/misc/wifi/WifiConfigStore/SoftApState.txt"

    Or (for older versions):

    adb pull /data/misc/wifi/WifiConfigStoreFiles/WifiConfigStore.xml
  • 🔍 Find the line in the resulting file <string name="PreSharedKey">...</string> - this is the password.
  • ⚠️ Attention: On newer versions of MIUI (14+), access to system files via ADB may be limited. If the commands don't work, try this alternative:

    adb shell cmd wifi list_networks

    Then:

    adb shell cmd wifi get_network_info <network_id>

    Method 5: Resetting the router (if nothing helps)

    If all the above methods do not work, there remains a radical option - reset the router settings Factory reset. This will erase all user settings, including the password, but will allow you to connect using the default settings (usually found on the device's sticker).

    How to reset a router:

    • 🔌 Find the button on the back of the router Reset (usually recessed into the body).
    • 📍 Press and hold it 10-15 seconds (until the indicators start flashing).
    • 🔄 After rebooting, the router will return to factory settings. Connect to the network with the default name (e.g. TP-Link_XXXX) and use the password from the sticker.

    💡 Helpful tip: After resetting, do not forget to reconfigure the router: change the network name (SSID), set a new password, and update the firmware (if available). Instructions are usually included in the device's documentation.

    Comparison of methods: which one to choose?

    To make it easier for you to navigate, we've compiled all the methods into a table, indicating their difficulty, requirements, and compatibility:

    Method Complexity Requirements Compatibility Risks
    Viewing through MIUI settings ⭐ (simple) MIUI 12+, network connection Xiaomi/Redmi/POCO (2020+) No
    Google Drive ⭐⭐ (average) Android 10+, synchronization with Google Any Xiaomi with global firmware The password may not be saved.
    Root + file wpa_supplicant.conf ⭐⭐⭐ (difficult) Root rights, file manager Any Xiaomi (except MIUI 14+) Risk of damaging system files
    ADB commands ⭐⭐⭐ (difficult) Computer, USB debugging Android 8–13 (limited to MIUI 14) May not work on new firmware versions
    Resetting the router ⭐ (simple) Physical access to the router Any routers Disconnect all devices from the network

    🔍 Conclusion: Start with the simplest method (MIUI settings or Google Drive). If that doesn't work, move on to ADB or root. Save resetting the router for a last resort.

    Common mistakes and how to avoid them

    When attempting to extract a password, users often encounter typical problems. Here are the most common ones and how to solve them:

    • 🚫 "The 'Share' button is missing from the Wi-Fi settings." → Update MIUI to the latest version or use ADB.
    • 🔄 "ADB doesn't see the device" → Install drivers Xiaomi USB Drivers and check if USB debugging is enabled.
    • 🔒 "File wpa_supplicant.conf empty" → On newer versions of Android, passwords are stored in encrypted form. Try it. ADB.
    • 📵 "After resetting the router, the Internet doesn't work." → Check the provider's cable connection and PPPoE settings (if required).

    ⚠️ Attention: On phones with MIUI for Russia (For example, Redmi 10C or POCO M5) Some features may be limited due to local requirements. If standard methods don't work, try changing the firmware region (but this may void the warranty).

    FAQ: Answers to frequently asked questions

    ❓ Is it possible to find out the password for a Wi-Fi network my phone has connected to before but is not connected to now?

    Yes, but only if the password is saved in Google account (method 2) or you use root/ADB (Methods 3–4). The default MIUI settings only display passwords for the current network.

    ❓ Why is there no "Share" button in MIUI settings?

    This feature depends on the firmware version and region. It's often removed on Chinese versions of MIUI. The button may also be missing if:

    • The phone is connected to the enterprise network (with a security certificate).
    • Custom firmware is installed (for example, LineageOS).
    • MIUI version is older than 12.0 (update the system).
    ❓ Does the Google Drive method work on phones without Google services (for example, those with Chinese firmware)?

    No. Password synchronization requires Google Play ServicesIf they are not available (as on Chinese firmware), use alternative methods: ADB or root.

    ❓ Is it possible to find out my neighbor's Wi-Fi password using Xiaomi?

    No, it is illegallyYour phone can only reveal passwords for networks it has already connected to with your consent. Attempts to hack other people's networks are punishable under Article 272 of the Russian Criminal Code.

    ❓ What to do if none of the methods worked?

    There are two options left:

    1. Reset the router (method 5).
    2. Contact your provider - some operators (eg Rostelecom or Beeline) can send the password for their router via SMS or in your personal account.