I'd like to improve the startup time of the image I'm building. As there're a lot of prebuilt apps, I lose time due to the predexing that happens during the start up.
So I'd like to, during the build time, predex all the prebuilt, presigned(Signature Scheme v2) apk that I'm including into AOSP as privileged-apps.
What I've noticed is that all the PRESIGNED apps are zipaligned by AOSP build system. That means, the apk that ends up in the image at system/priv-app/ won't be the same as the original apk, and so
the apk at system/priv-app will not verify with apksigner - `java -jar sdk-tools-linux/build-tools/29.0.2/lib/apksigner.jar verify -v --print-certs /path/to/system/priv-app/apk.apk` and such apps are crashing.
My question is: Is it possible to predex a presigned apk with signature scheme v2 at all?
Regards,
Venkat.