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

Commit efaff720 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

am: 9f43c06d

Change-Id: Idf034b5730221562e125915f8653656aee72f469
parents 120d11ed 9f43c06d
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);
        }
    }