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

Commit 44080ef8 authored by Chalard Jean's avatar Chalard Jean Committed by android-build-merger
Browse files

Merge "Give Telephony the permissions to access the network stack." am: a6f3476476 am: 1dba2f82ad

am: 5a390b36ae

Change-Id: I00135c13777f08ae155381ae6365e2edc76b1c1d
parents 47bb7e88 df416df0
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -33,7 +33,9 @@ public final class PermissionUtil {
    public static void checkNetworkStackCallingPermission() {
        // TODO: check that the calling PID is the system server.
        final int caller = getCallingUid();
        if (caller != Process.SYSTEM_UID && UserHandle.getAppId(caller) != Process.BLUETOOTH_UID) {
        if (caller != Process.SYSTEM_UID
                && UserHandle.getAppId(caller) != Process.BLUETOOTH_UID
                && UserHandle.getAppId(caller) != Process.PHONE_UID) {
            throw new SecurityException("Invalid caller: " + caller);
        }
    }