[Xiaomi Mi 8 Themes, Apps, and Mods] gulp79:
I've successfully decoded the "MiuiSystemUI.apk" using as Framework:

miui.apk -> 1.apk

framework-res.apk -> 16.apk

framework-ext-res.apk -> 17.apk

but when i recompile the apk, i've got an error over a PNG resource.....

Xmx128m -jar C:/Users/user/.apkstudio/vendor/apktool.jar -f b C:/Xiaomi/MiuiSystemUI -o C:/Xiaomi/MiuiSystemUI.apk
I: Using Apktool 2.3.4
I: Smaling smali folder into classes.dex...
I: Building resources...
W: ERROR: 9-patch image C:\Xiaomi\MiuiSystemUI\res\drawable-xxhdpi\pip_dismiss_scrim.9.png malformed.
W: No marked region found along edge.
W: Found along left edge.
W: ERROR: Failure processing PNG image C:\Xiaomi\MiuiSystemUI\res\drawable-xxhdpi\pip_dismiss_scrim.9.png
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\user\AppData\Local\Temp\brut_util_Jar_7828901978206729738.tmp, p, --forced-package-id, 127, --min-sdk-version, 27, --target-sdk-version, 27, --version-code, 20180628, --version-name, 20180628, --no-version-vectors, -F, C:\Users\user\AppData\Local\Temp\APKTOOL8683781249396011432.tmp, -0, dex, -0, arsc, -0, ttf, -0, otf, -0, xml, -0, png, -0, res/drawable-440dpi/brightness_mirror_bg.9.png, -0, res/drawable-440dpi/brightness_mirror_bg_land.9.png, -0, res/drawable-440dpi/camera_preview.9.png, -0, res/drawable-440dpi/float_incall_notification_bg.9.png, -0, res/drawable-440dpi/float_notification_bg.9.png, -0, res/drawable-440dpi/fs_gesture_bg_finish.9.png, -0, res/drawable-440dpi/fs_gesture_bg_ready.9.png, -0, res/drawable-440dpi/ic_sysbar_bg.9.png, -0, res/drawable-440dpi/ic_sysbar_bg_darkmode.9.png, -0, res/drawable-440dpi/ic_sysbar_bg_darkmode_cts.9.png, -0, res/drawable-440dpi/ic_sysbar_bg_land.9.png, -0, res/drawable-440dpi/ic_sysbar_bg_land_darkmode.9.png, -0, res/drawable-440dpi/ic_sysbar_bg_land_darkmode_cts.9.png, -0, res/drawable-440dpi/optimized_game_heads_up_notification_action_button_bg_n.9.png, -0, res/drawable-440dpi/optimized_game_heads_up_notification_action_button_bg_p.9.png, -0, res/drawable-440dpi/optimized_heads_up_notification_action_button_bg_n.9.png, -0, res/drawable-440dpi/optimized_heads_up_notification_action_button_bg_p.9.png, -0, res/drawable-440dpi/screen_round_corner_bottom.9.png, -0, res/drawable-440dpi/screen_round_corner_bottom_rot180.9.png, -0, res/drawable-440dpi/screen_round_corner_bottom_rot270.9.png, -0, res/drawable-440dpi/screen_round_corner_bottom_rot90.9.png, -0, res/drawable-440dpi/screen_round_corner_notch.9.png, -0, res/drawable-440dpi/screen_round_corner_notch_rot180.9.png, -0, res/drawable-440dpi/screen_round_corner_notch_rot270.9.png, -0, res/drawable-440dpi/screen_round_corner_notch_rot90.9.png, -0, res/drawable-440dpi/screen_round_corner_top.9.png, -0, res/drawable-440dpi/screen_round_corner_top_rot180.9.png, -0, res/drawable-440dpi/screen_round_corner_top_rot270.9.png, -0, res/drawable-440dpi/screen_round_corner_top_rot90.9.png, -0, res/drawable-440dpi-v4/brightness_mirror_bg.9.png, -0, res/drawable-440dpi-v4/brightness_mirror_bg_land.9.png, -0, res/drawable-440dpi-v4/camera_preview.9.png, -0, res/drawable-440dpi-v4/float_incall_notification_bg.9.png, -0, res/drawable-440dpi-v4/float_notification_bg.9.png, -0, res/drawable-440dpi-v4/fs_gesture_bg_finish.9.png, -0, res/drawable-440dpi-v4/fs_gesture_bg_ready.9.png, -0, res/drawable-440dpi-v4/ic_sysbar_bg.9.png, -0, res/drawable-440dpi-v4/ic_sysbar_bg_darkmode.9.png, -0, res/drawable-440dpi-v4/ic_sysbar_bg_darkmode_cts.9.png, -0, res/drawable-440dpi-v4/ic_sysbar_bg_land.9.png, -0, res/drawable-440dpi-v4/ic_sysbar_bg_land_darkmode.9.png, -0, res/drawable-440dpi-v4/ic_sysbar_bg_land_darkmode_cts.9.png, -0, res/drawable-440dpi-v4/optimized_game_heads_up_notification_action_button_bg_n.9.png, -0, res/drawable-440dpi-v4/optimized_game_heads_up_notification_action_button_bg_p.9.png, -0, res/drawable-440dpi-v4/optimized_heads_up_notification_action_button_bg_n.9.png, -0, res/drawable-440dpi-v4/optimized_heads_up_notification_action_button_bg_p.9.png, -0, res/drawable-440dpi-v4/qs_tile_expand_indicator.png.png, -0, res/drawable-440dpi-v4/screen_round_corner_bottom.9.png, -0, res/drawable-440dpi-v4/screen_round_corner_bottom_rot180.9.png, -0, res/drawable-440dpi-v4/screen_round_corner_bottom_rot270.9.png, -0, res/drawable-440dpi-v4/screen_round_corner_bottom_rot90.9.png, -0, res/drawable-440dpi-v4/screen_round_corner_notch.9.png, -0, res/drawable-440dpi-v4/screen_round_corner_notch_rot180.9.png, -0, res/drawable-440dpi-v4/screen_round_corner_notch_rot270.9.png, -0, res/drawable-440dpi-v4/screen_round_corner_notch_rot90.9.png, -0, res/drawable-440dpi-v4/screen_round_corner_top.9.png, -0, res/drawable-440dpi-v4/screen_round_corner_top_rot180.9.png, -0, res/drawable-440dpi-v4/screen_round_corner_top_rot270.9.png, -0, res/drawable-440dpi-v4/screen_round_corner_top_rot90.9.png, -0, res/drawable-land-440dpi/float_incall_notification_bg.9.png, -0, res/drawable-land-440dpi/float_notification_bg.9.png, -0, res/drawable-land-440dpi-v4/float_incall_notification_bg.9.png, -0, res/drawable-land-440dpi-v4/float_notification_bg.9.png, -0, res/drawable-land-xxhdpi/float_incall_notification_bg.9.png, -0, res/drawable-land-xxhdpi/float_notification_bg.9.png, -0, res/drawable-land-xxhdpi-v4/float_incall_notification_bg.9.png, -0, res/drawable-land-xxhdpi-v4/float_notification_bg.9.png, -0, res/drawable-ldrtl-xxhdpi/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-ldrtl-xxhdpi-v4/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-xxhdpi/abc_ab_share_pack_mtrl_alpha.9.png, -0, res/drawable-xxhdpi/abc_btn_switch_to_on_mtrl_00001.9.png, -0, res/drawable-xxhdpi/abc_btn_switch_to_on_mtrl_00012.9.png, -0, res/drawable-xxhdpi/abc_cab_background_top_mtrl_alpha.9.png, -0, res/drawable-xxhdpi/abc_list_divider_mtrl_alpha.9.png, -0, res/drawable-xxhdpi/abc_list_focused_holo.9.png, -0, res/drawable-xxhdpi/abc_list_longpressed_holo.9.png, -0, res/drawable-xxhdpi/abc_list_pressed_holo_dark.9.png, -0, res/drawable-xxhdpi/abc_list_pressed_holo_light.9.png, -0, res/drawable-xxhdpi/abc_list_selector_disabled_holo_dark.9.png, -0, res/drawable-xxhdpi/abc_list_selector_disabled_holo_light.9.png, -0, res/drawable-xxhdpi/abc_menu_hardkey_panel_mtrl_mult.9.png, -0, res/drawable-xxhdpi/abc_popup_background_mtrl_mult.9.png, -0, res/drawable-xxhdpi/abc_scrubber_primary_mtrl_alpha.9.png, -0, res/drawable-xxhdpi/abc_scrubber_track_mtrl_alpha.9.png, -0, res/drawable-xxhdpi/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-xxhdpi/abc_switch_track_mtrl_alpha.9.png, -0, res/drawable-xxhdpi/abc_tab_indicator_mtrl_alpha.9.png, -0, res/drawable-xxhdpi/abc_textfield_activated_mtrl_alpha.9.png, -0, res/drawable-xxhdpi/abc_textfield_default_mtrl_alpha.9.png, -0, res/drawable-xxhdpi/abc_textfield_search_activated_mtrl_alpha.9.png, -0, res/drawable-xxhdpi/abc_textfield_search_default_mtrl_alpha.9.png, -0, res/drawable-xxhdpi/brightness_mirror_bg.9.png, -0, res/drawable-xxhdpi/brightness_mirror_bg_land.9.png, -0, res/drawable-xxhdpi/bugreport_btn_bg_normal.9.png, -0, res/drawable-xxhdpi/bugreport_btn_bg_pressed.9.png, -0, res/drawable-xxhdpi/camera_preview.9.png, -0, res/drawable-xxhdpi/dialog_bg_light.9.png, -0, res/drawable-xxhdpi/exit_multi_window_bg_n.9.png, -0, res/drawable-xxhdpi/exit_multi_window_bg_p.9.png, -0, res/drawable-xxhdpi/float_incall_notification_bg.9.png, -0, res/drawable-xxhdpi/float_notification_bg.9.png, -0, res/drawable-xxhdpi/fs_gesture_bg_finish.9.png, -0, res/drawable-xxhdpi/fs_gesture_bg_ready.9.png, -0, res/drawable-xxhdpi/ic_notification_overlay.9.png, -0, res/drawable-xxhdpi/ic_sysbar_bg.9.png, -0, res/drawable-xxhdpi/ic_sysbar_bg_darkmode.9.png, -0, res/drawable-xxhdpi/ic_sysbar_bg_darkmode_cts.9.png, -0, res/drawable-xxhdpi/ic_sysbar_bg_land.9.png, -0, res/drawable-xxhdpi/ic_sysbar_bg_land_darkmode.9.png, -0, res/drawable-xxhdpi/ic_sysbar_bg_land_darkmode_cts.9.png, -0, res/drawable-xxhdpi/keyguard_charging_info_bg.9.png, -0, res/drawable-xxhdpi/keyguard_charging_info_first_list_bg.9.png, -0, res/drawable-xxhdpi/keyguard_charging_info_last_list_bg.9.png, -0, res/drawable-xxhdpi/keyguard_charging_info_middle_list_first_item_bg.9.png, -0, res/drawable-xxhdpi/keyguard_charging_info_middle_list_second_item_bg.9.png, -0, res/drawable-xxhdpi/keyguard_charging_info_middle_list_third_item_bg.9.png, -0, res/drawable-xxhdpi/keyguard_left_view_list_n.9.png, -0, res/drawable-xxhdpi/keyguard_left_view_list_p.9.png, -0, jpg, -0, res/drawable-xxhdpi/miui_keyguard_forget_password_left_normal.9.png, -0, res/drawable-xxhdpi/miui_keyguard_forget_password_left_pressed.9.png, -0, res/drawable-xxhdpi/miui_keyguard_forget_password_right_normal.9.png, -0, res/drawable-xxhdpi/miui_keyguard_forget_password_right_pressed.9.png, -0, res/drawable-xxhdpi/miui_keyguard_forget_password_single_normal.9.png, -0, res/drawable-xxhdpi/miui_keyguard_forget_password_single_pressed.9.png, -0, res/drawable-xxhdpi/miui_keyguard_input_bg.9.png, -0, res/drawable-xxhdpi/miui_keyguard_notification_item_bg_n.9.png, -0, res/drawable-xxhdpi/miui_keyguard_notification_item_bg_p.9.png, -0, res/drawable-xxhdpi/miui_password_unlock_screen_input_field_bg_error.9.png, -0, res/drawable-xxhdpi/nav_background.9.png, -0, res/drawable-xxhdpi/notch_state_bg.9.png, -0, res/drawable-xxhdpi/optimized_game_heads_up_notification_action_button_bg_n.9.png, -0, res/drawable-xxhdpi/optimized_game_heads_up_notification_action_button_bg_p.9.png, -0, res/drawable-xxhdpi/optimized_heads_up_notification_action_button_bg_n.9.png, -0, res/drawable-xxhdpi/optimized_heads_up_notification_action_button_bg_p.9.png, -0, res/drawable-xxhdpi/pip_dismiss_scrim.9.png, -0, res/drawable-xxhdpi/recent_task_separator.9.png, -0, res/drawable-xxhdpi/recents_lower_gradient.9.png, -0, res/drawable-xxhdpi/recents_status_gradient.9.png, -0, res/drawable-xxhdpi/screen_round_corner_bottom.9.png, -0, res/drawable-xxhdpi/screen_round_corner_bottom_rot180.9.png, -0, res/drawable-xxhdpi/screen_round_corner_bottom_rot270.9.png, -0, res/drawable-xxhdpi/screen_round_corner_bottom_rot90.9.png, -0, res/drawable-xxhdpi/screen_round_corner_top.9.png, -0, res/drawable-xxhdpi/screen_round_corner_top_rot180.9.png, -0, res/drawable-xxhdpi/screen_round_corner_top_rot270.9.png, -0, res/drawable-xxhdpi/screen_round_corner_top_rot90.9.png, -0, res/drawable-xxhdpi/screen_view_slide_bar.9.png, -0, res/drawable-xxhdpi/screen_view_slide_bar_bg.9.png, -0, res/drawable-xxhdpi/screenshot_btn_bg_normal.9.png, -0, res/drawable-xxhdpi/screenshot_btn_bg_pressed.9.png, -0, res/drawable-xxhdpi/screenshot_panel.9.png, -0, res/drawable-xxhdpi/screenshot_thumbnail_shadow.9.png, -0, res/drawable-xxhdpi/search_bg_transparent.9.png, -0, res/drawable-xxhdpi/sim_unlock_confirm_pinnum_disable.9.png, -0, res/drawable-xxhdpi/sim_unlock_confirm_pinnum_normal.9.png, -0, res/drawable-xxhdpi/sim_unlock_confirm_pinnum_pressed.9.png, -0, res/drawable-xxhdpi/status_background.9.png, -0, res/drawable-xxhdpi/status_bar_yellow_bar_bg_n.9.png, -0, res/drawable-xxhdpi/status_bar_yellow_bar_bg_p.9.png, -0, res/drawable-xxhdpi/wallpaper_des_more_bg_n.9.png, -0, res/drawable-xxhdpi/wallpaper_des_more_bg_p.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/brightness_mirror_bg.9.png, -0, res/drawable-xxhdpi-v4/brightness_mirror_bg_land.9.png, -0, res/drawable-xxhdpi-v4/bugreport_btn_bg_normal.9.png, -0, res/drawable-xxhdpi-v4/bugreport_btn_bg_pressed.9.png, -0, res/drawable-xxhdpi-v4/camera_preview.9.png, -0, res/drawable-xxhdpi-v4/dialog_bg_light.9.png, -0, res/drawable-xxhdpi-v4/exit_multi_window_bg_n.9.png, -0, res/drawable-xxhdpi-v4/exit_multi_window_bg_p.9.png, -0, res/drawable-xxhdpi-v4/float_incall_notification_bg.9.png, -0, res/drawable-xxhdpi-v4/float_notification_bg.9.png, -0, res/drawable-xxhdpi-v4/fs_gesture_bg_finish.9.png, -0, res/drawable-xxhdpi-v4/fs_gesture_bg_ready.9.png, -0, res/drawable-xxhdpi-v4/ic_notification_overlay.9.png, -0, res/drawable-xxhdpi-v4/ic_sysbar_bg.9.png, -0, res/drawable-xxhdpi-v4/ic_sysbar_bg_darkmode.9.png, -0, res/drawable-xxhdpi-v4/ic_sysbar_bg_darkmode_cts.9.png, -0, res/drawable-xxhdpi-v4/ic_sysbar_bg_land.9.png, -0, res/drawable-xxhdpi-v4/ic_sysbar_bg_land_darkmode.9.png, -0, res/drawable-xxhdpi-v4/ic_sysbar_bg_land_darkmode_cts.9.png, -0, res/drawable-xxhdpi-v4/keyguard_charging_info_bg.9.png, -0, res/drawable-xxhdpi-v4/keyguard_charging_info_first_list_bg.9.png, -0, res/drawable-xxhdpi-v4/keyguard_charging_info_last_list_bg.9.png, -0, res/drawable-xxhdpi-v4/keyguard_charging_info_middle_list_first_item_bg.9.png, -0, res/drawable-xxhdpi-v4/keyguard_charging_info_middle_list_second_item_bg.9.png, -0, res/drawable-xxhdpi-v4/keyguard_charging_info_middle_list_third_item_bg.9.png, -0, res/drawable-xxhdpi-v4/keyguard_left_view_list_n.9.png, -0, res/drawable-xxhdpi-v4/keyguard_left_view_list_p.9.png, -0, res/drawable-xxhdpi-v4/miui_keyguard_forget_password_left_normal.9.png, -0, res/drawable-xxhdpi-v4/miui_keyguard_forget_password_left_pressed.9.png, -0, res/drawable-xxhdpi-v4/miui_keyguard_forget_password_right_normal.9.png, -0, res/drawable-xxhdpi-v4/miui_keyguard_forget_password_right_pressed.9.png, -0, res/drawable-xxhdpi-v4/miui_keyguard_forget_password_single_normal.9.png, -0, res/drawable-xxhdpi-v4/miui_keyguard_forget_password_single_pressed.9.png, -0, res/drawable-xxhdpi-v4/miui_keyguard_input_bg.9.png, -0, res/drawable-xxhdpi-v4/miui_keyguard_notification_item_bg_n.9.png, -0, res/drawable-xxhdpi-v4/miui_keyguard_notification_item_bg_p.9.png, -0, res/drawable-xxhdpi-v4/miui_password_unlock_screen_input_field_bg_error.9.png, -0, res/drawable-xxhdpi-v4/nav_background.9.png, -0, res/drawable-xxhdpi-v4/notch_state_bg.9.png, -0, res/drawable-xxhdpi-v4/optimized_game_heads_up_notification_action_button_bg_n.9.png, -0, res/drawable-xxhdpi-v4/optimized_game_heads_up_notification_action_button_bg_p.9.png, -0, res/drawable-xxhdpi-v4/optimized_heads_up_notification_action_button_bg_n.9.png, -0, res/drawable-xxhdpi-v4/optimized_heads_up_notification_action_button_bg_p.9.png, -0, res/drawable-xxhdpi-v4/pip_dismiss_scrim.9.png, -0, res/drawable-xxhdpi-v4/recent_task_separator.9.png, -0, res/drawable-xxhdpi-v4/recents_lower_gradient.9.png, -0, res/drawable-xxhdpi-v4/recents_status_gradient.9.png, -0, res/drawable-xxhdpi-v4/screen_round_corner_bottom.9.png, -0, res/drawable-xxhdpi-v4/screen_round_corner_bottom_rot180.9.png, -0, res/drawable-xxhdpi-v4/screen_round_corner_bottom_rot270.9.png, -0, res/drawable-xxhdpi-v4/screen_round_corner_bottom_rot90.9.png, -0, res/drawable-xxhdpi-v4/screen_round_corner_top.9.png, -0, res/drawable-xxhdpi-v4/screen_round_corner_top_rot180.9.png, -0, res/drawable-xxhdpi-v4/screen_round_corner_top_rot270.9.png, -0, res/drawable-xxhdpi-v4/screen_round_corner_top_rot90.9.png, -0, res/drawable-xxhdpi-v4/screen_view_slide_bar.9.png, -0, res/drawable-xxhdpi-v4/screen_view_slide_bar_bg.9.png, -0, res/drawable-xxhdpi-v4/screenshot_btn_bg_normal.9.png, -0, res/drawable-xxhdpi-v4/screenshot_btn_bg_pressed.9.png, -0, res/drawable-xxhdpi-v4/screenshot_panel.9.png, -0, res/drawable-xxhdpi-v4/screenshot_thumbnail_shadow.9.png, -0, res/drawable-xxhdpi-v4/search_bg_transparent.9.png, -0, res/drawable-xxhdpi-v4/sim_unlock_confirm_pinnum_disable.9.png, -0, res/drawable-xxhdpi-v4/sim_unlock_confirm_pinnum_normal.9.png, -0, res/drawable-xxhdpi-v4/sim_unlock_confirm_pinnum_pressed.9.png, -0, res/drawable-xxhdpi-v4/status_background.9.png, -0, res/drawable-xxhdpi-v4/status_bar_yellow_bar_bg_n.9.png, -0, res/drawable-xxhdpi-v4/status_bar_yellow_bar_bg_p.9.png, -0, res/drawable-xxhdpi-v4/wallpaper_des_more_bg_n.9.png, -0, res/drawable-xxhdpi-v4/wallpaper_des_more_bg_p.9.png, -0, res/raw/panorama_mgb_liveness, -0, res/raw/panorama_mgb_verify, -0, maml, -0, ivt, -0, mp4, -0, arsc, -I, C:\Users\user\AppData\Local\Temp\1.apk, -I, C:\Users\user\AppData\Local\Temp\16.apk, -I, C:\Users\user\AppData\Local\Temp\17.apk, -S, C:\Xiaomi\MiuiSystemUI\res, -M, C:\Xiaomi\MiuiSystemUI\AndroidManifest.xml]
Process exited with code 1