diff options
author | Chandan Nath <nathch@google.com> | 2019-01-28 15:23:38 +0000 |
---|---|---|
committer | Chandan Nath <nathch@google.com> | 2019-02-22 19:14:53 +0000 |
commit | e8e463bd84c73cd298b0a7c1870b923f81c52da0 (patch) | |
tree | 006fc738034dc31df97ae78aafdec2bcd187e2ca /rs/java/android/renderscript/ProgramStore.java | |
parent | a54cb88d01d7131127bdf297be261c36e58978ad (diff) |
[Multi-user] add PackageInstaller.installExistingPackage with IntentSender which is fired only
after the asynchronous restore is complete
This is a better alternative to the existing synchronous PackageManager.installExistingPackage
method where the restore operation happens asynchronously but the method itself will return
success before the restore finishes.
Bug: 122881085
Test: 1) cts-tradefed run cts -m CtsBackupHostTestCases
-t android.cts.backup.ProfileKeyValueBackupRestoreHostSideTest
2) atest RunBackupFrameworksServicesRoboTests
3) Install Hangouts on work profile. Then install on primary profile, backup and uninstall.
Now install again and immediately hit Open. Before this change, the app will crash after a few
seconds (when the background restore operation finishes). With this change and a corresponding
Play Store change to use this new method, Open shows up only after restore has finished so the
app doesn't crash.
Change-Id: I5d2e1f3bb5509894bedd6bbcfac32ed6cf946a80
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions