scorpiodawg
scorpiodawg

Reputation: 5752

Where in AOSP is the code to parse AndroidManifest.xml?

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.)

Upvotes: 6

Views: 1184

Answers (1)

Yury
Yury

Reputation: 20936

The parsing of the package is performed in frameworks/base/core/java/android/content/pm/PackageParser.java. You need parsePackage method.

HTH!

Upvotes: 11

Related Questions