I am trying to create a backup of all applications in Android, but I don't want the users to connect to USB even for the first time.
Let me first explain what happens when we connect our phone with USB to ADB client:
USB Debugging mode is enabled on the phone
The phone is connected to a PC using a USB cord.
adb tcpip 9999
command from cmd with ADB already installed. The command helps now switched the ADB daemon (adbd
) inside the Android phone to listen through TCP/IP protocolNow we can disconnect the phone from the PC
Using a terminal emulator application, we can now fire the commands
adb connect localhost:999
backup -all -f /sdcard/dev/bck.ab
Now a backup pop-up will open up, you can simply click the backup button. Now we can anytime execute the command in 4.1 and 4.2 until the user restarts the phone, but the problem is I wish to execute
adb tcpip 9999
without PC
Can someone suggest to me how to approach this problem? From where should I start reading, or is there some existing application that can do this on a non-rooted phone?
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:01adb 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 08:45