desword / android-apktool

Automatically exported from code.google.com/p/android-apktool
Other
1 stars 0 forks source link

Unable to get APK version name #567

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use the command: java.exe -jar apktool.jar d -f Sample.apk -o "C:\Temp" to 
de-compile Sample.apk
2. Below C:\Temp, we can get AndroidManifest.xml
3. We can't find the attribute "android:versionName" for <manifest> node

What is the expected output? What do you see instead?
We should be able to find attribute "android:versionName" for <manifest> node, 
but I failed to see that.

What version of the product are you using? On what operating system?
apktool_2.0.0b7.jar, on Win7 32 bit system.

Please provide any additional information below.

Original issue reported on code.google.com by jerry.xi...@gmail.com on 10 Dec 2013 at 6:21

GoogleCodeExporter commented 9 years ago
It's OK in apktool.jar Version 1.5.2, this issue only occur in 
apktool_2.0.0b7.jar.

Original comment by jerry.xi...@gmail.com on 10 Dec 2013 at 6:24

GoogleCodeExporter commented 9 years ago
Not a bug. Use -m in 2.x if you want to retain the manifest as original as 
possible.

Original comment by connor.tumbleson on 10 Dec 2013 at 1:58

GoogleCodeExporter commented 9 years ago
-m? NO such parameter? 

Original comment by linjx...@gmail.com on 22 Jan 2015 at 11:53

GoogleCodeExporter commented 9 years ago
i solve the problem,thank you!  The Good Command : java.exe -jar apktool.jar d 
-f  -m Sample.apk -o "C:\Temp".

Original comment by linjx...@gmail.com on 22 Jan 2015 at 12:02