I am working on an app store application. Google Play optimizes apps at install time by the baseline-profile provided by the developer. As an app store, I want to do the same thing at install time. I researched about it and faced dex2oat and dex2opt. I am wondering firstly
Can I run these dex2oat in the application code after installation of an app to optimize it?
Executing dex2oat command need any specific permission?
If I can do this are there any docs about how to use dex2oat?
I know dex2opt runs overnight to optimize apps anyway but I need to run it at the install time.
Thanks regarding