Loading tests/backup/test_backup.sh +5 −3 Original line number Diff line number Diff line Loading @@ -18,10 +18,12 @@ #export DRY_RUN="echo" source test_backup_common.sh # wipe prior backup data for packages # figure out what packages are participating in backup b_pkgs=$(a shell dumpsys backup | \ ruby -ne 'print($1+" ") if $_ =~ /^\s*ApplicationInfo\S+ (.+?)\}/') ruby -e 'p_stanza = STDIN.read.match(/Participants:.*?(?=Ever)/m)[0] puts p_stanza.scan(/^ (.+?)\s*$/).flatten.join(" ")') # wipe data for the package participating in backup for pkg in $b_pkgs; do a shell bmgr wipe "$pkg" done Loading @@ -36,7 +38,7 @@ adb_root set -x # set the transport a shell bmgr transport com.google.android.backup/.BackupTransportService #a shell bmgr transport com.google.android.backup/.BackupTransportService # load up the three files a shell \ Loading tests/backup/test_restore.sh +1 −1 Original line number Diff line number Diff line Loading @@ -45,7 +45,7 @@ function check_exists fi } # run adb as root so we can poke at com.android.backuptest's data # Make sure adb is root so we can poke at com.android.backuptest's data adb_root # delete the old data Loading Loading
tests/backup/test_backup.sh +5 −3 Original line number Diff line number Diff line Loading @@ -18,10 +18,12 @@ #export DRY_RUN="echo" source test_backup_common.sh # wipe prior backup data for packages # figure out what packages are participating in backup b_pkgs=$(a shell dumpsys backup | \ ruby -ne 'print($1+" ") if $_ =~ /^\s*ApplicationInfo\S+ (.+?)\}/') ruby -e 'p_stanza = STDIN.read.match(/Participants:.*?(?=Ever)/m)[0] puts p_stanza.scan(/^ (.+?)\s*$/).flatten.join(" ")') # wipe data for the package participating in backup for pkg in $b_pkgs; do a shell bmgr wipe "$pkg" done Loading @@ -36,7 +38,7 @@ adb_root set -x # set the transport a shell bmgr transport com.google.android.backup/.BackupTransportService #a shell bmgr transport com.google.android.backup/.BackupTransportService # load up the three files a shell \ Loading
tests/backup/test_restore.sh +1 −1 Original line number Diff line number Diff line Loading @@ -45,7 +45,7 @@ function check_exists fi } # run adb as root so we can poke at com.android.backuptest's data # Make sure adb is root so we can poke at com.android.backuptest's data adb_root # delete the old data Loading