Merge APK black screen when run

未关闭
#121 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
android, java

调研方向

Start by reproducing the reported merge with APKEditor 1.3.9 on Android 13 using the provided java -jar APKEditor-1.3.9.jar m -i apk command, then inspect the logcat errors for asset-pack retrieval and the missing Connect.prefab. Compare the result with the reported ApktoolM antisplit plus aapt output; done means the merged APK runs without the black screen or those errors.

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
Java
星标
2.3k
派生
417
PR 合并指标
30 天内没有已合并 PR

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

REAndroid/APKEditor 的其他 Issue

查看 REAndroid/APKEditor 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。