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

Commit 23f6ed6b authored by Tony Mak's avatar Tony Mak Committed by android-build-team Robot
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
(cherry picked from commit c59dfc61)
parent b738f2ad
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;