Launcher Settings, Account, and Share Utilities
Overview
This doc covers the patch surface for launcher settings navigation, setting item state, account/share login helpers, and the select/input dialog layouts. The owned files are patch files under patches/ that rewrite smali or layout resources in the launcher APK; they should be routed here when a change affects settings menus, the about/help tabs, one-key Ali auth, QQ share login, or the common setting selection/input dialogs.
patches/smali_classes5__com__xj__landscape__launcher__ui__setting__SettingMainActivity.smali.diff changes the left-side settings menu built by SettingMainActivity. The patched menu removes the notification entry guarded by AppConfig.Companion.l() and also removes the help entry entirely, leaving the about entry and the later conditional menu item controlled by AppConfig.Companion.n(). Because the RecyclerView adapter is fed from this menu list, this patch changes settings navigation by preventing users from reaching the notification and help fragments through the main settings menu.
The remaining settings tab patches narrow what those tabs expose if they are reached elsewhere. patches/smali_classes5__com__xj__landscape__launcher__ui__setting__tab__AboutSettingFragment.smali.diff removes construction of the TYPE_UPGRADE SettingItemEntity, so the About tab no longer starts with the upgrade/check-update item before adding its later jump item. patches/smali_classes5__com__xj__landscape__launcher__ui__setting__tab__HelpSettingFragment$initObserver$2.smali.diff changes the Help observer's web launch target from https://gamehub.xiaoji.com to http://127.0.0.1 before calling HelpSettingFragment.m0(context, url).
patches/smali_classes5__com__xj__landscape__launcher__vm__SettingItemViewModel.smali.diff owns the settings item list generated by SettingItemViewModel. The patch removes three screen-recording jump items for CONTENT_TYPE_RECODE_FPS, CONTENT_TYPE_RECODE_TYPE, and CONTENT_TYPE_RECODE_BIT, then removes the AppConfig.Companion.l() guard around reset mapping by deleting the conditional branch and keeping a button item path in the list. The later clear-cache button remains, so review settings item changes here as list-shape changes that affect which rows can invoke SelectAndSingleInputDialog options or button handlers.
Account and share integrations are patched by two URL rewrites. patches/smali_classes5__com__xj__landscape__launcher__utils__OneKeyAliHelper.smali.diff changes the Ali one-key login privacy URL passed to AuthUIConfig.Builder.setAppPrivacyOne(...) from https://www.xiaoji.com/url/gsw-app-rules to http://127.0.0.1. patches/smali_classes5__com__xj__landscape__launcher__utils__share__ShareLoginUtils$mBaseUiListener$1.smali.diff changes the QQ user-info request base assembled in the share login UI listener from https://graph.qq.com/user/get_user_info?access_token= to http://127.0.0.1/user/get_user_info?access_token=, while preserving the later token/query construction. These files are account-related because they control external auth/legal and profile-fetch endpoints rather than settings UI rows.
patches/smali_classes5__com__xj__landscape__launcher__view__popup__SelectAndSingleInputDialog.smali.diff controls the popup used by setting rows that need a choice list or a single input. Its language branch is reduced from five choices to two: the patched array size is 2, and the remaining options are English (Locale.US, label English) and Japanese (Locale.JAPAN, label 日本語). The removed choices are follow-system, Simplified Chinese, and Russian. The rest of the method still branches on screen-recording content types and reads/writes ScreenRecordVideoConfig values through SPUtils, but those recording rows are no longer created by the patched SettingItemViewModel, so the popup code can become unreachable from the main settings list even though the handlers remain.
The owned input layouts style the dialogs used by these setting utilities. patches/res__layout__dialog_env_params_input_layout.xml.diff keeps the environment-parameter dialog structure (rootView, dialog_layout, layout_dialog, title text, and RecyclerView) but changes the dialog background from #ff191a1c to #ff111827 and makes closeIv transparent instead of using @drawable/comm_guide_close_gry. patches/res__layout__edit_pro_file_name_dialog.xml.diff similarly changes the edit-profile filename dialog root ShapeConstraintLayout background from #ff191a1c to #ff111827 while preserving the close/back image and title layout.
Coupling
- If
patches/smali_classes5__com__xj__landscape__launcher__ui__setting__SettingMainActivity.smali.diffremoves or restores a left-menu entry, also check the corresponding tab patch inpatches/smali_classes5__com__xj__landscape__launcher__ui__setting__tab__*.diff; a hidden menu entry can leave stale patched behavior in a fragment that is only reachable through alternate navigation. - If
patches/smali_classes5__com__xj__landscape__launcher__vm__SettingItemViewModel.smali.diffchangesSettingItemEntitycontent types, verifypatches/smali_classes5__com__xj__landscape__launcher__view__popup__SelectAndSingleInputDialog.smali.diff; the popup dispatches by the sameCONTENT_TYPE_*constants and silently keeps handlers for rows that may no longer be emitted. - If the language options in
patches/smali_classes5__com__xj__landscape__launcher__view__popup__SelectAndSingleInputDialog.smali.diffare changed, keep the option array size, indexes, andaput-objectpositions in sync; the patch currently relies on a two-element array with English at index0and Japanese at index1. - If account endpoint rewrites are changed in
patches/smali_classes5__com__xj__landscape__launcher__utils__OneKeyAliHelper.smali.difforpatches/smali_classes5__com__xj__landscape__launcher__utils__share__ShareLoginUtils$mBaseUiListener$1.smali.diff, verify whether the caller expects a legal/privacy web page or a JSON API response. Both patches redirect production HTTPS endpoints to loopback URLs, but one is displayed in Ali auth UI and the other is fetched as QQ profile data.
Risks
patches/smali_classes5__com__xj__landscape__launcher__view__popup__SelectAndSingleInputDialog.smali.diffis fragile because the smali branch labels and registers were renumbered while deleting options. If the option count or indexes are edited without matching thenew-arrayandaput-objectinstructions, opening the language selector can fail at runtime or show the wrong selected locale.patches/smali_classes5__com__xj__landscape__launcher__utils__share__ShareLoginUtils$mBaseUiListener$1.smali.diffchanges a real QQ Graph API URL tohttp://127.0.0.1/user/get_user_info?access_token=. If no local service handles the same query contract, share login profile retrieval will fail after OAuth succeeds.patches/smali_classes5__com__xj__landscape__launcher__utils__OneKeyAliHelper.smali.diffchanges the Ali one-key login privacy agreement URL to loopback. If the Ali auth SDK validates or displays this URL during consent, users may see an unreachable agreement page or the auth UI may reject the privacy configuration.