summaryrefslogtreecommitdiff
path: root/packages/LocalTransport/src
AgeCommit message (Collapse)Author
2021-03-18Determine restore operation type through RestoreSetRuslan Tkhakokhov
Determining the operation type (e.g. cloud backup or device transfer) through transport flags doesn't work during restore. A cloud transport can still be responsible for restore of D2D data. Instead, determine the operation type for each restore set individually. Bug: 182986784 Test: atest FullBackupRulesHostSideTest Change-Id: I8109b99a712e6a60a15164416751d45e632264d6
2021-03-03Support disableIfNoEncryptionCapabilities attributeRuslan Tkhakokhov
Support disableIfNoEncryptionCapabilities attribute in the XML config specified by android:dataExtractionRules.The attribute, only applicable to <cloudBackup>, will disable cloud backup if the transport doesn't offer encryption. Bug: 180523028 Test: atest FullbackupRulesHostSideTest Change-Id: Ic6dab65834b51ff62c1e1a17b34b850f720681a1
2021-03-01Update D2D logic in line with new opt-out rulesRuslan Tkhakokhov
* Ignore android:fullBackupContent for apps targeting Android S+ while in D2D * Update LocalTransport::getTransportFlags() to support FLAG_DEVICE_TO_DEVICE_TRANSFER (required for CTS testing) Bug: 180523564 Test: atest FullBackupRulesHostSideTest Change-Id: I115c1c76f4b0d8b486cc9f146ef630fda3ff2a03
2021-02-24Parse include / exclude config specified by dataExtractionRulesRuslan Tkhakokhov
1. Parse the new config and prefer it over the old config specified by android:fullBackupContent. 2. Add a new parameter to LocalTransportParameters to allow testing this functionality in CTS. Bug: 180522596 Test: atest FullBackupRulesHostSideTest Change-Id: If18edfcdb2b9637d380251f48fdbc56cca6af3ec
2020-04-17Hard Removal of LocalTansport#dataManagementLabel.Abhinav Aggarwal
This API was soft removed in R and hence moves to hard-removal in S. Fixes: b/134661849 Test: atest CtsBackupTestCases Test: atest CtsBackupHostTestCases Change-Id: If2b0165b54e9f85bf458dd9f7ce81f3395f15141
2020-03-04Add exception to log message.Al Sutton
This will help us identify which type of error is occuring. Test: m -j Bug: 150244784 Change-Id: I82ef4b52f198fd15a33637055a8b24e8cb994a2d
2020-01-20Ignore No Data Changed NotificationsAl Sutton
We're adding a "No Data Changed" notification to the framework for K/V backups where no data has changed. LocalTransport has no use for this notification so we'll ignore it if we see it. Test: m -j RunBackupFrameworksServicesRoboTests Bug: 147481066 Change-Id: Ida934f2a17367c430f3411ce1a457515c59746fd
2019-10-16Merge "Route EncryptedLocalTransport KV backup/restore through encryption code"Ruslan Tkhakokhov
2019-10-16Soft removal LocalTansport#dataManagementLabelAl Sutton
This API was deprecated in Q and so moves to soft-removal in R. Bug: 134661849 Test: m clobber; m -j and ensure compile completes without errors Test: atest CtsBackupTestCases Change-Id: I749bb26155ad63245065d32d82ffe995a7d30fa5
2019-10-16Route EncryptedLocalTransport KV backup/restore through encryption codeRuslan Tkhakokhov
Bug: 142227548 Test: Verify the device boots successfully Verify EncryptedLocalTransport APK is present Verify manual backup/restore using bmgr for LocalTransport and EncryptedLocalTransport For LocalTransport (unencrypted) and EncryptedLocalTransport: atest CtsBackupTestCases atest CtsBackupHostTestCases atest GtsBackupTestCases atest GtsBackupHostTestCases Change-Id: Iac3a8a50d7f761442a4b784cfba3a980e900dd7f
2018-10-05Create stream for every call of getNextFullRestoreDataChun.Stefanot
Before we where keeping the same stream for different calls, and the fileDescriptor was different so we could end up writting to an invalid file descriptor. Test: Run adb backup and restore of wallpaper package that was failing. Test: cts-tradefed run commandAndExit cts -m CtsBackupHostTestCases BUG: 117139223 Change-Id: I0d696a0e114f35427514730b0067b169f1bed08a
2018-09-13Move transport out of system server.Stefanot
Test: atest FrameworksServicesTests Test: atest FrameworksServicesRoboTests Test: atest CtsBackupTestCases Test: atest CtsBackupHostTestCases Test: atest GtsBackupTestCases Test: atest GtsBackupHostTestCases Bug: 113569323 Change-Id: I9e647f73cc132ae9a685dd9a6ee2f9bb37a1d8b0