summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAfshin Arani <afshinarani79@gmail.com>2017-01-04 09:50:00 +0330
committerMichael Bestas <mikeioannina@gmail.com>2017-01-04 22:02:22 +0200
commit8dc08285fa22c1deb761b6ea48dd82823d9271a7 (patch)
tree3300656e382320e92439db6a0ab97c54c91c400e
parent0f0e2bf6da49217779590f52c9f517eabbd1eedc (diff)
downloadandroid_packages_apps_Snap-8dc08285fa22c1deb761b6ea48dd82823d9271a7.zip
android_packages_apps_Snap-8dc08285fa22c1deb761b6ea48dd82823d9271a7.tar.gz
android_packages_apps_Snap-8dc08285fa22c1deb761b6ea48dd82823d9271a7.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"