Merge "NetworkStackClient: Use @SystemApi alternative for isSameApp" am: 6a612863e6
am: e8ba3232b7
Change-Id: I3cb11cc4da764863ea79601bd32563731c2b1d4b
This commit is contained in:
@@ -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.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user