mirror of
https://codeberg.org/dabao1955/apk-reverse.git
synced 2026-11-29 19:50:22 +08:00
Absorb game-reserve's Unity/Lua and AssetBundle reverse engineering
Adds references/unity-lua-and-assetbundles.md: Unity + Lua containers, the Lua 5.1 header-byte tamper, the loader's bytecode-only check, the CRC manifest the game actually reads, UnityFS partial-encryption windows, rebuild traps (layout loss, dependency null, compressed == raw), TextAsset read-back, and half-encrypted Mono assemblies behind a publisher shell. Extends framework-runtimes with LayaAir Conch (DCC checksum and loader patch), recon with resource completeness and the encryption map, repack-and-sign with package rename, split-apk with the narrow apktool merge, dex-patching with call-deletion instead of method rewrite, and packers with PairIP as a target-selection signal. Adds pitfalls P51-P53 and two symptom rows. Registration: one reference row, two capability rows (both partial/unverified), two evidence-summary rows, two route-inventory rows, two coverage bullets, one known-limitation bullet, and EXTENSION-game-reserve-2026-11.md. Gates and pytest green.
This commit is contained in:
1 parent
90d9bd3e57
commit
93ec493d02
20 files changed
+658
-4
No files matched your search
@@ -221,6 +221,28 @@ the attribute chunks around it, which is what `apktool` is for — and note that
|
||||
`apktool b` rebuild rewrites the whole archive
|
||||
(`references/repack-and-sign.md` §Repacking an unpacked (de-shelled) app).
|
||||
|
||||
### A narrow manual merge through apktool (when bundletool is unavailable)
|
||||
|
||||
The rule above is the safe one: do not fold resource tables by hand. There is one exception narrow
|
||||
enough to name — a set whose resource splits are **additive** (density or language variants that do not
|
||||
redefine an existing name with a different id). The source's native case did this and installed the
|
||||
result as a single APK:
|
||||
|
||||
1. Install the base as an apktool framework: `apktool if base.apk -p <dir> -t <tag>`.
|
||||
2. Decode each split with the same `-p/-t` so its resources keep their **original ids** instead of
|
||||
being renumbered by the decoder.
|
||||
3. Copy the split's `res/` files into the base and add their ids to the base's `public.xml`. Skip a
|
||||
name that already exists with the same id; replace `APKTOOL_DUMMY_0x...` names by looking the real
|
||||
name up in the base's id table.
|
||||
4. Copy `lib/<abi>/` into the base. In the manifest, remove `requiredSplitTypes`, `splitTypes`,
|
||||
`vending.splits` and `stamp.*`, and set `extractNativeLibs="true"`.
|
||||
5. Verify every resource reference resolves and the app renders the split-only content. If two members
|
||||
define the same resource name with different ids, **stop** — that is the folding problem the first
|
||||
rule warns about, and bundletool is the route.
|
||||
|
||||
This is a per-set workaround, not a resource merger. Say in the delivery which splits were folded and
|
||||
which resource families they carried.
|
||||
|
||||
## 6. Install refusals, and what each one means
|
||||
|
||||
| Message | What it actually says | Attribution |
|
||||
|
||||
Reference in new issue
Block a user