Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/Deathemonic/BA-AD
Browse files Browse the repository at this point in the history
  • Loading branch information
Deathemonic committed Oct 23, 2024
2 parents 0705e7e + f8a1035 commit 8a42576
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ _I know it looks shit but it works_
### Dump
To get `dump.cs` you need to manually decompile the `libil2cpp.so`. I recommend following the instructions from [Auto-Il2cppDumper](https://github.com/AndnixSH/Auto-Il2cppDumper) or [Zygisk-Il2CppDumper](https://github.com/Perfare/Zygisk-Il2CppDumper). Also I recommend using a emulator like **MuMuPlayer** to get easy root access.

But you your lazy you can use [Il2CppDumper](Il2CppDumper) to dump it manually or automatically using a script. You gonna need the **Blue Archive JP** apk from [**ApkPure**](https://apkpure.com/blue-archive/com.YostarJP.BlueArchive), then rename .xapk to .zip and extract it. You will have multiple apks the apks you need is `config.arm64_v8a.apk` and `UnityDataAssetPack.apk` then rename .apk to .zip and extract it.
But you your lazy you can use [Il2CppDumper](https://github.com/Perfare/Il2CppDumper) to dump it manually or automatically using a script. You gonna need the **Blue Archive JP** apk from [**ApkPure**](https://apkpure.com/blue-archive/com.YostarJP.BlueArchive), then rename .xapk to .zip and extract it. You will have multiple apks the apks you need is `config.arm64_v8a.apk` and `UnityDataAssetPack.apk` then rename .apk to .zip and extract it.

`libil2cpp.so` is located at extracted the `config.arm64_v8a.apk` then at `lib/arm64-v8a` and the `global-metadata.dat` is located at the extracted `UnityDataAssetPack.apk` then at `assets/bin/Data/Managed/Metadata`.

Expand Down
12 changes: 3 additions & 9 deletions baad/lib/CatalogDecrypter.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,16 +95,10 @@ def read_media() -> tuple[str, dict[str, Any]]:
_ = read_i8() # Skip 1 byte
data_size = read_i32()
data: dict = {}

if media:
for _ in range(data_size):
key, value = read_media()
data[key] = value

if not media:
for _ in range(data_size):
key, value = read_table()
data[key] = value
for _ in range(data_size):
key, value = read_table() if not media else read_media()
data[key] = value

return CatalogDecrypter(base_url=base_url, data=data)

Expand Down

0 comments on commit 8a42576

Please sign in to comment.