Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not decode file (from drawable folder with .qmg extension) #2064

Closed
Arczi008TV opened this issue Apr 23, 2019 · 3 comments · Fixed by #2068
Closed

Could not decode file (from drawable folder with .qmg extension) #2064

Arczi008TV opened this issue Apr 23, 2019 · 3 comments · Fixed by #2068

Comments

@Arczi008TV
Copy link

Arczi008TV commented Apr 23, 2019

Information

  1. Apktool Version (apktool -version) - apktool 2.4.0
  2. Operating System (Mac, Linux, Windows) - Windows
  3. APK From? (Playstore, ROM, Other) - Galaxy S3 i9305, Kitkat 4.4.4

Stacktrace/Logcat

I: Using Apktool 2.4.0 on SecLauncher2.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Arczi\AppData\Local\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/page_hover_right_holo.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/mainmenu_folder_textfield_pressed.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/tw_scrollbar_handle_top_bg_default_holo_dark.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/tw_buttonbarbutton_selector_highlight_holo_dark.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/homescreen_menu_noti_bg.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/page_hover_left_holo.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/bubble_04.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/tw_buttonbarbutton_selector_pressed_holo_dark.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/bubble_02.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-nodpi/glow_normal_top.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-nodpi/glow_delete_right.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-nodpi/text_cursor_holo_light.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/tw_tab_selected_bar_holo.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/folder_bg.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/tw_scroll_popup_bg_holo_dark.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/tw_preference_popup_section_divider_holo_light.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/bubble_06_multiwindow.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/btn_cling_pressed.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-nodpi/homescreen_quick_view_bg.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/focused_bg.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-nodpi/tw_list_pressed_holo_light.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/tw_tab_unselected_focused_holo.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/overscroll_glow_right.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/widget_resize_frame.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/mainmenu_folder_textfield_focussed.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/widget_resize_frame_invalid.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-sw360dp-xhdpi/tw_buttonbarbutton_selector_focused_holo_dark.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/pageindicator_fastscroll_bar.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/tw_scrollbar_handle_top_bg_holo_dark.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/tw_tab_selected_pressed_holo.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/bubble_03.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-sw360dp-xhdpi/tw_buttonbarbutton_selector_pressed_holo_dark.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/bubble_01.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-nodpi/glow_normal_bottom.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/bg_appwidget_error.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/tw_scrollbar_handle_bg_pressed_holo_dark.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/tw_scrollbar_handle_bg_holo_dark.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-nodpi/indicator_bg.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-nodpi/glow_normal_left.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/tw_buttonbarbutton_selector_default_holo_dark.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/home_press.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/donot_show_line.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/pageindicator_fastscroll_opaque_bar.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/tw_tab_selected_focused_pressed_holo.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-nodpi/pageindicator_fastscroll_panel.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/tw_tab_unselected_focused_pressed_holo.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-nodpi/glow_normal_right.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/default_widget_preview_holo.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-nodpi/glow_delete_bottom.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/homescreen_small_blue.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-nodpi/tw_list_focused_holo_light.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/pageindicator_fastscroll_handle.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/tw_buttonbarbutton_selector_focused_holo_dark.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-sw360dp-xhdpi/tw_tab_selected_bar_holo.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/tw_tab_unselected_bar_holo.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/mainmenu_folder_textfield_activated.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-nodpi/glow_delete_left.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/btn_cling_normal.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/overscroll_glow_left.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/pageindicator.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-sw360dp-xhdpi/tw_buttonbarbutton_selector_default_holo_dark.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-nodpi/glow_delete_top.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/tw_tab_selected_focused_holo.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/tw_tab_unselected_pressed_holo.9.qmg
I: Decoding values */* XMLs...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...

Steps to Reproduce

  1. Try to decompile apktool d SecLauncher2.apk

Frameworks

https://www43.zippyshare.com/v/YoPrh2oc/file.html

APK

https://www114.zippyshare.com/v/O1dDSybh/file.html (odexed version, only apk here)
https://www34.zippyshare.com/v/0pkkrcLx/file.html (same but deodexed apk)

Questions to ask before submission

  1. Have you tried apktool d, apktool b without changing anything? - YES, apk crashing
  2. If you are trying to install a modified apk, did you resign it? - YES, apk crashing
  3. Are you using the latest apktool version? - YES
  • I have tried to decompile same apk from android 4.3 with no errors. (both apps are odexed, but I have tried deodexed version too with same result)
@iBotPeaches
Copy link
Owner

Could have sworn we have a patch already for qmg, guess we had some regression.

@iBotPeaches
Copy link
Owner

This helped find an interesting bug in our copying of raw assets. If the directory path of incoming/outgoing is different, we screw up the copying - leading to these errors.

Basically the implicit addition of version qualifiers was breaking this. Should have a patch up today.

@iBotPeaches
Copy link
Owner

➜  Bug2064 apktool d Deodexed_SecLauncher2.apk -t 2064 -f
I: Using Apktool 2.4.1-cc194d-SNAPSHOT on Deodexed_SecLauncher2.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: /Users/connortumbleson/Library/apktool/framework/1-2064.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
➜  Bug2064 apktool b Deodexed_SecLauncher2
I: Using Apktool 2.4.1-cc194d-SNAPSHOT
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether resources has changed...
I: Building resources...
I: Building apk file...
I: Copying unknown files/dir...
I: Built apk...
➜  Bug2064 

Patch above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants