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

Commit 6baef4d0 authored by Roshan Pius's avatar Roshan Pius Committed by android-build-merger
Browse files

NetworkStack: Allow modules with network_stack uid

am: b01ea683

Change-Id: Ic4d5c039c43f5d9f24a0b23fcbbc1dcbce51da90
parents a488508e b01ea683
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -41,7 +41,8 @@ public final class PermissionUtil {
            return;
        }

        if (UserHandle.getAppId(caller) != Process.BLUETOOTH_UID) {
        if (caller != Process.myUid() && // apps with NETWORK_STACK_UID
                UserHandle.getAppId(caller) != Process.BLUETOOTH_UID) {
            throw new SecurityException("Invalid caller: " + caller);
        }
    }