Merge "Disallow OP_VIBRATE for suspended apps" into tm-qpr-dev am: 9c199d4ee8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20038212 Change-Id: I8742b841073db987397c322a30d63d695b1d1e84 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -46,6 +46,7 @@ import static android.app.AppOpsManager.OP_PLAY_AUDIO;
|
||||
import static android.app.AppOpsManager.OP_RECEIVE_AMBIENT_TRIGGER_AUDIO;
|
||||
import static android.app.AppOpsManager.OP_RECORD_AUDIO;
|
||||
import static android.app.AppOpsManager.OP_RECORD_AUDIO_HOTWORD;
|
||||
import static android.app.AppOpsManager.OP_VIBRATE;
|
||||
import static android.app.AppOpsManager.OnOpStartedListener.START_TYPE_FAILED;
|
||||
import static android.app.AppOpsManager.OnOpStartedListener.START_TYPE_RESUMED;
|
||||
import static android.app.AppOpsManager.OnOpStartedListener.START_TYPE_STARTED;
|
||||
@@ -266,6 +267,7 @@ public class AppOpsService extends IAppOpsService.Stub {
|
||||
OP_PLAY_AUDIO,
|
||||
OP_RECORD_AUDIO,
|
||||
OP_CAMERA,
|
||||
OP_VIBRATE,
|
||||
};
|
||||
|
||||
private static final int MAX_UNFORWARDED_OPS = 10;
|
||||
|
||||
Reference in New Issue
Block a user