Not able to connect android device over wifi with adb withou
2024-04-17 13:45

I was having trouble to connect my phone MI A2, unrooted, with custom rom of pixel experience android 13 to my pc(win 11) with adb over my wifi. My charging C-Port broke due to some damage to my phone, so my phone doesn't take my data input or output from the port, but i am still able to charge my phone through it.

I have pixel experience android 13 version installed on my phone and with custom recovery of pixel experience.

I have tried going to my recovery and fastboot but my phone is still not being recognised.

I also tried to use the "pair with wifi" feature in android studio, version hedgehog, and it also doesn't seem to work.

Since no data is transferring through, my phone doesn't get recognised by my pc and I am not able to connect it through my wifi.

Somebody have any idea how can I connect my phone to my pc and access it.




other answer :

Since your phones charging port is damaged and you cant use a USB cable for ADB connections, youll need to establish an ADB connection over Wi-Fi. Heres a step-by-step guide on how to do this:

Ensure ADB is Enabled on Your Device: Go to your phones Developer options and make sure that ADB debugging is enabled. If Developer options are not enabled, go to Settings > About phone > tap on Build number 7 times to enable Developer options.

Connect Your Phone and PC to the Same Wi-Fi Network: Both your phone and your PC need to be connected to the same Wi-Fi network.

Find Your Devices IP Address: Go to Settings > About phone > Status, and find the IP address of your phone.

Connect Your PC to Your Device Using ADB over Wi-Fi:

Open a command prompt or terminal on your PC.

Enter the following command:arduinoadb connect < your_device_ip_address> Replace < your_device_ip_address> with the IP address you found in step 3.

Authenticate the Connection (if required): Sometimes, when you connect for the first time, you might need to authenticate the connection from your phone. Youll see a prompt on your phone asking you to allow the connection. Tap "Allow."

Verify the Connection: After running the adb connect command, you should see a message saying that your device is connected. You can verify the connection by running:

adb devices

You should see your device listed along with the status "device."

Use ADB Commands as Usual: Once the connection is established, you can use ADB commands as you would normally.

If youre still unable to connect, try the following additional steps:

Disable any firewall or antivirus software on your PC temporarily, as they might be blocking the connection.

Make sure that your devices IP address is correctly entered when running the adb connect command.

Restart both your phone and your PC.

Check if there are any specific settings in your custom ROM related to ADB over Wi-Fi and ensure they are configured correctly.

If none of the above solutions work, you may need to seek assistance from forums or communities dedicated to your specific device model or custom ROM, as they might have encountered similar issues and found specific solutions.