I am attempting to understand how and when the AndroidManifest.xml for an application is parsed, but am unable to locate this is in the AOSP source. I searched AndroidXRef as well, but I'm not seeing any hits (likely because this parsing is done as binary XML and so the tags -- such as android:name
-- are not strings.)
The parsing of the package is performed in frameworks/base/core/java/android/content/pm/PackageParser.java
. You need parsePackage
method.
HTH!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With