Question

I have a list of application's package names. These applications are all 3rd party applications. I want to parse the Manifest files for these packages and get information about the services they have along with other details available in service tag.

Can someone point me the direction as how to do this xml parsing using package manager?

Was it helpful?

Solution

If the applications are installed on the system, you can use the following:

If the applications aren't installed, but you have access to the APK files, then use:

The PackageInfo object that you get returned using either approach has the following public field populated (provided there were services defined in the manifest):

That's where you should be able to find the details you're interested in.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top