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

Commit 4871f4fc authored by Roshan Pius's avatar Roshan Pius Committed by android-build-merger
Browse files

NetworkStack: Allow modules with network_stack uid am: b01ea683

am: 6baef4d0

Change-Id: I61ccd5739d1c0702b17e00f242269ce0fdb4d380
parents ea245baf 6baef4d0
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);
        }
    }