Hi every1
This is a tutorial for granting ADB hacks in Xiaomi devices (I used Mi 11i).
We'll use Wireless ADB, not USB, but note it only works on Android 11+ (you can use classic USB Debuggng if your device is not on Android 11)
Note : all commands in this tutorial are "quoted", but you must not insert quotes in the actual command line
A-Initial needs:
1-On the Xiaomi device:
1.1-Enable Developer options (google to find how to do it)
1.2-Enable USB debugging
1.3-Enable Wireless debugging
1.4-Enable USB debugging (Security Options)
1.5.Disable adb authorization timeout
2-On your Mac/PC:
2.1-In order to apply this ADB hacks you will need Google's ADB tool (note that only the latest version works on Android 11+). Get it here:
PC: https://dl.google.com/android/repository/platform-tools-latest-windows.zip
Mac: https://dl.google.com/android/repository/platform-tools-latest-darwin.zip
2.2-Once you have a working adb connection, you will type and run the adb commands from the command line/terminal on your computer:
B-Instructions
1.On the Xiaomi device
11.-Go to: Settings > Additional serttings > Developer Options > Wireless debugging.
1.2-You must pair the device with your Mac/PC on your 1st connection. Use the option "Pair device with pairing code" (Take note of device IP address and port n#, and note the pairing code)
2- On your Mac/PC
2.1-Launch your Terminal /Command line. Run "adb pair [your device IP : port n#]". For example:
"adb pair 192.168.1.128:40225"
2.2-Type your device pairing code when asked (from step 1.2)
2.3-You are now paired with your device!
2.4-Run the command "adb devices -l" to list the connected devices. Your Xiaomi device should be listed.
2.5. Now, you're ready tho fire those ADB hacks commands, whatever they are!.
For example, the 1st Macrodroid command should be: "adb shell pm grant com.arlosoft.macrodroid android.permission.WRITE_SECURE_SETTINGS"
2.6-At the end of your session, type "adb kill-server" before disconnect the device.
THat's it! Hope this helps
This is a tutorial for granting ADB hacks in Xiaomi devices (I used Mi 11i).
We'll use Wireless ADB, not USB, but note it only works on Android 11+ (you can use classic USB Debuggng if your device is not on Android 11)
Note : all commands in this tutorial are "quoted", but you must not insert quotes in the actual command line
A-Initial needs:
1-On the Xiaomi device:
1.1-Enable Developer options (google to find how to do it)
1.2-Enable USB debugging
1.3-Enable Wireless debugging
1.4-Enable USB debugging (Security Options)
1.5.Disable adb authorization timeout
2-On your Mac/PC:
2.1-In order to apply this ADB hacks you will need Google's ADB tool (note that only the latest version works on Android 11+). Get it here:
PC: https://dl.google.com/android/repository/platform-tools-latest-windows.zip
Mac: https://dl.google.com/android/repository/platform-tools-latest-darwin.zip
2.2-Once you have a working adb connection, you will type and run the adb commands from the command line/terminal on your computer:
B-Instructions
1.On the Xiaomi device
11.-Go to: Settings > Additional serttings > Developer Options > Wireless debugging.
1.2-You must pair the device with your Mac/PC on your 1st connection. Use the option "Pair device with pairing code" (Take note of device IP address and port n#, and note the pairing code)
2- On your Mac/PC
2.1-Launch your Terminal /Command line. Run "adb pair [your device IP : port n#]". For example:
"adb pair 192.168.1.128:40225"
2.2-Type your device pairing code when asked (from step 1.2)
2.3-You are now paired with your device!
2.4-Run the command "adb devices -l" to list the connected devices. Your Xiaomi device should be listed.
2.5. Now, you're ready tho fire those ADB hacks commands, whatever they are!.
For example, the 1st Macrodroid command should be: "adb shell pm grant com.arlosoft.macrodroid android.permission.WRITE_SECURE_SETTINGS"
2.6-At the end of your session, type "adb kill-server" before disconnect the device.
THat's it! Hope this helps