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

Commit 4f3d5c75 authored by Svetoslav Ganov's avatar Svetoslav Ganov Committed by Android Git Automerger
Browse files

am 1eb06eaa: am 8dbd4848: Merge "Add per UID control to app ops." into mnc-dev

* commit '1eb06eaa':
  Add per UID control to app ops.
parents 0e9e089b 1eb06eaa
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -1233,6 +1233,14 @@ public class AppOpsManager {
        return null;
    }

    /** @hide */
    public void setUidMode(int code, int uid, int mode) {
        try {
            mService.setUidMode(code, uid, mode);
        } catch (RemoteException e) {
        }
    }

    /** @hide */
    public void setMode(int code, int uid, String packageName, int mode) {
        try {
+1 −0
Original line number Diff line number Diff line
@@ -38,6 +38,7 @@ interface IAppOpsService {
    int checkPackage(int uid, String packageName);
    List<AppOpsManager.PackageOps> getPackagesForOps(in int[] ops);
    List<AppOpsManager.PackageOps> getOpsForPackage(int uid, String packageName, in int[] ops);
    void setUidMode(int code, int uid, int mode);
    void setMode(int code, int uid, String packageName, int mode);
    void resetAllModes(int reqUserId, String reqPackageName);
    int checkAudioOperation(int code, int usage, int uid, String packageName);
+401 −58

File changed.

Preview size limit exceeded, changes collapsed.