zhanwei / android-apktool

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

apktool outputs AndroidManifest.xml with missing attribute names (again) #673

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Seems to be exactly like issue #512 
(https://code.google.com/p/android-apktool/issues/detail?id=512), but present 
in apktool 2.0.0-b9.

What steps will reproduce the problem?
1. apktool d ly.secret.android.apk

What is the expected output? What do you see instead?
I: Using Apktool 2.0.0-Beta9 on secret.apk
I: Loading resource table...
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: 
/Users/leandrogracia/Library/apktool/framework/1.apk
I: Regular manifest package...
[Fatal Error] AndroidManifest.xml:2:41: Element type "manifest" must be 
followed by either attribute specifications, ">" or "/>".
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling...
I: Copying assets and libs...
I: Copying unknown files/dir...
I: Copying original files...

Then, attributes are missing in AndroidManifest.xml:
<?xml version="1.0" encoding="utf-8"?>                                          

<manifest android:versionCode="1600080" ="7" 
android:installLocation="internalOnly" package="ly.secret.android"
  xmlns:android="http://schemas.android.com/apk/res/android">                    
    <uses-permission ="android.permission.INTERNET" />                           
    <uses-permission ="android.permission.WRITE_EXTERNAL_STORAGE" />             
    <uses-permission ="android.permission.ACCESS_NETWORK_STATE" />               
(...)
    <application ="@style/SecretApplicationTheme" ="@string/app_name" ="@drawable/icon" ="true" ="true" ="true">
        <meta-data ="com.google.android.gms.version" ="@integer/google_play_services_version" />
        <activity ="@string/app_name" ="o.cz" ="singleTask" ="portrait" ="adjustResize" />
        <activity ="@string/app_name" =".ui.MainActivity" ="singleTask" ="portrait">
(...)

What version of the product are you using? On what operating system?
apktool 2.0.0-b9 on Mac OS X

Please provide any additional information below.
Play store link: https://play.google.com/store/apps/details?id=ly.secret.android

Original issue reported on code.google.com by shirokur...@gmail.com on 25 Aug 2014 at 7:28

GoogleCodeExporter commented 9 years ago
Could not duplicate in latest source.

Original comment by connor.tumbleson on 26 Aug 2014 at 9:17

GoogleCodeExporter commented 9 years ago
Sorry, my mistake. I understood the fix for issue #512 was included in 2.0.0-b9.

I've found a different issue with top of tree code, however. I'll file a 
separate bug.

Original comment by shirokur...@gmail.com on 26 Aug 2014 at 9:40