From cd0ede5a0d8024b30d2dc9f6fc570335f3681bf0 Mon Sep 17 00:00:00 2001 From: Tad Date: Wed, 9 Aug 2023 16:15:25 -0400 Subject: [PATCH] Fix an inconsistency As noted by @syphyr Signed-off-by: Tad --- .../364029-backport.patch | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/Patches/LineageOS-14.1/android_frameworks_base/364029-backport.patch b/Patches/LineageOS-14.1/android_frameworks_base/364029-backport.patch index 1c86d993..7bb301f1 100644 --- a/Patches/LineageOS-14.1/android_frameworks_base/364029-backport.patch +++ b/Patches/LineageOS-14.1/android_frameworks_base/364029-backport.patch @@ -33,7 +33,6 @@ index da7d711194de..9f6e25c74386 100644 * {@link android.Manifest.permission#KILL_BACKGROUND_PROCESSES} to be able to * call this method. diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml -index 0f224dae3337..ef6ce2503061 100644 --- a/core/res/AndroidManifest.xml +++ b/core/res/AndroidManifest.xml @@ -1741,7 +1741,11 @@ @@ -50,18 +49,9 @@ index 0f224dae3337..ef6ce2503061 100644 --> = FIRST_APPLICATION_UID ++ if (callingUid >= Process.FIRST_APPLICATION_UID + && (proc == null || !proc.info.isSystemApp())) { + final String msg = "Permission Denial: killAllBackgroundProcesses() from pid=" + + callingPid + ", uid=" + callingUid + " is not allowed";