Last active
January 20, 2024 13:13
-
-
Save steadfasterX/f03339d23cf234df1a7958fab6285d9b to your computer and use it in GitHub Desktop.
DivestOS issue for 32bit: https://github.com/Divested-Mobile/DivestOS-Build/blob/master/Patches/Common/android_frameworks_base/0007-ABI_Warning.patch#L83
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
frameworks/base/services/core/java/com/android/server/wm/AppWarnings.java | |
/** | |
* Shows the "deprecated abi" warning, if necessary. | |
* | |
* @param r activity record for which the warning may be displayed | |
*/ | |
public void showDeprecatedAbiDialogIfNeeded(ActivityRecord r) { | |
final String appAbi = r.info.applicationInfo.primaryCpuAbi; | |
final boolean is64BitArmDevice = Arrays.stream(Build.SUPPORTED_64_BIT_ABIS).anyMatch("arm64-v8a"::equals); | |
Log.w(TAG, "before: is64BitArmDevice: " + String.valueOf(is64BitArmDevice)); | |
Log.w(TAG, "before: appAbi: " + appAbi); | |
if (is64BitArmDevice && appAbi != null && appAbi != "arm64-v8a") { | |
Log.w(TAG, "within: is64BitArmDevice: " + String.valueOf(is64BitArmDevice)); | |
Log.w(TAG, "within: appAbi: " + appAbi); | |
mUiHandler.showDeprecatedAbiDialog(r); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
frameworks/base/services/core/java/com/android/server/wm/AppWarnings.java | |
/** | |
* Shows the "deprecated abi" warning, if necessary. | |
* | |
* @param r activity record for which the warning may be displayed | |
*/ | |
public void showDeprecatedAbiDialogIfNeeded(ActivityRecord r) { | |
final String appAbi = r.info.applicationInfo.primaryCpuAbi; | |
final boolean is64BitArmDevice = Arrays.stream(Build.SUPPORTED_64_BIT_ABIS).anyMatch("arm64-v8a"::equals); | |
Log.w(TAG, "before: is64BitArmDevice: " + String.valueOf(is64BitArmDevice)); | |
Log.w(TAG, "before: appAbi: " + appAbi); | |
if (is64BitArmDevice && appAbi != null && !appAbi.equals("arm64-v8a")) { | |
Log.w(TAG, "within: is64BitArmDevice: " + String.valueOf(is64BitArmDevice)); | |
Log.w(TAG, "within: appAbi: " + appAbi); | |
mUiHandler.showDeprecatedAbiDialog(r); | |
} | |
} |
result AppWarnings_fixed.java:
12-06 15:15:19.566 3797 4170 W AppWarnings: before: is64BitArmDevice: true
12-06 15:15:19.566 3797 4170 W AppWarnings: before: appAbi: arm64-v8a
(no popup)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
result AppWarnings.java
(32bit popup)