App Startup Core
Overview
This area is the patched Android startup surface for the lite build. The main application singleton is represented by patches/smali_classes4__com__xj__app__App.smali.diff, the splash entry flow by patches/smali_classes4__com__xj__app__SplashActivity.smali.diff plus lite_resources/smali_classes4/com/xj/app/SplashActivity$IntroVideoTimer.smali, locale defaults by patches/smali_classes4__com__xj__base__language__GHLocaleManager.smali.diff, and ADB/Wi-Fi HTTP backend configuration by patches/smali_classes4__com__xj__adb__wifiui__http__HttpConfig.smali.diff.
patches/smali_classes4__com__xj__app__App.smali.diff changes application startup after the video player backend is configured with com/shuyu/gsyvideoplayer/player/PlayerFactory. It removes the application-time initialization of IUmengService, FirebaseAuthLoginUtils, and PushApp, while preserving initialization of CommonApp, the routed IMService, WinEmuApp, and SteamModuleApp. The app singleton therefore still boots common, IM, Windows emulation, and Steam modules from App.onCreate, but analytics/auth/push side effects are no longer started at application creation.
patches/smali_classes4__com__xj__app__SplashActivity.smali.diff changes the successful splash branch in SplashActivity.l1(SplashActivity, int). When p1 == 1, the existing SPUtils flag uminit is still written, then the activity reads Android SharedPreferences named intro_video_prefs. If intro_video_played is already true, startup proceeds directly through SplashActivity.j1(). If it is false, the splash marks intro_video_played=true; when NetworkUtils.r() reports no network it falls back to j1(), otherwise it launches com/xj/landscape/launcher/ui/gamedetail/GameVideoActivity through ActivityUtils.p(Bundle, Class) with a remote intro video URL and these extras: video_path, video_like, video_id, video_is_notice=false, and is_intro_video=true.
The same splash patch adds SplashActivity.onResume(). On resume, it checks intro_video_prefs again: if intro_video_played is true and gif_loaded is still false, it sets gif_loaded=true and calls j1(). This makes the app continue after returning from the intro video without replaying the splash video path. The companion timer class in lite_resources/smali_classes4/com/xj/app/SplashActivity$IntroVideoTimer.smali is a Runnable that starts GameVideoActivity with ActivityUtils.k(Class) and then immediately calls SplashActivity.j1() on its captured splash activity; it is the direct runnable counterpart for leaving the intro video path and entering the normal startup route.
patches/smali_classes4__com__xj__base__language__GHLocaleManager.smali.diff changes GHLocaleManager.j() from constructing Locale("ru", "RU") to returning Locale.US. Locale bootstrap callers that use j() now default to US English instead of Russian, without creating a new Locale instance.
patches/smali_classes4__com__xj__adb__wifiui__http__HttpConfig.smali.diff changes the base URL passed to com/xj/adb/wifiui/net/NetConfig.l(String, Context, Function1) from https://landscape-api.vgabc.com/ to https://gamehub-api.secureflex.workers.dev/. This is the startup configuration point for the ADB/Wi-Fi UI HTTP client; request paths resolved by that NetConfig instance now route against the Cloudflare Workers backend.
Coupling
- If
GameVideoActivitychanges its expected intent extra names or required extras, updatepatches/smali_classes4__com__xj__app__SplashActivity.smali.diffandlite_resources/smali_classes4/com/xj/app/SplashActivity$IntroVideoTimer.smalitogether. The splash patch hard-codesvideo_path,video_like,video_id,video_is_notice, andis_intro_video, while the timer launches the same activity without a bundle. - If the normal post-splash route in
SplashActivity.j1()changes, re-check both thel1patch andSplashActivity$IntroVideoTimer.run(). Both invokej1()as the handoff into the main app after either skipping, completing, or failing the intro video path. - If application services expect analytics, Firebase auth, or push to be initialized before module startup, re-check
patches/smali_classes4__com__xj__app__App.smali.diff. That patch removesIUmengService.a(Context),FirebaseAuthLoginUtils.Companion.a(Context), andPushApp.b(Application)from application creation while leaving later module startup intact. - If locale resources or server contracts assume a Russian default locale, re-check
patches/smali_classes4__com__xj__base__language__GHLocaleManager.smali.diff;GHLocaleManager.j()now returnsLocale.US, so any implicit language fallback changes at bootstrap. - If ADB/Wi-Fi HTTP paths are changed on the backend, verify
patches/smali_classes4__com__xj__adb__wifiui__http__HttpConfig.smali.diff; it only swaps the base URL before delegating toNetConfig.l(...), so path compatibility is enforced by the remote service rather than by this patch.
Risks
patches/smali_classes4__com__xj__app__SplashActivity.smali.diffedits smali control flow directly:.localsis increased from 2 to 6 and branch labels are rewired from:cond_1to:cond_3. If future upstream splash bytecode changes aroundl1(SplashActivity, int), this patch can apply incorrectly or jump into the wrong startup branch, causing the app either to skipj1()or to loop around the intro video state.patches/smali_classes4__com__xj__app__SplashActivity.smali.diffsetsintro_video_played=truebefore confirming thatGameVideoActivitylaunched successfully. IfActivityUtils.p(...)fails or the remote MP4 athttps://github.com/gamehublite/gamehub_api/raw/refs/heads/main/base/intro_video.mp4is unreachable after the network check, later launches will skip the intro because the persisted flag is already true.patches/smali_classes4__com__xj__app__App.smali.diffremoves push, Firebase auth, and Umeng initialization fromApp.onCreate. If any preserved module initialized later in the same method assumes those globals exist, startup can fail later and the fault will not be localized toApp.onCreatebecause the removed calls no longer provide an early failure point.