Android/adb

With a non rooted device, the only things you can backup locally is what the couple device/android will let you do. That is pretty much the same files you can copy with the already mentioned software. With the Android 4.x devices, a nice solution to make such a partial backup is the so-called "adb backup".

adb stands for Android Debug Bridge, and it is a part of the Android Software Development Kit (SDK). It can be installed with

Install ADB
Install :

ADB - Control Daemon
Start adb daemonː

Kill adb deamonː

Stop adb daemonː

ADB - Reboot
Normal system reboot

Reboot device into recovery modeː

Reboot device into bootloader modeː

ADB - File Managment
To copy a file from PC to Deviceː

To copy a folder from PC to Device (Please Notice The Trial Slash)ː

To copy a file from your Device to PCː

To copy a folder from your Device to PC (Please Notice The Trial Slash)ːː

ADB - Properties
Print propertiesː

Set a property serviceː

ADB - Service
Service Syntaxː

List all servicesː

Example usage to make a call via serviceː

ADB - PM
See packages associated file

List installed packages

List enabled packages

List disabled packages

List third party packages installed by user

List usersː

List permission groups

List features

Uninstall a package

For uninstall several packages at once you must do it in a loop

ADB - Dumpsys
A tool that runs on Android devices and provides information about system services ̺ To get a diagnostic output for all system services for your connected device, simply run adb shell dumpsys. However, this outputs far more information than you would typically want. For more manageable output, specify the service you want to examine by including it in the command.

The general syntax for using dumpsys is as follows

Here is an example when we dumping battery stats

AC powered: false USB powered: true Wireless powered: false Max charging current: 500000 Max charging voltage: 5000000 Charge counter: 0 status: 2 health: 2 present: true level: 45 scale: 100 voltage: 3826 temperature: 240 technology: Li-poly

To list what is available to dump you can typeː

If above command does not work then you can useː

HTC Backup
where:


 * -f : the path of the *.ab file that will be saved on your computer. This file is a compressed file that contains an archive of the data/apks from your device.
 * -apk|-noapk : indicates if the *.apk files should be backed up (default is -noapk)
 * -shared|-noshared: enable/disable backup of the device's shared storage / SD card contents (default is -noshared)
 * -all : indicates that you want the entire system backed up. you can use the packages filter to just backup specific packages, or use -all for a full system backup.
 * -system|-nosystem: indicates if all the system applications and data are included when backing up. (default is -system)
 * : this is where you can list specific packages to backup. Use these if you want to back up only specific applications. If using -all, you do not need to specify packages.

To backup the phone into ~/HTC_backup

will start the daemon and show you the devices on the USB.

will backup every thing the device will let you to backup.

will restore the backup into the device.

To stop the daemon: