Skip to content

Commit c1b47d4

Browse files
TreeHugger RobotAndroid (Google) Code Review
authored andcommitted
Merge changes from topic "SetModeNoEntanglement-qt-qpr1-dev" into qt-qpr1-dev
* changes: DO NOT MERGE Don't throw exception in AppOpsManager.checkOp DO NOT MERGE Remove unnecessary internal APIs. DO NOT MERGE SetMode: Don't call into PM with AppOps lock held
2 parents 6d35c7c + 892ded1 commit c1b47d4

2 files changed

Lines changed: 147 additions & 145 deletions

File tree

core/java/android/app/AppOpsManagerInternal.java

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package android.app;
1818

19-
import android.annotation.NonNull;
2019
import android.util.SparseIntArray;
2120

2221
import com.android.internal.util.function.QuadFunction;
@@ -76,39 +75,11 @@ int noteOperation(int code, int uid, String packageName,
7675
*/
7776
public abstract void setDeviceAndProfileOwners(SparseIntArray owners);
7877

79-
/**
80-
* Sets the app-ops mode for a certain app-op and uid.
81-
*
82-
* <p>Similar as {@link AppOpsManager#setUidMode} but does not require the package manager to be
83-
* working. Hence this can be used very early during boot.
84-
*
85-
* <p>Only for internal callers. Does <u>not</u> verify that package name belongs to uid.
86-
*
87-
* @param code The op code to set.
88-
* @param uid The UID for which to set.
89-
* @param mode The new mode to set.
90-
*/
91-
public abstract void setUidMode(int code, int uid, int mode);
92-
9378
/**
9479
* Set all {@link #setMode (package) modes} for this uid to the default value.
9580
*
9681
* @param code The app-op
9782
* @param uid The uid
9883
*/
9984
public abstract void setAllPkgModesToDefault(int code, int uid);
100-
101-
/**
102-
* Get the (raw) mode of an app-op.
103-
*
104-
* <p>Does <u>not</u> verify that package belongs to uid. The caller needs to do that.
105-
*
106-
* @param code The code of the op
107-
* @param uid The uid of the package the op belongs to
108-
* @param packageName The package the op belongs to
109-
*
110-
* @return The mode of the op
111-
*/
112-
public abstract @AppOpsManager.Mode int checkOperationUnchecked(int code, int uid,
113-
@NonNull String packageName);
11485
}

0 commit comments

Comments
 (0)