Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c59dfc61 authored by Tony Mak's avatar Tony Mak
Browse files

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
parent 8182e354
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;