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

Commit a0e60fd9 authored by Rahul Sabnis's avatar Rahul Sabnis Committed by Gerrit Code Review
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"
parents c77f1c45 db799dce
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -3297,8 +3297,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;