fix(settings): Fix Android 14 Settings crash and complete English localization - #30
Open
Bluscream wants to merge 4 commits into
Open
Conversation
…keyboard enablement - Replace Settings.Secure.ENABLED_INPUT_METHODS query in SettingsFragment with InputMethodManager.enabledInputMethodList via KeyboardHelper - Prevent SecurityException on Android 14+ (API 34) when opening Settings - Add Shizuku UserService fallback and one-click AutoGLM Keyboard activation
…ecifiers - Add full English translations (276 strings) in values-en/strings.xml - Fix positional format specifier '%1$d/%2$d' in permissions_summary_partial - Ensure 1:1 key and format placeholder parity between zh and en resources
…tatus messages - Add HTTP 401 (Authentication failed), 403, 404, 429, and server error localization to ErrorHandler - Pass configured language to ErrorHandler and ActionHandler - Localize PhoneAgent prompts, step descriptions, pause messages, and retry hints - Support language parameter in AgentAction.formatForDisplay and FloatingWindowService
…econdition feedback - Add checkShizukuState in MainActivity.onResume to automatically connect when returning to app - Keep start task button enabled and show user feedback toast if preconditions are not met - Add empty task validation toast in floating window start button
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR addresses two main improvements:
Fix Settings Crash on Android 14+ (API 34):
Settings.Secure.getString(..., Settings.Secure.ENABLED_INPUT_METHODS)call inSettingsFragmentwithInputMethodManager.getEnabledInputMethodList()viaKeyboardHelper.ENABLED_INPUT_METHODSviaContentResolverthrows aSecurityException: Settings key: <enabled_input_methods> is only readable to apps with targetSdkVersion lower than or equal to: 33.UserServicefallback and one-click AutoGLM Keyboard activation when elevated privileges are available.Full English Localization (
values-en/strings.xml):%1$d/%2$d) inpermissions_summary_partialto ensure strict format specifier parity between Chinese and English string resources.Testing & Verification
./gradlew test)../gradlew assembleDebug) and tested on physical Android 14 tablet via ADB.