Landscape launcher shell
Overview
The launcher shell is the landscape home experience patched through the smali and layout diffs under patches/smali_classes5__com__xj__landscape__launcher__*.diff and patches/res__layout__llauncher_*.diff. Its application entry helper in patches/smali_classes5__com__xj__landscape__launcher__LandscapeLauncherAppKt.smali.diff still initializes the app-level file operator and process lifecycle observer, but the patch removes the FFmpegConfig.Companion.setDebug(true) call so media/recording debug logging is no longer enabled from the launcher app entry path.
Main-shell navigation is centered on patches/smali_classes5__com__xj__landscape__launcher__ui__main__LandscapeLauncherMainActivity.smali.diff and patches/res__layout__llauncher_activity_new_launcher_main.xml.diff. The patched activity removes the Explore and Platform TabItemData entries from the main tab list, and the layout hides and disables @id/main_tab_view plus the LB/RB tab-hint images. A replacement @id/tv_dashboard_label is shown next to @id/fl_open_nav with the "My" title, so the shell behaves as a single-dashboard launcher rather than a multi-tab home. The same layout hides and disables the device-online icon by making @id/iv_device_online non-focusable, non-clickable, gone, and zero-sized; the top-right status row still contains search, download progress, signal, battery, and system time. The activity patch also removes the startup PermissionUtils.J(...) request before continuing to m2() and X2(), so shell initialization no longer blocks on that permission prompt.
The left-side launcher menu is built in patches/smali_classes5__com__xj__landscape__launcher__ui__menu__HomeLeftMenuDialog.smali.diff. The patched menu skips the conditional item that was added when AppConfig.Companion.l() was false, removes the media item, and removes the user-center item. The remaining menu flow still conditionally adds the later non-lite item guarded by AppConfig.Companion.l() and then adds settings. When changing launcher menu IDs or ordering, treat this patch as intentionally shrinking the shell to fewer destinations.
Path routing and guide checks are handled by patches/smali_classes5__com__xj__landscape__launcher__router__RouterUtils.smali.diff and patches/smali_classes5__com__xj__landscape__launcher__router__RouterUtils$checkGuideStep$1.smali.diff. RouterUtils.w() has been reduced to a no-op, so callers that previously forced GuideLoginActivity to the front no longer navigate there. The guide-step coroutine still evaluates profile fields, locale/login state, and device-binding state, and can still route to GuideCreateInfoActivity or device-management screens, but the branch for a missing earlier guide/login step no longer calls back into RouterUtils.w(). This makes login-guide routing less aggressive while preserving later create-info and device-binding checks.
Launching game content goes through patches/smali_classes5__com__xj__landscape__launcher__launcher__LauncherHelper.smali.diff. Before the normal launch-resource selection, the patch checks the platform/type integer and immediately returns LaunchResult.Failure("Feature disabled") for 0x57a, 0x579, and 0x9. For other types, it keeps the existing selection between configured launch paths, package/resource URLs, and GameStartupParams.StartExt.start_res. The same helper’s BLE permission coroutine now returns Boolean.TRUE immediately instead of showing RequestBlePermissionDialogFragment, so BLE permission approval is simulated by this shell path rather than gathered from a user dialog.
The “Me / My games” surface is constrained by patches/smali_classes5__com__xj__landscape__launcher__ui__main__me__MyGamesView.smali.diff and patches/smali_classes5__com__xj__landscape__launcher__ui__main__me__MyGamesItemData$Companion.smali.diff. MyGamesView.w0(Z) and MyGamesView.x0(Z) force their incoming booleans to false before updating isShowPcLink and isShowPsLink, so PC Link and PS Link cards are suppressed regardless of upstream availability. The companion mapping also converts what were TopPlatFormType.PCLink and TopPlatFormType.PSLink results into TopPlatFormType.Other, which keeps those imported/link-only platform types from surfacing as first-class top-platform entries.
The PC emulator info tile remains visible as a promotional/join-us card. patches/res__layout__llauncher_view_my_top_platform_pc_emulator_info.xml.diff styles it as a dark single-color gradient with cyan/red text gradient, and patches/smali_classes5__com__xj__landscape__launcher__ui__main__viewholders__PcEmulatorInfoViewHolder.smali.diff changes the tile action from launching the app’s promotional coroutine/dialog to opening https://github.com/gamehublite with an ACTION_VIEW intent. The click handler obtains context through LlauncherViewMyTopPlatformPcEmulatorInfoBinding.getRoot().getContext(), adds FLAG_ACTIVITY_NEW_TASK, and catches exceptions by printing the stack trace.
Compatibility and promotional dialogs are still present but are visually and behaviorally trimmed. patches/smali_classes5__com__xj__landscape__launcher__ui__compatible__CompatibleDialog.smali.diff makes the synthetic compatibility-click handler return Unit before calling CompatibleDialog.O(...), disabling the original action for that clickable span/view. patches/res__layout__llauncher_dialog_compatible.xml.diff only restyles the dialog container background from #ff191a1c to #ff111827. patches/smali_classes5__com__xj__landscape__launcher__view__popup__PromotionalDialogFragment.smali.diff forces promotional button links to https://github.com/gamehublite, while patches/res__layout__llauncher_promotional_dialog.xml.diff makes the close icon transparent. patches/res__layout__llauncher_popup_home_common_focus.xml.diff similarly hides the common-focus popup close icon by using @android:color/transparent, and patches/res__layout__llauncher_popup_game_operation.xml.diff restyles the game-operation popup background to #ff111827.
Common launcher option popups are adjusted in patches/smali_classes5__com__xj__landscape__launcher__view__popup__SelectAndSingleInputDialog.smali.diff. For the language selector, the patched option count drops from five to two and only creates English (Locale.US) and Japanese (Locale.JAPAN) options; the previous “follow system,” Simplified Chinese, and Russian options are removed. The same method still builds options for recording FPS, recording type, and bitrate from SPUtils.g("ScreenRecordVideoConfig") and presents them through OptionsPopup.Companion.b(view, options).
Coupling
- If a new top-level launcher destination is added in
LandscapeLauncherMainActivity, also updateres__layout__llauncher_activity_new_launcher_main.xml.diff: the current layout hides and disables@id/main_tab_view, so adding aTabItemDatawithout restoring visible/focusable tab UI would create an unreachable tab. - If PC Link or PS Link support is restored in
MyGamesVieworMyGamesItemData$Companion, update both files together.MyGamesView.w0/x0suppress visibility flags, whileMyGamesItemData$Companionremaps PC/PS platform types toOther; changing only one side can leave hidden cards or incorrectly categorized items. - If guide/login navigation is reintroduced, check both
RouterUtils.w()andRouterUtils$checkGuideStep$1: the coroutine’s missing-guide branch no longer calls the login route helper, and the helper itself is a no-op, so either side alone is insufficient to restoreGuideLoginActivityrouting. - If promotional URLs change, update both
PcEmulatorInfoViewHolderandPromotionalDialogFragment. The emulator tile and promotional dialog each hard-codehttps://github.com/gamehubliteindependently rather than sharing a route constant. - If BLE launch preconditions are made strict again, revisit
LauncherHelper.s(...): it now always returnsBoolean.TRUE, so downstream launch code will believe BLE permission was granted without any dialog result.
Risks
patches/smali_classes5__com__xj__landscape__launcher__launcher__LauncherHelper.smali.diff: platform/type IDs0x57a,0x579, and0x9are hard-coded toLaunchResult.Failure("Feature disabled"). If upstream changes these numeric IDs or reuses them for allowed launch modes, valid games will fail before normal launch-resource resolution runs.patches/smali_classes5__com__xj__landscape__launcher__ui__main__viewholders__PcEmulatorInfoViewHolder.smali.diff: the click handler starts an external browser intent from a view context withFLAG_ACTIVITY_NEW_TASKand only prints exceptions. On devices without a browser/activity for the GitHub URL, the user gets no in-app error or fallback.patches/res__layout__llauncher_promotional_dialog.xml.diffandpatches/res__layout__llauncher_popup_home_common_focus.xml.diff: close buttons are made visually transparent but their views remain in the layout. If focus/click handling still targets these IDs, users may encounter invisible focusable controls.