broo2s / brut.apktool

A tool for reverse engineering Android apk files
http://code.google.com/p/android-apktool/
353 stars 118 forks source link

'package' attribute value is retrieved from wrong attribute in manifest file #4

Open cjmamo opened 13 years ago

cjmamo commented 13 years ago

I want to extract some details from the manifest file of a particular APK (http://www.freewarelovers.com/android/download/temp/1300052439_RealCalc_1.6.0.apk). Every attribute value I want is retrieved except for the 'package' attribute. When I attempt to retrieve this attribute's value I get the value of the 'versionCode' attribute instead. All the details which I extracted from other APKs' manifest files were fine. I looked at the manifest file which is causing the trouble and it had nothing remarkably different from the others. This is the piece of code I'm using to get the attribute's value:

axmlParser.getAttributeValue(null, "package");