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

Commit c6b26f47 authored by Shafik Nassar's avatar Shafik Nassar Committed by Automerger Merge Worker
Browse files

Merge "MANAGE_EXTERNAL_STORAGE cleanup: remove isIgnoredAppOp" into rvc-dev...

Merge "MANAGE_EXTERNAL_STORAGE cleanup: remove isIgnoredAppOp" into rvc-dev am: 559792fb am: 0b047cff am: 3c670134 am: 1d271632

Change-Id: I0925435a6100dce660cefc7de70fc608acee4db6
parents 65f9f6ca 1d271632
Loading
Loading
Loading
Loading
+0 −13
Original line number Diff line number Diff line
@@ -4133,9 +4133,6 @@ public class AppOpsService extends IAppOpsService.Stub {
            throws NumberFormatException,
        XmlPullParserException, IOException {
        int opCode = Integer.parseInt(parser.getAttributeValue(null, "n"));
        if (isIgnoredAppOp(opCode)) {
            return;
        }
        Op op = new Op(uidState, pkgName, opCode, uidState.uid);

        final int mode = XmlUtils.readIntAttribute(parser, "m",
@@ -4170,16 +4167,6 @@ public class AppOpsService extends IAppOpsService.Stub {
        ops.put(op.op, op);
    }

    //TODO(b/149995538): Remove once this has reached all affected devices
    private static boolean isIgnoredAppOp(int op) {
        switch (op) {
            case AppOpsManager.OP_MANAGE_EXTERNAL_STORAGE:
                return true;
            default:
                return false;
        }
    }

    void writeState() {
        synchronized (mFile) {
            FileOutputStream stream;