er4z0r
er4z0r

Reputation: 4901

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.

Upvotes: 1

Views: 3057

Answers (2)

theomega
theomega

Reputation: 32051

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?"

Upvotes: 1

Naresh
Naresh

Reputation: 1336

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

Upvotes: 2

Related Questions