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

Play Asset Delivery use Asset Targeting by Country can't read asset in the master apk file. #41

Open
ccyr119 opened this issue Jan 12, 2024 · 2 comments

Comments

@ccyr119
Copy link

ccyr119 commented Jan 12, 2024

The unity API Application.dataPath return the splited apk filename like this:
/data/app/~~3CG-FFhALRftRfz3SRlP5w==/com.xxx.xxx.android-_teRGWyYbrKiCvOn6kdK4g==/split_UnityDataAssetPack.config.other_countries.apk。

so the GetStreamingAssetsInfoFromJar function gathering the files in the splited apk files, the master asset file is not collected.

use bundletool extract-apks will get the splited apks of device specified apks:

base-arm64_v8a_2.apk
base-master_2.apk
UnityDataAssetPack-master.apk
UnityDataAssetPack-other_countries.apk

The UnityDataAssetPack is the name of install-time asset pack name.
The other_countries can be countries set name if specificed, so the UnityDataAssetPack-other_countries.apk
can be other name like: UnityDataAssetPack-countries_latam.apk or UnityDataAssetPack-countries_na.apk

I use adb shell ls command to list the files in the install directory of devices:
image
image

BTW install-time asset pack can more than one.

@ccyr119
Copy link
Author

ccyr119 commented Jan 15, 2024

This is my resolution:
image
image
image
image
image
image

@gwiazdorrr
Copy link
Owner

How can I reproduce this?

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