A quick and dirty script to backup and restore Android apps...

I recently wrote 2 Windows scripts that very quickly pulls all Android apps from the Android phone, and install them back to the Android phone, for disaster recovery purposes.

Pulling Android apps from the Android phone

getapps.cmd
adb shell ls /data/app > apps.txt
c:\cygwin\bin\unix2dos --u2d apps.txt
for /F %%i in (apps.txt) do adb pull /data/app/%%i .

Restoring Android apps to the Android phone

installapps.cmd
for /f %%i in (apps.txt) do adb install %%i


Published Tue, 6 Oct 2009 @ 7:07 PM by chuacw
Related articles:

Leave a Comment

(required) 
(required) 
(optional)
(required) 
Enter the following code to ensure that your comment reaches the intended party:
Enter the numbers you see in the image: