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.
Related
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.
I am trying to theme a rom I am using and when I build I get a bunch of errors. All I did was replace the original png with the new ones....
Code:
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" (skipping hidden file '/Users/mikec84/Desktop/out/./res/.DS_Store')
(skipping hidden file '/Users/mikec84/Desktop/out/./res/drawable/.DS_Store')
(skipping hidden file '/Users/mikec84/Desktop/out/./res/drawable-hdpi/.DS_Store')
(skipping hidden file '/Users/mikec84/Desktop/out/./res/values/.DS_Store')
/Users/mikec84/Desktop/out/./res/values/public.xml:4352: error: Public entry identifier 0x10804b5 entry index is larger than available symbols (index 1205, total symbols 1205).
/Users/mikec84/Desktop/out/./res/values/public.xml:4352: error: Public symbol drawable/stat_sys_battery_charge_animfull declared here is not defined.
/Users/mikec84/Desktop/out/./res/values/public.xml:4353: error: Public symbol drawable/stat_sys_download_anim6 declared here is not defined.
/Users/mikec84/Desktop/out/./res/values/public.xml:4354: error: Public symbol drawable/stat_sys_download_anim7 declared here is not defined.
/Users/mikec84/Desktop/out/./res/values/public.xml:4355: error: Public symbol drawable/stat_sys_download_anim8 declared here is not defined.
/Users/mikec84/Desktop/out/./res/values/public.xml:4356: error: Public symbol drawable/stat_sys_download_anim9 declared here is not defined.
/Users/mikec84/Desktop/out/./res/values/public.xml:4027: error: Public entry identifier 0x10804ba entry index is larger than available symbols (index 1210, total symbols 1205).
/Users/mikec84/Desktop/out/./res/values/public.xml:4027: error: Public symbol drawable/stat_sys_upload_anim0 declared here is not defined.
/Users/mikec84/Desktop/out/./res/values/public.xml:4028: error: Public entry identifier 0x10804bb entry index is larger than available symbols (index 1211, total symbols 1205).
/Users/mikec84/Desktop/out/./res/values/public.xml:4028: error: Public symbol drawable/stat_sys_upload_anim1 declared here is not defined.
/Users/mikec84/Desktop/out/./res/values/public.xml:4029: error: Public entry identifier 0x10804bc entry index is larger than available symbols (index 1212, total symbols 1205).
/Users/mikec84/Desktop/out/./res/values/public.xml:4029: error: Public symbol drawable/stat_sys_upload_anim2 declared here is not defined.
/Users/mikec84/Desktop/out/./res/values/public.xml:4030: error: Public entry identifier 0x10804bd entry index is larger than available symbols (index 1213, total symbols 1205).
/Users/mikec84/Desktop/out/./res/values/public.xml:4030: error: Public symbol drawable/stat_sys_upload_anim3 declared here is not defined.
/Users/mikec84/Desktop/out/./res/values/public.xml:4031: error: Public entry identifier 0x10804be entry index is larger than available symbols (index 1214, total symbols 1205).
/Users/mikec84/Desktop/out/./res/values/public.xml:4031: error: Public symbol drawable/stat_sys_upload_anim4 declared here is not defined.
/Users/mikec84/Desktop/out/./res/values/public.xml:4032: error: Public entry identifier 0x10804bf entry index is larger than available symbols (index 1215, total symbols 1205).
/Users/mikec84/Desktop/out/./res/values/public.xml:4032: error: Public symbol drawable/stat_sys_upload_anim5 declared here is not defined.
brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /var/folders/fx/phlzw8314jj_dmhwst13db4c0000gn/T/APKTOOL2378841120587575408.tmp, -x, -S, /Users/mikec84/Desktop/out/./res, -M, /Users/mikec84/Desktop/out/./AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java: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, /var/folders/fx/phlzw8314jj_dmhwst13db4c0000gn/T/APKTOOL2378841120587575408.tmp, -x, -S, /Users/mikec84/Desktop/out/./res, -M, /Users/mikec84/Desktop/out/./AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Michaels-iMac:out mikec84$
stat_sys_download_anim0
stat_sys_download_anim1
stat_sys_download_anim2
stat_sys_download_anim3
stat_sys_download_anim4
stat_sys_download_anim5
stat_sys_download_anim6
stat_sys_download_anim7
stat_sys_download_anim8
stat_sys_download_anim9
InIn /res/values/public.xml Not defined
Vincent-LZ said:
stat_sys_download_anim0
stat_sys_download_anim1
stat_sys_download_anim2
stat_sys_download_anim3
stat_sys_download_anim4
stat_sys_download_anim5
stat_sys_download_anim6
stat_sys_download_anim7
stat_sys_download_anim8
stat_sys_download_anim9
InIn /res/values/public.xml Not defined
Click to expand...
Click to collapse
Yea I deleted a few PNG then deleted the code corresponding to those images and thing I messed something up in the process.
I ended up booting to Ubuntu and started over from there..
Sent from my SPH-D710 using xda premium
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL161582936329531702.tmp, -I, /home/michaelc/apktool/framework/1.apk, -S, /home/michaelc/Desktop/outLauncher/./res, -M, /home/michaelc/Desktop/outLauncher/./AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java: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, /tmp/APKTOOL161582936329531702.tmp, -I, /home/michaelc/apktool/framework/1.apk, -S, /home/michaelc/Desktop/outLauncher/./res, -M, /home/michaelc/Desktop/outLauncher/./AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Having an issue when building an apk. This is different from my OP.....
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!!!
While making a wallpaperchooser apk, i faced these errors.
-----------------------------------------------------------------------------
C:\Users\Raj>apktool b A:\wall
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" A:\wall\res\values\public.xml:16: error: Public entry
identifier 0x7f020013 entry index is larger than available symbols (index 19, total symbols 19).
A:\wall\res\values\public.xml:16: error: Public symbol drawable/wallpaper_7_small declared here is not defined.
A:\wall\res\values\public.xml:17: error: Public entry identifier 0x7f020014 entry index is larger than available symbols (index 20, total symbols 19).
A:\wall\res\values\public.xml:17: error: Public symbol drawable/wallpaper_8 declared here is not defined.
A:\wall\res\values\public.xml:18: error: Public entry identifier 0x7f020015 entry index is larger than available symbols (index 21, total symbols 19).
A:\wall\res\values\public.xml:18: error: Public symbol drawable/wallpaper_8_small declared here is not defined.
A:\wall\res\values\public.xml:19: error: Public entry identifier 0x7f020016 entry index is larger than available symbols (index 22, total symbols 19).
A:\wall\res\values\public.xml:19: error: Public symbol drawable/wallpaper_9 declared here is not defined.
A:\wall\res\values\public.xml:20: error: Public entry identifier 0x7f020017 entry index is larger than available symbols (index 23, total symbols 19).
A:\wall\res\values\public.xml:20: error: Public symbol drawable/wallpaper_9_small declared here is not defined.
brut.androlib.AndrolibException: brut.common.BrutException: could not exec comma
nd: [aapt, p, -F, C:\Users\Raj\AppData\Local\Temp\APKTOOL3653207543079537881.tmp
, -I, C:\Users\Raj\apktool\framework\1.apk, -S, A:\wall\res, -M, A:\wall\Android
Manifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java: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\Raj\AppData\Local\Temp\APKTOOL3653207543079537881.tmp, -I, C:\Users\Raj\apk
tool\framework\1.apk, -S, A:\wall\res, -M, A:\wall\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
C:\Users\Raj>
-----------------------------------------------------------------------------
I followed this Method. What is the problem I cant understand. Can anybody help me with this?
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.