Commit Graph

7 Commits

Author SHA1 Message Date
Al Sutton
b481778d6d Ignore No Data Changed Notifications
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
2020-01-20 16:23:27 +00:00
Ruslan Tkhakokhov
b2f5699e84 Merge "Route EncryptedLocalTransport KV backup/restore through encryption code" 2019-10-16 13:46:29 +00:00
Al Sutton
6d299d2f45 Soft removal LocalTansport#dataManagementLabel
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-16 12:29:27 +01:00
Ruslan Tkhakokhov
004e85f798 Route EncryptedLocalTransport KV backup/restore through encryption code
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
2019-10-16 08:58:01 +00:00
Sasha Smundak
df848ac224 Convert Android.mk file to Android.bp
See build/soong/README.md for more information.

Bug: 122332340
Test: treehugger
Change-Id: I4ccc0a2e13fc49a0109e9823fbcb4077e11455d5
2019-02-08 15:13:25 -08:00
Stefanot
07564fa0f9 Create stream for every call of getNextFullRestoreDataChun.
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-10-05 11:43:27 +01:00
Stefanot
e66c1c32fa Move transport out of system server.
Test: atest FrameworksServicesTests
Test: atest FrameworksServicesRoboTests
Test: atest CtsBackupTestCases
Test: atest CtsBackupHostTestCases
Test: atest GtsBackupTestCases
Test: atest GtsBackupHostTestCases
Bug: 113569323
Change-Id: I9e647f73cc132ae9a685dd9a6ee2f9bb37a1d8b0
2018-09-13 12:37:05 +01:00