Loading android/app/src/com/android/bluetooth/Utils.java +2 −2 Original line number Diff line number Diff line Loading @@ -617,7 +617,7 @@ public final class Utils { return false; } public static boolean checkCallerIsSystemOrActiveUser() { private static boolean checkCallerIsSystemOrActiveUser() { int callingUid = Binder.getCallingUid(); UserHandle callingUser = UserHandle.getUserHandleForUid(callingUid); Loading @@ -638,7 +638,7 @@ public final class Utils { return checkCallerIsSystemOrActiveUser(tag + "." + method + "()"); } public static boolean checkCallerIsSystemOrActiveOrManagedUser(Context context) { private static boolean checkCallerIsSystemOrActiveOrManagedUser(Context context) { if (context == null) { return checkCallerIsSystemOrActiveUser(); } Loading android/app/src/com/android/bluetooth/hfp/HeadsetService.java +1 −1 Original line number Diff line number Diff line Loading @@ -477,7 +477,7 @@ public class HeadsetService extends ProfileService { @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) private HeadsetService getService(AttributionSource source) { if (!Utils.checkCallerIsSystemOrActiveUser(TAG) if (!Utils.checkCallerIsSystemOrActiveOrManagedUser(mService, TAG) || !Utils.checkServiceAvailable(mService, TAG) || !Utils.checkConnectPermissionForDataDelivery(mService, source, TAG)) { return null; Loading Loading
android/app/src/com/android/bluetooth/Utils.java +2 −2 Original line number Diff line number Diff line Loading @@ -617,7 +617,7 @@ public final class Utils { return false; } public static boolean checkCallerIsSystemOrActiveUser() { private static boolean checkCallerIsSystemOrActiveUser() { int callingUid = Binder.getCallingUid(); UserHandle callingUser = UserHandle.getUserHandleForUid(callingUid); Loading @@ -638,7 +638,7 @@ public final class Utils { return checkCallerIsSystemOrActiveUser(tag + "." + method + "()"); } public static boolean checkCallerIsSystemOrActiveOrManagedUser(Context context) { private static boolean checkCallerIsSystemOrActiveOrManagedUser(Context context) { if (context == null) { return checkCallerIsSystemOrActiveUser(); } Loading
android/app/src/com/android/bluetooth/hfp/HeadsetService.java +1 −1 Original line number Diff line number Diff line Loading @@ -477,7 +477,7 @@ public class HeadsetService extends ProfileService { @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) private HeadsetService getService(AttributionSource source) { if (!Utils.checkCallerIsSystemOrActiveUser(TAG) if (!Utils.checkCallerIsSystemOrActiveOrManagedUser(mService, TAG) || !Utils.checkServiceAvailable(mService, TAG) || !Utils.checkConnectPermissionForDataDelivery(mService, source, TAG)) { return null; Loading