简体   繁体   中英

Validating AndroidManifest.xml file

I am working on a Java SE applicaiton that analyzes android applications.

Is there any schema/DTD that can be used to verify an AndroidManifest.xml? If found namespace definitions like:

xmlns:android="http://schemas.android.com/apk/res/android"

But schemas.android.com does not resolve to an acutal host so no schema file there :-(

Note: I do not want to do the validation on Android as a platform.

try aapt tool which comes with android-sdk. you can execute

aapt badge command to figure out details of android manifest xml from Android apk file

There are no DTD/schemas for Android XML , you have to relly on other tools which can do the validation, for example like Naresh explains.

Also see "Where are the schemas for XML files on an Android project?"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM