Enable Wireless Debugging

adb pair <pairing_ip>:<pairing_port>
adb connect <ip>:<port>

Enable Wireless Debugging over Mobile Hotspot

  • Connect phone via usb and run: adb tcpip 5555
  • Disconnect usb and connect via Mobile Hotspot
  • Install Termux app and run: ip addr | grep 'wlan' and remember ip address of wlan0/1
  • Alternative: Since you are connected to your mobile hotspot, so your router ip address is same as your mobile ip address. Just run netstat -nr | grep 'default' to get the router/mobile ip address
  • To connect to phone run: adb connect <ip-address>
  • Note: It works till the phone is restarted

Send and Receive files

Send file to mobile

  • adb push "sample.txt" "/storage/emulated/0/Download/"

Retrieve file from mobile

  • adb pull "/storage/emulated/0/Download/sample.txt"

Install apk

  • adb install "test.apk"

Convert aab to apk

java -jar bundletool-all-1.14.1.jar build-apks --bundle="./test.aab" --output="./test.apks" --mode=universal
  • rename the test.apks to test.zip
  • Unzip it and locate universal.apk which is the desired apk generated