I am using AppGameKit (Tier2 - NDK) as an underlying game engine for an app . As I understand, the assets (configuration files + media in this case) get zipped up in the APK so i am extracting and copying them into the /data/data/com.mycompany.mytemplate/files folder on app startup. I am doing this so users can default to the original configurations when the folder is emptied out.
copying files using agk:

penFileToRead and OpenFileToWrite is painfully slow as the entire asset is decompressed over and over again with each line read so i wrote custom c++ code to mkdir folders and fwrite file in the /data/data/com.mycompany.mytemplate/files folder. The assets get copied over recursively successfully, but now i cannot use "/data/data/com.mycompany.mytemplate/files/backgrounds/bg.jpg" as an input to the agk::LoadImage function. I am unsure if this is a path issue, This is what I've tried already:
- tried to load from files/backgrounds/bg.jpg
- tried to load from backgrounds/bg.jpg -
*the asset gets picked up but since the asset name is also backgrounds/bg.jpg, i believe this is being picked from the zipped up assets in the APK and not from the user folder*
Any help is appreciated!
Thanks