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

Commit 1bfa316f authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Remove app ops checking."

parents 33af2f03 deb96c0e
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -17,7 +17,6 @@
package com.android.server.telecom.callredirection;

import android.Manifest;
import android.app.AppOpsManager;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
@@ -121,13 +120,6 @@ public class CallRedirectionProcessorHelper {
                    + " permission: " + entry.serviceInfo.packageName);
            return null;
        }
        AppOpsManager appOps = (AppOpsManager) mContext.getSystemService(
                Context.APP_OPS_SERVICE);
        if (appOps.noteOpNoThrow(AppOpsManager.OP_PROCESS_OUTGOING_CALLS, Binder.getCallingUid(),
                entry.serviceInfo.packageName) != AppOpsManager.MODE_ALLOWED) {
            Log.w(this, "App Ops does not allow " + entry.serviceInfo.packageName);
            return null;
        }
        return new ComponentName(entry.serviceInfo.packageName, entry.serviceInfo.name);
    }