Including prebuilt, presigned apps into AOSP(9)

268 views
Skip to first unread message

venkatakrishnarao ks

unread,
Jan 23, 2020, 10:10:44 AM1/23/20
to Android Building
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.
Reply all
Reply to author
Forward
0 new messages