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 / apk-resources-and-manifest

APK Resources and Manifest Patches

Overview

This area is the resource and APK metadata layer that turns the decompiled upstream GameHub APK into the Lite app shell. lite_resources/README.md describes lite_resources/ as files extracted from GameHub-Lite.apk and copied into the decompiled APK before rebuild; under this doc's owned tree, lite_resources/res/ is mostly pre-converted WebP image assets plus raw UI sounds. The rebuild metadata patch in patches/apktool.yml.diff renames the rebuilt artifact to GameHub-Lite.apk and removes mp4 and webm from apktool's do-not-compress list while keeping image/audio formats such as png, webp, mp3, and wav.

patches/AndroidManifest.xml.diff changes the package from com.xiaoji.egggame to gamehub.lite, rewrites package-scoped permissions and provider authorities to the Lite namespace, and removes many original integrations: Tencent/WeChat auth and pay entries, Alipay metadata and activities, Firebase auth/analytics components, Google sign-in/cast measurement pieces, JPush services/receivers/providers, broad package queries, notification/location/contact/record-audio/install-package permissions, launcher shortcut/settings permissions, and the Wi-Fi ADB activation UI/service entries. The manifest keeps the core landscape launcher, Wine emulator, Steam, cloud/pay, PS play, PC streaming, common sharing, picture selector, Room, and utility components. Lite-specific manifest additions include android:hardwareAccelerated="true" on the application, an exported GameDetailActivity intent action gamehub.lite.LAUNCH_GAME, WineActivity flags for resize/minimal post-processing/back-callback behavior plus NVIDIA immediate/raw cursor metadata, com.xiaoji.wifi.adb.AdbPairingTutorialActivity, and an exported bin.mt.file.content.MTDataFilesProvider documents provider under gamehub.lite.MTDataFilesProvider.

Network policy is patched separately in patches/res__xml__network_security_config.xml.diff: the app still permits cleartext traffic via base-config, but Lite adds <certificates src="user" /> alongside system roots. Any module using HTTP clients under the manifest's android:networkSecurityConfig="@xml/network_security_config" will therefore trust user-installed CAs in Lite builds.

The resource patches reshape the visible launcher shell rather than adding Java/Kotlin code. patches/res__layout__llauncher_activity_new_launcher_main.xml.diff hides the original LauncherTabLayout and LB/RB tab hints, adds a non-focusable @id/tv_dashboard_label text label bound to @string/llauncher_main_page_title_my, and hides the device-online icon in the top-right status row. The same device icon is hidden in patches/res__layout__comm_view_top_bar.xml.diff and patches/res__layout__llauncher_v4_search_activity.xml.diff, so top bars keep search/download/signal/battery/time but do not expose controller/device-online status. patches/res__values__ids.xml.diff and patches/res__values__public.xml.diff reserve tv_dashboard_label so the new layout ID is stable in compiled resources.

Most layout diffs apply a consistent Lite visual treatment. Dialog and popup roots in files such as patches/res__layout__comm_dialog_fragment.xml.diff, patches/res__layout__comm_dialog_confirm_dialog.xml.diff, patches/res__layout__comm_dialog_tips_with_check.xml.diff, patches/res__layout__llauncher_dialog_fragment_apk_update.xml.diff, patches/res__layout__winemu_dialog_confirm_dialog.xml.diff, patches/res__layout__pay_popup_hint.xml.diff, patches/res__layout__popup_firmware_list.xml.diff, and patches/res__layout__xja_dialog_advanced_features.xml.diff change dark panel backgrounds from #ff191a1c/similar to #ff111827. patches/res__values__colors.xml.diff also changes the shared comm_dialog_background color to #ff111827, so both explicit layout colors and shared color references converge on the same dark shell.

Several patches suppress branded or promotional imagery while preserving layout structure and click targets. Close buttons and guide artwork are replaced with @android:color/transparent in layouts including patches/res__layout__winemu_promotional_dialog.xml.diff, patches/res__layout__llauncher_promotional_dialog.xml.diff, patches/res__layout__wiemu_dialog_game_pad_manager.xml.diff, patches/res__layout__dialog_fragment_guide_step_first.xml.diff, patches/res__layout__map_key_oper_guide_layout.xml.diff, and the patches/res__layout__llauncher_activity_guide_*.xml.diff onboarding screens, including the layout-sw600dp variants. patches/res__values__public.xml.diff removes public entries for many deleted guide/onboarding drawables and remaps connection_tutorial_select/connection_tutorial_unselect, while adding wine_loading_round_light.png as a public drawable.

Text and locale resources narrow Lite's supported language surface and update visible labels. patches/res__values__arrays.xml.diff reduces language_names/language_values to English (en) and Japanese (ja) only. patches/res__values__strings.xml.diff changes the system-language label to English, renames the main "My" tab to Dashboard, changes the PC emulator join/community promo text to a telemetry-removal report, blanks record-activation labels, and changes Wine account/game price currency strings from yen to dollars. patches/res__values-ja__strings.xml.diff mirrors the dashboard, telemetry-report, and dollar-currency text in Japanese.

lite_resources/res/ supplies binary resources that the patched public table and layouts can reference without regenerating them from source. The WebP assets are split by Android density and role: launcher icons in lite_resources/res/mipmap-hdpi/, mipmap-mdpi/, mipmap-xhdpi/, mipmap-xxhdpi/, and mipmap-xxxhdpi/; app/pay/common launcher mipmaps such as pay_wx.webp, pay_zfb.webp, pay_popup_close_gry.webp, comm_*, ic_reply_*, and battery-level icons in lite_resources/res/mipmap-xxhdpi/; high-volume button mapping, controller, launcher, media, and library artwork in lite_resources/res/drawable-xxhdpi/; AndroidX/Media3/ExoPlayer/Cast compatibility icons across lite_resources/res/drawable-ldpi/, drawable-mdpi/, drawable-hdpi/, drawable-xhdpi/, and drawable-xxxhdpi/; and small shared drawables such as transparent.webp, close_game.webp, ic_fullscreen.webp, media3_icon_circular_play.webp, notification icons, and Wine share icons in lite_resources/res/drawable/. Raw UI sounds live in lite_resources/res/raw/, including click/back/scroll/tab-switch sounds and party/camera-scan effects.

Coupling

  • If patches/res__layout__llauncher_activity_new_launcher_main.xml.diff changes the @id/tv_dashboard_label addition, also update patches/res__values__ids.xml.diff and patches/res__values__public.xml.diff; the layout introduces a new ID that must be declared and assigned a public resource ID for smali/resource references to resolve after rebuild.
  • If any provider authority or package-scoped permission in patches/AndroidManifest.xml.diff is changed, check all same-authority entries in that manifest patch together. Lite consistently rewrites authorities from com.xiaoji.egggame... to gamehub.lite... for update, PS play, poster, share, AndroidX startup, TheRouter, picture selector, utilcode, and ando file providers; one missed authority can cause runtime FileProvider/content resolver collisions with the original app.
  • If the manifest keeps android:networkSecurityConfig="@xml/network_security_config", changes to patches/res__xml__network_security_config.xml.diff affect every in-app HTTP stack, not just one module. Removing the user trust anchor would break workflows that rely on user-installed CAs; keeping it means debug/interception certificates are trusted app-wide.
  • If patches/res__values__arrays.xml.diff adds or removes a language, also update the matching localized patches/res__values*__strings.xml.diff files. The language picker has only en and ja values in Lite, while visible text changes are currently maintained in both default and Japanese strings.
  • If guide or close-button drawable entries are restored in patches/res__values__public.xml.diff, check the corresponding transparent replacements in patches/res__layout__*.xml.diff and WebP files under lite_resources/res/drawable*/mipmap*. The public table removes many branded guide assets while layouts keep the view positions with transparent drawables.
  • If apktool compression behavior in patches/apktool.yml.diff changes, verify binary media under lite_resources/res/raw/ and WebP assets under lite_resources/res/drawable*/ and mipmap*/; apktool compression flags influence how these copied assets are packaged and loaded at runtime.

Risks

  • patches/AndroidManifest.xml.diff removes many activities, receivers, services, permissions, and package queries while leaving modules such as pay, picture selector, PS play, PC stream, and launcher code present. If code still starts a removed component such as Tencent auth, Firebase auth, JPush, Alipay, or Wi-Fi ADB activation entries, runtime intents or SDK initialization will fail with missing-component or permission behavior changes.
  • patches/res__values__public.xml.diff manually edits resource names and IDs, including remapping connection_tutorial_select, deleting many drawable publics, adding wine_loading_round_light.png, and adding tv_dashboard_label. If smali or native code refers to numeric resource IDs rather than names, a bad public table edit can silently bind the wrong image or crash resource inflation.
  • patches/res__layout__llauncher_activity_new_launcher_main.xml.diff, patches/res__layout__comm_view_top_bar.xml.diff, and patches/res__layout__llauncher_v4_search_activity.xml.diff hide @id/iv_device_online by setting it gone and/or zero-sized. If controller/device connection code assumes the view is focusable or visible when updating status, Lite will suppress that UI state and may leave navigation/focus behavior different from upstream.
  • patches/res__xml__network_security_config.xml.diff trusts user CAs app-wide. This enables local inspection and modified network environments, but it also means any installed user certificate can intercept cleartext/TLS traffic for all components covered by the manifest network security config.