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

Commit a47693a3 authored by Steve Kondik's avatar Steve Kondik
Browse files

location: Fix usage of implicit intent in service binding

 * Legacy GeoFencer was using an implicit intent for binding to it's
   service, causing system_server to crash. Fixit.

Change-Id: I187f39fbf5116fbe52cdf3f951e17e32a50b1a5b
parent 88d7eb00
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -81,7 +81,8 @@ public class GeoFencerProxy extends GeoFencerBase {

    private GeoFencerProxy(Context context, String serviceName) {
        mContext = context;
        mIntent = new Intent(serviceName);
        mIntent = new Intent(IGeoFencer.class.getName());
        mIntent.setPackage(serviceName);
        mContext.bindService(mIntent, mServiceConnection,
                Context.BIND_AUTO_CREATE | Context.BIND_NOT_FOREGROUND
                | Context.BIND_ALLOW_OOM_MANAGEMENT);