Install ADB in rooted android easily
ADB: ADB stands for Android Debug Bridge. With adb you can operate many advanced function which aren't possible in a non-rooted android phone. To use ADB you must need a PC.But today, I am going to show you an amazing trick for installing adb in your rooted android phone! So you won't need PC to run adb commands. You can run adb commands from your android phone!
- An android phone rooted with magisk
- USB OTG must be supported
- Another android phone with a supported data cable (for testing)
- A USB otg cable (for testing)
- Launch Magisk Manager app
- Go to Downloads
- Search for "adb & fastboot for android ndk"
- Install this module and reboot your phone
- Install any terminal emulator app (search in playstore)
Let's assume that the device you installed adb is "A" and the device you will test is "B"
- Launch any terminal emulator app in device A
- type "su"
- Grant superuser permission (if prompted)
- Enable "Developer options" in B (Go to Settings > About > tap 7 times on build number)
- Now open "Developer options" settings
- Enable "USB Debugging"
- Now connect B with usb cable and otg to A
- Choose "File transfer" from the USB connected notification in device B
- In terminal window in device A, type "adb devices" and wait
- If you see your device's serial number that means everything is Okay and adb is working perfectly!