[Android Software Development] koko115:
I have this problem on recompile systemui from galaxy s8 nougat. I use Apktool X for android and apktool.jar 2.2.4 from this thread. On other apk like stock messaging app or framework-res all is ok. Always i install framework-res befoure decompile/recompile. How fix this ?

WARNING: linker: Warning: unable to normalize ""
W: res/drawable/ACube.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/ACube.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/AlienTwerking.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/AlienTwerking.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/BMLogoBlack.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/BMLogoBlack.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/BMLogoBlack.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/BMLogoBlack.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/BMLogoBlue.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/BMLogoBlue.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/BMLogoBlue.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/BMLogoBlue.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/BMLogoYellow.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/BMLogoYellow.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/BMLogoYellow.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/BMLogoYellow.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/BadKoolAid.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/BadKoolAid.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/BadKoolAid.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/BadSkeleton.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/BadSkeleton.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/BattleStance.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/BattleStance.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/BicLighter.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/BicLighter.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/Bird.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/BoobShoots.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/BoobShoots.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/BrianPeanutButterJelyTime.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/BrianPeanutButterJelyTime.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/BrianPeanutButterJelyTime.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/BrianPeanutButterJelyTime.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/BrianPeanutButterJelyTime.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/ButtShake.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/ButtShake.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/Butterfly.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/Cats.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/ChesterCheto.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/ChesterCheto.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/CoolAPe.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/CoolAPe.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/CoolAPe.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/DancingElsa.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/DancingElsa.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/DoubleMeaning.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/DoubleMeaning.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/Eyeball.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/MM.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/MM.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/PifWithBacon.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/PifWithBacon.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/PifWithBacon.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/PleaseNo.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/PleaseNo.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/RotatingSkeletonOnChair.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/RotatingSkeletonOnChair.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/RotatingSkeletonOnChair.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/RotatingSkeletonOnChair.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/SkeletonCuttingFood.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/SkeletonCuttingFood.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/SkeletonCuttingFood.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/SkeletonNoIceCream.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/SkeletonNoIceCream.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/SkeletonNoIceCream.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/SkeletonNoIceCream.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/SkeletonWave.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/SkeletonWave.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/SkeltonEatingChetos.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/SkeltonEatingChetos.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/SkeltonEatingChetos.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/Stitch.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/StitchBraHead.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/StitchBraHead.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/StitchBraHead.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/StitchDrop.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/StitchDrop.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/WaitingSkeleton.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/WaitingSkeleton.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/WalkingDeadBirth.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/WalkingDeadBirth.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/WalkingDeadBirth.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/WalkingWolf.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/WalkingWolf.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/WavingFroven.gif: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/WavingFroven.gif: Invalid file name: must contain only [a-z0-9_.]
W: warning: string 'back' has no default translation.
W: warning: string 'battery_health_interruption_by_limit_high_temperature_text' has no default translation.
W: warning: string 'battery_health_interruption_by_too_high_temperature_text' has no default translation.
W: warning: string 'battery_health_interruption_by_too_low_temperature_text' has no default translation.
W: warning: string 'clear_cover_day_month_no_year' has no default translation.
W: warning: string 'clear_cover_month_day_no_year' has no default translation.
W: warning: string 'clear_cover_wday_day' has no default translation.
W: warning: string 'clearcover_calls_and_messages' has no default translation.
W: warning: string 'clearcover_no_missed_event' has no default translation.
W: warning: string 'close' has no default translation.
W: warning: string 'full_wday_day_month_no_year' has no default translation.
W: warning: string 'full_wday_month_day_no_year' has no default translation.
W: warning: string 'kg_face_or_iris_swipe_active_instructions' has no default translation.
W: warning: string 'kg_face_or_iris_swipe_unlock_instructions' has no default translation.
W: warning: string 'kg_infinity_wallpaper_option_check_icon_label' has no default translation.
W: warning: string 'kg_infinity_wallpaper_option_description' has no default translation.
W: warning: string 'mini_cover_day_month_no_year' has no default translation.
W: warning: string 'mini_cover_month_day_no_year' has no default translation.
W: warning: string 'mini_view_cover_settings_description' has no default translation.
W: warning: string 'popup_do_not_show_gain' has no default translation.
W: warning: string 'quick_settings_location_detail_device_only' has no default translation.
W: warning: string 's_view_cover_emergency_battery_not_measured' has no default translation.
W: warning: string 's_view_cover_emergency_timer_d' has no default translation.
W: warning: string 's_view_cover_emergency_timer_h' has no default translation.
W: warning: string 's_view_cover_emergency_timer_m' has no default translation.
W: warning: string 's_view_cover_missed_event_button_accessibiliy' has no default translation.
W: warning: string 's_view_cover_open_cover_popup' has no default translation.
W: warning: string 's_view_cover_set_wallpaper' has no default translation.
W: warning: string 's_view_cover_settings_button_accessibiliy' has no default translation.
W: warning: string 's_view_cover_shortcuts_camera_text' has no default translation.
W: warning: string 's_view_cover_shortcuts_favorite_text' has no default translation.
W: warning: string 's_view_cover_shortcuts_heart_text' has no default translation.
W: warning: string 's_view_cover_shortcuts_light_text' has no default translation.
W: warning: string 's_view_cover_shortcuts_quick_memo_text' has no default translation.
W: warning: string 's_view_cover_shortcuts_settings_text' has no default translation.
W: warning: string 's_view_cover_shortcuts_title_text' has no default translation.
W: warning: string 's_view_cover_transport_next_description' has no default translation.
W: warning: string 's_view_cover_transport_pause_description' has no default translation.
W: warning: string 's_view_cover_transport_play_description' has no default translation.
W: warning: string 's_view_cover_transport_playlist_description' has no default translation.
W: warning: string 's_view_cover_transport_prev_description' has no default translation.
W: warning: string 's_view_cover_transport_stop_description' has no default translation.
W: warning: string 's_view_cover_transport_volume_description' has no default translation.
W: warning: string 's_view_cover_warn_popup_stylized_clock' has no default translation.
W: warning: string 's_view_info_cover' has no default translation.
W: warning: string 's_view_stylized_clock_theme' has no default translation.
W: warning: string 's_view_wallpaper_selected_tts' has no default translation.
W: warning: string 's_view_window_theme' has no default translation.
W: warning: string 'screenshot_failed_to_capture_text' has no default translation.
W: warning: string 'screenshot_failed_to_save_text' has no default translation.
W: warning: string 'screenshot_failed_to_save_unknown_text' has no default translation.
W: warning: string 'select_background_color' has no default translation.
W: warning: string 'select_background_color_title' has no default translation.
W: warning: string 'set' has no default translation.
W: warning: string 'sview_cover_dual_wday_day_month_no_year' has no default translation.
W: warning: string 'sview_cover_dual_wday_month_day_no_year' has no default translation.
W: warning: string 'sview_cover_wday_day_month_no_year' has no default translation.
W: warning: string 'sview_cover_wday_month_day_no_year' has no default translation.
W: warning: string 'volumepanel_notification' has no default translation.
W: warning: string 'zzz_tts_temp_celsius' has no default translation.
W: warning: string 'zzz_tts_temp_fahrenheit' has no default translation.
W: warning: string 'zzz_tts_temperature' has no default translation.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/data/data/per.pqy.apktool/apktool/openjdk/bin/aapt6.0, p, --min-sdk-version, 24, --target-sdk-version, 24, --version-code, 20170630, --version-name, 7.0, --no-version-vectors, -F, /data/data/per.pqy.apktool/APKTOOL152465136289354560.tmp, -0, arsc, -0, qmg, -0, svg, -0, glsl, -0, arsc, -I, /data/data/per.pqy.apktool/1.apk, -S, /storage/emulated/0/ApkTool/SystemUI_src/res, -M, /storage/emulated/0/ApkTool/SystemUI_src/AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:496)
at brut.androlib.Androlib.buildResources(Androlib.java:430)
at brut.androlib.Androlib.build(Androlib.java:329)
at brut.androlib.Androlib.build(Androlib.java:267)
at brut.apktool.Main.cmdBuild(Main.java:230)
at brut.apktool.Main.main(Main.java:83)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/data/data/per.pqy.apktool/apktool/openjdk/bin/aapt6.0, p, --min-sdk-version, 24, --target-sdk-version, 24, --version-code, 20170630, --version-name, 7.0, --no-version-vectors, -F, /data/data/per.pqy.apktool/APKTOOL152465136289354560.tmp, -0, arsc, -0, qmg, -0, svg, -0, glsl, -0, arsc, -I, /data/data/per.pqy.apktool/1.apk, -S, /storage/emulated/0/ApkTool/SystemUI_src/res, -M, /storage/emulated/0/ApkTool/SystemUI_src/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:441)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:482)
... 5 more
Caused by: brut.common.BrutException: could not exec (exit code = 1): [/data/data/per.pqy.apktool/apktool/openjdk/bin/aapt6.0, p, --min-sdk-version, 24, --target-sdk-version, 24, --version-code, 20170630, --version-name, 7.0, --no-version-vectors, -F, /data/data/per.pqy.apktool/APKTOOL152465136289354560.tmp, -0, arsc, -0, qmg, -0, svg, -0, glsl, -0, arsc, -I, /data/data/per.pqy.apktool/1.apk, -S, /storage/emulated/0/ApkTool/SystemUI_src/res, -M, /storage/emulated/0/ApkTool/SystemUI_src/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:95)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:435)
... 6 more
I: Using Apktool 2.2.4
I: Smaling smali folder into classes.dex...
I: Building resources...