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

Commit 3f42f6f9 authored by Rahul Sabnis's avatar Rahul Sabnis Committed by Automerger Merge Worker
Browse files

Merge "Fix issue where the caller's identity was being used for the LE batch...

Merge "Fix issue where the caller's identity was being used for the LE batch scan report delay floor" am: a3ed9de4 am: c4ffc5ca am: 62b8a2dc

Original change: https://android-review.googlesource.com/c/platform/packages/apps/Bluetooth/+/1688818

Change-Id: I562dbd4a60e95def84b19cc23d533bc5d6ab3c93
parents 37d0e409 62b8a2dc
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -3701,8 +3701,11 @@ public class GattService extends ProfileService {
            return settings;
        }

        // Need to clear identity to pass device config permission check
        long callerToken = Binder.clearCallingIdentity();
        long floor = DeviceConfig.getLong(DeviceConfig.NAMESPACE_BLUETOOTH, "report_delay",
                DEFAULT_REPORT_DELAY_FLOOR);
        Binder.restoreCallingIdentity(callerToken);

        if (settings.getReportDelayMillis() > floor) {
            return settings;