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

Commit 875cd029 authored by Roshan Pius's avatar Roshan Pius Committed by android-build-merger
Browse files

Merge "NetworkStackClient: Use @SystemApi alternative for isSameApp" am: 6a612863 am: e8ba3232

am: e22efaff

Change-Id: I7370e38a5daef2560ddb3753de8255282d380f94
parents c4944f81 e22efaff
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -103,7 +103,7 @@ public class NetworkStackClient {
            // checks here should be kept in sync with PermissionUtil.
            if (caller != Process.SYSTEM_UID
                    && caller != Process.NETWORK_STACK_UID
                    && !UserHandle.isSameApp(caller, Process.BLUETOOTH_UID)) {
                    && UserHandle.getAppId(caller) != Process.BLUETOOTH_UID) {
                throw new SecurityException(
                        "Only the system server should try to bind to the network stack.");
            }