Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 723432d0 authored by Alexander Martinz's avatar Alexander Martinz Committed by Rashed Abdel-Tawab
Browse files

Camera: Rename prevent power key permission



* We must not use the "android" namespace or CTS fails.

Change-Id: I034216efe5d472b0bc72cd293001b518f92aec41
Signed-off-by: Alexander Martinz's avatarAlexander Martinz <amartinz@shiftphones.com>
parent ed3177bb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1155,7 +1155,7 @@ public abstract class Window {

    private void setPrivateFlags(int flags, int mask) {
        if ((flags & mask & WindowManager.LayoutParams.PRIVATE_FLAG_PREVENT_POWER_KEY) != 0) {
            mContext.enforceCallingOrSelfPermission("android.permission.PREVENT_POWER_KEY",
            mContext.enforceCallingOrSelfPermission("lineage.permission.PREVENT_POWER_KEY",
                    "No permission to prevent power key");
        }
        final WindowManager.LayoutParams attrs = getAttributes();
+1 −1
Original line number Diff line number Diff line
@@ -4622,7 +4622,7 @@
    <!-- Allows an application to override the power key action
         @hide <p>Not for use by third-party applications.
    -->
    <permission android:name="android.permission.PREVENT_POWER_KEY"
    <permission android:name="lineage.permission.PREVENT_POWER_KEY"
                android:protectionLevel="signature|privileged" />

    <application android:process="system"