Loading src/com/android/bluetooth/btservice/AdapterService.java +1 −1 Original line number Diff line number Diff line Loading @@ -1922,7 +1922,7 @@ public class AdapterService extends Service { UserHandle callingUser = UserHandle.of(UserHandle.getCallingUserId()); debugLog("startDiscovery"); enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, "Need BLUETOOTH ADMIN permission"); mAppOps.checkPackage(callingUser.getIdentifier(), callingPackage); mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); boolean isQApp = Utils.isQApp(this, callingPackage); String permission = null; if (Utils.checkCallerHasNetworkSettingsPermission(this)) { Loading src/com/android/bluetooth/gatt/GattService.java +2 −2 Original line number Diff line number Diff line Loading @@ -1921,7 +1921,7 @@ public class GattService extends ProfileService { } final ScanClient scanClient = new ScanClient(scannerId, settings, filters, storages); scanClient.userHandle = UserHandle.of(UserHandle.getCallingUserId()); mAppOps.checkPackage(scanClient.userHandle.getIdentifier(), callingPackage); mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); scanClient.isQApp = Utils.isQApp(this, callingPackage); if (scanClient.isQApp) { scanClient.hasLocationPermission = Loading Loading @@ -1968,7 +1968,7 @@ public class GattService extends ProfileService { piInfo.callingPackage = callingPackage; ScannerMap.App app = mScannerMap.add(uuid, null, null, piInfo, this); app.mUserHandle = UserHandle.of(UserHandle.getCallingUserId()); mAppOps.checkPackage(app.mUserHandle.getIdentifier(), callingPackage); mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); app.mIsQApp = Utils.isQApp(this, callingPackage); try { if (app.mIsQApp) { Loading Loading
src/com/android/bluetooth/btservice/AdapterService.java +1 −1 Original line number Diff line number Diff line Loading @@ -1922,7 +1922,7 @@ public class AdapterService extends Service { UserHandle callingUser = UserHandle.of(UserHandle.getCallingUserId()); debugLog("startDiscovery"); enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, "Need BLUETOOTH ADMIN permission"); mAppOps.checkPackage(callingUser.getIdentifier(), callingPackage); mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); boolean isQApp = Utils.isQApp(this, callingPackage); String permission = null; if (Utils.checkCallerHasNetworkSettingsPermission(this)) { Loading
src/com/android/bluetooth/gatt/GattService.java +2 −2 Original line number Diff line number Diff line Loading @@ -1921,7 +1921,7 @@ public class GattService extends ProfileService { } final ScanClient scanClient = new ScanClient(scannerId, settings, filters, storages); scanClient.userHandle = UserHandle.of(UserHandle.getCallingUserId()); mAppOps.checkPackage(scanClient.userHandle.getIdentifier(), callingPackage); mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); scanClient.isQApp = Utils.isQApp(this, callingPackage); if (scanClient.isQApp) { scanClient.hasLocationPermission = Loading Loading @@ -1968,7 +1968,7 @@ public class GattService extends ProfileService { piInfo.callingPackage = callingPackage; ScannerMap.App app = mScannerMap.add(uuid, null, null, piInfo, this); app.mUserHandle = UserHandle.of(UserHandle.getCallingUserId()); mAppOps.checkPackage(app.mUserHandle.getIdentifier(), callingPackage); mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); app.mIsQApp = Utils.isQApp(this, callingPackage); try { if (app.mIsQApp) { Loading