Introducing a new way to review your PRs.

Read the announcement

slickdaddyy / gamehub-oss

privacy oriented gamehub

View on GitHub

13 documents · Updated Nov 19, 2026

docs / launcher-onboarding-guide-flow

Launcher onboarding guide flow

Overview

The onboarding guide flow is patched in this repository through launcher guide activity smali diffs and the XML layout diffs that those activities inflate. The covered smali patches sit under patches/smali_classes5__com__xj__landscape__launcher__ui__guide__*.diff; the screens they present are the guide layouts under patches/res__layout__llauncher_activity_guide_*.diff, tablet variants in patches/res__layout-sw600dp__llauncher_activity_guide_*.diff, and the BLE permission dialog layout in patches/res__layout__llauncher_dialog_fragment_requeest_ble_permission.xml.diff.

The patched first-run flow is shortened rather than expanded. patches/smali_classes5__com__xj__landscape__launcher__ui__guide__GuideKeypadOperationActivity.smali.diff keeps the state write to UserManager.setCloseGuideHighlight(true) when the keypad/highlight guide is completed, but removes the launch of GuideRequestNotificationPermissionActivity. patches/smali_classes5__com__xj__landscape__launcher__ui__guide__GuideRequestNotificationPermissionActivity.smali.diff also changes initView(Bundle) so the notification-permission activity immediately calls finish() instead of configuring its immersion bar or rendering its normal UI. Together, the keypad operation guide still records the highlight guide as closed, but the notification permission step becomes a no-op/end condition whenever it is reached.

Profile setup is also made local and terminal. In patches/smali_classes5__com__xj__landscape__launcher__ui__guide__GuideCreateAvatarActivity.smali.diff, A1(String) no longer validates that an avatar string exists or posts it through GuideCreateAvatarActivity$postProfileAvatar$1; it directly calls RouterUtils.p(Context), so avatar selection advances by routing away from the activity. In patches/smali_classes5__com__xj__landscape__launcher__ui__guide__GuideCreateInfoActivity.smali.diff, Q1() writes a fixed nickname, SnoopOranges, to UserManager.setNickname, copies the current avatarNameTv text into UserManager.setAvatar, advances the CreateInfoState state machine if present, and calls U1(CreateInfoState). S1() reads the username field, writes it to UserManager.setUsername, and finishes the activity; the original blank-name checks and network profile-post coroutines are removed.

Device and permission guide screens remain structurally present but are visually de-branded in the covered layout patches. USB permission screens in patches/res__layout__llauncher_activity_guide_usb_request_permission.xml.diff and patches/res__layout-sw600dp__llauncher_activity_guide_usb_request_permission.xml.diff keep the split-screen constraint layout, hidden back_tv, title text, and right-side content area, but replace the USB illustration cover_iv with @android:color/transparent. The read-contacts prompt in patches/res__layout__llauncher_activity_guide_request_read_contacts_permission.xml.diff keeps its title, description, and focusable btnA action while removing the left-side background image. The BLE permission dialog in patches/res__layout__llauncher_dialog_fragment_requeest_ble_permission.xml.diff keeps the common_focus_cl, close button, and handle_permission_tips title, but changes the dialog background color from #ff191a1c to #ff111827.

Gamepad connection guidance is preserved as selectable choices but with transparent art. patches/res__layout__llauncher_activity_guide_no_connected_dev.xml.diff and its large-screen variant patches/res__layout-sw600dp__llauncher_activity_guide_no_connected_dev.xml.diff keep connect_btn for controller use and but_no_phone_login for touchscreen/no-phone use, with text from llauncher_guide_connected_controller* and llauncher_guide_connected_touchscreen*; both variants replace the GameSir logo, handle/screen images, and cover art with transparent drawables. patches/res__layout__llauncher_activity_guide_not_connect_game_pad.xml.diff similarly keeps the “please connect GameSir to continue” text and split layout while hiding the gamepad cover illustration.

The remaining guide layouts are promotional or operation instruction steps. patches/res__layout__llauncher_activity_guide_game_pad_promotional_1.xml.diff, _2.xml.diff, and _3.xml.diff keep dark gradient promotional pages, titles/descriptions, and the focusable btnA continue action; _3 also keeps a focusable go_iv home/navigation icon slot. patches/res__layout__llauncher_activity_guide_game_pad_cover_1.xml.diff and _2.xml.diff keep the cover-swap promotional text but hide the cover art. Keypad operation layouts patches/res__layout__llauncher_activity_guide_button_a.xml.diff, patches/res__layout__llauncher_activity_guide_hight_light.xml.diff, and patches/res__layout__llauncher_activity_guide_test_click_btn.xml.diff keep their button-A/pursue prompts, hidden back affordances, and split constraints while replacing instructional screenshots or gamepad art with transparent drawables.

Coupling

  • If the onboarding sequence expects notification permission to follow keypad completion, verify both patches/smali_classes5__com__xj__landscape__launcher__ui__guide__GuideKeypadOperationActivity.smali.diff and patches/smali_classes5__com__xj__landscape__launcher__ui__guide__GuideRequestNotificationPermissionActivity.smali.diff: the former no longer starts the notification activity, and the latter immediately finishes if reached by any other route.
  • If profile onboarding should persist remotely, update patches/smali_classes5__com__xj__landscape__launcher__ui__guide__GuideCreateAvatarActivity.smali.diff and patches/smali_classes5__com__xj__landscape__launcher__ui__guide__GuideCreateInfoActivity.smali.diff together. The current patches bypass the original network coroutine posts and rely only on UserManager writes plus activity routing/finish.
  • If a guide layout changes a view id used by guide activity bindings, check the matching smali patch before renaming it. The profile patch reads avatarNameTv from LlauncherActivityGuideCreateInfoBinding in patches/smali_classes5__com__xj__landscape__launcher__ui__guide__GuideCreateInfoActivity.smali.diff, and the device/operation layouts preserve ids such as btnA, back_tv, cover_iv, connect_btn, and but_no_phone_login across phone and sw600dp variants.
  • If the visual treatment of connection or permission screens changes, update both density/layout buckets where present. USB permission is split between patches/res__layout__llauncher_activity_guide_usb_request_permission.xml.diff and patches/res__layout-sw600dp__llauncher_activity_guide_usb_request_permission.xml.diff; no-connected-device guidance is split between patches/res__layout__llauncher_activity_guide_no_connected_dev.xml.diff and patches/res__layout-sw600dp__llauncher_activity_guide_no_connected_dev.xml.diff.

Risks

  • patches/smali_classes5__com__xj__landscape__launcher__ui__guide__GuideCreateInfoActivity.smali.diff hard-codes SnoopOranges through UserManager.setNickname while separately saving the user-entered username. If downstream code treats nickname as user-visible identity, every first-run user can receive the same nickname even when S1() stores a distinct username.
  • patches/smali_classes5__com__xj__landscape__launcher__ui__guide__GuideRequestNotificationPermissionActivity.smali.diff finishes the notification permission activity during initView(Bundle). If another entrypoint still launches this activity expecting a permission result or callback, the guide will close without requesting notification permission and without rendering fallback UI.
  • patches/res__layout__llauncher_activity_guide_no_connected_dev.xml.diff, patches/res__layout-sw600dp__llauncher_activity_guide_no_connected_dev.xml.diff, and the other covered guide layout diffs replace many instructional ImageView sources with @android:color/transparent. If the text copy assumes those diagrams are visible, users can lose the visual context needed to connect hardware or learn button operations.