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

Commit 18ad9f65 authored by Mike Lockwood's avatar Mike Lockwood
Browse files

Only allow system code to call LocationManager.sendNiResponse()

parent 22d1f9fb
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1137,6 +1137,10 @@ public class LocationManagerService extends ILocationManager.Stub implements Run

    public boolean sendNiResponse(int notifId, int userResponse)
    {
        if (Binder.getCallingUid() != Process.myUid()) {
            throw new SecurityException(
                    "calling sendNiResponse from outside of the system is not allowed");
        }
        try {
            return mNetInitiatedListener.sendNiResponse(notifId, userResponse);
        }