09589d0073af9ff4d362482efc2d866322889901 |
01-May-2018 |
Anton Philippov <philippov@google.com> |
Don't run obb backup for shared storage backup package. This fixes an issue when adb backup would hang (and hold wakelock) forever when run with '-obb' and '-shared'. Bug: 75997810 Test: 'adb backup -obb -shared' finishes successfully Change-Id: I015add6dc525984592e733266b3e046f41d2cb93
erformAdbBackupTask.java
|
92892163d58b580056d38f6ca2c93fb714b9e4b8 |
15-Mar-2018 |
Annie Meng <anniemeng@google.com> |
DO NOT MERGE Unrevert update references to backup agent timeouts Cherry-picked from master (ag/3800434). Reintroduce change (ag/3742803) that was reverted due to SUW crash (ag/3780292). Updates references to backup/restore agent timeouts from hardcoded constants to the Global setting backup_agent_timeout_parameters. Bug: 70276070 Test: 1) m -j RunFrameworksServicesRoboTests 2) Manual testing of affected backup/restore paths: - Wipe device; restore cloud backup via SUW - adb shell bmgr list sets - adb shell bmgr restore [package] - adb shell bmgr restore [token] - adb backup -all - adb backup -shared - adb backup -obb -all - adb shell bmgr backupnow --all - adb shell bmgr backupnow [key value package] - adb shell bmgr backupnow [full data package] - adb backup -keyvalue [key value package] - adb restore backup.ab Change-Id: If9aad572d688451d37178cd7c2d7844be054953c
ullBackupEngine.java
ullBackupObbConnection.java
erformFullTransportBackupTask.java
|
b873780a3d7128f5ba141605559099d2b2f93fbb |
22-Mar-2018 |
Artem Iglikov <artikz@google.com> |
DO NOT MERGE Revert "DO NOT MERGE Update references to backup/restore agent timeouts" This reverts commit f77cae61250c727630616b5672df2781e84a7e80. Reason for revert: crashes SUW Bug: 76128378 Change-Id: Ia77af64892aa5a03109cc4ef4c2c04b256000ba9
ullBackupEngine.java
ullBackupObbConnection.java
erformFullTransportBackupTask.java
|
f77cae61250c727630616b5672df2781e84a7e80 |
15-Mar-2018 |
Annie Meng <anniemeng@google.com> |
DO NOT MERGE Update references to backup/restore agent timeouts With the newly created Global setting for backup/restore agent timeouts (backup_agent_timeout_parameters introduced in ag/3731401), update references in backup and restore code to get the timeout values from the setting instead of referencing constants in BMS. This makes these timeouts configurable outside of the framework. The default value of the setting is the same as the constants in BMS so this should have no change on the timeout values used in the backup and restore flow. Bug: 70276070 Test: 1) m -j RunFrameworksServicesRoboTests Change-Id: I0259bba76d0fed48158b8316f430b315ea98086e
ullBackupEngine.java
ullBackupObbConnection.java
erformFullTransportBackupTask.java
|
528c3e572a829c51053532803ff31da123ebfed9 |
07-Feb-2018 |
Michal Karpinski <mkarpinski@google.com> |
Allow restoring of apps that rotated key Restoring of apps that rotated key wouldn't be possible due to explicit signature matching. Amend signature matching strategies to take into account apps that have rotated key. Test: atest frameworks/base/services/tests/servicestests/src/ com/android/server/backup/utils/AppBackupUtilsTest.java Test: atest frameworks/base/services/tests/servicestests/src/ com/android/server/pm/backup/BackupUtilsTest.java Test: m -j RunFrameworksServicesRoboTests Test: runtest -p com.android.server.backup frameworks-services Test: atest frameworks/base/services/tests/servicestests/src/ com/android/server/pm/ShortcutManagerTest1.java Test: atest frameworks/base/services/tests/servicestests/src/ com/android/server/pm/ShortcutManagerTest2.java Test: atest frameworks/base/services/tests/servicestests/src/ com/android/server/pm/ShortcutManagerTest3.java Test: atest frameworks/base/services/tests/servicestests/src/ com/android/server/pm/ShortcutManagerTest4.java Test: atest frameworks/base/services/tests/servicestests/src/ com/android/server/pm/ShortcutManagerTest5.java Test: atest frameworks/base/services/tests/servicestests/src/ com/android/server/pm/ShortcutManagerTest6.java Test: atest frameworks/base/services/tests/servicestests/src/ com/android/server/pm/ShortcutManagerTest7.java Test: atest frameworks/base/services/tests/servicestests/src/ com/android/server/pm/ShortcutManagerTest8.java Test: atest frameworks/base/services/tests/servicestests/src/ com/android/server/pm/ShortcutManagerTest9.java Test: atest frameworks/base/services/tests/servicestests/src/ com/android/server/pm/ShortcutManagerTest10.java Test: atest CtsShortcutManagerTestCases Bug: 64686581 Bug: 34345052 Bug: 74208476 Bug: 74159113 Change-Id: Ica23bbfec89648d9348c65db4597188e8c18e1d8
erformAdbBackupTask.java
erformFullTransportBackupTask.java
|
fe4ae0c5b1bc3b31adc4cc2c5a0197e29e97b6bc |
25-Jan-2018 |
Michal Karpinski <mkarpinski@google.com> |
Rename RefactoredBackupManagerService to BackupManagerService The interface will be removed in a subsequent CL, it will be easier to deal with merge conflicts. Test: 1) m -j RunFrameworksServicesRoboTests 2) runtest -p com.android.server.backup frameworks-services Bug: 65823538 Change-Id: I37c4c6758c646e1b18889ed05aa1b1d7c6129cf0
ullBackupEngine.java
ullBackupObbConnection.java
ullBackupTask.java
erformAdbBackupTask.java
erformFullTransportBackupTask.java
|
39194c0582463be17513b9ba82802a703b10c934 |
11-Jan-2018 |
Robert Berry <robertberry@google.com> |
Add #getTransportFlags to BackupDataOutput This allows a BackupAgent to check whether the transport has client-side encryption enabled. It can then use this information to decide whether to back up more sensitive data. Bug: 72299360 Test: Manually verified full & kv backup agents receive transport flags Test: m -j RunFrameworksServicesRoboTests Change-Id: Ibd9b5f9479815e1721e9d6b7663d892b9ab3fcae
ullBackupEngine.java
erformAdbBackupTask.java
erformFullTransportBackupTask.java
|
4719ed513e68ac0c89f5830b2d50edb960b6ba34 |
15-Nov-2017 |
Bernardo Rufino <brufino@google.com> |
Binding on-demand #2: PerformFullTransportBackupTask usage Migrate the full-backup task to use binding on-demand Ref: http://go/br-binding-on-demand Bug: 17140907 Test: make RunFrameworksServicesRoboTests Test: runtest -p com.android.server.backup frameworks-services Test: adb shell bmgr backupnow <packages> With transports manually unbound and also canceled the operation a few times. Then inspected TransportClient logcat Test: gts-tradefed run commandAndExit gts-dev -m GtsBackupTestCases Test: gts-tradefed run commandAndExit gts-dev -m GtsBackupHostTestCases Test: cts-tradefed run commandAndExit cts-dev -m CtsBackupTestCases Test: Manually unbound before GTS/CTS above. Change-Id: I15abe970db0b9858e0e2e4eb666358db3a9d50ad
erformFullTransportBackupTask.java
|
9d395bb3e2bda2188db25645c75c5ca74ad40c79 |
19-Sep-2017 |
Michal Karpinski <mkarpinski@google.com> |
[RefactoredBMS] Tear down agent after preflight rejection This CL replicates ag/2520584 in RefactoredBMS. Test: runtest -p com.android.server.backup frameworks-services Bug: 37973765 Change-Id: I13ac110dbc197df473dd6a0cf24866133dfefab8
erformFullTransportBackupTask.java
|
5c90ff0f26dc3e87c70702a1a09b587cb4c82568 |
18-Sep-2017 |
Michal Karpinski <mkarpinski@google.com> |
[RefactoredBMS] Correct scope of "disabled?" check viz backup/restore decisions This CL replicates ag/2204901 in RefactoredBMS. Also adjusts tests and adds new ones for appIsDisabled method. Test: runtest -p com.android.server.backup frameworks-services Bug: 37973765 Change-Id: Ibaa15ba935ca1ada657e912b18a5a0b3bcffd00f
erformAdbBackupTask.java
erformFullTransportBackupTask.java
|
5176c02501054da21d2729339037c66416c09528 |
13-Sep-2017 |
Bernardo Rufino <brufino@google.com> |
Add logs to IOExceptions during adb backup Test: Run adb backup Bug: 65435587 Change-Id: I744cb2878654b716858d7c9bedeb12fb9978df6b
erformAdbBackupTask.java
|
9699fe319e78c681e638e8d5dee7954e15f8a96b |
13-Jul-2017 |
Robert Berry <robertberry@google.com> |
Pull backup password logic out of BackupManagerService This makes it easier to follow what's going on. Also makes it easy for us to add unit tests for this component. Bug: 36850431 Test: adb shell am instrument -w -e package com.android.server.backup com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner Change-Id: Ifb85f1573bcfb7da26febed35d49454614b5d975
erformAdbBackupTask.java
|
1a30fcd99547d8da870a66e0799b40b77e783304 |
20-Jun-2017 |
Christopher Tate <ctate@google.com> |
Fix #62798589 : requestBackup() needs to check enable/provisioned state Also tweaked the logging to make sure to capture "not provisioned" whenever it's the case. Test: manual Change-Id: Iee909b8336af776bad0fa46f036d6cf32ef9c3e7
erformFullTransportBackupTask.java
|
dbe68324801cfd45d0d1116c9da983b8ebe651ae |
09-May-2017 |
Artem Iglikov <artikz@google.com> |
Use static imports for constants. This is an automated change with some manual formatting. Bug: 36850431 Test: mmma frameworks/base Change-Id: I126747e57ae1b666e5281b25d063d22d774b0718
ullBackupEngine.java
ullBackupObbConnection.java
ullBackupTask.java
erformAdbBackupTask.java
erformFullTransportBackupTask.java
|
25c50f98e3176bd12edd122e91ea9a1ee580d7ce |
03-May-2017 |
Johan TorĂ¥s Halseth <johanth@google.com> |
Increase timeout for ADB backup/restore of SharedStorage. This is a manual merge of ag/2161962 into master. Test: it compiles. Change-Id: Ice6648554933baf76e96fd151b506564487c91c6
ullBackupEngine.java
|
0b54d6d92990b8b3193ff5891b4de820ed2f2130 |
27-Apr-2017 |
Artem Iglikov <artikz@google.com> |
Another round of code deduplication. Moved more common classes and methods to utilities (automated). Prepared for deduplication of restoreOneFile() method. Bug: 37519282 Test: gts Change-Id: Ibc3de8f7c6675f64c636aafe51a885cfbd162e3a
erformFullTransportBackupTask.java
|
b3177dc9e5aaa28a88a690147c5bf8cee4baeb4d |
26-Apr-2017 |
Artem Iglikov <artikz@google.com> |
Move more common methods to TarBackupReader. This moves rest of common methods in FullRestoreEngine and PerformAdbRestoreTask to TarBackupReader and FileMetadata. Bug: 37519282 Test: gts Change-Id: Iff1f95e87721e74c9c5764ab98c64026604eee9b
erformFullTransportBackupTask.java
|
603bcb7b88062e0b12589e90a73c792dfaa2b04b |
24-Apr-2017 |
Artem Iglikov <artikz@google.com> |
Move password-related methods to their own class. Automated change. Bug: 37519282 Test: it compiles Change-Id: I09b1fe2854c32abbeed953b83804bc8c976d9fdb
erformAdbBackupTask.java
|
2c2c856b3a60e96e09261d2513b43acb7ff4b070 |
24-Apr-2017 |
Artem Iglikov <artikz@google.com> |
Move public static methods to utility classes. This is an automated change which moves all public static methods from RefactoredBackupManagerService to respective utility classes. Bug: 37519282 Test: it compiles. Change-Id: I2f5765e430da3bd9a05e255dbd2656d5e667bf4d
ullBackupEngine.java
ullBackupObbConnection.java
erformAdbBackupTask.java
erformFullTransportBackupTask.java
|
d6c00c711000aa70db51f46b48a86c2884e91b15 |
24-Apr-2017 |
Artem Iglikov <artikz@google.com> |
Encapsulate RefactoredBackupManagerService fields. This encapsulates back the fields which were decapsulated when splitting out internal classes. Bug: 37520921 Test: adb shell settings put global backup_refactored_service_disabled 0 && adb reboot && adb shell bmgr backupnow --all Change-Id: I9caa75b2f688de96bd5b245f43e0ae66cd9d023c
ullBackupEngine.java
ullBackupObbConnection.java
erformAdbBackupTask.java
erformFullTransportBackupTask.java
|
21510f0b7571f0689dc48c4f8fdbafea883cbdd0 |
18-Apr-2017 |
Artem Iglikov <artikz@google.com> |
Apply Android code style to RefactoredBackupManagerService. Bug: 36850431 Test: it compiles. Change-Id: I5f996e612c9117437c3ff14929afb529ee8e9a93
ullBackupEngine.java
ullBackupObbConnection.java
ullBackupPreflight.java
ullBackupTask.java
erformAdbBackupTask.java
erformFullTransportBackupTask.java
|
f251e3509838e3fbc62ccdba9d4cfd0527f67acd |
07-Apr-2017 |
Artem Iglikov <artikz@google.com> |
Move inner classes of RefactoredBackupManagerService to their own files. The move was done automatically separately for each class. For the classes that are not static, instance of RBMS is passed in the constructor. To make this compilable all methods and fields of RBMS that are accessed from the separated classes were made public. In later commits this will be addressed. Test: built, flashed, verified that bmgr backupnow works with RBMS enabled. Bug: 36850431 Change-Id: I2d9be8bb045d5c4d8106bc59630d3a278138b54f
ullBackupEngine.java
ullBackupEntry.java
ullBackupObbConnection.java
ullBackupPreflight.java
ullBackupTask.java
erformAdbBackupTask.java
erformFullTransportBackupTask.java
|