[Guide]4.2.2 Statusbar For Stock roms [COOL][GB]V3

safariking

Senior Member
Jan 4, 2012
4,820
4,936
263
Lelystad
everything is given in tutorial... but if you need I can help you... tell me what device you are using and problems, errors you get while modding your files...
I have a Galaxy Player 3.6 (YP-GS1)

Error here:

Code:
I: Smaling...
I: Building resources...
res\drawable-mdpi\quickpanel_plmn_background.png:0: error: Resource entry quickpanel_plmn_background is already defined.
res\drawable-mdpi\quickpanel_plmn_background.9.png:0: Originally defined here.
res\drawable-mdpi\status_bar_background.png:0: error: Resource entry status_bar_background is already defined.
res\drawable-mdpi\status_bar_background.9.png:0: Originally defined here.
C:\Users\Ryan-Pc\APK GUI\InProgress\SystemUI.apk\res\layout\jb_headerview.xml:5: error: Error: No resource found that matches the given name (at 'contentDescription' with value '@string/accessibility_settings_button').
C:\Users\Ryan-Pc\APK GUI\InProgress\SystemUI.apk\res\layout\quickpanel_quick_settings_space.xml:51: error: Error: No resource found that matches the given name (at 'id' with value '@id/quickpanel_data_btn_text').
C:\Users\Ryan-Pc\APK GUI\InProgress\SystemUI.apk\res\layout\quickpanel_quick_settings_space.xml:51: error: Error: No resource found that matches the given name (at 'text' with value '@string/quickpanel_dc_text').
C:\Users\Ryan-Pc\APK GUI\InProgress\SystemUI.apk\res\layout\quickpanel_quick_settings_space.xml:52: error: Error: No resource found that matches the given name (at 'id' with value '@id/quickpanel_data_btn_icon').
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, C:\Users\Ryan-Pc\AppData\Local\Temp\APKTOOL44650780645015884.tmp, -I, C:\Users\Ryan-Pc\apktool\framework\1.apk, -S, C:\Users\Ryan-Pc\APK GUI\InProgress\SystemUI.apk\res, -M, C:\Users\Ryan-Pc\APK GUI\InProgress\SystemUI.apk\AndroidManifest.xml]
	at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:255)
	at brut.androlib.Androlib.buildResourcesFull(Androlib.java:324)
	at brut.androlib.Androlib.buildResources(Androlib.java:269)
	at brut.androlib.Androlib.build(Androlib.java:192)
	at brut.androlib.Androlib.build(Androlib.java:174)
	at brut.apktool.Main.cmdBuild(Main.java:188)
	at brut.apktool.Main.main(Main.java:70)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, C:\Users\Ryan-Pc\AppData\Local\Temp\APKTOOL44650780645015884.tmp, -I, C:\Users\Ryan-Pc\apktool\framework\1.apk, -S, C:\Users\Ryan-Pc\APK GUI\InProgress\SystemUI.apk\res, -M, C:\Users\Ryan-Pc\APK GUI\InProgress\SystemUI.apk\AndroidManifest.xml]
	at brut.util.OS.exec(OS.java:83)
	at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:253)
	... 6 more
 

NimeniAltu

Senior Member
Mar 9, 2012
635
473
0
Oradea
I have a Galaxy Player 3.6 (YP-GS1)

Error here:

Code:
I: Smaling...
I: Building resources...
res\drawable-mdpi\quickpanel_plmn_background.png:0: error: Resource entry quickpanel_plmn_background is already defined.
res\drawable-mdpi\quickpanel_plmn_background.9.png:0: Originally defined here.
res\drawable-mdpi\status_bar_background.png:0: error: Resource entry status_bar_background is already defined.
res\drawable-mdpi\status_bar_background.9.png:0: Originally defined here.
C:\Users\Ryan-Pc\APK GUI\InProgress\SystemUI.apk\res\layout\jb_headerview.xml:5: error: Error: No resource found that matches the given name (at 'contentDescription' with value '@string/accessibility_settings_button').
C:\Users\Ryan-Pc\APK GUI\InProgress\SystemUI.apk\res\layout\quickpanel_quick_settings_space.xml:51: error: Error: No resource found that matches the given name (at 'id' with value '@id/quickpanel_data_btn_text').
C:\Users\Ryan-Pc\APK GUI\InProgress\SystemUI.apk\res\layout\quickpanel_quick_settings_space.xml:51: error: Error: No resource found that matches the given name (at 'text' with value '@string/quickpanel_dc_text').
C:\Users\Ryan-Pc\APK GUI\InProgress\SystemUI.apk\res\layout\quickpanel_quick_settings_space.xml:52: error: Error: No resource found that matches the given name (at 'id' with value '@id/quickpanel_data_btn_icon').
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, C:\Users\Ryan-Pc\AppData\Local\Temp\APKTOOL44650780645015884.tmp, -I, C:\Users\Ryan-Pc\apktool\framework\1.apk, -S, C:\Users\Ryan-Pc\APK GUI\InProgress\SystemUI.apk\res, -M, C:\Users\Ryan-Pc\APK GUI\InProgress\SystemUI.apk\AndroidManifest.xml]
	at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:255)
	at brut.androlib.Androlib.buildResourcesFull(Androlib.java:324)
	at brut.androlib.Androlib.buildResources(Androlib.java:269)
	at brut.androlib.Androlib.build(Androlib.java:192)
	at brut.androlib.Androlib.build(Androlib.java:174)
	at brut.apktool.Main.cmdBuild(Main.java:188)
	at brut.apktool.Main.main(Main.java:70)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, C:\Users\Ryan-Pc\AppData\Local\Temp\APKTOOL44650780645015884.tmp, -I, C:\Users\Ryan-Pc\apktool\framework\1.apk, -S, C:\Users\Ryan-Pc\APK GUI\InProgress\SystemUI.apk\res, -M, C:\Users\Ryan-Pc\APK GUI\InProgress\SystemUI.apk\AndroidManifest.xml]
	at brut.util.OS.exec(OS.java:83)
	at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:253)
	... 6 more
Remove those pngs quickpanel_plmn_background.png
 

SpaceCaker

Senior Member
Mar 26, 2011
13,545
10,901
0
netherlands
www.youtube.com
I have a Galaxy Player 3.6 (YP-GS1)

Error here:

Code:
I: Smaling...
I: Building resources...
res\drawable-mdpi\quickpanel_plmn_background.png:0: error: Resource entry quickpanel_plmn_background is already defined.
res\drawable-mdpi\quickpanel_plmn_background.9.png:0: Originally defined here.
res\drawable-mdpi\status_bar_background.png:0: error: Resource entry status_bar_background is already defined.
res\drawable-mdpi\status_bar_background.9.png:0: Originally defined here.
C:\Users\Ryan-Pc\APK GUI\InProgress\SystemUI.apk\res\layout\jb_headerview.xml:5: error: Error: No resource found that matches the given name (at 'contentDescription' with value '@string/accessibility_settings_button').
C:\Users\Ryan-Pc\APK GUI\InProgress\SystemUI.apk\res\layout\quickpanel_quick_settings_space.xml:51: error: Error: No resource found that matches the given name (at 'id' with value '@id/quickpanel_data_btn_text').
C:\Users\Ryan-Pc\APK GUI\InProgress\SystemUI.apk\res\layout\quickpanel_quick_settings_space.xml:51: error: Error: No resource found that matches the given name (at 'text' with value '@string/quickpanel_dc_text').
C:\Users\Ryan-Pc\APK GUI\InProgress\SystemUI.apk\res\layout\quickpanel_quick_settings_space.xml:52: error: Error: No resource found that matches the given name (at 'id' with value '@id/quickpanel_data_btn_icon').
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, C:\Users\Ryan-Pc\AppData\Local\Temp\APKTOOL44650780645015884.tmp, -I, C:\Users\Ryan-Pc\apktool\framework\1.apk, -S, C:\Users\Ryan-Pc\APK GUI\InProgress\SystemUI.apk\res, -M, C:\Users\Ryan-Pc\APK GUI\InProgress\SystemUI.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:255)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:324)
at brut.androlib.Androlib.buildResources(Androlib.java:269)
at brut.androlib.Androlib.build(Androlib.java:192)
at brut.androlib.Androlib.build(Androlib.java:174)
at brut.apktool.Main.cmdBuild(Main.java:188)
at brut.apktool.Main.main(Main.java:70)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, C:\Users\Ryan-Pc\AppData\Local\Temp\APKTOOL44650780645015884.tmp, -I, C:\Users\Ryan-Pc\apktool\framework\1.apk, -S, C:\Users\Ryan-Pc\APK GUI\InProgress\SystemUI.apk\res, -M, C:\Users\Ryan-Pc\APK GUI\InProgress\SystemUI.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:253)
... 6 more
wait i think u had uploaded ur systemui a day ago

if the galaxy mega has no Data button in statusbar then this one doesnt work and needs to be replaced

Sent from my S500 using xda app-developers app
 

equilibriojh

Senior Member
Dec 3, 2012
187
155
0
finish?

finally I can recompile apk, and everything is ok, but when into galaxy it has a FC, aaaaaa, here is the apk made with your guide, i don't know whats the problem why the fc
 

Attachments

safariking

Senior Member
Jan 4, 2012
4,820
4,936
263
Lelystad
Code:
I: Smaling...
I: Building resources...
C:\Users\Ryan-Pc\APK GUI\InProgress\SystemUI.apk\res\layout\jb_headerview.xml:5: error: Error: No resource found that matches the given name (at 'contentDescription' with value '@string/accessibility_settings_button').
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, C:\Users\Ryan-Pc\AppData\Local\Temp\APKTOOL8357457479364563977.tmp, -I, C:\Users\Ryan-Pc\apktool\framework\1.apk, -S, C:\Users\Ryan-Pc\APK GUI\InProgress\SystemUI.apk\res, -M, C:\Users\Ryan-Pc\APK GUI\InProgress\SystemUI.apk\AndroidManifest.xml]
	at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:255)
	at brut.androlib.Androlib.buildResourcesFull(Androlib.java:324)
	at brut.androlib.Androlib.buildResources(Androlib.java:269)
	at brut.androlib.Androlib.build(Androlib.java:192)
	at brut.androlib.Androlib.build(Androlib.java:174)
	at brut.apktool.Main.cmdBuild(Main.java:188)
	at brut.apktool.Main.main(Main.java:70)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, C:\Users\Ryan-Pc\AppData\Local\Temp\APKTOOL8357457479364563977.tmp, -I, C:\Users\Ryan-Pc\apktool\framework\1.apk, -S, C:\Users\Ryan-Pc\APK GUI\InProgress\SystemUI.apk\res, -M, C:\Users\Ryan-Pc\APK GUI\InProgress\SystemUI.apk\AndroidManifest.xml]
	at brut.util.OS.exec(OS.java:83)
	at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:253)
	... 6 more
I looked at the strings.xml

<string name="accessibility_settings_button">System settings.</string>

This line is in there
 
Last edited:

lokeshsaini94

Senior Member
May 1, 2012
1,777
3,971
0
Behind you!!!
Code:
I: Smaling...
I: Building resources...
C:\Users\Ryan-Pc\APK GUI\InProgress\SystemUI.apk\res\layout\jb_headerview.xml:5: error: Error: No resource found that matches the given name (at 'contentDescription' with value '@string/accessibility_settings_button').
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, C:\Users\Ryan-Pc\AppData\Local\Temp\APKTOOL8357457479364563977.tmp, -I, C:\Users\Ryan-Pc\apktool\framework\1.apk, -S, C:\Users\Ryan-Pc\APK GUI\InProgress\SystemUI.apk\res, -M, C:\Users\Ryan-Pc\APK GUI\InProgress\SystemUI.apk\AndroidManifest.xml]
	at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:255)
	at brut.androlib.Androlib.buildResourcesFull(Androlib.java:324)
	at brut.androlib.Androlib.buildResources(Androlib.java:269)
	at brut.androlib.Androlib.build(Androlib.java:192)
	at brut.androlib.Androlib.build(Androlib.java:174)
	at brut.apktool.Main.cmdBuild(Main.java:188)
	at brut.apktool.Main.main(Main.java:70)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, C:\Users\Ryan-Pc\AppData\Local\Temp\APKTOOL8357457479364563977.tmp, -I, C:\Users\Ryan-Pc\apktool\framework\1.apk, -S, C:\Users\Ryan-Pc\APK GUI\InProgress\SystemUI.apk\res, -M, C:\Users\Ryan-Pc\APK GUI\InProgress\SystemUI.apk\AndroidManifest.xml]
	at brut.util.OS.exec(OS.java:83)
	at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:253)
	... 6 more
For old log
It looks like these 3 png's are corrupted or something... try using stock one...
SystemUI.apk\res\drawable-mdpi\status_bar_background.png
SystemUI.apk\res\drawable-mdpi\status_bar_header_background.png
SystemUI.apk\res\drawable-mdpi\title_bar_portrait.png

for new log
and maybe you string is missing accessibility_settings_button too...
 
Last edited:
  • Like
Reactions: safariking

safariking

Senior Member
Jan 4, 2012
4,820
4,936
263
Lelystad
It looks like these 3 png's are corrupted or something... try using stock one...
SystemUI.apk\res\drawable-mdpi\status_bar_background.png
SystemUI.apk\res\drawable-mdpi\status_bar_header_background.png
SystemUI.apk\res\drawable-mdpi\title_bar_portrait.png

and maybe you string is missing accessibility_settings_button too...
my strings.xml

Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string name="app_label">Status Bar</string>
    <string name="status_bar_clear_all_button">Clear</string>
    <string name="status_bar_no_notifications_title">No notifications</string>
    <string name="status_bar_ongoing_events_title">Ongoing</string>
    <string name="status_bar_latest_events_title">Notifications</string>
    <string name="battery_low_title">Please connect charger</string>
    <string name="battery_low_subtitle">The battery is getting low:</string>
    <string name="battery_low_percent_format">%d%% or less remaining.</string>
    <string name="battery_low_why">Battery use</string>
    <string name="usb_accessory_permission_prompt">Allow the application %1$s to access the USB accessory?</string>
    <string name="usb_device_confirm_prompt">Open %1$s when this USB device is connected?</string>
    <string name="usb_accessory_confirm_prompt">Open %1$s when this USB accessory is connected?</string>
    <string name="usb_accessory_uri_prompt">No installed applications work with this USB accessory. Learn more about this accessory at %1$s</string>
    <string name="title_usb_accessory">USB accessory</string>
    <string name="label_view">View</string>
    <string name="always_use_accessory">Use by default for this USB accessory</string>
    <string name="quickpanel_wifi_text">Wi-Fi</string>
    <string name="quickpanel_bluetooth_text">Bluetooth</string>
    <string name="quickpanel_gps_text">GPS</string>
    <string name="quickpanel_sound_text">Sound</string>
    <string name="quickpanel_sound_vibration_text">"Sound
Vibration"</string>
    <string name="quickpanel_silent_text">Silent</string>
    <string name="quickpanel_vibration_text">Vibration</string>
    <string name="quickpanel_rotation_text">"Auto
rotation"</string>
    <string name="quickpanel_error_text">Error</string>
    <string name="capital_on">ON</string>
    <string name="capital_off">OFF</string>
    <string name="lowbattery">Battery low. Recharge device soon to keep using</string>
    <string name="critical_lowbattery">Battery critically low. Plug device in now to keep using</string>
    <string name="dischargetitle">Info</string>
    <string name="dischargebattery">Charging paused. Battery temperature too high or too low</string>
    <string name="fullchargetitle">Info</string>
    <string name="fullchargebattery">"Battery fully charged.
	<string name="accessibility_clear_all">Clear</string>
    <string name="accessibility_settings_button">System settings.</string>
Unplug charger"</string>
</resources>
EDIT:

SOLVED!!!
 

SpaceCaker

Senior Member
Mar 26, 2011
13,545
10,901
0
netherlands
www.youtube.com
my strings.xml

Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string name="app_label">Status Bar</string>
    <string name="status_bar_clear_all_button">Clear</string>
    <string name="status_bar_no_notifications_title">No notifications</string>
    <string name="status_bar_ongoing_events_title">Ongoing</string>
    <string name="status_bar_latest_events_title">Notifications</string>
    <string name="battery_low_title">Please connect charger</string>
    <string name="battery_low_subtitle">The battery is getting low:</string>
    <string name="battery_low_percent_format">%d%% or less remaining.</string>
    <string name="battery_low_why">Battery use</string>
    <string name="usb_accessory_permission_prompt">Allow the application %1$s to access the USB accessory?</string>
    <string name="usb_device_confirm_prompt">Open %1$s when this USB device is connected?</string>
    <string name="usb_accessory_confirm_prompt">Open %1$s when this USB accessory is connected?</string>
    <string name="usb_accessory_uri_prompt">No installed applications work with this USB accessory. Learn more about this accessory at %1$s</string>
    <string name="title_usb_accessory">USB accessory</string>
    <string name="label_view">View</string>
    <string name="always_use_accessory">Use by default for this USB accessory</string>
    <string name="quickpanel_wifi_text">Wi-Fi</string>
    <string name="quickpanel_bluetooth_text">Bluetooth</string>
    <string name="quickpanel_gps_text">GPS</string>
    <string name="quickpanel_sound_text">Sound</string>
    <string name="quickpanel_sound_vibration_text">"Sound
Vibration"</string>
    <string name="quickpanel_silent_text">Silent</string>
    <string name="quickpanel_vibration_text">Vibration</string>
    <string name="quickpanel_rotation_text">"Auto
rotation"</string>
    <string name="quickpanel_error_text">Error</string>
    <string name="capital_on">ON</string>
    <string name="capital_off">OFF</string>
    <string name="lowbattery">Battery low. Recharge device soon to keep using</string>
    <string name="critical_lowbattery">Battery critically low. Plug device in now to keep using</string>
    <string name="dischargetitle">Info</string>
    <string name="dischargebattery">Charging paused. Battery temperature too high or too low</string>
    <string name="fullchargetitle">Info</string>
    <string name="fullchargebattery">"Battery fully charged.
	<string name="accessibility_clear_all">Clear</string>
    <string name="accessibility_settings_button">System settings.</string>
[COLOR="Red"]Unplug charger"</string>[/COLOR]
</resources>

you're strings file is corrupted