Multiple consecutive individual ADB backup/restore without prompt I was looking into how to do batch backups through individual adb backup/restore commands (to have separate .ab files per package/application/data/etc.) (I'm aware of the Helium (Carbon) desktop app as an option for this - would be interested in writing my own script for fun anyway).

The reason for wanting to create individual .ab files vs a large one is I want to be able to have partial backup/restore functionality for just individual packages, and not have to do, for example, 50 apps all at once.

The main obstacle at the moment is that every time a backup/restore occurs, user input has to be given when the prompt comes up - is there a way around this to be able to use adb backup/restore for multiple individual packages through something like a shell script? 

Thanks!
You can try using adb shell input tap &lt;x&gt; &lt;y&gt; where x and y are the coordinates of where you would like to tap on the screen (can show coords in Developer Options).  I was able to use this code to restore an individual backup:

#$1 is backup file

adb restore ${1} &amp;
sleep 2
adb shell input touchscreen tap &lt;x&gt; &lt;y&gt;
wait


I found it useful to sleep for a couple seconds after the restore command, but it may not be necessary.