iBotPeaches / Apktool

A tool for reverse engineering Android apk files
https://apktool.org/
Apache License 2.0
20.17k stars 3.58k forks source link

getting error without any modifications while decompressing and just rebuild #1905

Closed labba closed 3 years ago

labba commented 6 years ago

Information

  1. Apktool Version (apktool -version) - 2.3.4
  2. Operating System (Mac, Linux, Windows) - win10 64bit
  3. APK From? (Playstore, ROM, Other) - https://mobile.softpedia.com/apk/blackberry-keyboard/#download

BlackBerry Keyboard 3.4.0.15917

Stacktrace/Logcat

PATH\>apktool.bat d bb.v3.4.0.15917.apk
Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true
I: Using Apktool 2.3.4 on bb.v3.4.0.15917.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\user\AppData\Local\apktool\framework\1.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...

PATH\>apktool.bat b bb.v3.4.0.15917 -o bb.v3.4.0.15917.rebuild.apk
Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true
I: Using Apktool 2.3.4
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether resources has changed...
I: Building resources...
W: warning: string 'prefs_block_potentially_offensive_summary' has no default translation.
W: warning: string 'prefs_block_potentially_offensive_title' has no default translation.
W: PATH\bb.v3.4.0.15917\res\layout-v26\abc_screen_toolbar.xml:5: error: No resource identifier found for attribute 'keyboardNavigationCluster' in package 'android'
W:
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\user\AppData\Local\Temp\brut_util_Jar_5491250422242500802.tmp, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 25, --version-code, 463, --version-name, 3.4.0.15917, --no-version-vectors, -F, C:\Users\user\AppData\Local\Temp\APKTOOL385445765703002532.tmp, -0, arsc, -0, json, -0, res/drawable-hdpi-v4/abc_ab_share_pack_mtrl_alpha.9.png, -0, png, -0, res/drawable-hdpi-v4/abc_btn_switch_to_on_mtrl_00001.9.png, -0, res/drawable-hdpi-v4/abc_btn_switch_to_on_mtrl_00012.9.png, -0, res/drawable-hdpi-v4/abc_cab_background_top_mtrl_alpha.9.png, -0, res/drawable-hdpi-v4/abc_list_divider_mtrl_alpha.9.png, -0, res/drawable-hdpi-v4/abc_list_focused_holo.9.png, -0, res/drawable-hdpi-v4/abc_list_longpressed_holo.9.png, -0, res/drawable-hdpi-v4/abc_list_pressed_holo_dark.9.png, -0, res/drawable-hdpi-v4/abc_list_pressed_holo_light.9.png, -0, res/drawable-hdpi-v4/abc_list_selector_disabled_holo_dark.9.png, -0, res/drawable-hdpi-v4/abc_list_selector_disabled_holo_light.9.png, -0, res/drawable-hdpi-v4/abc_menu_hardkey_panel_mtrl_mult.9.png, -0, res/drawable-hdpi-v4/abc_popup_background_mtrl_mult.9.png, -0, res/drawable-hdpi-v4/abc_scrubber_primary_mtrl_alpha.9.png, -0, res/drawable-hdpi-v4/abc_scrubber_track_mtrl_alpha.9.png, -0, res/drawable-hdpi-v4/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-hdpi-v4/abc_switch_track_mtrl_alpha.9.png, -0, res/drawable-hdpi-v4/abc_tab_indicator_mtrl_alpha.9.png, -0, res/drawable-hdpi-v4/abc_textfield_activated_mtrl_alpha.9.png, -0, res/drawable-hdpi-v4/abc_textfield_default_mtrl_alpha.9.png, -0, res/drawable-hdpi-v4/abc_textfield_search_activated_mtrl_alpha.9.png, -0, res/drawable-hdpi-v4/abc_textfield_search_default_mtrl_alpha.9.png, -0, res/drawable-hdpi-v4/keyboard_key_feedback_left_more_background_ics.9.png, -0, res/drawable-hdpi-v4/keyboard_key_feedback_more_background_lxx_dark.9.png, -0, res/drawable-hdpi-v4/keyboard_key_feedback_more_background_lxx_light.9.png, -0, res/drawable-hdpi-v4/keyboard_key_feedback_right_more_background_ics.9.png, -0, res/drawable-hdpi-v4/notification_bg_low_normal.9.png, -0, res/drawable-hdpi-v4/notification_bg_low_pressed.9.png, -0, res/drawable-hdpi-v4/notification_bg_normal.9.png, -0, res/drawable-hdpi-v4/notification_bg_normal_pressed.9.png, -0, res/drawable-hdpi-v4/slide_divider.9.png, -0, res/drawable-ldrtl-hdpi-v17/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-ldrtl-mdpi-v17/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-ldrtl-xhdpi-v17/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-ldrtl-xxhdpi-v17/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-ldrtl-xxxhdpi-v17/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-mdpi-v4/abc_ab_share_pack_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_btn_switch_to_on_mtrl_00001.9.png, -0, res/drawable-mdpi-v4/abc_btn_switch_to_on_mtrl_00012.9.png, -0, res/drawable-mdpi-v4/abc_cab_background_top_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_list_divider_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_list_focused_holo.9.png, -0, res/drawable-mdpi-v4/abc_list_longpressed_holo.9.png, -0, res/drawable-mdpi-v4/abc_list_pressed_holo_dark.9.png, -0, res/drawable-mdpi-v4/abc_list_pressed_holo_light.9.png, -0, res/drawable-mdpi-v4/abc_list_selector_disabled_holo_dark.9.png, -0, res/drawable-mdpi-v4/abc_list_selector_disabled_holo_light.9.png, -0, res/drawable-mdpi-v4/abc_menu_hardkey_panel_mtrl_mult.9.png, -0, res/drawable-mdpi-v4/abc_popup_background_mtrl_mult.9.png, -0, res/drawable-mdpi-v4/abc_scrubber_primary_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_scrubber_track_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-mdpi-v4/abc_switch_track_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_tab_indicator_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_textfield_activated_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_textfield_default_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_textfield_search_activated_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_textfield_search_default_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/keyboard_key_feedback_left_more_background_ics.9.png, -0, res/drawable-mdpi-v4/keyboard_key_feedback_more_background_lxx_dark.9.png, -0, res/drawable-mdpi-v4/keyboard_key_feedback_more_background_lxx_light.9.png, -0, res/drawable-mdpi-v4/keyboard_key_feedback_right_more_background_ics.9.png, -0, res/drawable-mdpi-v4/notification_bg_low_normal.9.png, -0, res/drawable-mdpi-v4/notification_bg_low_pressed.9.png, -0, res/drawable-mdpi-v4/notification_bg_normal.9.png, -0, res/drawable-mdpi-v4/notification_bg_normal_pressed.9.png, -0, res/drawable-mdpi-v4/slide_divider.9.png, -0, res/drawable-xhdpi-v4/abc_ab_share_pack_mtrl_alpha.9.png, -0, res/drawable-xhdpi-v4/abc_btn_switch_to_on_mtrl_00001.9.png, -0, res/drawable-xhdpi-v4/abc_btn_switch_to_on_mtrl_00012.9.png, -0, res/drawable-xhdpi-v4/abc_cab_background_top_mtrl_alpha.9.png, -0, res/drawable-xhdpi-v4/abc_list_divider_mtrl_alpha.9.png, -0, res/drawable-xhdpi-v4/abc_list_focused_holo.9.png, -0, res/drawable-xhdpi-v4/abc_list_longpressed_holo.9.png, -0, res/drawable-xhdpi-v4/abc_list_pressed_holo_dark.9.png, -0, res/drawable-xhdpi-v4/abc_list_pressed_holo_light.9.png, -0, res/drawable-xhdpi-v4/abc_list_selector_disabled_holo_dark.9.png, -0, res/drawable-xhdpi-v4/abc_list_selector_disabled_holo_light.9.png, -0, res/drawable-xhdpi-v4/abc_menu_hardkey_panel_mtrl_mult.9.png, -0, res/drawable-xhdpi-v4/abc_popup_background_mtrl_mult.9.png, -0, res/drawable-xhdpi-v4/abc_scrubber_primary_mtrl_alpha.9.png, -0, res/drawable-xhdpi-v4/abc_scrubber_track_mtrl_alpha.9.png, -0, res/drawable-xhdpi-v4/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-xhdpi-v4/abc_switch_track_mtrl_alpha.9.png, -0, res/drawable-xhdpi-v4/abc_tab_indicator_mtrl_alpha.9.png, -0, res/drawable-xhdpi-v4/abc_textfield_activated_mtrl_alpha.9.png, -0, res/drawable-xhdpi-v4/abc_textfield_default_mtrl_alpha.9.png, -0, res/drawable-xhdpi-v4/abc_textfield_search_activated_mtrl_alpha.9.png, -0, res/drawable-xhdpi-v4/abc_textfield_search_default_mtrl_alpha.9.png, -0, res/drawable-xhdpi-v4/btn_keyboard_key_active_ics_dark.9.png, -0, res/drawable-xhdpi-v4/btn_keyboard_key_active_lxx.9.png, -0, res/drawable-xhdpi-v4/btn_keyboard_key_active_pressed_lxx_dark.9.png, -0, res/drawable-xhdpi-v4/btn_keyboard_key_active_pressed_lxx_light.9.png, -0, res/drawable-xhdpi-v4/btn_keyboard_key_no_fret_normal_holo_dark.9.png, -0, res/drawable-xhdpi-v4/btn_keyboard_key_no_fret_pressed_klp_dark.9.png, -0, res/drawable-xhdpi-v4/btn_keyboard_key_normal_holo_dark.9.png, -0, res/drawable-xhdpi-v4/btn_keyboard_key_normal_holo_light.9.png, -0, res/drawable-xhdpi-v4/btn_keyboard_key_normal_off_holo_dark.9.png, -0, res/drawable-xhdpi-v4/btn_keyboard_key_normal_off_lxx_dark.9.png, -0, res/drawable-xhdpi-v4/btn_keyboard_key_normal_off_lxx_light.9.png, -0, res/drawable-xhdpi-v4/btn_keyboard_key_normal_on_ics_dark.9.png, -0, res/drawable-xhdpi-v4/btn_keyboard_key_normal_on_klp_dark.9.png, -0, res/drawable-xhdpi-v4/btn_keyboard_key_normal_on_lxx_dark.9.png, -0, res/drawable-xhdpi-v4/btn_keyboard_key_normal_on_lxx_light.9.png, -0, res/drawable-xhdpi-v4/btn_keyboard_key_popup_selected_ics.9.png, -0, res/drawable-xhdpi-v4/btn_keyboard_key_popup_selected_klp.9.png, -0, res/drawable-xhdpi-v4/btn_keyboard_key_popup_selected_lxx_dark.9.png, -0, res/drawable-xhdpi-v4/btn_keyboard_key_popup_selected_lxx_light.9.png, -0, res/drawable-xhdpi-v4/btn_keyboard_key_pressed_ics_dark.9.png, -0, res/drawable-xhdpi-v4/btn_keyboard_key_pressed_ics_light.9.png, -0, res/drawable-xhdpi-v4/btn_keyboard_key_pressed_klp_dark.9.png, -0, res/drawable-xhdpi-v4/btn_keyboard_key_pressed_klp_light.9.png, -0, res/drawable-xhdpi-v4/btn_keyboard_key_pressed_off_ics_dark.9.png, -0, res/drawable-xhdpi-v4/btn_keyboard_key_pressed_off_klp_dark.9.png, -0, res/drawable-xhdpi-v4/btn_keyboard_key_pressed_off_lxx_dark.9.png, -0, res/drawable-xhdpi-v4/btn_keyboard_key_pressed_off_lxx_light.9.png, -0, res/drawable-xhdpi-v4/btn_keyboard_key_pressed_on_ics_dark.9.png, -0, res/drawable-xhdpi-v4/btn_keyboard_key_pressed_on_klp_dark.9.png, -0, res/drawable-xhdpi-v4/btn_keyboard_key_pressed_on_lxx_dark.9.png, -0, res/drawable-xhdpi-v4/btn_keyboard_key_pressed_on_lxx_light.9.png, -0, res/drawable-xhdpi-v4/btn_keyboard_spacebar_normal_lxx_dark.9.png, -0, res/drawable-xhdpi-v4/btn_keyboard_spacebar_normal_lxx_light.9.png, -0, res/drawable-xhdpi-v4/btn_keyboard_spacebar_pressed_lxx_dark.9.png, -0, res/drawable-xhdpi-v4/btn_keyboard_spacebar_pressed_lxx_light.9.png, -0, res/drawable-xhdpi-v4/emoji_category_tab_selected_ics.9.png, -0, res/drawable-xhdpi-v4/emoji_category_tab_selected_klp.9.png, -0, res/drawable-xhdpi-v4/emoji_category_tab_unselected_holo_dark.9.png, -0, res/drawable-xhdpi-v4/keyboard_background_holo.9.png, -0, res/drawable-xhdpi-v4/keyboard_background_lxx_dark.9.png, -0, res/drawable-xhdpi-v4/keyboard_background_lxx_light.9.png, -0, res/drawable-xhdpi-v4/keyboard_key_feedback_background.9.png, -0, res/drawable-xhdpi-v4/keyboard_key_feedback_background_ics.9.png, -0, res/drawable-xhdpi-v4/keyboard_key_feedback_background_klp.9.png, -0, res/drawable-xhdpi-v4/keyboard_key_feedback_background_lxx_dark.9.png, -0, res/drawable-xhdpi-v4/keyboard_key_feedback_background_lxx_light.9.png, -0, res/drawable-xhdpi-v4/keyboard_key_feedback_left_background_ics.9.png, -0, res/drawable-xhdpi-v4/keyboard_key_feedback_left_background_klp.9.png, -0, res/drawable-xhdpi-v4/keyboard_key_feedback_left_more_background_ics.9.png, -0, res/drawable-xhdpi-v4/keyboard_key_feedback_left_more_background_klp.9.png, -0, res/drawable-xhdpi-v4/keyboard_key_feedback_more_background.9.png, -0, res/drawable-xhdpi-v4/keyboard_key_feedback_more_background_ics.9.png, -0, res/drawable-xhdpi-v4/keyboard_key_feedback_more_background_klp.9.png, -0, res/drawable-xhdpi-v4/keyboard_key_feedback_more_background_lxx_dark.9.png, -0, res/drawable-xhdpi-v4/keyboard_key_feedback_more_background_lxx_light.9.png, -0, res/drawable-xhdpi-v4/keyboard_key_feedback_right_background_ics.9.png, -0, res/drawable-xhdpi-v4/keyboard_key_feedback_right_background_klp.9.png, -0, res/drawable-xhdpi-v4/keyboard_key_feedback_right_more_background_ics.9.png, -0, res/drawable-xhdpi-v4/keyboard_key_feedback_right_more_background_klp.9.png, -0, res/drawable-xhdpi-v4/keyboard_popup_panel_background_ics.9.png, -0, res/drawable-xhdpi-v4/keyboard_popup_panel_background_klp.9.png, -0, res/drawable-xhdpi-v4/keyboard_popup_panel_background_lxx_dark.9.png, -0, res/drawable-xhdpi-v4/keyboard_popup_panel_background_lxx_light.9.png, -0, res/drawable-xhdpi-v4/keyboard_suggest_strip_holo.9.png, -0, res/drawable-xhdpi-v4/keyboard_suggest_strip_lxx_dark.9.png, -0, res/drawable-xhdpi-v4/keyboard_suggest_strip_lxx_light.9.png, -0, res/drawable-xhdpi-v4/notification_bg_low_normal.9.png, -0, res/drawable-xhdpi-v4/notification_bg_low_pressed.9.png, -0, res/drawable-xhdpi-v4/notification_bg_normal.9.png, -0, res/drawable-xhdpi-v4/notification_bg_normal_pressed.9.png, -0, res/drawable-xhdpi-v4/slide_divider.9.png, -0, res/drawable-xhdpi-v4/sym_keyboard_space_holo_dark.9.png, -0, res/drawable-xxhdpi-v4/abc_ab_share_pack_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_btn_switch_to_on_mtrl_00001.9.png, -0, res/drawable-xxhdpi-v4/abc_btn_switch_to_on_mtrl_00012.9.png, -0, res/drawable-xxhdpi-v4/abc_cab_background_top_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_list_divider_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_list_focused_holo.9.png, -0, res/drawable-xxhdpi-v4/abc_list_longpressed_holo.9.png, -0, res/drawable-xxhdpi-v4/abc_list_pressed_holo_dark.9.png, -0, res/drawable-xxhdpi-v4/abc_list_pressed_holo_light.9.png, -0, res/drawable-xxhdpi-v4/abc_list_selector_disabled_holo_dark.9.png, -0, res/drawable-xxhdpi-v4/abc_list_selector_disabled_holo_light.9.png, -0, res/drawable-xxhdpi-v4/abc_menu_hardkey_panel_mtrl_mult.9.png, -0, res/drawable-xxhdpi-v4/abc_popup_background_mtrl_mult.9.png, -0, res/drawable-xxhdpi-v4/abc_scrubber_primary_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_scrubber_track_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_switch_track_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_tab_indicator_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_textfield_activated_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_textfield_default_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_textfield_search_activated_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_textfield_search_default_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/btn_keyboard_key_holo_dark_slide_functional.9.png, -0, res/drawable-xxhdpi-v4/btn_keyboard_key_no_fret_normal_holo_dark.9.png, -0, res/drawable-xxhdpi-v4/btn_keyboard_key_no_fret_pressed_klp_dark.9.png, -0, res/drawable-xxhdpi-v4/btn_keyboard_key_normal_holo_dark.9.png, -0, res/drawable-xxhdpi-v4/btn_keyboard_key_normal_holo_dark_slide.9.png, -0, res/drawable-xxhdpi-v4/btn_keyboard_key_normal_holo_light.9.png, -0, res/drawable-xxhdpi-v4/btn_keyboard_key_normal_off_holo_dark.9.png, -0, res/drawable-xxhdpi-v4/btn_keyboard_key_normal_on_klp_dark.9.png, -0, res/drawable-xxhdpi-v4/btn_keyboard_key_popup_selected_klp.9.png, -0, res/drawable-xxhdpi-v4/btn_keyboard_key_pressed_dark_slide.9.png, -0, res/drawable-xxhdpi-v4/btn_keyboard_key_pressed_klp_dark.9.png, -0, res/drawable-xxhdpi-v4/btn_keyboard_key_pressed_klp_light.9.png, -0, res/drawable-xxhdpi-v4/btn_keyboard_key_pressed_off_klp_dark.9.png, -0, res/drawable-xxhdpi-v4/btn_keyboard_key_pressed_on_klp_dark.9.png, -0, res/drawable-xxhdpi-v4/btn_mock_keyboard_customizable_key.9.png, -0, res/drawable-xxhdpi-v4/btn_mock_keyboard_customizable_key_selected.9.png, -0, res/drawable-xxhdpi-v4/btn_mock_keyboard_non_customizable_key.9.png, -0, res/drawable-xxhdpi-v4/btn_mock_keyboard_non_customizable_key_uim_key.9.png, -0, res/drawable-xxhdpi-v4/btn_mock_keyboard_non_customizable_key_voice_key.9.png, -0, res/drawable-xxhdpi-v4/emoji_category_tab_selected_klp.9.png, -0, res/drawable-xxhdpi-v4/emoji_category_tab_unselected_holo_dark.9.png, -0, res/drawable-xxhdpi-v4/ic_space_bar_black_24dp.9.png, -0, res/drawable-xxhdpi-v4/keyboard_background_holo.9.png, -0, res/drawable-xxhdpi-v4/keyboard_key_feedback_background_klp.9.png, -0, res/drawable-xxhdpi-v4/keyboard_key_feedback_background_lxx_light.9.png, -0, res/drawable-xxhdpi-v4/keyboard_key_feedback_left_background_klp.9.png, -0, res/drawable-xxhdpi-v4/keyboard_key_feedback_left_more_background_ics.9.png, -0, res/drawable-xxhdpi-v4/keyboard_key_feedback_left_more_background_klp.9.png, -0, res/drawable-xxhdpi-v4/keyboard_key_feedback_more_background_klp.9.png, -0, res/drawable-xxhdpi-v4/keyboard_key_feedback_more_background_lxx_dark.9.png, -0, res/drawable-xxhdpi-v4/keyboard_key_feedback_more_background_lxx_light.9.png, -0, res/drawable-xxhdpi-v4/keyboard_key_feedback_right_background_ics.9.png, -0, res/drawable-xxhdpi-v4/keyboard_key_feedback_right_background_klp.9.png, -0, res/drawable-xxhdpi-v4/keyboard_key_feedback_right_more_background_ics.9.png, -0, res/drawable-xxhdpi-v4/keyboard_key_feedback_right_more_background_klp.9.png, -0, res/drawable-xxhdpi-v4/keyboard_popup_panel_background_klp.9.png, -0, res/drawable-xxhdpi-v4/keyboard_suggest_strip_holo.9.png, -0, res/drawable-xxhdpi-v4/slide_divider.9.png, -0, res/drawable-xxhdpi-v4/sym_keyboard_space_holo_dark.9.png, -0, res/drawable-xxxhdpi-v4/abc_btn_switch_to_on_mtrl_00001.9.png, -0, res/drawable-xxxhdpi-v4/abc_btn_switch_to_on_mtrl_00012.9.png, -0, res/drawable-xxxhdpi-v4/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-xxxhdpi-v4/abc_switch_track_mtrl_alpha.9.png, -0, res/drawable-xxxhdpi-v4/abc_tab_indicator_mtrl_alpha.9.png, -0, res/drawable-xxxhdpi-v4/btn_keyboard_key_active_lxx_dark.9.png, -0, res/drawable-xxxhdpi-v4/btn_keyboard_key_active_lxx_light.9.png, -0, res/drawable-xxxhdpi-v4/btn_keyboard_key_active_pressed_lxx_dark.9.png, -0, res/drawable-xxxhdpi-v4/btn_keyboard_key_active_pressed_lxx_light.9.png, -0, res/drawable-xxxhdpi-v4/btn_keyboard_key_normal_off_lxx_dark.9.png, -0, res/drawable-xxxhdpi-v4/btn_keyboard_key_normal_off_lxx_light.9.png, -0, res/drawable-xxxhdpi-v4/btn_keyboard_key_normal_on_lxx_dark.9.png, -0, res/drawable-xxxhdpi-v4/btn_keyboard_key_normal_on_lxx_light.9.png, -0, res/drawable-xxxhdpi-v4/btn_keyboard_key_popup_selected_lxx_dark.9.png, -0, res/drawable-xxxhdpi-v4/btn_keyboard_key_popup_selected_lxx_light.9.png, -0, res/drawable-xxxhdpi-v4/btn_keyboard_key_pressed_off_lxx_dark.9.png, -0, res/drawable-xxxhdpi-v4/btn_keyboard_key_pressed_off_lxx_light.9.png, -0, res/drawable-xxxhdpi-v4/btn_keyboard_key_pressed_on_lxx_dark.9.png, -0, res/drawable-xxxhdpi-v4/btn_keyboard_key_pressed_on_lxx_light.9.png, -0, res/drawable-xxxhdpi-v4/btn_keyboard_spacebar_normal_lxx_dark.9.png, -0, res/drawable-xxxhdpi-v4/btn_keyboard_spacebar_normal_lxx_light.9.png, -0, res/drawable-xxxhdpi-v4/btn_keyboard_spacebar_pressed_lxx_dark.9.png, -0, res/drawable-xxxhdpi-v4/btn_keyboard_spacebar_pressed_lxx_light.9.png, -0, res/drawable-xxxhdpi-v4/keyboard_background_lxx_dark.9.png, -0, res/drawable-xxxhdpi-v4/keyboard_background_lxx_light.9.png, -0, res/drawable-xxxhdpi-v4/keyboard_key_feedback_background_lxx_dark.9.png, -0, res/drawable-xxxhdpi-v4/keyboard_key_feedback_background_lxx_light.9.png, -0, res/drawable-xxxhdpi-v4/keyboard_key_feedback_more_background_lxx_dark.9.png, -0, res/drawable-xxxhdpi-v4/keyboard_key_feedback_more_background_lxx_light.9.png, -0, res/drawable-xxxhdpi-v4/keyboard_popup_panel_background_lxx_dark.9.png, -0, res/drawable-xxxhdpi-v4/keyboard_popup_panel_background_lxx_light.9.png, -0, res/drawable-xxxhdpi-v4/keyboard_suggest_strip_lxx_dark.9.png, -0, res/drawable-xxxhdpi-v4/keyboard_suggest_strip_lxx_light.9.png, -0, res/drawable-xxxhdpi-v4/slide_divider.9.png, -0, dict, -0, ogg, -0, arsc, -I, C:\Users\user\AppData\Local\apktool\framework\1.apk, -S, PATH\bb.v3.4.0.15917\res, -M, PATH\bb.v3.4.0.15917\AndroidManifest.xml]

Steps to Reproduce

  1. apktool d blackberry.apk
  2. apktool b blackberry -o blackberry_rebuild.apk

Frameworks

from blackberry use as regular app.

APK

https://mobile.softpedia.com/apk/blackberry-keyboard/#download

app: BlackBerry Keyboard 3.4.0.15917

Questions to ask before submission

  1. Have you tried apktool d, apktool b without changing anything -> yes, please see output pasted
  2. Are you using the latest apktool version - yes 2.3.4
iBotPeaches commented 6 years ago

Try doing apktool empty-framework-dir --force, I've seen this error a few times and usually a sign of an out of date framework file.

Do the steps again after running that command btw.

Ibuprophen commented 6 years ago

@iBotPeaches, doesn't this look allot like the 9patch image issue similar/same as a handful of issues like the https://github.com/iBotPeaches/Apktool/issues/1522 one?

Just a thought... :-)

~Ibuprophen

labba commented 6 years ago

i have tried with --force and same results of errors.

labba commented 6 years ago

done now as followed: for decoding: apktool.bat --force d bb.apk

and then done for building: apktool.bat --force-all b

all works now

iBotPeaches commented 3 years ago
➜  1905 apktool d BlackBerry\ Keyboard-4.1904.3.16701.apk 
I: Using Apktool 2.4.2-f545c2-SNAPSHOT on BlackBerry Keyboard-4.1904.3.16701.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: /home/ibotpeaches/.local/share/apktool/framework/1.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...
➜  1905 apktool b BlackBerry\ Keyboard-4.1904.3.16701
I: Using Apktool 2.4.2-f545c2-SNAPSHOT
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether resources has changed...
I: Building resources...
I: Copying libs... (/lib)
I: Copying libs... (/kotlin)
I: Building apk file...
I: Copying unknown files/dir...
I: Built apk...
➜  1905 

Looks resolved. Closing.