I’m currently working on a project that requires preinstalling some apps and services into an image file. I’ve tried putting the .apk into the out\target\product\kvim3\system\app directory, but after compiling the image nothing changed.
Appreciate your response. I think I’ve already tried this solution yesterday. The app was installed. But it showed the error OpenCV manager package was not found. I think .so wasn’t properly compiled into the image. But I will try this solution again tomorrow morning in case I missed some steps last time!
I’ve tried to install two of our apps using the solution above. One installed properly, but the other one didn’t get installed at all. I tried to use pm install manually under /system/preinstall/ourAPP/* directory. It showed the error Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES: Package /data/app/vmdl438956791.tmp/base.apk has no certificates at entry AndroidManifest.xml], which Im pretty sure out app is signed properly.
Anyone know what could be the potential reason for this?