

Restoring backups is pretty easy using ADB. Sample command for backup (storing APKs, storing external storage, not backing up system apps), which will be saved as bckp in the home directory: adb backup -f bckp -apk -shared -nosystem Restoring backups

To uninstall, you first need to list all the programs on your phone.
#INSTALL ADB LINUX APK#
To install an APK file to your phone, make sure APK is in the home directory, and use this simple syntax: adb install ADB installing ADB transferring files Installing/Uninstalling apps To send data to your phone’s system from your computer’s Downloads directory to the Document folder of your phone: adb push Downloads/test /storage/sdcard0/DocumentĬonfigure the basic syntax as you desire. Similarly, you can replace sdcard0 with sdcard1 if it is in your external storage.
#INSTALL ADB LINUX HOW TO#
Now to transfer any data to and from the system, use the following commands:Ĭommand to get a file from phone, taking an example of a file named ‘ test‘ in the Download folder: adb pull /storage/sdcard0/Download/testįrom this syntax, you can understand how to get into more in-depth directories. The data on your external SD card is on /storage/sdcard1.

The files that you see on your phone’s file manager (Internal storage) are situated in the directory /storage/sdcard0. To connect to your phone wirelessly now, enter the command in the following format: adb connect :5555 Enabling wireless connection This enables connecting to your phone through the 5555 port. IP Address on phoneĪfter completing the steps above, enter: adb tcpip 5555 There will be a slot denoting the IP address of your phone. Go to your phone’s settings, and navigate to ‘ About Phone.’ Move to the ‘ Status‘ menu. You will get a prompt on your phone whether to trust the computer it has been connected to, to which you need to answer with the positive remark. For now, connect your phone to your computer system through a data cable, with ‘ USB Debugging‘ enabled in the Developer Options of your phone’s settings. To connect to your phone wirelessly, make sure that your phone and computer system are connected to the same network. Check ‘ Always allow from this computer‘ and tap ‘ OK.’ You will get a prompt asking whether or not do you want to allow USB debugging. Now connect your phone to your system with a data cable. Go back to your system, and enter this command: adb start-server ADB starting

First of all, enable ‘ USB Debugging‘ from the Developer Options in the settings. Now, we’ll show an essential guide to setting up your phone for using ADB. On Fedora, use: sudo dnf install adb Setup Or if it doesn’t work, sudo apt-get install adb ADB installing For Ubuntu/Debian and its derivatives, use the following command: sudo apt-get install android-tools-adb The restoring options are also available.
