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

Commit 761a64b6 authored by Peter Visontay's avatar Peter Visontay Committed by Android (Google) Code Review
Browse files

Merge "In GnssLocationProvider wrap Binder.restoreCallingIdentity() in finally{}."

parents 341775bf b25db365
Loading
Loading
Loading
Loading
+16 −14
Original line number Diff line number Diff line
@@ -1361,6 +1361,7 @@ public class GnssLocationProvider implements LocationProviderInterface {
    public boolean sendExtraCommand(String command, Bundle extras) {

        long identity = Binder.clearCallingIdentity();
        try {
            boolean result = false;

            if ("delete_aiding_data".equals(command)) {
@@ -1376,9 +1377,10 @@ public class GnssLocationProvider implements LocationProviderInterface {
            } else {
                Log.w(TAG, "sendExtraCommand: unknown command " + command);
            }

        Binder.restoreCallingIdentity(identity);
            return result;
        } finally {
            Binder.restoreCallingIdentity(identity);
        }
    }

    private IGpsGeofenceHardware mGpsGeofenceBinder = new IGpsGeofenceHardware.Stub() {