Common Services and User
Overview
This area is the shared GameHub layer that feature modules rely on for service endpoints, session identity, common card/list constants, media preview fragments, permission prompts, tab navigation, and shared dialog chrome. The code covered here is represented as patch diffs against smali and layout resources under patches/, so the important behavior is the delta these shared pieces introduce for the lite build.
patches/smali_classes4__com__xj__common__http__EggGameHttpConfig.smali.diff centralizes the GameHub API base URL. All environment branches that previously selected separate test, production, or dev vgabc.com hosts now assign EggGameHttpConfig.b to https://gamehub-api.secureflex.workers.dev/. Any feature module that obtains its backend base URL through com/xj/common/http/EggGameHttpConfig is therefore pinned to that single worker endpoint regardless of the app's build/environment flags.
patches/smali_classes4__com__xj__common__user__UserManager.smali.diff changes session behavior at the common user manager boundary. getToken() no longer reads the token string from SPUtils and instead returns the constant fake-token. getUid() still reads an integer user id from storage, but a zero value is replaced with 0x1869f (99999). isLogin() now returns true unconditionally before the old token-length and uid checks can fail. Downstream modules that gate screens, requests, or entitlement checks through UserManager.isLogin(), getToken(), or getUid() see a synthetic logged-in user even when persisted credentials are absent.
patches/smali_classes4__com__xiaoji__egggame__wxapi__WXEntryActivity$getWXUserInfo$1.smali.diff is the WeChat login/share callback touchpoint. The OAuth access-token URL used by WXEntryActivity$getWXUserInfo$1 is rewritten from https://api.weixin.qq.com/sns/oauth2/access_token?... to http://127.0.0.1/sns/oauth2/access_token?... before APPID/SECRET/CODE placeholder replacement. That keeps the call shape intact but redirects token exchange away from WeChat to localhost.
patches/smali_classes4__com__xj__common__data__list__CardLineData.smali.diff owns shared card/list entry ids. The companion static ids for PlayStation and PC link entries are moved from small adjacent values (2 and 3) to high sentinel-like values (999 and 1000). Feature modules that build card rows or route click actions based on CardLineData.PS_LINK_ENTRY_ID or PC_LINK_ENTRY_ID must use these constants rather than hard-coded numeric ids.
The preview fragments covered by patches/smali_classes4__com__xj__common__preview__PreviewImageFragment.smali.diff and patches/smali_classes4__com__xj__common__preview__PreviewVideoFragment.smali.diff read a PreviewMediaEntity from fragment arguments under the key preview_data. Both fragments now always use the older Bundle.getParcelable(String) path with an instanceof PreviewMediaEntity guard; the Android 13 typed getParcelable(key, Class) branch through com/google/android/play/core/integrity/a0.a(...) is removed. PreviewImageFragment feeds the entity's media URL to GlideApp, while PreviewVideoFragment stores the entity in field n and also reads key_play_new from arguments into field o before binding video UI.
Common permission UI is represented by patches/smali_classes4__com__xj__common__view__dialog__permission__RequestBlePermissionDialogFragment.smali.diff. Its static initializer still creates the shared permission list f, but the lite patch removes all additions to that list: neither coarse/fine location nor Android 12+ Bluetooth scan/advertise/connect permissions are inserted. The dialog fragment can still be invoked by feature code, but the backing request list is empty in this patch.
The common tab component is split between patches/smali_classes4__com__xj__common__view__tab__CommonTextTabLayout.smali.diff and patches/res__layout__comm_view_focusable_tab_layout_item.xml.diff. The smali patch adds a public TextView s field and changes view assembly so the j image view is hidden, the k image view receives llauncher_white_bg_btn_rb, then is alpha-adjusted and hidden before the SimpleFocusRecyclerView l is added. The item layout removes padding from the root FocusableFrameLayout and inner ShapeConstraintLayout, so tab spacing is driven more by the tab layout/recycler decorations than by each item XML.
Shared app chrome and dialog styling live in patches/res__layout__comm_view_top_bar.xml.diff, patches/res__layout__comm_dialog_fragment.xml.diff, patches/res__layout__comm_dialog_fragment_verify.xml.diff, patches/res__layout__comm_dialog_confirm_dialog.xml.diff, patches/res__layout__comm_dialog_tips_with_check.xml.diff, and patches/res__layout__pay_popup_hint.xml.diff. The top bar keeps search/download/signal/battery slots, but the iv_device_online focusable image is made non-focusable, non-clickable, gone, and sized to 0.0dip, effectively removing the device-online affordance from shared navigation. Common dialogs and the payment hint popup switch their dark panel fill from #ff191a1c to #ff111827; comm_dialog_fragment.xml also makes closeIv transparent instead of using comm_guide_close_gry. Payment and common feature modules that inflate these layouts inherit the same darker panel surface and, for the generic common dialog, a visually hidden close icon slot.
patches/smali_classes4__com__xiaoji__module__operations__key__ConfigData.smali.diff and patches/smali_classes4__com__xiaoji__module__operations__utility__Log.smali.diff are shared operations-module helpers. Their explicit static initial values are removed from field declarations (ConfigData.a/b integers, ConfigData.c-f booleans, and Log.b), which leaves them at VM defaults unless later class initialization code assigns them. Code that reads operations config or logging flags before explicit initialization now observes default zero/false state.
Coupling
- If the backend expected by feature modules changes, update
patches/smali_classes4__com__xj__common__http__EggGameHttpConfig.smali.difftogether with any request signing/auth expectations that consumeUserManager.getToken()inpatches/smali_classes4__com__xj__common__user__UserManager.smali.diff; the current common layer sends all environments to one worker host while also returning a synthetic token. - If login, entitlement, profile, or payment flows need real authentication, verify every caller that relies on
UserManager.isLogin(),getToken(), orgetUid()againstpatches/smali_classes4__com__xj__common__user__UserManager.smali.diff; this shared manager no longer distinguishes persisted sessions from anonymous launches. - If WeChat OAuth is re-enabled, change
patches/smali_classes4__com__xiaoji__egggame__wxapi__WXEntryActivity$getWXUserInfo$1.smali.diffand validate any callback code that parses the access-token response; the URL template still has WeChat-style placeholders but now targets localhost. - If modules compare card entry ids numerically, update them with
CardLineData.PS_LINK_ENTRY_IDandPC_LINK_ENTRY_IDfrompatches/smali_classes4__com__xj__common__data__list__CardLineData.smali.diff; hard-coded old ids2and3will no longer match the shared constants. - If preview launchers pass
preview_data, keep the argument value parcelable asPreviewMediaEntityfor bothpatches/smali_classes4__com__xj__common__preview__PreviewImageFragment.smali.diffandpatches/smali_classes4__com__xj__common__preview__PreviewVideoFragment.smali.diff; both fragments now depend on the untypedBundle.getParcelable(String)plus aninstanceofcheck. - If BLE/controller setup flows depend on permission prompting, check
patches/smali_classes4__com__xj__common__view__dialog__permission__RequestBlePermissionDialogFragment.smali.diff; the common request list is empty, so callers may display a dialog without requesting location or Bluetooth runtime permissions. - If focus navigation or remote-control behavior changes in common chrome, inspect
patches/res__layout__comm_view_top_bar.xml.diffandpatches/res__layout__comm_view_focusable_tab_layout_item.xml.diff; the device-online icon is removed from focus/click paths and tab item padding is no longer supplied by XML.
Risks
patches/smali_classes4__com__xj__common__user__UserManager.smali.diffcan make unauthenticated users look logged in. If a feature treatsisLogin()plusgetToken()as proof of a real server session, requests may be sent withfake-tokenand uid99999, causing account-specific APIs, payment state, or cloud saves to attach to a synthetic identity or fail in non-obvious ways.patches/smali_classes4__com__xiaoji__egggame__wxapi__WXEntryActivity$getWXUserInfo$1.smali.diffredirects WeChat token exchange tohttp://127.0.0.1. If no local service handles that path, WeChat login/share completion will fail after the callback receives a code.patches/smali_classes4__com__xj__common__view__dialog__permission__RequestBlePermissionDialogFragment.smali.diffleaves the BLE permission list empty. If controller discovery expects Android location or Bluetooth runtime permissions to have been granted by this dialog, scans or connections can fail silently on devices that enforce those permissions.patches/smali_classes4__com__xj__common__preview__PreviewImageFragment.smali.diffandpatches/smali_classes4__com__xj__common__preview__PreviewVideoFragment.smali.diffremove the Android 13 typed parcelable retrieval path. Ifpreview_datais not compatible with untypedBundle.getParcelable(String)class loading on a target OS/build, previews will receive null and skip image/video binding.