Requirement
Android 11 or AboveSteps To start
How to enable Developer options
1. Go to "Settings", then tap "About device" or "About phone".
2. Scroll down, then tap "Build number" seven times.
Depending on your device and operating system, you may need to tap
"Software information", then tap "Build number" seven times.
Enable developer options and USB debugging
On Android 4.1 and lower, the Developer options screen is
available by default. On Android 4.2 and higher, you must enable this
screen. To enable developer options, tap the Build Number option 7
times. You can find this option in one of the following locations,
depending on your Android version:
Android 9 (API level 28) and higher: Settings > About Phone > Build Number
Android 8.0.0 (API level 26) and Android 8.1.0 (API level 26): Settings > System > About Phone > Build Number
Android 7.1 (API level 25) and lower: Settings > About Phone > Build Number
Android 9 (API level 28) and higher: Settings > About Phone > Build Number
Android 8.0.0 (API level 26) and Android 8.1.0 (API level 26): Settings > System > About Phone > Build Number
Android 7.1 (API level 25) and lower: Settings > About Phone > Build Number
3. Enter your pattern, PIN or password to enable the Developer
options menu.
After
Go to the device Settings >
Developer Options > Enable Wireless debuggingSelect Pair device with pairing code. (Currently, there are two options to pair it with your computer. Using a QR code or pairing a device using a six-digit code.)
After tapping Pair device with pairing code you will see a popup as shown in the above image with your device-specific pairing code, IP address & port.
3. On your computer navigate to android_sdk/platform-tools directory. Skip this step if you have set ADB path in environment variables.
4. Now open the terminal and run adb pair ipaddr:port. Where ipaddr is the IP address and port is the port number from Step 2. (After running the command if your terminal says adb: unknown command pair then you need to update your SDK platform-tools)
$ adb pair 192.168.0.101:37941
5. The above ADB command will now prompt you to enter the pairing code. (This pairing code can be seen on Step 2).
$ adb pair 192.168.0.101:42607
Enter pairing code: 197872
6. Once successfully paired you will see a message on the terminal and also an ongoing notification on your device.
$ adb pair 192.168.0.101:42607
Enter pairing code: 197872
Successfully paired to 192.168.0.101:42607
Ongoing notification on your android device.
6. To reconnect with your paired device Enable Wireless debugging from your android device Settings and then you should see the same ongoing notification on your device.
You can also manage all the paired devices under the Wireless debugging option.
#fakerajbhx