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

Commit 5fcaf8e9 authored by Eugene Susla's avatar Eugene Susla Committed by android-build-merger
Browse files

Merge "Fix companion uses-permission enforcement" into oc-dev am: 7a4cf16c

am: 812d6d9b

Change-Id: I7f736af6fefcd9f4f337c4a5a899719deb6a1290
parents 12344cf4 812d6d9b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -47,6 +47,7 @@ import android.os.IBinder;
import android.os.IDeviceIdleController;
import android.os.IInterface;
import android.os.Parcel;
import android.os.Process;
import android.os.RemoteException;
import android.os.ResultReceiver;
import android.os.ServiceManager;
@@ -345,7 +346,7 @@ public class CompanionDeviceManagerService extends SystemService implements Bind
    }

    private static boolean isCallerSystem() {
        return getCallingUserId() == UserHandle.USER_SYSTEM;
        return Binder.getCallingUid() == Process.SYSTEM_UID;
    }

    private ServiceConnection createServiceConnection(