somebody help me please.... i tried to mod my framework-res.apk but apktool gives me the follow error when i was building the apk
W: Could not find sources
I: Building resources...
C:\Users\DhK\Desktop\ICS\framework-res\res\values\public.xml:3433: error: Public
symbol drawable/APKTOOL_DUMMY_02d1 declared here is not defined.
C:\Users\DhK\Desktop\ICS\framework-res\res\values\public.xml:3434: error: Public
symbol drawable/APKTOOL_DUMMY_02d2 declared here is not defined.
C:\Users\DhK\Desktop\ICS\framework-res\res\values\public.xml:2709: error: Public
entry identifier 0x1080366 entry index is larger than available symbols (index
870, total symbols 870).
C:\Users\DhK\Desktop\ICS\framework-res\res\values\public.xml:2709: error: Public
symbol drawable/selected_day_background declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\DhK\AppData\Local\Temp\APK
TOOL3478875015460189783.tmp, -x, -S, C:\Users\DhK\Desktop\ICS\framework-res\res,
-M, C:\Users\DhK\Desktop\ICS\framework-res\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:174)
at brut.apktool.Main.main(Main.java:59)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\DhK\AppData\Local\Temp\APKTOOL3478875015460189783.tmp, -x, -S, C:\Users\DhK
\Desktop\ICS\framework-res\res, -M, C:\Users\DhK\Desktop\ICS\framework-res\Andro
idManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
if anybody want try here is my files.... (if "anybody" can build it.... i owe he a beer)
Delete that public.xml in values and try to compile again.
Related
Hi dudes im trying to modify my framework with apkmanager. I decompile.Then,i modify progress_horizontal.xml and recompile. This is a chunk of all i get:
Code:
/home/ciaox/Scaricati/apk_manager_linux_4.7/other/../out/res/values/public.xml:1571: error: Public symbol string/wday_date declared here is not defined.
/home/ciaox/Scaricati/apk_manager_linux_4.7/other/../out/res/values/public.xml:2150: error: Public symbol string/web_user_agent declared here is not defined.
/home/ciaox/Scaricati/apk_manager_linux_4.7/other/../out/res/values/public.xml:2188: error: Public symbol string/week declared here is not defined.
/home/ciaox/Scaricati/apk_manager_linux_4.7/other/../out/res/values/public.xml:2189: error: Public symbol string/weeks declared here is not defined.
/home/ciaox/Scaricati/apk_manager_linux_4.7/other/../out/res/values/public.xml:2210: error: Public symbol string/whichApplication declared here is not defined.
/home/ciaox/Scaricati/apk_manager_linux_4.7/other/../out/res/values/public.xml:2241: error: Public symbol string/wifi_tether_configure_ssid_default declared here is not defined.
/home/ciaox/Scaricati/apk_manager_linux_4.7/other/../out/res/values/public.xml:2190: error: Public symbol string/year declared here is not defined.
/home/ciaox/Scaricati/apk_manager_linux_4.7/other/../out/res/values/public.xml:2191: error: Public symbol string/years declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL8069683802628556507.tmp, -x, -0, arsc, -S, /home/ciaox/Scaricati/apk_manager_linux_4.7/other/../out/res, -M, /home/ciaox/Scaricati/apk_manager_linux_4.7/other/../out/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, /tmp/APKTOOL8069683802628556507.tmp, -x, -0, arsc, -S, /home/ciaox/Scaricati/apk_manager_linux_4.7/other/../out/res, -M, /home/ciaox/Scaricati/apk_manager_linux_4.7/other/../out/AndroidManifest.xml]
at brut.util.OS.exec(Unknown Source)
... 7 more
Apkmanager when compiling also tells me that he cannot find sources.Help me guys this is very important
UUUUP!!!
oK,solution found. I'm running it on Windows,this script will NEVER work on linux.
Hi and sorry if this post is already answerd but i can't find help anywhere...i haven't too much knowlage over linux/android but im trying to learn...so my problem is that i can't compile systemui.apk so i can make some modifications on it...after compile it with apktool 1.4.3 i always get this error
Code:
C:\Apktool\systemui\res\values\public.xml:108: error: Public symbol drawable/sta
t_sys_roaming_cdma_0 declared here is not defined.
C:\Apktool\systemui\res\values\public.xml:9: error: Public symbol drawable/stat_
sys_roaming_cdma_flash declared here is not defined.
C:\Apktool\systemui\res\values\public.xml:109: error: Public symbol drawable/sta
t_sys_roaming_cdma_flash_anim0 declared here is not defined.
C:\Apktool\systemui\res\values\public.xml:110: error: Public symbol drawable/sta
t_sys_roaming_cdma_flash_anim1 declared here is not defined.
C:\Apktool\systemui\res\values\public.xml:111: brut.androlib.AndrolibException:
brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\PIKACH
~1\AppData\Local\Temp\APKTOOL453738301055063751.tmp, -I, C:\Users\Pikachukaki\ap
ktool\framework\1.apk, -I, C:\Users\Pikachukaki\apktool\framework\2.apk, -S, C:\
Apktool\systemui\res, -M, C:\Apktool\systemui\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\PIKACH~1\AppData\Local\Temp\APKTOOL453738301055063751.tmp, -I, C:\Users\Pik
achukaki\apktool\framework\1.apk, -I, C:\Users\Pikachukaki\apktool\framework\2.a
pk, -S, C:\Apktool\systemui\res, -M, C:\Apktool\systemui\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
error: Public symbol drawable/stat_sys_signal_0 declared here is not defined.
C:\Apktool\systemui\res\values\public.xml:112: error: Public symbol drawable/sta
t_sys_signal_0_fully declared here is not defined.
C:\Apktool\systemui\res\values\public.xml:113: error: Public symbol drawable/sta
t_sys_signal_1 declared here is not defined.
C:\Apktool\systemui\res\values\public.xml:114: error: Public symbol drawable/sta
t_sys_signal_1_fully declared here is not defined.
C:\Apktool\systemui\res\values\public.xml:115: error: Public symbol drawable/sta
t_sys_signal_2 declared here is not defined.
The public errors was much more but i short it for the purpose of the post...
I already add my 2 frameworks with if command and add to see if it fix it systemui too..but i still get those errors...i have to say that i have already changed some pngs from drawable-hdpi without compile/decompile the systemui...
And last but not least i have huawei ideos x5 (U8800pro) device...and we heard that huawei has locked his system apks...cos framework-res.apk do the same think!!So if anyone can help me i will be gradeful!!thanks and sorry about my english!!!
Hi every body.
I'm trying to change the gb notification bar to the jb one using this tutorial:
http://forum.xda-developers.com/showthread.php?t=1953934
First of all, I uncompressed SystemUI.apk and framework-res.apk from miniCM7-mimmi.zip.
Then, I decompile systemui using this tutorial:
http://androidforums.com/esteem-all...roperly-decompile-recompile-apks-apktool.html
It worked, I got the systemui files and I changed jelly theme, clearbutton and network information.
But, when I tried to compile, it shows an error:
Code:
C:\Users\victor\Desktop>apktool b systemUI systemUI.apk
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
(skipping index file 'C:\Users\victor\Desktop\systemUI\res\drawable-ldpi\Thu
mbs.db')
(skipping index file 'C:\Users\victor\Desktop\systemUI\res\drawable-mdpi\Thu
mbs.db')
C:\Users\victor\Desktop\systemUI\res\values\styles.xml:24: error: Error parsing
XML: junk after document element
C:\Users\victor\Desktop\systemUI\res\values\public.xml:249: error: Public symbol
style/StatusBar.BatteryBar declared here is not defined.
C:\Users\victor\Desktop\systemUI\res\values\public.xml:248: error: Public symbol
style/StatusBar.ClearButton declared here is not defined.
C:\Users\victor\Desktop\systemUI\res\values\public.xml:247: error: Public symbol
style/TextAppearance.StatusBar.CarrierLabel declared here is not defined.
C:\Users\victor\Desktop\systemUI\res\values\public.xml:250: error: Public symbol
style/TextAppearance.StatusBar.IntruderAlert declared here is not defined.
C:\Users\victor\Desktop\systemUI\res\values\public.xml:246: error: Public symbol
style/TextAppearance.StatusBar.Title declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\victor\AppData\Local\Temp\
APKTOOL8547767369398553713.tmp, -I, C:\Users\victor\apktool\framework\1.apk, -S,
C:\Users\victor\Desktop\systemUI\res, -M, C:\Users\victor\Desktop\systemUI\Andr
oidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\victor\AppData\Local\Temp\APKTOOL8547767369398553713.tmp, -I, C:\Users\vict
or\apktool\framework\1.apk, -S, C:\Users\victor\Desktop\systemUI\res, -M, C:\Use
rs\victor\Desktop\systemUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
C:\Users\victor\Desktop>
Then I searched on Google and I found that I have to update apktool, but I didn't find any new apktool, so I decided to use Apk Manager (4.9).
I decompiled apk, changed the modifications, recompile and signed the apk file.
Then, using root explorer, I changed SystemUI.apk to the signed one, but Notification bar has disappeared.
Do someone know how to change Notification bar, or if I made any mistake?
I have uploaded the original SystemUI.apk and the modificated one.
Thank you very much and sorry for my english.
Nobody can help me?
Well, it looks like you have an error on line 24 of styles.xml.
That needs to be taken care of, before you do anything else.
It also looks like you need apktool 1.5.0. And you're not doing the process right. If you sign a system apk, it won't work. You have to keep the signature from the original file.
There's a sticky in the Themes section that tells you how to do all this.
Or..you could try Tickle My Android, which has the latest apktool and aapt files and can create files properly for you.
Sent from my SK17i using xda premium
Thank you very much, Ticklefish!
I will try again using Tickle My Android.
Hey guyz i m getting an error while recompiling Settings.apk
Code:
C:\Users\DHWANEEL>apktool b Settings
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
C:\Users\DHWANEEL\Settings\res\values\strings.xml:2351: error: Apostrophe not pr
eceded by \ (in Monish's mod)
C:\Users\DHWANEEL\Settings\res\values\public.xml:3498: error: Multiple entry nam
es declared for public entry identifier 0x65d in type string (confirm_new_backup
_pw_prompt vs nav_title).
C:\Users\DHWANEEL\Settings\res\values\public.xml:2821: Originally defined here.
C:\Users\DHWANEEL\Settings\res\values\public.xml:3498: error: Public symbol stri
ng/nav_title declared here is not defined.
C:\Users\DHWANEEL\Settings\res\values\public.xml:3497: error: Multiple entry nam
es declared for public entry identifier 0x65c in type string (new_backup_pw_prom
pt vs quickpanel_location).
C:\Users\DHWANEEL\Settings\res\values\public.xml:2820: Originally defined here.
C:\Users\DHWANEEL\Settings\res\values\public.xml:3497: error: Public symbol stri
ng/quickpanel_location declared here is not defined.
C:\Users\DHWANEEL\Settings\res\values\public.xml:2817: error: Multiple entry nam
es declared for public entry identifier 0x659 in type string (overclocktool_titl
e vs trusted_credentials_remove_confirmation).
C:\Users\DHWANEEL\Settings\res\values\public.xml:3496: Originally defined here.
C:\Users\DHWANEEL\Settings\res\values\public.xml:2817: error: Public symbol stri
ng/trusted_credentials_remove_confirmation declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 16, --target-sdk-version, 16, -F, C:\Users\DHWANEEL\AppData\Local\T
emp\APKTOOL7759177733012026029.tmp, -0, arsc, -I, C:\Users\DHWANEEL\apktool\fram
ework\1.apk, -S, C:\Users\DHWANEEL\Settings\res, -M, C:\Users\DHWANEEL\Settings\
AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-version, 16, -F, C:
\Users\DHWANEEL\AppData\Local\Temp\APKTOOL7759177733012026029.tmp, -0, arsc, -I,
C:\Users\DHWANEEL\apktool\framework\1.apk, -S, C:\Users\DHWANEEL\Settings\res,
-M, C:\Users\DHWANEEL\Settings\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 16, --target-sdk-version, 16, -F, C:\Users\DHWANEEL\AppData\Local\Tem
p\APKTOOL7759177733012026029.tmp, -0, arsc, -I, C:\Users\DHWANEEL\apktool\framew
ork\1.apk, -S, C:\Users\DHWANEEL\Settings\res, -M, C:\Users\DHWANEEL\Settings\An
droidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
Pls help
Check your mods, installed all resource apks etc.
Sorry din't get u....
The error tells you what is wrong. Go through the error line by line and fix each thing it tells you is broken.
Wayne Tech Nexus
When i port the theme and try to compile the theme i get these
C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\res\xml\redirections.xml:4: error: Error: Resource package cannot be an empty string (at 'resource' with value '@xml/android').
C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\res\xml\redirections.xml:5: error: Error: Resource package cannot be an empty string (at 'resource' with value '@xml/com_android_settings').
C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\res\xml\redirections.xml:6: error: Error: Resource package cannot be an empty string (at 'resource' with value '@xml/com_android_systemui').
C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\res\xml\redirections.xml:7: error: Error: Resource package cannot be an empty string (at 'resource' with value '@xml/com_android_vending').
C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\res\drawable\com_android_systemui_ic_notify_button_bg.xml:18: error: Error: Resource package cannot be an empty string (at 'drawable' with value '@drawable/com_android_systemui_list_selector_pressed_holo_dark').
C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\res\drawable\com_android_systemui_ic_notify_button_bg.xml:19: error: Error: Resource package cannot be an empty string (at 'drawable' with value '@drawable/com_android_systemui_notification_expand_background').
C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\res\drawable\com_android_systemui_notification_row_legacy_bg.xml:19: error: Error: Resource package cannot be an empty string (at 'drawable' with value '@drawable/com_android_systemui_notification_header_background').
C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\res\drawable\com_android_systemui_notification_row_legacy_bg.xml:20: error: Error: Resource package cannot be an empty string (at 'drawable' with value '@drawable/com_android_systemui_notification_header_bg').
C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\res\drawable\com_android_systemui_qs_tile_background.xml:18: error: Error: Resource package cannot be an empty string (at 'drawable' with value '@drawable/com_android_systemui_qs_background').
C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\res\drawable\com_android_systemui_qs_tile_background.xml:19: error: Error: Resource package cannot be an empty string (at 'drawable' with value '@drawable/com_android_systemui_qs_first_background').
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 15, -F, C:\Users\Yahia\AppData\Local\Temp\APKTOOL4311929671331448420.tmp, -0, arsc, -I, C:\Users\Yahia\apktool\framework\1.apk, -S, C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\res, -M, C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 15, -F, C:\Users\Yahia\AppData\Local\Temp\APKTOOL4311929671331448420.tmp, -0, arsc, -I, C:\Users\Yahia\apktool\framework\1.apk, -S, C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\res, -M, C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 15, -F, C:\Users\Yahia\AppData\Local\Temp\APKTOOL4311929671331448420.tmp, -0, arsc, -I, C:\Users\Yahia\apktool\framework\1.apk, -S, C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\res, -M, C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more