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

Commit faf08bff authored by Steve Kondik's avatar Steve Kondik
Browse files

Use MODE_ASK as the default ops mode in Privacy Guard

 * Prompting the user is far more useful as a default behavior. The
   choice will be remembered after the first request.

Change-Id: Ie62f932047f8b761bd0dd9f836bcd1132062edf5
parent 6e936d19
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1211,7 +1211,7 @@ public class AppOpsService extends IAppOpsService.Stub {
        for (int op : PRIVACY_GUARD_OP_STATES) {
            int switchOp = AppOpsManager.opToSwitch(op);
            setMode(switchOp, uid, packageName, state
                    ? AppOpsManager.MODE_IGNORED : AppOpsManager.MODE_ALLOWED);
                    ? AppOpsManager.MODE_ASK : AppOpsManager.MODE_ALLOWED);
        }
    }