Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge APK black screen when run #121

Open
david8557 opened this issue Aug 17, 2024 · 4 comments
Open

Merge APK black screen when run #121

david8557 opened this issue Aug 17, 2024 · 4 comments

Comments

@david8557
Copy link

david8557 commented Aug 17, 2024

When I use APKEditor to merge xapk into apk, when run it will have black screen, check logcat, it will have some error

08-17 09:44:17.025 E/Unity (18605): Failed to retrieve asset pack: -13: Asset Pack Download Error(-13): The app is not owned by any user on this device. An app is "owned" if it has been acquired from Play. (https://developer.android.com/reference/com/google/android/play/core/assetpacks/model/AssetPackErrorCode.html#APP_NOT_OWNED)
08-17 09:44:17.025 E/Unity (18605): Google.Play.AssetDelivery.Internal.<>c__DisplayClass26_0:b__1(String, Int32)
08-17 09:44:17.025 E/Unity (18605): Google.Play.Core.Internal.PlayCoreEventHandler:Update()
08-17 09:44:17.025 E/Unity (18605):
08-17 09:44:17.029 W/Unity (18605): <color=#449371>[ASSET] >>>>> LoadAssetBundleAsync(): error load assetbundle[package_re_3042238201] Error Code [AppNotOwned}
08-17 09:44:17.029 W/Unity (18605): GFSYS.d__112:MoveNext()
08-17 09:44:17.029 W/Unity (18605): UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)
08-17 09:44:17.029 W/Unity (18605):
08-17 09:44:17.030 E/Unity (18605): <color=#449371>[ASSET] LOAD_FILENOTFOUND [UI/Connect/Prefabs/Connect.prefab]
08-17 09:44:17.030 E/Unity (18605): GFSYS.AssetRequestBody:Failed(Code)
08-17 09:44:17.030 E/Unity (18605): GFSYS.d__8:MoveNext()
08-17 09:44:17.030 E/Unity (18605): UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)

If I use ApktoolM antisplit + aapt, it doesn't have this error. If I use aapt2 it will error too.

To Reproduce
Steps to reproduce the behavior:

  1. Used version: 1.3.9
  2. Operating system: Android 13
  3. Command 'java -jar APKEditor-1.3.9.jar m -i apk

Log/Stacktrace

Used apk file
Attach/share your apk

Additional context
Add any other context about the problem here.

@REAndroid
Copy link
Owner

Recently I noticed bad XAPK packaging (like inconsistent version code), apps downloaded from apkpure/apkcombo. Download from playstore and merge then let us know your results

@david8557
Copy link
Author

Recently I noticed bad XAPK packaging (like inconsistent version code), apps downloaded from apkpure/apkcombo. Download from playstore and merge then let us know your results

Problem is not in the xapk, because if I use Apktool M, or use SAI to install xapk, app can run fine.

@REAndroid
Copy link
Owner

I merged and installed the app, I can't replicate this. Provide your logs from APKEditor

@david8557
Copy link
Author

david8557 commented Aug 30, 2024

Hi, I just try with version 10.4.1 and problem still happen on my 2 phones. When run app, it just show blackscreen, can tap on touchscreen but it still black. Here is log

D:\Download>java -jar "D:\bin\APKEditor-1.3.9.jar" m -i "FINAL FANTASY BE-WOTV_10.4.1_apkcombo.com.xapk"
00.000 I: [MERGE] Using: APKEditor version 1.3.9, ARSCLib version 1.3.5
00.016 I: [MERGE] Merging ...
Input: FINAL FANTASY BE-WOTV_10.4.1_apkcombo.com.xapk
Output: FINAL FANTASY BE-WOTV_10.4.1_apkcombo.com_merged.apk

00.016 I: [MERGE] Extracting to: tmp_bff46735
00.142 I: [MERGE] Searching apk files ...
00.142 I: [MERGE] Found apk files: 10
00.173 I: [MERGE] Found modules: 10
00.283 I: [MERGE] Merging: com.square_enix.android_googleplay.WOTVffbeww
00.283 I: [MERGE] Added [com.square_enix.android_googleplay.WOTVffbeww] classes.dex -> classes.dex
00.283 I: [MERGE] Added [com.square_enix.android_googleplay.WOTVffbeww] classes2.dex -> classes2.dex
00.283 I: [MERGE] Added [com.square_enix.android_googleplay.WOTVffbeww] classes3.dex -> classes3.dex
00.283 I: [MERGE] Added [com.square_enix.android_googleplay.WOTVffbeww] classes4.dex -> classes4.dex
00.283 I: [MERGE] Added [com.square_enix.android_googleplay.WOTVffbeww] classes5.dex -> classes5.dex
00.393 I: [MERGE] Merging: package_localize_en_re_1419519313
00.408 I: [MERGE] Merging: package_re_3042238201
00.408 I: [MERGE] Merging: package_sc_4114672501
00.408 I: [MERGE] Merging: config.arm64_v8a
00.408 I: [MERGE] Merging: package_sc_4141781008
00.408 I: [MERGE] Merging: package_sc_2729144437
00.408 I: [MERGE] Merging: package_da_238657750
00.408 I: [MERGE] Merging: config.armeabi_v7a
00.424 I: [MERGE] Merging: package_da_3959059394
00.440 I: [MERGE] Sanitizing manifest ...
00.440 I: [MERGE] Removed-attribute : @0x0101064e
00.440 I: [MERGE] Removed-attribute : @0x0101064f
00.440 I: [MERGE] Removed-attribute : extractNativeLibs
00.440 I: [MERGE] Removed-attribute : isSplitRequired
00.440 I: [MERGE] Removed-element : name="com.android.vending.splits.required"
00.440 I: [MERGE] Removed-element : name="com.android.stamp.source"
00.440 I: [MERGE] Removed-element : name="com.android.stamp.type"
00.440 I: [MERGE] Removed-table-entry : res/xml/splits0.xml
00.455 I: [MERGE] Removed-element : name="com.android.vending.splits"
00.455 I: [MERGE] Removed-element : name="com.android.vending.derived.apk.id"
00.471 I: [MERGE] Writing apk ...
00.471 I: [MERGE] Buffering compress changed files ...
02.290 I: [MERGE] Writing files: 1030
02.682 I: [MERGE] Writing signature block ...
02.698 I: [MERGE] Saved to: FINAL FANTASY BE-WOTV_10.4.1_apkcombo.com_merged.apk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants