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

Commit 9f43c06d 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

am: 4871f4fc

Change-Id: Ic7d7eba189ed4a44b4ea3b9d597f694a1d793765
parents 5e56523f 4871f4fc
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);
        }
    }