diff --git a/src/signature_spoofing_patches/android_frameworks_base-Android14.patch b/src/signature_spoofing_patches/android_frameworks_base-Android14.patch index 9ec072c..59bb61c 100644 --- a/src/signature_spoofing_patches/android_frameworks_base-Android14.patch +++ b/src/signature_spoofing_patches/android_frameworks_base-Android14.patch @@ -1,5 +1,5 @@ diff --git a/core/api/current.txt b/core/api/current.txt -index 288ab479c0fb..2124d89c6e6f 100644 +index 9b5316fb..1e7f6273 100644 --- a/core/api/current.txt +++ b/core/api/current.txt @@ -95,6 +95,7 @@ package android { @@ -10,7 +10,7 @@ index 288ab479c0fb..2124d89c6e6f 100644 field public static final String FOREGROUND_SERVICE = "android.permission.FOREGROUND_SERVICE"; field public static final String FOREGROUND_SERVICE_CAMERA = "android.permission.FOREGROUND_SERVICE_CAMERA"; field public static final String FOREGROUND_SERVICE_CONNECTED_DEVICE = "android.permission.FOREGROUND_SERVICE_CONNECTED_DEVICE"; -@@ -326,6 +327,7 @@ package android { +@@ -328,6 +329,7 @@ package android { field public static final String CALL_LOG = "android.permission-group.CALL_LOG"; field public static final String CAMERA = "android.permission-group.CAMERA"; field public static final String CONTACTS = "android.permission-group.CONTACTS"; @@ -18,15 +18,22 @@ index 288ab479c0fb..2124d89c6e6f 100644 field public static final String LOCATION = "android.permission-group.LOCATION"; field public static final String MICROPHONE = "android.permission-group.MICROPHONE"; field public static final String NEARBY_DEVICES = "android.permission-group.NEARBY_DEVICES"; +@@ -61892,4 +61894,3 @@ package org.apache.http.params { + } + + } +- diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml -index 14cb052b121f..593999bc4ef7 100644 +index 22591641..cede3930 100644 --- a/core/res/AndroidManifest.xml +++ b/core/res/AndroidManifest.xml -@@ -4258,6 +4258,22 @@ +@@ -4318,6 +4318,26 @@ android:description="@string/permdesc_getPackageSize" android:protectionLevel="normal" /> -+ ++ + + + ++ seen by applications ++ @FlaggedApi("android.permission-group.FAKE_PACKAGE_SIGNATURE") ++ --> + + -+ ++ diff --git a/core/res/res/values/strings.xml b/core/res/res/values/strings.xml -index 9c018c30f9e3..661297bab701 100644 +index 4596ca74..a5ce5eb2 100644 --- a/core/res/res/values/strings.xml +++ b/core/res/res/values/strings.xml -@@ -990,6 +990,19 @@ +@@ -993,6 +993,19 @@ Preview, %1$s @@ -70,11 +79,11 @@ index 9c018c30f9e3..661297bab701 100644 disable or modify status bar diff --git a/services/core/java/com/android/server/pm/ComputerEngine.java b/services/core/java/com/android/server/pm/ComputerEngine.java -index 78f1fa60b69f..1e29d3697b89 100644 +index d8cbe9d5..827a2061 100644 --- a/services/core/java/com/android/server/pm/ComputerEngine.java +++ b/services/core/java/com/android/server/pm/ComputerEngine.java -@@ -1450,6 +1450,29 @@ public class ComputerEngine implements Computer { - return result; +@@ -1512,6 +1512,29 @@ public class ComputerEngine implements Computer { + return Optional.of(fakeSignature); } + private boolean requestsFakeSignature(AndroidPackage p) { @@ -103,7 +112,7 @@ index 78f1fa60b69f..1e29d3697b89 100644 public final PackageInfo generatePackageInfo(PackageStateInternal ps, @PackageManager.PackageInfoFlagsBits long flags, int userId) { if (!mUserManager.exists(userId)) return null; -@@ -1483,13 +1506,15 @@ public class ComputerEngine implements Computer { +@@ -1545,13 +1568,15 @@ public class ComputerEngine implements Computer { || ArrayUtils.isEmpty(p.getPermissions())) ? Collections.emptySet() : mPermissionManager.getInstalledPermissions(ps.getPackageName()); // Compute granted permissions only if package has requested permissions