diff --git a/Patches/LineageOS-19.1/android_frameworks_libs_systemui/0001-Icon_Cache.patch b/Patches/LineageOS-19.1/android_frameworks_libs_systemui/0001-Icon_Cache.patch new file mode 100644 index 00000000..e38dcf86 --- /dev/null +++ b/Patches/LineageOS-19.1/android_frameworks_libs_systemui/0001-Icon_Cache.patch @@ -0,0 +1,22 @@ +From 5b67eac60d807e6b159a334577296e3c606e275f Mon Sep 17 00:00:00 2001 +From: Daniel Micay +Date: Tue, 2 Nov 2021 14:44:13 -0400 +Subject: [PATCH] invalidate icon cache between OS releases + +--- + .../src/com/android/launcher3/icons/cache/BaseIconCache.java | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/iconloaderlib/src/com/android/launcher3/icons/cache/BaseIconCache.java b/iconloaderlib/src/com/android/launcher3/icons/cache/BaseIconCache.java +index 7c4624d..c2b8eeb 100644 +--- a/iconloaderlib/src/com/android/launcher3/icons/cache/BaseIconCache.java ++++ b/iconloaderlib/src/com/android/launcher3/icons/cache/BaseIconCache.java +@@ -229,7 +229,7 @@ public IconCacheUpdateHandler getUpdateHandler() { + */ + private void updateSystemState() { + mLocaleList = mContext.getResources().getConfiguration().getLocales(); +- mSystemState = mLocaleList.toLanguageTags() + "," + Build.VERSION.SDK_INT; ++ mSystemState = mLocaleList.toLanguageTags() + "," + Build.VERSION.INCREMENTAL; + } + + protected String getIconSystemState(String packageName) { diff --git a/Scripts/LineageOS-19.1/Patch.sh b/Scripts/LineageOS-19.1/Patch.sh index 4f3b51bd..43214686 100644 --- a/Scripts/LineageOS-19.1/Patch.sh +++ b/Scripts/LineageOS-19.1/Patch.sh @@ -171,6 +171,10 @@ if enterAndClear "frameworks/ex"; then if [ "$DOS_GRAPHENE_CONSTIFY" = true ]; then applyPatch "$DOS_PATCHES/android_frameworks_ex/0001-constify_JNINativeMethod.patch"; fi; #Constify JNINativeMethod tables (GrapheneOS) fi; +if enterAndClear "frameworks/libs/systemui"; then +applyPatch "$DOS_PATCHES/android_frameworks_libs_systemui/0001-Icon_Cache.patch"; #Invalidate icon cache between OS releases (GrapheneOS) +fi; + if enterAndClear "frameworks/native"; then applyPatch "$DOS_PATCHES/android_frameworks_native/0001-Sensors_Permission.patch"; #Require OTHER_SENSORS permission for sensors (GrapheneOS) fi;