So, finally got my Khadas Edge Board and have been able to compile a stock “Vanilla” version of Android 10.
Next step is to be able to bundle in an APK which we build in the company. I have found this link to a Stackoverflow thread, but I am not sure where exactly to place the APK and how to bundle it in correctly.
Our requirements are that the app comes in on the update.img file we hand over to customer and that it is updatable without requiring a new flash of the device. Also, it should store some data (eg. logs and settings files) in 0/Android/data/my.app.package/{files}.
I have seen it requires me to create some custom .mk files and place them in root/packages/apps/{myapp}/Android.mk, but I am still a little unsure of the process.
If anyone is able to help me through this, perhaps with a template or skeleton with which I can begin, that would be very much appreciated.
Thank you kindly.
Best,
Lorenzo
PS: this might not be the correct category for this question, if so please feel free to move it where it best fits
For Edge-V place your app in
/device/rockchip/rk3399/preinstall_del/ folder for it to be preinstalled.
Make sure the app is 32-bit(arm) since 64-bit(arm64) apps can’t be preinstalled.
If you want to add it as a system, non removable app, you need to use a Makefile instead.
@Electr1 thank you very much for your response. With a little bit of digging and figuring out, managed to achieve the desired result. @goenjoy sums it up pretty well.