OSDN Git Service

Add new app ops method to reset all op modes.
[android-x86/frameworks-base.git] / core / java / android / app / AppOpsManager.java
index c9776f1..4fcb18a 100644 (file)
@@ -422,6 +422,14 @@ public class AppOpsManager {
         }
     }
 
+    /** @hide */
+    public void resetAllModes() {
+        try {
+            mService.resetAllModes();
+        } catch (RemoteException e) {
+        }
+    }
+
     public void startWatchingMode(int op, String packageName, final Callback callback) {
         synchronized (mModeWatchers) {
             IAppOpsCallback cb = mModeWatchers.get(callback);