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

Commit 330d823c authored by Zhao Wei Liew's avatar Zhao Wei Liew Committed by Dan Pasanen
Browse files

Build: use UserHandle.isApp for M compatibility

Change-Id: Ie4511c547d9afe2697e1ac3519f41a9b19784f18
parent 512122a0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -712,7 +712,7 @@ public class Build {

    /** @hide */
    public static void adjustBuildTypeIfNeeded() {
        if (Process.isApplicationUid(Process.myUid()) && !TextUtils.isEmpty(TYPE_FOR_APPS)) {
        if (UserHandle.isApp(Process.myUid()) && !TextUtils.isEmpty(TYPE_FOR_APPS)) {
            try {
                // This is sick. TYPE is final (which can't be changed because it's an API
                // guarantee), but we have to reassign it. Resort to reflection to unset the