Download

Accesing .pak file downloaded via GoogelPAD (GooglePlayAssetDelivery)

Hello. I am trying to integrate Google PAD into my app following the instruction Google Play Asset Delivery Reference | Unreal Engine Documentation

I set up downloading .pak files in app and tracking the download rate. After downloading, I get the path to the file. It looks like: data/data/com.Mycompany.MyApp/files/assetpacks/
But it is not installed in the application, I cannot open the Level that is inside this .pak file.

The documentation says that after downloading, I can use “appropriate calls to access the assets.”

So, the question is: where can i find this “appropriate functions” to open Level that was downloaded with .pak file from GooglePAD

Answer is here: Mobile Patch Utility Nodes | Unreal Engine Documentation

Use Mount and GetInstalledContent functions. But mounting will work only from ProjectPersistentDownloadDir. So, u will have to move your assets to this directory after downloading.

GetInstalledContent func checking if .manifest file exist. To work with it, u will have to place your manifest with .pak file and download it from Google PAD with your .pak file.
image

Manifest file should look loke this:

{“ManifestFileVersion”:“013000000000”,“bIsFileData”:false,“AppID”:“YourAppIdFromGoogleServices”,“AppNameString”:“APPNAME_APPNAME”,“BuildVersionString”:"",“LaunchExeString”:"",“LaunchCommand”:"",“PrereqIds”:[],“PrereqName”:"",“PrereqPath”:"",“PrereqArgs”:"",“FileManifestList”:[{“Filename”:“pakchunk3-Android_Multi.pak”,“FileChunkParts”:[{“Guid”:“ADF357B747AB30DE6B654FA6FC7A7110”,“Offset”:“000000000000”,“Size”:“209232000000”}]}],“ChunkHashList”:{“ADF357B747AB30DE6B654FA6FC7A7110”:“011107240130051231105203”},“ChunkShaList”:{“ADF357B747AB30DE6B654FA6FC7A7110”:“86941DAA15AD9515AECD589BEA2B6EE825155494”},“DataGroupList”:{“ADF357B747AB30DE6B654FA6FC7A7110”:“000”},“ChunkFilesizeList”:{“ADF357B747AB30DE6B654FA6FC7A7110”:“091239000000000000000000”},“CustomFields”:{“bIsPatch”:“false”,“ChunkID”:“3”,“PakReadOrdering”:“000000000000000000000000”}}

Just replace:
APPNAME_APPNAME, pakchunk3-Android_Multi.pak, YourAppIdFromGoogleServices, ChunkID

Hey, can you provide us An example project, Who implements all this, it will help a lot of people, thank’s