[Multi-user] restore when installExistingPackageAsUser
Bug: 122881085
Test: 1) atest RunBackupFrameworksServicesRoboTests
2) atest $(find \
frameworks/base/services/tests/servicestests/src/com/android/server/backup \
-name '*Test.java')
3)
a) Install Hangouts in personal profile
b) Back up with Backup Now button
c) Uninstall
d) Install on work profile
e) Install again in personal profile
f) Wait 5 secs, open and see it is restored (does not ask for perms again)
Change-Id: Ie4dd35edbc802073e2253e4881e032233a55247d
1 file changed