android N0 屏蔽某个应用的通知

diff --git a/frameworks/base/services/core/java/com/android/server/AppOpsService.java b/frameworks/base/services/core/java/com/android/server/AppOpsService.java
old mode 100644
new mode 100755
index 8c4020b..28dfade
--- a/frameworks/base/services/core/java/com/android/server/AppOpsService.java
+++ b/frameworks/base/services/core/java/com/android/server/AppOpsService.java
@@ -891,7 +891,7 @@ public class AppOpsService extends IAppOpsService.Stub {
verifyIncomingUid(uid);
verifyIncomingOp(code);
String resolvedPackageName = resolvePackageName(uid, packageName);
- if (resolvedPackageName == null) {
+ if (resolvedPackageName == null||resolvedPackageName.equals( "com.mediatek.duraspeed")) { //此处增加包名
return AppOpsManager.MODE_IGNORED;
}
synchronized (this) {

你可能感兴趣的:(android)