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

Commit 381f7a74 authored by Adam Bookatz's avatar Adam Bookatz Committed by Android (Google) Code Review
Browse files

Merge "UserProperty cross-binder warning only for SYSTEM" into main

parents 7f077899 84967ebf
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -3928,9 +3928,9 @@ public class UserManager {

        final int callingUid = Binder.getCallingUid();
        final int processUid = Process.myUid();
        if (Build.isDebuggable() && callingUid != processUid) {
            Log.w(TAG, "Uid " + processUid + " is fetching a copy of UserProperties on"
                            + " behalf of callingUid " + callingUid + ". Possibly"
        if (processUid == Process.SYSTEM_UID && callingUid != processUid) {
            Log.w(TAG, "The System (uid " + processUid + ") is fetching a copy of"
                            + " UserProperties on behalf of callingUid " + callingUid + ". Possibly"
                            + " it should carefully first clearCallingIdentity or perhaps use"
                            + " UserManagerInternal.getUserProperties() instead?",
                    new Throwable());