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!