From c151c1452d4f15c9d669077a70a7d195f07fd00e Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Sat, 6 Jul 2024 21:20:38 -0400 Subject: [PATCH] better 32-bit deprecation warning --- core/res/res/values/strings.xml | 2 ++ .../core/java/com/android/server/wm/DeprecatedAbiDialog.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/core/res/res/values/strings.xml b/core/res/res/values/strings.xml index d12d90be735c..eafeeaf66277 100644 --- a/core/res/res/values/strings.xml +++ b/core/res/res/values/strings.xml @@ -6471,4 +6471,6 @@ ul. Show details + + This app only supports 32-bit and therefore isn\'t compatible with more recent devices. If the app is still developed, switch to a build for modern devices. GrapheneOS plans to phase out 32-bit app support on older devices for improved security. diff --git a/services/core/java/com/android/server/wm/DeprecatedAbiDialog.java b/services/core/java/com/android/server/wm/DeprecatedAbiDialog.java index e96208d3d0b3..c097b8f8a493 100644 --- a/services/core/java/com/android/server/wm/DeprecatedAbiDialog.java +++ b/services/core/java/com/android/server/wm/DeprecatedAbiDialog.java @@ -36,7 +36,7 @@ class DeprecatedAbiDialog extends AppWarnings.BaseDialog { PackageItemInfo.DEFAULT_MAX_LABEL_SIZE_PX, PackageItemInfo.SAFE_LABEL_FLAG_FIRST_LINE | PackageItemInfo.SAFE_LABEL_FLAG_TRIM); - final CharSequence message = context.getString(R.string.deprecated_abi_message); + final CharSequence message = context.getString(R.string.deprecated_abi_message_grapheneos); final AlertDialog.Builder builder = new AlertDialog.Builder(context) .setPositiveButton(R.string.ok, (dialog, which) ->