summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAfshin Arani <afshinarani79@gmail.com>2017-01-04 09:50:00 +0330
committerAfshin Arani <afshinarani79@gmail.com>2017-01-04 06:36:54 +0000
commitda587933e9cfb1b75885be8787c06ac339dc4035 (patch)
tree0aeb801cef6fc90c8ded21af31186684f40820c4
parent2064b8549b36a5ceb76d205353173c23477430d3 (diff)
downloadandroid_packages_apps_Snap-da587933e9cfb1b75885be8787c06ac339dc4035.zip
android_packages_apps_Snap-da587933e9cfb1b75885be8787c06ac339dc4035.tar.gz
android_packages_apps_Snap-da587933e9cfb1b75885be8787c06ac339dc4035.tar.bz2
Add PREVENT_POWER_KEY to fix Crash when using 'Power Shutter'
E AndroidRuntime: FATAL EXCEPTION: main E AndroidRuntime: Process: org.cyanogenmod.snap, PID: 5268 E AndroidRuntime: java.lang.RuntimeException: Unable to pause activity {org.cyanogenmod.snap/com.android.camera.CameraActivity}: java.lang.SecurityException: No permission to prevent power key: Neither user 10028 nor current process has android.permission.PREVENT_POWER_KEY. E AndroidRuntime: at android.app.ActivityThread.performPauseActivityIfNeeded(ActivityThread.java:3751) E AndroidRuntime: at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3717) E AndroidRuntime: at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3691) E AndroidRuntime: at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:3665) E AndroidRuntime: at android.app.ActivityThread.-wrap16(ActivityThread.java) E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1498) E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102) E AndroidRuntime: at android.os.Looper.loop(Looper.java:154) E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6126) E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886) E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776) E AndroidRuntime: Caused by: java.lang.SecurityException: No permission to prevent power key: Neither user 10028 nor current process has android.permission.PREVENT_POWER_KEY. Change-Id: I94796493b31474ce3552f0ccf561723159b584e6
-rw-r--r--AndroidManifest.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 7d117c3..23dcf39 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -25,7 +25,7 @@
<uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS" />
<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
- <uses-permission android:name="android.permission.PREVENT_SYSTEM_KEYS" />
+ <uses-permission android:name="android.permission.PREVENT_POWER_KEY" />
<supports-screens
android:anyDensity="true"