how edit system lolipop 5.1.1 - General Questions and Answers
how edit systemui.apk lolipop
syria-droid said:
how edit systemui.apk lolipop
please help me
Click to expand...
Click to collapse
You can use APKtool, there is an an android version and a PC version.
Sent from my SM-S903VL using Tapatalk
Droidriven said:
You can use APKtool, there is an an android version and a PC version.
Sent from my SM-S903VL using Tapatalk
Click to expand...
Click to collapse
The program performs decompressing without errors
But when I build file The process is done successfully without finding any apk file rate
Code:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\ALI KHLAF\Desktop\apktool-install-windws>
C:\Users\ALI KHLAF\Desktop\apktool-install-windws>java -jar apktool.jar if frame
work-res.apk
I: Framework installed to: C:\Users\ALI KHLAF\apktool\framework\1.apk
C:\Users\ALI KHLAF\Desktop\apktool-install-windws>java -jar apktool.jar d -s sys
temui.apk
I: Using Apktool 2.0.0-a766db-SNAPSHOT on systemui.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\ALI KHLAF\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/recents_sta
tus_gradient.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-land-hdpi-v4/bg_pro
tect.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/recents_tas
k_shadow.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/recents_thu
mbnail_bg.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/tw_clear_bu
tton_bg_normal.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/taskmanager
_btn_default_transparency_mtrl.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/setting_pan
el_bg_line.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/tw_action_i
tem_background_focused_holo_dark.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/taskmanager
_btn_default_mtrl.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-sw320dp-hdpi-v13/ke
yguard_fmm_btn_default.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-nodpi-v4/keyguard_c
arrierlockplus_unlock_btn_pressed.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/keyguard_fm
m_btn_default.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-nodpi-v4/bg_popup.9
.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/tw_clear_bu
tton_bg_pressed.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/lock_notica
rd_badge_bg_tilt.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-nodpi-v4/keyguard_c
arrierlockplus_emergency_btn_pressed.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-port-hdpi-v4/bg_pro
tect.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-sw320dp-hdpi-v13/ke
yguard_fmm_btn_pressed.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/status_bar_
close_off.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/nav_backgro
und.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/status_bar_
close_on.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/tw_quick_pa
nel_sfinder_qconnect_button_bg.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-nodpi-v4/keyguard_c
arrierlockplus_call_btn_pressed.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/keyguard_fm
m_btn_pressed.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/recents_thu
mbnail_bg_normal.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/tw_quick_pa
nel_sfinder_qconnect_button_focused.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-nodpi-v4/homescreen
_menu_noti_bg.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/status_back
ground_sma_xte.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/keyguard_si
gnature_bg.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/recents_low
er_gradient.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-nodpi-v4/keyguard_c
arrierlockplus_call_btn_normal.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/kg_widget_b
g_padded.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/ic_notifica
tion_overlay.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/tw_quick_pa
nel_sfinder_qconnect_button_pressed.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/spinner_def
ault_holo_dark_am_no_underline.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/tw_divider_
vertical_holo_light.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/scrubber_se
condary_holo.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-nodpi-v4/keyguard_c
arrierlockplus_unlock_btn_normal.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/quick_setti
ng_panel_bg_shadow_01.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/tw_list_div
ider_holo_dark.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-nodpi-v4/bg_help_bu
tton_nor.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/tw_list_div
ider_holo_light.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-sw320dp-hdpi-v13/gr
adation_indi_bg.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/tw_action_i
tem_background_pressed_holo_dark.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/tw_quick_pa
nel_sfinder_qconnect_button_normal.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/scrubber_tr
ack_holo_light.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/tw_clear_bu
tton_bg_focussed.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/gradation_i
ndi_bg.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/quick_setti
ng_panel_bg_shadow_02.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/screenshot_
panel.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/notificatio
n_panel_bg.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/tw_quick_pa
nel_quick_setting_button_bg_normal.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/recents_thu
mbnail_bg_press.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/scrubber_pr
imary_holo.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/scrubber_pr
imary_mtrl_alpha.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/search_bg_t
ransparent.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/bg_protect.
9.qmg
S: Could not decode file, replacing by FALSE value: drawable-nodpi-v4/keyguard_c
arrierlockplus_emergency_btn_normal.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/status_back
ground.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/security_bt
n_bg.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/tw_divider_
vertical_holo_dark.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/help_popup_
picker_bg_w_01.9.qmg
I: Decoding values */* XMLs...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
C:\Users\ALI KHLAF\Desktop\apktool-install-windws>java -jar apktool.jar b system
ui
I: Using Apktool 2.0.0-a766db-SNAPSHOT
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
warning: string 'charging_interruption_by_too_high_flash_temperature_text' has n
o default translation.
warning: string 'data_usage_disable_mobile_vzw_1' has no default translation.
warning: string 'data_usage_disable_mobile_vzw_3' has no default translation.
warning: string 'popup_negative_button_label' has no default translation.
I: Building apk file...
C:\Users\ALI KHLAF\Desktop\apktool-install-windws>
syria-droid said:
The program performs decompressing without errors
But when I build file The process is done successfully without finding any apk file rate
Code:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\ALI KHLAF\Desktop\apktool-install-windws>
C:\Users\ALI KHLAF\Desktop\apktool-install-windws>java -jar apktool.jar if frame
work-res.apk
I: Framework installed to: C:\Users\ALI KHLAF\apktool\framework\1.apk
C:\Users\ALI KHLAF\Desktop\apktool-install-windws>java -jar apktool.jar d -s sys
temui.apk
I: Using Apktool 2.0.0-a766db-SNAPSHOT on systemui.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\ALI KHLAF\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/recents_sta
tus_gradient.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-land-hdpi-v4/bg_pro
tect.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/recents_tas
k_shadow.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/recents_thu
mbnail_bg.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/tw_clear_bu
tton_bg_normal.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/taskmanager
_btn_default_transparency_mtrl.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/setting_pan
el_bg_line.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/tw_action_i
tem_background_focused_holo_dark.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/taskmanager
_btn_default_mtrl.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-sw320dp-hdpi-v13/ke
yguard_fmm_btn_default.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-nodpi-v4/keyguard_c
arrierlockplus_unlock_btn_pressed.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/keyguard_fm
m_btn_default.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-nodpi-v4/bg_popup.9
.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/tw_clear_bu
tton_bg_pressed.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/lock_notica
rd_badge_bg_tilt.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-nodpi-v4/keyguard_c
arrierlockplus_emergency_btn_pressed.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-port-hdpi-v4/bg_pro
tect.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-sw320dp-hdpi-v13/ke
yguard_fmm_btn_pressed.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/status_bar_
close_off.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/nav_backgro
und.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/status_bar_
close_on.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/tw_quick_pa
nel_sfinder_qconnect_button_bg.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-nodpi-v4/keyguard_c
arrierlockplus_call_btn_pressed.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/keyguard_fm
m_btn_pressed.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/recents_thu
mbnail_bg_normal.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/tw_quick_pa
nel_sfinder_qconnect_button_focused.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-nodpi-v4/homescreen
_menu_noti_bg.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/status_back
ground_sma_xte.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/keyguard_si
gnature_bg.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/recents_low
er_gradient.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-nodpi-v4/keyguard_c
arrierlockplus_call_btn_normal.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/kg_widget_b
g_padded.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/ic_notifica
tion_overlay.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/tw_quick_pa
nel_sfinder_qconnect_button_pressed.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/spinner_def
ault_holo_dark_am_no_underline.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/tw_divider_
vertical_holo_light.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/scrubber_se
condary_holo.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-nodpi-v4/keyguard_c
arrierlockplus_unlock_btn_normal.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/quick_setti
ng_panel_bg_shadow_01.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/tw_list_div
ider_holo_dark.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-nodpi-v4/bg_help_bu
tton_nor.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/tw_list_div
ider_holo_light.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-sw320dp-hdpi-v13/gr
adation_indi_bg.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/tw_action_i
tem_background_pressed_holo_dark.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/tw_quick_pa
nel_sfinder_qconnect_button_normal.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/scrubber_tr
ack_holo_light.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/tw_clear_bu
tton_bg_focussed.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/gradation_i
ndi_bg.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/quick_setti
ng_panel_bg_shadow_02.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/screenshot_
panel.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/notificatio
n_panel_bg.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/tw_quick_pa
nel_quick_setting_button_bg_normal.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/recents_thu
mbnail_bg_press.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/scrubber_pr
imary_holo.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/scrubber_pr
imary_mtrl_alpha.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/search_bg_t
ransparent.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/bg_protect.
9.qmg
S: Could not decode file, replacing by FALSE value: drawable-nodpi-v4/keyguard_c
arrierlockplus_emergency_btn_normal.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/status_back
ground.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/security_bt
n_bg.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/tw_divider_
vertical_holo_dark.9.qmg
S: Could not decode file, replacing by FALSE value: drawable-hdpi-v4/help_popup_
picker_bg_w_01.9.qmg
I: Decoding values */* XMLs...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
C:\Users\ALI KHLAF\Desktop\apktool-install-windws>java -jar apktool.jar b system
ui
I: Using Apktool 2.0.0-a766db-SNAPSHOT
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
warning: string 'charging_interruption_by_too_high_flash_temperature_text' has n
o default translation.
warning: string 'data_usage_disable_mobile_vzw_1' has no default translation.
warning: string 'data_usage_disable_mobile_vzw_3' has no default translation.
warning: string 'popup_negative_button_label' has no default translation.
I: Building apk file...
C:\Users\ALI KHLAF\Desktop\apktool-install-windws>
Click to expand...
Click to collapse
Are you un-signing the apk then decompiling, then editing, then re-signing the apk when you re-compile it?
Sent from my SM-S903VL using Tapatalk
Droidriven said:
Are you un-signing the apk then decompiling, then editing, then re-signing the apk when you re-compile it?
Sent from my SM-S903VL using Tapatalk
Click to expand...
Click to collapse
thanks man
Please explain to me more
syria-droid said:
thanks man
Please explain to me more
Click to expand...
Click to collapse
Try following this thread, pay attention and only follow the instructions. Do not use any device specific files for other devices that might be linked there, only follow links to additional tools if it describes any.
https://forum.xda-developers.com/showthread.php?t=2213985
Sent from my SM-S903VL using Tapatalk
Droidriven said:
Try following this thread, pay attention and only follow the istructions. Do not use any device specific files for other devices that might be linked there, only follow links to addiditional tools if it describes any.
https://forum.xda-developers.com/showthread.php?t=2213985
Sent from my SM-S903VL using Tapatalk
Click to expand...
Click to collapse
Thx bro
Droidriven said:
Try following this thread, pay attention and only follow the instructions. Do not use any device specific files for other devices that might be linked there, only follow links to additional tools if it describes any.
https://forum.xda-developers.com/showthread.php?t=2213985
Sent from my SM-S903VL using Tapatalk
Click to expand...
Click to collapse
Reconstructed file without errors
But when I replace file systemui
File stops working
Please note The file is not tedil
syria-droid said:
Reconstructed file without errors
But when I replace file systemui
File stops working
Please note The file is not tedil
Click to expand...
Click to collapse
The information in that thread is kind of old, there may be other things you need to do depending on your android version, i.e. KitKat, Lollipop, Marshmallow or Nougat. I don't know what details you are missing or what details you need. You'll have to research, troubleshoot and modify based on your device's hardware and android version.
Sent from my SM-S903VL using Tapatalk
Droidriven said:
The information in that thread is kind of old, there may be other things you need to do depending on your android version, i.e. KitKat, Lollipop, Marshmallow or Nougat. I don't know what details you are missing or what details you need. You'll have to research, troubleshoot and modify based on your device's hardware and android version.
Sent from my SM-S903VL using Tapatalk
Click to expand...
Click to collapse
I've written in that thread android version 5.1.1
I'm trying to change the colors of systemui file
I try to modify the file resides in a folder values called color.xml
Related
How do you themers decompile SystemUI.apk?
I'm working on a theme and I'm trying to customize the notification area font colors, but I'm unable to decompile SystemUI.apk! I get the following error: Code: [[email protected] Downloads]$ ./apktool d SystemUI.apk I: Loading resource table... I: Loaded. I: Loading resource table from file: /home/kyle/apktool/framework/1.apk I: Loaded. W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3 W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3 W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3 W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3 W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3 I: Decoding file-resources... I: Decoding values*/* XMLs... I: Done. Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x010300a3 at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61) at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:55) at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:51) at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:59) at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResReferenceValue.java:46) at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlAttr(ResScalarValue.java:43) at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:40) at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlResourceParser.java:315) at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValue(XmlPullParserDelegate.java:69) at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(StaticXmlSerializerWrapper.java:267) at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(StaticXmlSerializerWrapper.java:211) at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:46) at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamDecoderContainer.java:34) at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:100) at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:114) at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:93) at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98) at brut.apktool.Main.cmdDecode(Main.java:120) at brut.apktool.Main.main(Main.java:57) This happens in both vanilla apktool and in APK Manager.
I'm in no way a themer, but my guess is you have to decompile with dependencies - most likely twframework.apk and framework-res.apk. I'm pretty sure this is an option in apk manager. That being said, I of course could be completely wrong on all of this.
dwitherell said: I'm in no way a themer, but my guess is you have to decompile with dependencies - most likely twframework.apk and framework-res.apk. I'm pretty sure this is an option in apk manager. That being said, I of course could be completely wrong on all of this. Click to expand... Click to collapse I decompiled with framework-res and it worked, thanks a lot! Now to go hunting for what I want to change
I know you got it to work but for future reference place the apktool jar and framework-res.apk in your C:Windows folder. Then open up command prompt, cd to the windows directory and type: apktool if framework-res.apk This will install the framework into an apktool folder for future projects. You should also repeat the process with twframework-res.apk in the rare case you work with a froyo ROM.
shobon said: I'm working on a theme and I'm trying to customize the notification area font colors, but I'm unable to decompile SystemUI.apk! I get the following error: Code: [[email protected] Downloads]$ ./apktool d SystemUI.apk I: Loading resource table... I: Loaded. I: Loading resource table from file: /home/kyle/apktool/framework/1.apk I: Loaded. W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3 W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3 W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3 W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3 W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3 I: Decoding file-resources... I: Decoding values*/* XMLs... I: Done. Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x010300a3 at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61) at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:55) at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:51) at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:59) at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResReferenceValue.java:46) at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlAttr(ResScalarValue.java:43) at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:40) at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlResourceParser.java:315) at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValue(XmlPullParserDelegate.java:69) at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(StaticXmlSerializerWrapper.java:267) at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(StaticXmlSerializerWrapper.java:211) at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:46) at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamDecoderContainer.java:34) at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:100) at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:114) at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:93) at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98) at brut.apktool.Main.cmdDecode(Main.java:120) at brut.apktool.Main.main(Main.java:57) This happens in both vanilla apktool and in APK Manager. Click to expand... Click to collapse The .xml's you seek are not in the systemUI. They are in the FRAMEWORK.RES if I remember right. Try FRAMEWORK-RES/DECOMPILED DIR/LAYOUT/STATUSBAR_LATEST_EVENT_CONTENT and there might be one more. Its been awhile.... Sent from my SCH-I510 using XDA App
[MOD] Battery Bar for All ROMs - Updated 31/3/12
MOD Version App Version Here - http://forum.xda-developers.com/showthread.php?t=1568318 Howdy All, Few people have been asking me how i got the Miui Battery Bar into my ROM on the x10! short answer is i didn't i wrote my own battery bar! and here is how you can use it! Features Hide / Show Selectable Colors Static Color Auto-Magicaly Color (Low Med Reg Charge) Auto Detection of screen Width ( Bar works in Portrait and Landscape Mode ) Selectable Height Charge Animation options. Screen Shots { "lightbox_close": "Close", "lightbox_next": "Next", "lightbox_previous": "Previous", "lightbox_error": "The requested content cannot be loaded. Please try again later.", "lightbox_start_slideshow": "Start slideshow", "lightbox_stop_slideshow": "Stop slideshow", "lightbox_full_screen": "Full screen", "lightbox_thumbnails": "Thumbnails", "lightbox_download": "Download", "lightbox_share": "Share", "lightbox_zoom": "Zoom", "lightbox_new_window": "New window", "lightbox_toggle_sidebar": "Toggle sidebar" } Change Log Code: [B]Options App[/B] v2.0 added height options. v3.0 added new color dialogs. v4.0 fixed default color of med level to be non-transparent. Code: [B]Battery Bar[/B] v2 added height options and fixed default colors. How To! Ok so there are 2 files attached First is a Zip with the files needed to add to the SystemUI.apk (THIS IS NOT FLASHABLE) Second is an the Settings app for the Battery Bar. Step 1 decompile your SystemUI.apk i use Apk Manager Click to expand... Click to collapse Step 2 Navigate to smali\com\android\systemui\statusbar\ Folder Place the 3 Smali Files from the zip here BatteryBar.smali BatteryBar$1.smali BatteryBar$SettingsObserver.smali Click to expand... Click to collapse Step 3 You need to Navigate to the res\layouts\ Folder open your statusbar.xml Click to expand... Click to collapse Step 4 Underneath the line with Code: com.android.systemui.statusbar.DateView add this *** CHANGED ON v3 *** Code: <com.android.systemui.statusbar.BatteryBar android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="wrap_content" [B][COLOR="Red"]android:layout_height="wrap_content"[/COLOR][/B] /> it should be right at the bottom above the Code: i have added my statusbar.xml for reference if yours is in a different order no big deal just put it last and above this line Code: </com.android.systemui.statusbar.StatusBarView> Click to expand... Click to collapse Step 5 Recompile the apk however you normaly would (there are so many ways i wont cover this here) then push it to your phone and reboot. If you don't know how or are having issues this is how I do it! Notes: a. i have a file on my desctop that i edit this is a copy of the file pulled from my phone. Steps: 1. after all mods are done open up apk manager 2. type 22 hit enter and pick the file you were editing ( SystemUI.apk ) 3. type 11 hit enter and the app will recompile. - 4. Open a copy of the SystemUI.apk ( see note a ) in winnra or 7zip ect put that window on one side of your screen ( windows 7 snap too (windows key + -> or <- ) is awesome for this ) 5. Navigate to the projects folder of APK Manager and then navigate to the app you edited (SystemUI.apk) 6. Navigate to the /build/apk folder ( snap this to the other side of your screen ) ( Note that the build/apk folder has the same structure as the apk file open in winnra / 7zip ) 7. for THIS MOD only! you will need these files simply drag the 2 files listed below into the same folder location in the open apk in winnra / 7zip - /res/layouts/status_bar.xml - /classes.dex 8. Push the apk that you draged the files into to your phone with adb like this adb push [where ever your apk is]/SystemUI.apk system/app/SystemUI.apk adb shell chmod 0644 system/app/SystemUI.apk 9. whilst you have adb up reboot adb reboot + 4. Open a copy of the SystemUI.apk ( see note a ) in winnra or 7zip ect put that window on one side of your screen ( windows 7 snap too (windows key + -> or - 10. Proceed to next step Click to expand... Click to collapse - Step 6 Once your status bar is back and running (you will have no battery bar yet) Simply install "BatteryBarSettings.apk" then open the app and pick your settings! Click to expand... Click to collapse Thats it ( I think )! all i ask is you don't modify the about section of the app if you choose to use it! and give credits where credits due. feel free to change my dodgy icon and if anyone has a better one i will also put the sources for the settings app up on my git when i get git back up ( and when i tidy up and add comments ) and running in the next few days so that those of you running on source versions can cook it in from scratch. ( i don't think i need to explain how to do that if you are compiling sources i think you'll know what to do ) Vissit My Git to have a Look with some help i can probably port this to older android versions (<2.3) as needed but i dont have access to a rom to test it on currently. so if you can help me there let me know Hope you found this helpfull! Let me know if this is not clear enough! Q&A Q: I am getting a FC on this or that, can you help me! A: NO. We can't help you. Because what you just said means nothing to us. We want to help you SO much, but in order to do that you need to report the bug properly. We took care of that too, see here: http://forum.xda-developers.com/showthread.php?t=1292625 Click to expand... Click to collapse Q:OMG YOU STOLE MY WORK! YOU [email protected]#$!% etc etc etc A: I kindly ask you that if you have an issue with anything above to PM me so i can sort it out politely. There is no need to flame in the thread. Click to expand... Click to collapse Pvy Credits Color Picker http://forum.xda-developers.com/showthread.php?p=10739805#post10739805 Thanks to Devmil
[APP] or [MOD] Battery Bar for All ROMs - Updated 16/1/12 Hiding the battery Icons on your beloved ROM's tested on 2.3.* ROMS (Stock ROMS, AOSP, CM, MIUI) may sork on others aswell but 2.2 and below have a different process. for anyone who understands this stuff a bit this code here is what i edited for our TEAM ROM. this is hiding with an option from an app that sets a "global" setting. look in the statusbarpolicy.smali i commented the part with "hide battery icon"; For everyone else what you will need to do is, 1. Decompile your SystemUI.apk 2. Open /smali/com/android/systemui/statusbar/StatusBarPolicy.smali 3. Find the UpdateBattery function. this can be a long way down. just do a search for "battery" and you will find it eventually. Option A - Lock out the battery icon forever! basicaly to perma hide the icon add this to the start of the update battery function after the bit that looks like this. Code: Code: .locals 12 .parameter "intent" .prologue add this! Code: Code: iget-object v1, p0, Lcom/android/systemui/statusbar/policy/StatusBarPolicy;->mService:Landroid/app/StatusBarManager; const-string v2, "battery" const v0, 0x0 invoke-virtual {v1, v2, v0}, Landroid/app/StatusBarManager;->setIconVisibility(Ljava/lang/String;Z)V return-void then recompile and push back to phone. If you don't know how or are having issues this is how I do it! Notes: a. i have a file on my desctop that i edit this is a copy of the file pulled from my phone. Steps: 1. after all mods are done open up apk manager 2. type 22 hit enter and pick the file you were editing ( SystemUI.apk ) 3. type 11 hit enter and the app will recompile. 4. Open a copy of the SystemUI.apk ( see note a ) in winnra or 7zip ect put that window on one side of your screen ( windows 7 snap too (windows key + -> or <- ) is awesome for this ) 5. Navigate to the projects folder of APK Manager and then navigate to the app you edited (SystemUI.apk) 6. Navigate to the /build/apk folder ( snap this to the other side of your screen ) ( Note that the build/apk folder has the same structure as the apk file open in winnra / 7zip ) 7. for THIS MOD only! you will need these files simply drag the 2 files listed below into the same folder location in the open apk in winnra / 7zip - /classes.dex 8. Push the apk that you draged the files into to your phone with adb like this adb push [where ever your apk is]/SystemUI.apk system/app/SystemUI.apk adb shell chmod 0644 system/app/SystemUI.apk 9. whilst you have adb up reboot adb reboot Click to expand... Click to collapse that will perma hide the battery icon Option B - Make it optional! ( my preferred way of doing things ) basically the same process but with different code and an app to set the settings. i will add this soon and i will put the option to toggle into the BatteryBar settings app. Aaron.
hi there ; tried it on a SGS2 with the latest CM nightly and then with CheckROM 3.1.1 -- didn't work. no serious hang nor crash, just...nothing happens (I've done the decompiling and recompiling with APKTool)
Worked perfect, Thanks. Sent from my HTC Wildfire using xda premium
Mjergen said: hi there ; tried it on a SGS2 with the latest CM nightly and then with CheckROM 3.1.1 -- didn't work. no serious hang nor crash, just...nothing happens (I've done the decompiling and recompiling with APKTool) Click to expand... Click to collapse It has to be enabled from the app. Did you turn it on? Pvy Sent from my TEAM powered x10
pvyParts said: It has to be enabled from the app. Did you turn it on? Click to expand... Click to collapse sure, I installed the app and when first running the app, the "activate" box was already ticked. un-ticking and ticking it again did not help either :-l
Mjergen said: sure, I installed the app and when first running the app, the "activate" box was already ticked. un-ticking and ticking it again did not help either :-l Click to expand... Click to collapse Doesn't cm have it'd own bar? could be fighting. Any chance of sending me your systemui and maybe grabbing some logs at boot and when you change the settings. Pvy Sent from my TEAM powered x10
pvyParts said: Doesn't cm have it'd own bar? could be fighting. Click to expand... Click to collapse well I thought it had it, hence me flashing it, but apparently not. either that or it's really really ... really well hidden. neither the latest SGS2 nightly (116), nor the stable rls (7.1) seem to have the top bar. i flashed the stable CM 7.1 yesterday evening and didn't apply your mod to the stable version just yet. gonna try that today and keep you posted (i'm in Czech, GMT+1, if you're australian, we might have quite the time difference here ). what I'll do is i'll send you the unaltered systemui from the stable CM7.1 AND the same systemui with your mod, if that's okay with you ? what is your method of choice for decompiling and recompiling, btw ? pvyParts said: Any chance of sending me your systemui and maybe grabbing some logs at boot and when you change the settings. Click to expand... Click to collapse sure thing, i'll do as I said hereabove. also, which logs, pre- or post-mod ?
Hey there. First, thank you so much for this. I apologize for the noob question, but I've never decompiled an apk before, but I'm eager to learn. I used apkTool to unpack SystemUI.apk, and then added the files per your instructions, and then repacked. I then pushed SystemUI.apk to /system/app and rebooted. Upon reboot the status bar didn't work at all. When I looked at the apk itself it says "Parse error: There is a problem parsing the package." I'm assuming I've not recompiled properly. I've attached the apkTool version I used. Perhaps I've some made obvious error? Any help you could provide would be much appreciated! I'll try again and see what happens in the meantime.
Mjergen said: well I thought it had it, hence me flashing it, but apparently not. either that or it's really really ... really well hidden. neither the latest SGS2 nightly (116), nor the stable rls (7.1) seem to have the top bar. i flashed the stable CM 7.1 yesterday evening and didn't apply your mod to the stable version just yet. gonna try that today and keep you posted (i'm in Czech, GMT+1, if you're australian, we might have quite the time difference here ). what I'll do is i'll send you the unaltered systemui from the stable CM7.1 AND the same systemui with your mod, if that's okay with you ? what is your method of choice for decompiling and recompiling, btw ? sure thing, i'll do as I said hereabove. also, which logs, pre- or post-mod ? Click to expand... Click to collapse Ditamae said: Hey there. First, thank you so much for this. I apologize for the noob question, but I've never decompiled an apk before, but I'm eager to learn. I used apkTool to unpack SystemUI.apk, and then added the files per your instructions, and then repacked. I then pushed SystemUI.apk to /system/app and rebooted. Upon reboot the status bar didn't work at all. When I looked at the apk itself it says "Parse error: There is a problem parsing the package." I'm assuming I've not recompiled properly. I've attached the apkTool version I used. Perhaps I've some made obvious error? Any help you could provide would be much appreciated! I'll try again and see what happens in the meantime. Click to expand... Click to collapse I use APK Manager v5 then drag/ drop updated files into the apks. to replace the old ones. i cant find a decent guide atm but i know there is one. Pvy
pvyParts said: i cant find a decent guide atm but i know there is one.Pvy Click to expand... Click to collapse I used & followed this tuto : http://youtu.be/YgWd0jsDtH0 if I used the plain SystemUI from APKTool\SystemUI\dist , I get neverending FC. upon reboot, the status bar is simply gone and even the launcher's "Notifications" soft menu option doesn't make it appear. gotta reflash the ROM to set things straight & get the statusbar back. if I copy/paste "resources.arsc" from APKTool\SystemUI\build\apk into the fresh SystemUI I obtain in APKTool\SystemUI\dist, there are no FC and the status bar shows, but your top bar mod isn't present, not even when repeatedly checking/unchecking/rechecking "show battery bar" in your app. it doesn't take a rocket scientist to understand & follow your tutorial, so I believe that my problem comes from somewhere in the recompiling process... at work now, whenever I have 10min, I'll upload my systemUI apks
Mjergen said: I used & followed this tuto : http://youtu.be/YgWd0jsDtH0 if I used the plain SystemUI from APKTool\SystemUI\dist , I get neverending FC. upon reboot, the status bar is simply gone and even the launcher's "Notifications" soft menu option doesn't make it appear. gotta reflash the ROM to set things straight & get the statusbar back. if I copy/paste "resources.arsc" from APKTool\SystemUI\build\apk into the fresh SystemUI I obtain in APKTool\SystemUI\dist, there are no FC and the status bar shows, but your top bar mod isn't present, not even when repeatedly checking/unchecking/rechecking "show battery bar" in your app. it doesn't take a rocket scientist to understand & follow your tutorial, so I believe that my problem comes from somewhere in the recompiling process... at work now, whenever I have 10min, I'll upload my systemUI apks Click to expand... Click to collapse OK my gimme 5 i'll edit the op with my full decompile/compile process EDIT*** all done. hope it is enough... i really had to think on how to word it all LOL! also the file in apktool/[apk name]/dist has no signatures and will not run (from memory) Pvy.
well, so far...no good. i followed your tuto using APK Manager 4.9, I got numerous errors when decompiling. log coming up in next post. ---------- Post added at 01:27 PM ---------- Previous post was at 01:26 PM ---------- Part 1 Code: -------------------------------------------------------------------------- |p* 02.12.2011 -- 12:16:52,24| -------------------------------------------------------------------------- java version "1.6.0_29" Java(TM) SE Runtime Environment (build 1.6.0_29-b11) Java HotSpot(TM) Client VM (build 20.4-b02, mixed mode, sharing) adb nenˇ n*zvem vnitýnˇho ani vnŘjçˇho pýˇkazu, spustiteln‚ho programu nebo d*vkov‚ho souboru. Nelze najˇt M:\FICHIERS RECUS\apk_manager_4.9\place-apk-here-for-modding\../place-apk-here-for-modding/signedSystemUI.apk. Nelze najˇt M:\FICHIERS RECUS\apk_manager_4.9\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedSystemUI.apk. I: Baksmaling... I: Loading resource table... I: Decoding resources... I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=versionCode, value=0x0000000a I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=minSdkVersion, value=0x0000000a I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=targetSdkVersion, value=0x0000000a I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=label, value=0x7f090000 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=icon, value=0x7f020009 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=allowClearUserData, value=0x00000000 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=persistent, value=0xffffffff I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=exported, value=0x00000000 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=excludeFromRecents, value=0xffffffff I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=excludeFromRecents, value=0xffffffff I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=exported, value=0xffffffff I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=excludeFromRecents, value=0xffffffff I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=finishOnCloseSystemDialogs, value=0xffffffff I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=exported, value=0xffffffff I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=excludeFromRecents, value=0xffffffff I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=finishOnCloseSystemDialogs, value=0xffffffff I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=exported, value=0xffffffff I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=excludeFromRecents, value=0xffffffff I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=finishOnCloseSystemDialogs, value=0xffffffff I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=exported, value=0xffffffff I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=excludeFromRecents, value=0xffffffff I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=finishOnCloseSystemDialogs, value=0xffffffff I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=duration, value=0x010e0001 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=fromXDelta, value=0x00000000 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=toXDelta, value=0x00000101 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=oneshot, value=0x00000000 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=duration, value=0x00000320 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x7f02009c I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=duration, value=0x000004b0 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x7f02009d I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=state_window_focused, value=0x00000000 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=state_enabled, value=0xffffffff I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x7f020002 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=state_window_focused, value=0x00000000 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=state_enabled, value=0x00000000 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x7f020003 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=state_pressed, value=0xffffffff I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x7f020005 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=state_focused, value=0xffffffff I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=state_enabled, value=0xffffffff I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x7f020006 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=state_enabled, value=0xffffffff I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x7f020002 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=state_focused, value=0xffffffff I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x7f020004 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x7f020003 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=orientation, value=0x00000001 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_width, value=0xffffffff I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_height, value=0x00004102 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x7f0b002e I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x0108008c I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=paddingRight, value=0x00000602 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=focusable, value=0xffffffff I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=clickable, value=0xffffffff I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_width, value=0xffffffff I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_height, value=0x00004002 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x7f020008 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_width, value=0xffffffff I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_height, value=0xfffffffe I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=gravity, value=0x00000011 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=orientation, value=0x00000001 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x7f0b0000 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=0x00001201 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0xffffffff I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=gravity, value=0x00000003 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x7f0b0001 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=paddingLeft, value=0x00001301 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_width, value=0xffffffff I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_height, value=0xfffffffe I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=text, value=0x7f090006 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=0x00001201 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0xffffffff I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=gravity, value=0x00000003 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x7f0b0002 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=paddingLeft, value=0x00001301 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=paddingBottom, value=0x00000a00 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_width, value=0xffffffff I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_height, value=0xfffffffe I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x7f0b0003 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=paddingTop, value=0x00000a00 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=paddingBottom, value=0x00000f00 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_width, value=0xfffffffe I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_height, value=0xfffffffe I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=src, value=0x7f020000 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=duration, value=0x010e0001 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=fromXDelta, value=0x00000000 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=toXDelta, value=0xffffff01 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=oneshot, value=0x00000000 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=duration, value=0x000001f4 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x7f02008a I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=duration, value=0x000001f4 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x010802d9 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=orientation, value=0x00000001 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=focusable, value=0xffffffff I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=descendantFocusability, value=0x00000001 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=orientation, value=0x00000001 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x7f0b001d I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x7f0200bf I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=paddingTop, value=0x00000301 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=paddingRight, value=0x00000301 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=paddingBottom, value=0x00000501 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_width, value=0xffffffff I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_height, value=0xfffffffe I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x7f0b001e I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_width, value=0xffffffff I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_height, value=0xfffffffe I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=gravity, value=0x00000010 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=orientation, value=0x00000000 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x7f0b001f I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_width, value=0xffffffff I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_height, value=0xfffffffe I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x01010040 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x7f060000 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_gravity, value=0x00000010 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=paddingLeft, value=0x00000401 I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=paddingBottom, value=0x00000101
pt 2 of the log is basically repeating the pt1 above with different "name=" values it goes on like that for a while and then at the very end of the log : Code: Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x01030065 style/TextAppearance.StatusBar.Title, config=[DEFAULT] at brut.androlib.res.data.ResConfig.addResource(Unknown Source) at brut.androlib.res.data.ResConfig.addResource(Unknown Source) at brut.androlib.res.decoder.ARSCDecoder.readEntry(Unknown Source) at brut.androlib.res.decoder.ARSCDecoder.readConfig(Unknown Source) at brut.androlib.res.decoder.ARSCDecoder.readType(Unknown Source) at brut.androlib.res.decoder.ARSCDecoder.readPackage(Unknown Source) at brut.androlib.res.decoder.ARSCDecoder.readTable(Unknown Source) at brut.androlib.res.decoder.ARSCDecoder.decode(Unknown Source) at brut.androlib.res.AndrolibResources.getResPackagesFromApk(Unknown Source) at brut.androlib.res.AndrolibResources.loadFrameworkPkg(Unknown Source) at brut.androlib.res.data.ResTable.getPackage(Unknown Source) at brut.androlib.res.data.ResTable.getResSpec(Unknown Source) at brut.androlib.res.data.ResTable.getResSpec(Unknown Source) at brut.androlib.res.data.value.ResReferenceValue.getReferent(Unknown Source) at brut.androlib.res.data.value.ResReferenceValue.toResXmlFormat(Unknown Source) at brut.androlib.res.data.value.ResStyleValue.serializeToXml(Unknown Source) at brut.androlib.res.AndrolibResources.generateValuesFile(Unknown Source) at brut.androlib.res.AndrolibResources.decode(Unknown Source) at brut.androlib.Androlib.decodeResourcesFull(Unknown Source) at brut.androlib.ApkDecoder.decode(Unknown Source) at brut.apktool.Main.cmdDecode(Unknown Source) at brut.apktool.Main.main(Unknown Source) i tried reducing memory size (option 20) or running the .bat as Admin (Win 7 x64) but the same error kept coming back in the log. and before you ask, I do have ADB installed but APK Manager doesn't find it. i'll try flashing a stock SGS2 ROM or a non-CM ROM, who knows, maybe it's CM's SystemUI's fault...i'll also try doing the procedure on a more powerful PC than the curent one I got at work
APK Manager relies on apktool and it seems you haven't installed the appropriate framework. Check here for more details.
iridaki said: it seems you haven't installed the appropriate framework. Click to expand... Click to collapse that makes perfect sense, efharisto good sir I'm somewhat of an advanced-noob person -- I don't have problems fiddling with files and recovering from my mistakes, but when something's implicit (as pulling the framework files), that's when my brain starts to FC --- EDIT --- alright, it decompiled ! now it seems the problem lies in the recompiling : Code: |p* 02.12.2011 -- 13:07:11,05| -------------------------------------------------------------------------- java version "1.6.0_29" Java(TM) SE Runtime Environment (build 1.6.0_29-b11) Java HotSpot(TM) Client VM (build 20.4-b02, mixed mode, sharing) adb nenˇ n*zvem vnitýnˇho ani vnŘjçˇho pýˇkazu, spustiteln‚ho programu nebo d*vkov‚ho souboru. Nelze najˇt M:\FICHIERS RECUS\apk_manager_4.9\place-apk-here-for-modding\../place-apk-here-for-modding/signedSystemUI.apk. Nelze najˇt M:\FICHIERS RECUS\apk_manager_4.9\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedSystemUI.apk. I: Baksmaling... I: Loading resource table... I: Decoding resources... I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk I: Copying assets and libs... I: Checking whether sources has changed... I: Smaling... I: Checking whether resources has changed... I: Building resources... W/ResourceType( 5884): Unable to get buffer of resource asset file M:\FICHIERS RECUS\apk_manager_4.9\other\..\projects\SystemUI.apk\res\values\styles.xml:3: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.StatusBar'. M:\FICHIERS RECUS\apk_manager_4.9\other\..\projects\SystemUI.apk\res\values\styles.xml:4: error: Error: No resource found that matches the given name: attr 'android:textAppearance'. M:\FICHIERS RECUS\apk_manager_4.9\other\..\projects\SystemUI.apk\res\values\styles.xml:6: error: Error: No resource found that matches the given name: attr 'android:textColor'. M:\FICHIERS RECUS\apk_manager_4.9\other\..\projects\SystemUI.apk\res\values\styles.xml:5: error: Error: No resource found that matches the given name: attr 'android:textStyle'. M:\FICHIERS RECUS\apk_manager_4.9\other\..\projects\SystemUI.apk\res\values\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.Large'. M:\FICHIERS RECUS\apk_manager_4.9\other\..\projects\SystemUI.apk\res\values\styles.xml:9: error: Error: No resource found that matches the given name: attr 'android:textColor'. M:\FICHIERS RECUS\apk_manager_4.9\other\..\projects\SystemUI.apk\res\values\styles.xml:11: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Button'. M:\FICHIERS RECUS\apk_manager_4.9\other\..\projects\SystemUI.apk\res\values\styles.xml:14: error: Error: No resource found that matches the given name: attr 'android:background'. M:\FICHIERS RECUS\apk_manager_4.9\other\..\projects\SystemUI.apk\res\values\styles.xml:13: error: Error: No resource found that matches the given name: attr 'android:textColor'. M:\FICHIERS RECUS\apk_manager_4.9\other\..\projects\SystemUI.apk\res\values\styles.xml:12: error: Error: No resource found that matches the given name: attr 'android:textSize'. M:\FICHIERS RECUS\apk_manager_4.9\other\..\projects\SystemUI.apk\res\values\styles.xml:16: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.StatusBar'. Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\PROMOT~1\AppData\Local\Temp\APKTOOL1867850949983348058.tmp, -I, C:\Users\PROMOTHERM\apktool\framework\1.apk, -S, M:\FICHIERS RECUS\apk_manager_4.9\other\..\projects\SystemUI.apk\res, -M, M:\FICHIERS RECUS\apk_manager_4.9\other\..\projects\SystemUI.apk\AndroidManifest.xml] at brut.androlib.res.AndrolibResources.aaptPackage(Unknown Source) at brut.androlib.Androlib.buildResourcesFull(Unknown Source) at brut.androlib.Androlib.buildResources(Unknown Source) at brut.androlib.Androlib.build(Unknown Source) at brut.androlib.Androlib.build(Unknown Source) at brut.apktool.Main.cmdBuild(Unknown Source) at brut.apktool.Main.main(Unknown Source) Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\PROMOT~1\AppData\Local\Temp\APKTOOL1867850949983348058.tmp, -I, C:\Users\PROMOTHERM\apktool\framework\1.apk, -S, M:\FICHIERS RECUS\apk_manager_4.9\other\..\projects\SystemUI.apk\res, -M, M:\FICHIERS RECUS\apk_manager_4.9\other\..\projects\SystemUI.apk\AndroidManifest.xml] at brut.util.OS.exec(Unknown Source) ... 7 more i pulled framework-res.apk from the phone, copied it to C:\Users\(username)\apktool\framework and renamed it 1.apk since it's the filename apktool is looking for, and i got the above log when recompiling any ideas before i go jump off a cliff... ?
Mjergen said: that makes perfect sense, efharisto good sir I'm somewhat of an advanced-noob person -- I don't have problems fiddling with files and recovering from my mistakes, but when something's implicit (as pulling the framework files), that's when my brain starts to FC Click to expand... Click to collapse Trust me, pulling the framework is as harmless as it gets! Pushing a modified one is somewhat a risk, but if you have working adb and/or recovery, you should have nothing to worry about. Good luck! PS: I am more of a madam, than a sir! Mjergen said: i pulled framework-res.apk from the phone, copied it to C:\Users\(username)\apktool\framework and renamed it 1.apk since it's the filename apktool is looking for, and i got the above log when recompiling any ideas before i go jump off a cliff... ? Click to expand... Click to collapse You certainly did not install the framework by renaming it to 1.apk. The link I posted nowhere does it mention this is what you should do. Code: apktool if framework-res.apk
iridaki said: Trust me, pulling the framework is as harmless as it gets! Pushing a modified one is somewhat a risk, but if you have working adb and/or recovery, you should have nothing to worry about. Good luck! Click to expand... Click to collapse actually, for 95% of what I do, I only need CWM recovery and samsung's download mode, sooo... iridaki said: PS: I am more of a madam, than a sir! Click to expand... Click to collapse my apologies, I couldn't have guessed ! iridaki said: You certainly did not install the framework by renaming it to 1.apk. The link I posted nowhere does it mention this is what you should do. Click to expand... Click to collapse yup, I'll re-do it all this afternoon and take my time. now I'm trying to install Pvy's MOD at work, when I have 5 free minutes between two tasks...
so... i solved this the lazy way I actually found a package that's flashable in recovery that did the trick ! it was lying around on a Polish Samsung forum (link : http://s5830.pl/thread-242.html). it is intended only for CyanogenMod and apparently the Galaxy Ace, but it works perfect on the latest CM 7.1 and a Galaxy S2 ! link to the mod flashable, in CWM recovery : http://db.tt/79ytqshA maybe some of you brainiacs could make a universal, flashable zip ? all credit goes to Konsky from http://s5830.pl (and to Lady Luck for not [email protected]µ*& up my phone...) anyway, BIG thanks to Pvy and the rest of you guys for the immediate follow-up customer care and i'm bookmarking this thread nonetheless for when I'll change my SGS2 - hopefully by then I'll be experienced enough not to fumble over de/re-compiling
Looks good and works without Problems in my X10mini with GingerDX v17 and naa Kernel06. Good job, a little nice Customisation
[Video] Beginners guide to DeOdexing and Theming APKs
This is a beginners guide to DeOdexing and Theming APKs I only started theming the past week so I by no means am the best person to make a tutorial on theming but, when I was trying to learn I couldn't find anything like this so I hope it will help anyone who wants to learn how to theme. You will need: apktools http://dl.dropbox.com/u/40066052/apktool.zip APK-Multi-tools http://dl.dropbox.com/u/40066052/APK-Multi-Tool.zip Baksmali and Smali (for DeOdexing) http://dl.dropbox.com/u/40066052/DeOdexing.zip and I didn't mention in the video but you need an image editor, which I use pain.net and also notepad++ or equivalent. I hope this covers enough material to get you started.. It's pretty much all I know how to do right now from what I've learned over the past couple days but please post if you have questions and if I can't answer, hopefully somebody else in the forum can. [edit] sorry apparently my video is too long for youtube so I just put it in dropbox... hope it works well enough for ya. https://www.dropbox.com/s/a6y4vgqg58jq76y/20121006_1340_47.avi [EDIT] Also not covered in the video are system APKs that are tied to the framework such as SystemUI.apk for those all you need to do is copy the content of your framework folder that you already have in the "DeOdexing" folder and past it into: C:\Users\{your user name}\apktool\framework Then before doing "apktool d SystemUI.apk", first do "apktool if SystemUI.apk". Doing that first should allow the APK to decompile just fine.
This is the BEST theming tutorial I have ever seen. I would like to convert it to a written tutorial and post it here (with your permission). All is good here. Thank you SOO much Brother for that tutorial. I am only having trouble when I try to decompile SystemUI.apk. These are the errors I get: Code: Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Users\h311sdr0id>cd c:/devt/deodexing c:\devt\deodexing>java -jar baksmali.jar -d framework -x SystemUI.odex Can't find the file SystemUI.odex c:\devt\deodexing>java -jar baksmali.jar -d framework -x SystemUI.odex c:\devt\deodexing>cd apktool The system cannot find the path specified. c:\devt\deodexing>cd .. c:\devt>cd apktool c:\devt\apktool>apktool d SystemUI.apk I: Loading resource table... I: Loaded. I: Decoding AndroidManifest.xml with resources... I: Loading resource table from file: C:\Users\h311sdr0id\apktool\framework\1.apk I: Loaded. W: Could not decode attr value, using undecoded value instead: ns=android, name= theme, value=0x01030307 W: Could not decode attr value, using undecoded value instead: ns=android, name= theme, value=0x01030315 W: Could not decode attr value, using undecoded value instead: ns=android, name= theme, value=0x01030315 W: Could not decode attr value, using undecoded value instead: ns=android, name= theme, value=0x01030315 W: Could not decode attr value, using undecoded value instead: ns=android, name= theme, value=0x01030315 I: Decoding file-resources... W: Could not decode attr value, using undecoded value instead: ns=android, name= drawable, value=0x01080672 I: Decoding values */* XMLs... I: Done. Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x01030307 at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61) at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:57) at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:53) at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferen ceValue.java:62) at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResRefe renceValue.java:46) at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlAttr(ResSca larValue.java:44) at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:4 0) at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlRe sourceParser.java:313) at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValu e(XmlPullParserDelegate.java:69) at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartT ag(StaticXmlSerializerWrapper.java:267) at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(Stati cXmlSerializerWrapper.java:211) at brut.androlib.res.decoder.XmlPullStreamDecoder$1.event(XmlPullStreamD ecoder.java:64) at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDe coder.java:98) at brut.androlib.res.decoder.XmlPullStreamDecoder.decodeManifest(XmlPull StreamDecoder.java:112) at brut.androlib.res.decoder.ResFileDecoder.decodeManifest(ResFileDecode r.java:126) at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:152 ) at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:113) at brut.androlib.ApkDecoder.decode(ApkDecoder.java:99) at brut.apktool.Main.cmdDecode(Main.java:131) at brut.apktool.Main.main(Main.java:68) c:\devt\apktool> What can I do to get around these errors when trying to decompile the SystemUI.apk? If I already have a deodexed apk for SystemUI.apk, could this help at all with the errors? How would I go about this process using an already deodexed apk?
taihard said: This is a beginners guide to DeOdexing and Theming APKs [edit] sorry apparently my video is too long for youtube so I just put it in dropbox... hope it works well enough for ya. https://www.dropbox.com/s/a6y4vgqg58jq76y/20121006_1340_47.avi Click to expand... Click to collapse You could host it on Veoh, just have to get it down to 1Gig. I've never used veoh before, so I dunno if people hate that site or anything. I can transcode your video with optimal settings to get that 1Gig sweet spot and still retain as much quality as possible if you like. PM me if you want me to set it up and get you the file. Ta, ALQI
I have updated OP with additional information... If anyone wants to use any of this information feel free to use it in anyway you like (including making a written tutorial).
[SOLVED] [Q][HELP] Decompiling Settings.apk
Hello all succesful app tweakers I tried to tweak 9-lockscreenmod-compatible Settings.apk but I have this problem when decompiling it: Code: I: Baksmaling... I: Loading resource table... I: Loaded. I: Loading resource table from file: C:\Users\George\apktool\framework\1.apk I: Loaded. W: Could not decode attr value, using undecoded value instead: ns=android, name= theme, value=0x02070015 I: Decoding file-resources... W: Could not decode attr value, using undecoded value instead: ns=android, name= textColor, value=0x02050000 W: Could not decode attr value, using undecoded value instead: ns=android, name= textColorHint, value=0x02050001 W: Cant find 9patch chunk in file: "drawable-mdpi/appwidget_bg.9.png". Renaming it to *.png. W: Could not decode attr value, using undecoded value instead: ns=android, name= textAppearance, value=0x0207000f W: Could not decode attr value, using undecoded value instead: ns=android, name= textAppearance, value=0x0207000e W: Could not decode attr value, using undecoded value instead: ns=android, name= textAppearance, value=0x0207000f I: Decoding values*/* XMLs... I: Done. Can't find framework resources for package of id: 2. You must install proper fra mework files, see project website for more info. However, I already installed framework from XXJPU and this Settings.apk is from XXJPU, and still can't decompile. If you can help me, please, please let me know what to do to decompile it properly or what framework I need to install. Thank you :good:
Someone must know this... This error is really annoying... Sent from my GT-I5800 using xda app-developers app
SOLVED. With the help of Jason-EX I succesfully decompiled it. SOLUTION: install both framework-res.apk and twframework-res.apk (apktool if) and then decompile Settings.apk. Thanks Jason!
status bar
pls someone guide how to make transparent GB status bar and with some toggles pls help how i modifiy my systemui:crying:
jatin3 said: pls someone guide how to make transparent GB status bar and with some toggles pls help how i modifiy my systemui:crying: Click to expand... Click to collapse see this it will help you in modifying
vickyg.coolest said: see this it will help you in modifying Click to expand... Click to collapse i follow the steps but unable to decompile systemui.apk i also install jdk/jre and other requirments ner v2 by ibanez7>apktool d systemui.apk I: Baksmaling... I: Loading resource table... I: Loaded. I: Decoding AndroidManifest.xml with resources... I: Loading resource table from file: C:\Users\jatin Hingorani\apktool\framework\ 1.apk I: Loaded. I: Regular manifest package... I: Decoding file-resources... S: Could not decode file, replacing by FALSE value: drawable-hdpi/stat_sys_r_sig nal_0.png S: Could not decode file, replacing by FALSE value: drawable-hdpi/stat_sys_r_sig nal_3.png S: Could not decode file, replacing by FALSE value: drawable-hdpi/stat_sys_r_sig nal_5.png S: Could not decode file, replacing by FALSE value: drawable-hdpi/stat_sys_signa l_5.png S: Could not decode file, replacing by FALSE value: drawable-mdpi/stat_sys_r_sig nal_5_fully.png S: Could not decode file, replacing by FALSE value: drawable-mdpi/stat_sys_r_sig nal_2.png S: Could not decode file, replacing by FALSE value: drawable-mdpi/stat_sys_signa l_null.png S: Could not decode file, replacing by FALSE value: drawable-hdpi/stat_sys_r_sig nal_1.png S: Could not decode file, replacing by FALSE value: drawable-hdpi/stat_sys_r_sig nal_2.png S: Could not decode file, replacing by FALSE value: drawable-mdpi/stat_sys_r_sig nal_5.png S: Could not decode file, replacing by FALSE value: drawable-mdpi/stat_sys_signa l_flightmode.png S: Could not decode file, replacing by FALSE value: drawable-hdpi/stat_sys_signa l_5_fully.png S: Could not decode file, replacing by FALSE value: drawable-hdpi/stat_sys_signa l_flightmode.png S: Could not decode file, replacing by FALSE value: drawable-hdpi/stat_sys_roami ng_cdma_0.png S: Could not decode file, replacing by FALSE value: drawable-mdpi/stat_sys_r_sig nal_0.png S: Could not decode file, replacing by FALSE value: drawable-hdpi/stat_sys_r_sig nal_5_fully.png S: Could not decode file, replacing by FALSE value: drawable-mdpi/stat_sys_r_sig nal_3.png S: Could not decode file, replacing by FALSE value: drawable-mdpi/stat_sys_r_sig nal_1.png I: Decoding values */* XMLs... I: Done. I: Copying assets and libs... whats going wrong :crying::crying:
You dont nwed jdk or anything Just download apk multi tools or tools like that Search it on xda ...how to compile and decompile apk Sent from my GT-S7500 using Tapatalk 2
this guide for xperia roms nd i follow it and not find some lines any youtube tutorial