Frage

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?

War es hilfreich?

Lösung

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top