Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 656
scorpiodawg Avatar asked Jan 16 '23 04:01

scorpiodawg


1 Answers

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

HTH!

like image 61
Yury Avatar answered Jan 31 '23 04:01

Yury