3

I am trying to create to backup of all application in android but I don't want the users to connect to USB even for the first time. okay let me first explain what happens when we connect our phone with USB to ADB client

0. USB Debugging mode is enabled on the phone.
1. The phone is connected to PC using a USB cord.
adb tcpip 9999 command from cmd with ADB already installed.
The above command helps now switched the abd demon (adbd) inside the android phone to listen through TCP-IP protocol
3. now we can disconnect the phone from the PC
4. using a terminal emulator application we can now fire the commands
a) adb connect localhost:999
b) backup -all -f /sdcard/dev/bck.ab
now a backup pop-up will open up, you can simply click backup button. Now we can anytime execute the command in 4.a and 4.b util the user restarts the phone or but the problem is I wish to execute adb tcpip 9999without PC. Can someone suggest me how to approach this problem? From where should I start reading or there is some existing application that can do this on a non-root phone.

  • There are several apps/widgets available to enable ADB Wireless without an established USB connection. Most of them require root, though – but IIRC there were some that do without. // PS: Here's one doing it without root: WiFi ADB (no root). Would that fit your needs? – Izzy Sep 19 '16 at 13:31
  • @Izzy I am trying to execute adb tcpip 9999 without using USB even for the first time, may be sending this command from a cloud server if possible.so a user doesn't need a USB and a PC with ADB.Actually to run this command I need to use a USB connection but I am trying to find a workaround so that I can fire adb backup from the phone itself.Can you suggest is this feasible or not – Tiger98 Sep 19 '16 at 15:01
  • That's what I just wrote: user taps an icon to start ADB wireless directly on the device (no USB connection required), and there you go. Have you checked the links I gave? OTOH, if you speak of "cloud", that might be a little more tricky, as the user then needs to have some port forwarding set up on his router. – Izzy Sep 19 '16 at 15:36
  • @Izzy I am trying to execute the adb tcpip 9999 command from a non-rooted phone so changing the usb listening mode to tcp mode cannot be done without usb so is there any way to achieve this tcp listening mode for the demon without using the usb ever. – Tiger98 Sep 20 '16 at 8:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.