Loading services/java/com/android/server/AppOpsService.java +4 −0 Original line number Diff line number Diff line Loading @@ -600,12 +600,14 @@ public class AppOpsService extends IAppOpsService.Stub { if (DEBUG) Log.d(TAG, "noteOperation: reject #" + op.mode + " for code " + switchCode + " (" + code + ") uid " + uid + " package " + packageName); op.rejectTime = System.currentTimeMillis(); op.ignoredCount++; return switchOp.mode; } if (DEBUG) Log.d(TAG, "noteOperation: allowing code " + code + " uid " + uid + " package " + packageName); op.time = System.currentTimeMillis(); op.rejectTime = 0; op.allowedCount++; return AppOpsManager.MODE_ALLOWED; } } Loading @@ -629,6 +631,7 @@ public class AppOpsService extends IAppOpsService.Stub { if (DEBUG) Log.d(TAG, "startOperation: reject #" + op.mode + " for code " + switchCode + " (" + code + ") uid " + uid + " package " + packageName); op.rejectTime = System.currentTimeMillis(); op.ignoredCount++; return switchOp.mode; } if (DEBUG) Log.d(TAG, "startOperation: allowing code " + code + " uid " + uid Loading @@ -636,6 +639,7 @@ public class AppOpsService extends IAppOpsService.Stub { if (op.nesting == 0) { op.time = System.currentTimeMillis(); op.rejectTime = 0; op.allowedCount++; op.duration = -1; } op.nesting++; Loading Loading
services/java/com/android/server/AppOpsService.java +4 −0 Original line number Diff line number Diff line Loading @@ -600,12 +600,14 @@ public class AppOpsService extends IAppOpsService.Stub { if (DEBUG) Log.d(TAG, "noteOperation: reject #" + op.mode + " for code " + switchCode + " (" + code + ") uid " + uid + " package " + packageName); op.rejectTime = System.currentTimeMillis(); op.ignoredCount++; return switchOp.mode; } if (DEBUG) Log.d(TAG, "noteOperation: allowing code " + code + " uid " + uid + " package " + packageName); op.time = System.currentTimeMillis(); op.rejectTime = 0; op.allowedCount++; return AppOpsManager.MODE_ALLOWED; } } Loading @@ -629,6 +631,7 @@ public class AppOpsService extends IAppOpsService.Stub { if (DEBUG) Log.d(TAG, "startOperation: reject #" + op.mode + " for code " + switchCode + " (" + code + ") uid " + uid + " package " + packageName); op.rejectTime = System.currentTimeMillis(); op.ignoredCount++; return switchOp.mode; } if (DEBUG) Log.d(TAG, "startOperation: allowing code " + code + " uid " + uid Loading @@ -636,6 +639,7 @@ public class AppOpsService extends IAppOpsService.Stub { if (op.nesting == 0) { op.time = System.currentTimeMillis(); op.rejectTime = 0; op.allowedCount++; op.duration = -1; } op.nesting++; Loading