getUserIdLPr should take application id as input

Fixes: 78265824
Test: Setup work profile using TestDPC -> add account into work profile.
Test: Add google.com in personal side to trigger work profile setup.

Change-Id: Ib87301fc98d0ebf1baa043e4badb5144a0f62377
This commit is contained in:
Tony Mak
2018-04-19 14:24:10 +01:00
parent 8182e354d8
commit c59dfc61b6

View File

@@ -23603,7 +23603,8 @@ Slog.v(TAG, ":: stepped forward, applying functor at tag " + parser.getName());
private SigningDetails getSigningDetails(int uid) {
synchronized (mPackages) {
final Object obj = mSettings.getUserIdLPr(uid);
final int appId = UserHandle.getAppId(uid);
final Object obj = mSettings.getUserIdLPr(appId);
if (obj != null) {
if (obj instanceof SharedUserSetting) {
return ((SharedUserSetting) obj).signatures.mSigningDetails;