kuter007 / android-apktool

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

Can not decompile res files correctly. Tags are missing. #629

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.  ./apktool d com.quizup.core.apk

What is the expected output? What do you see instead?

This should work fine. But I can not get correctly res xml files. Tags are 
missing.

V 1.5.2

I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\User\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...

V 2.0.9beta

I: Using Apktool 2.0.0-Beta9 on com.quizup.core.apk
I: Loading resource table...
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\User\apktool\framework\1.apk
I: Regular manifest package...
[Fatal Error] AndroidManifest.xml:2:36: 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...

WITh BOTH I GET XML LIKE:

<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.DrawerLayout ="@id/drawer_layout" ="fill_parent" 
="fill_parent"
  xmlns:android="http://schemas.android.com/apk/res/android">
    <RelativeLayout ="@color/dark_gray" ="false" ="fill_parent" ="fill_parent">
        <com.quizup.lib.widgets.topBar.TopBar ="@id/top_bar" style="@style/TopBar" />
        <ImageView ="@id/shadow" ="@id/top_bar" ="@string/shadow_desc" style="@style/top_bar_drop_shadow" />
        <RelativeLayout ="fill_parent" ="fill_parent" ="@dimen/Default_Medium_Margin" ="@id/top_bar">
            <ImageView ="@id/lightning" ="fill_parent" ="wrap_content" ="@dimen/Default_Huge_Margin" ="@drawable/logo_icon" ="@id/quizup_logo" ="true" ="@string/quiz_up_logo_desc" />
            <ImageView ="@id/quizup_logo" ="fill_parent" ="wrap_content" ="@drawable/quizup_white" ="@id/terms_of_use" ="true" ="@string/quiz_up_logo_desc" />
            <com.quizup.lib.widgets.textViews.GothamTextView ="@color/orange" ="@id/terms_of_use" ="@string/terms_of_use" ="@id/privacy_policy" style="@style/about_screen_text_labels.large" widget_gothamtextview_style="Bold" />
            <com.quizup.lib.widgets.textViews.GothamTextView ="@color/purple" ="@id/privacy_policy" ="@string/privacy_policy" ="true" style="@style/about_screen_text_labels.large" widget_gothamtextview_style="Bold" />
            <com.quizup.lib.widgets.textViews.GothamTextView ="@color/green" ="@id/image_credits" ="@string/image_credits" ="@id/privacy_policy" style="@style/about_screen_text_labels.large" widget_gothamtextview_style="Bold" />
            <com.quizup.lib.widgets.textViews.GothamTextView ="@color/white" ="@id/customerSupportLabel" ="@string/customer_support" ="@id/image_credits" style="@style/about_screen_text_labels.small" widget_gothamtextview_style="Medium" />
            <com.quizup.lib.widgets.textViews.GothamTextView ="@color/yellow" ="@id/www_quizup_com" ="@string/quizup_url_label" ="@id/customerSupportLabel" style="@style/about_screen_text_labels.small" widget_gothamtextview_style="Bold" />
            <com.quizup.lib.widgets.textViews.GothamTextView ="@color/white" ="center" ="@id/bottom_text" ="fill_parent" ="wrap_content" ="true" style="@style/about_screen_bottom_txt" />
        </RelativeLayout>
    </RelativeLayout>
    <com.quizup.core.widgets.sidebar.Sidebar ="end" ="@id/left_drawer" ="true" style="@style/Sidebar" />
</android.support.v4.widget.DrawerLayout>   

What version of the product are you using? On what operating system?

1.5.2 and 2.0.0-Beta9 on WIN 7

Please provide any additional information below.

Original issue reported on code.google.com by mitja.bo...@gmail.com on 2 May 2014 at 6:23

GoogleCodeExporter commented 9 years ago

Original comment by connor.tumbleson on 2 May 2014 at 6:24