|
16 | 16 |
|
17 | 17 | package android.app; |
18 | 18 |
|
19 | | -import android.annotation.NonNull; |
20 | 19 | import android.util.SparseIntArray; |
21 | 20 |
|
22 | 21 | import com.android.internal.util.function.QuadFunction; |
@@ -76,39 +75,11 @@ int noteOperation(int code, int uid, String packageName, |
76 | 75 | */ |
77 | 76 | public abstract void setDeviceAndProfileOwners(SparseIntArray owners); |
78 | 77 |
|
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 | | - |
93 | 78 | /** |
94 | 79 | * Set all {@link #setMode (package) modes} for this uid to the default value. |
95 | 80 | * |
96 | 81 | * @param code The app-op |
97 | 82 | * @param uid The uid |
98 | 83 | */ |
99 | 84 | 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); |
114 | 85 | } |
0 commit comments