Related
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.....
I want to do a full theme for ICS, probaly using ViperBoys ROM or the stock deodex ROM. I have to contact Viper yet to get his blessing. One issue though. I can't find a apktool/manager that will compile the modded apk's and xml's. If anyone knows of a apk manager that WILL compile these apk's I would sure love to know about it.
I have tried the WANAM manager, no luck. apk 4.9 and 5.0 no luck. And numerous others. If anyone can help me, I will do a full blown theme for our phones. Decompiling is not a issue, compiling is where all the problems arise.
Suggestions??
What error messages are you getting?
Sent from my EVO using xda premium
errors
mostly public.xml errors. I will try to compile one, then copy and paste the error in here, thanks for your response.
will u teach me alsoo? any hlp will be appreciated
Sent from my HTC One V using xda premium
Numerous people have tired to help you bro. I sent you my tools and you never even replied back. And slayer tried to help you for hours.
If you are getting errors on recompiling then you are probably editing wrong.
You need to post your errors
Sent from my EVO using xda premium
fernando sor said:
Numerous people have tired to help you bro. I sent you my tools and you never even replied back. And slayer tried to help you for hours.
If you are getting errors on recompiling then you are probably editing wrong.
You need to post your errors
Sent from my EVO using xda premium
Click to expand...
Click to collapse
I'm also interested in this. I'd like to do a skin/theme combo if possible. If you have the knowledge/tools to share, I will, in turn, create a How-to thread to share the wealth. Let me know if you and/or slayer can find a few minutes... I'm a very fast learner and a thorough documenter. I'll PM you as well. Thanks in advance.
Sent from my EVO using Tapatalk 2
Edit: fernando sor, I just saw the link in your signature (I was on Tapatalk before) so I'm going to give that a read. Not sure if it works for Sense 4.0 since it's in the Evo 3D forum, but I'm sure at least some, if not most, of the concepts apply. From what I hear, a lot of people are waiting for a release of Virtuous Ten Studio that supports Sense 4.0, but, nonetheless, there are Sense 4.0 themes out there for other devices, so it's certainly possible!
Hi Fernando
I used your tools and they were great, and thanks for sending. The primary reason I posted this was I wanted to see if their was anything new that I might have missed, and I have switched phones since Slayer was working with me.
I'm not unappreciative Fernando, just trying to stay current, one never knows when there might be a break through on this as things can change rapidly at times. My bad for not responding to what you sent. again, they worked great, now if we can just get something for the remaining 16 apk's
teach me??
If you mean will I teach you how to theme, I can only say there are people far better at ti than I am, I only learned recently myself. If you see folks with recognized themer out there by their screen name you would want to check with them, I am not qualified to teach yet, if there is anything else I might be able to help with let me know.
musicman625 said:
Hi Fernando
I used your tools and they were great, and thanks for sending. The primary reason I posted this was I wanted to see if their was anything new that I might have missed, and I have switched phones since Slayer was working with me.
I'm not unappreciative Fernando, just trying to stay current, one never knows when there might be a break through on this as things can change rapidly at times. My bad for not responding to what you sent. again, they worked great, now if we can just get something for the remaining 16 apk's
Click to expand...
Click to collapse
Well if you post the error logs we may be able to help
Sent from my ADR6425LVW using xda premium
sounds good
I plan on trying to work on Framework and Resources tonight to see what I can get accomplished. I will post errors, if you don't mind a nine mile long post lol
So far the only app that I have found that won't even decompile is HtcDialer.apk. All others so far have decompiled and recompiled just fine. You will see flag /integer errors on some of them, ignore them, the app compiles. This is using the same apktool that Fernando is using just fyi. If you are seeing other errors, check your images, there are bad ones, trust me. None of them will compile with image errors.
Sent from LTEVO!
Errors from HTC Resources
---------------------
|Wed 06/06/2012 -- 17:57:30.07|
--------------------------------------------------------------------------
java version "1.7.0_03"
Java(TM) SE Runtime Environment (build 1.7.0_03-b05)
Java HotSpot(TM) 64-Bit Server VM (build 22.1-b02, mixed mode)
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
C:\Android\Apk_Manager_WanamICS\other\..\projects\com.htc.resources.apk\res\values\layouts.xml:3: error: Found tag layout where item is expected
C:\Android\Apk_Manager_WanamICS\other\..\projects\com.htc.resources.apk\res\values\public.xml:1975: error: Public entry identifier 0x2050209 entry index is larger than available symbols (index 521, total symbols 521).
C:\Android\Apk_Manager_WanamICS\other\..\projects\com.htc.resources.apk\res\values\public.xml:1975: error: Public symbol dimen/zero_dummy_dimen declared here is not defined.
C:\Android\Apk_Manager_WanamICS\other\..\projects\com.htc.resources.apk\res\values\public.xml:3854: error: Public symbol layout/htc_list_item_2text_2stamp declared here is not defined.
C:\Android\Apk_Manager_WanamICS\other\..\projects\com.htc.resources.apk\res\values\public.xml:3855: error: Public symbol layout/htc_list_item_2text_bright declared here is not defined.
C:\Android\Apk_Manager_WanamICS\other\..\projects\com.htc.resources.apk\res\values\public.xml:3859: error: Public symbol layout/htc_list_item_dlna_1 declared here is not defined.
C:\Android\Apk_Manager_WanamICS\other\..\projects\com.htc.resources.apk\res\values\public.xml:3856: error: Public symbol layout/htc_list_item_image_2text_image_bright declared here is not defined.
C:\Android\Apk_Manager_WanamICS\other\..\projects\com.htc.resources.apk\res\values\public.xml:3857: error: Public symbol layout/htc_list_item_imageicon_2text_2stamp declared here is not defined.
C:\Android\Apk_Manager_WanamICS\other\..\projects\com.htc.resources.apk\res\values\public.xml:3858: error: Public symbol layout/htc_list_item_separator declared here is not defined.
C:\Android\Apk_Manager_WanamICS\other\..\projects\com.htc.resources.apk\res\values\public.xml:3853: error: Public symbol layout/zero_dummy_layout declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\mike\AppData\Local\Temp\APKTOOL3247610965678022077.tmp, -x, -I, C:\Users\mike\apktool\framework\1.apk, -S, C:\Android\Apk_Manager_WanamICS\other\..\projects\com.htc.resources.apk\res, -M, C:\Android\Apk_Manager_WanamICS\other\..\projects\com.htc.resources.apk\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, C:\Users\mike\AppData\Local\Temp\APKTOOL3247610965678022077.tmp, -x, -I, C:\Users\mike\apktool\framework\1.apk, -S, C:\Android\Apk_Manager_WanamICS\other\..\projects\com.htc.resources.apk\res, -M, C:\Android\Apk_Manager_WanamICS\other\..\projects\com.htc.resources.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
These are the errors I got when compiling Resources, and the apk is from Viper rom
hello can someone help me? i am trying to theme SystemUI.apk but i get error when i try to decompile
Please make your decision:9
Decompiling Apk
testCan't find framework resources for package of id: 2. You must install proper
framework files, see project website for more info.
"An Error Occured, Please Check The Log (option 21)"
Press any key to continue . . .
here is what i get when i first run the script
--------------------------------------------------------------------------
|Fri 06/15/2012 -- 14:54:13.08|
--------------------------------------------------------------------------
'mode' is not recognized as an internal or external command,
operable program or batch file.
java version "1.7.0_05"
Java(TM) SE Runtime Environment (build 1.7.0_05-b05)
Java HotSpot(TM) 64-Bit Server VM (build 23.1-b03, mixed mode)
what am i missing?
Do you have the right resources apk installed?
Sent From My Sweet Ass EVO LTE
Reviving this thread because I installed VTS and went thru the tutorial for creating a skin. I didn't modify any files or settings and these are the errors I get when trying to build the project in step 10. I haven't purchased a license. Anyone have any ideas what the problem is?
14:30:36.779: [Normal] - <BuildProject>d__16.MoveNext: 'Building project: Matte'
14:30:36.787: [Debug] - <>c__DisplayClass38.<BuildApkAsync>b__37: 'Matte: Compiling changed M10 pictures'
14:30:37.048: [Debug] - <>c__DisplayClass38.<BuildApkAsync>b__37: 'Matte: Copying 'C:\Users\myName\Documents\Virtuous Ten Studio\Projects\My.Own.Skin\Matte\Data' to 'C:\Users\myName\AppData\Local\Temp\63166cb4-152f-4b24-8d50-a66904d7bef9''
14:30:38.154: [Debug] - M10Transformer.Encode: 'M10 encode: 93ms'
14:30:38.302: [Debug] - M10Transformer.Encode: 'M10 encode: 18ms'
14:30:38.385: [Normal] - ApkTool.CompileApk: 'Compiling apk'
14:30:38.387: [Debug] - FileSystem.GetJavaInstallationPath: 'Found java path: C:\Program Files (x86)\Java\jre6\bin\java.exe'
14:30:38.387: [Debug] - ApkTool.CompileApk: 'ApkTool args: -jar "C:\Program Files (x86)\Virtuous Ten Studio\External\ApkTool\apktool_1.5.0.jar" b "C:\Users\myName\AppData\Local\Temp\63166cb4-152f-4b24-8d50-a66904d7bef9" "C:\Users\myName\Documents\Virtuous Ten Studio\Projects\My.Own.Skin\Matte\Binary\Matte.apk"'
14:30:43.173: [Error] - ApkTool.CompileApk: 'ApkTool: W: Could not find sources'
14:30:43.174: [Error] - ApkTool.CompileApk: 'ApkTool: I: Checking whether resources has changed...'
14:30:43.176: [Error] - ApkTool.CompileApk: 'ApkTool: I: Building resources...'
14:30:43.176: [Error] - ApkTool.CompileApk: 'ApkTool: C:\Users\myName\AppData\Local\Temp\63166cb4-152f-4b24-8d50-a66904d7bef9\res\values\arrays.xml:18: error: Found tag reference-array where item is expected'
14:30:43.176: [Error] - ApkTool.CompileApk: 'ApkTool: C:\Users\myName\AppData\Local\Temp\63166cb4-152f-4b24-8d50-a66904d7bef9\res\values\public.xml:1008: error: Public symbol array/autocompletetextview_backgrounds declared here is not defined.'
14:30:43.176: [Error] - ApkTool.CompileApk: 'ApkTool: C:\Users\myName\AppData\Local\Temp\63166cb4-152f-4b24-8d50-a66904d7bef9\res\values\public.xml:1004: error: Public symbol array/carousel_colors declared here is not defined.'
14:30:43.176: [Error] - ApkTool.CompileApk: 'ApkTool: C:\Users\myName\AppData\Local\Temp\63166cb4-152f-4b24-8d50-a66904d7bef9\res\values\public.xml:1007: error: Public symbol array/htcbutton_drawables declared here is not defined.'
14:30:43.177: [Error] - ApkTool.CompileApk: 'ApkTool: C:\Users\myName\AppData\Local\Temp\63166cb4-152f-4b24-8d50-a66904d7bef9\res\values\public.xml:1011: error: Public symbol array/htcexpandablelistview_drawables declared here is not defined.'
14:30:43.177: [Error] - ApkTool.CompileApk: 'ApkTool: C:\Users\myName\AppData\Local\Temp\63166cb4-152f-4b24-8d50-a66904d7bef9\res\values\public.xml:1012: error: Public symbol array/htcfastscrollerhrzt_drawables declared here is not defined.'
14:30:43.177: [Error] - ApkTool.CompileApk: 'ApkTool: C:\Users\myName\AppData\Local\Temp\63166cb4-152f-4b24-8d50-a66904d7bef9\res\values\public.xml:1010: error: Public symbol array/quickcontactbadge_drawables declared here is not defined.'
14:30:43.177: [Error] - ApkTool.CompileApk: 'ApkTool: C:\Users\myName\AppData\Local\Temp\63166cb4-152f-4b24-8d50-a66904d7bef9\res\values\public.xml:1005: error: Public symbol array/skinProgressBarArray declared here is not defined.'
14:30:43.178: [Error] - ApkTool.CompileApk: 'ApkTool: C:\Users\myName\AppData\Local\Temp\63166cb4-152f-4b24-8d50-a66904d7bef9\res\values\public.xml:1006: error: Public symbol array/skinSeekBarArray declared here is not defined.'
14:30:43.178: [Error] - ApkTool.CompileApk: 'ApkTool: C:\Users\myName\AppData\Local\Temp\63166cb4-152f-4b24-8d50-a66904d7bef9\res\values\public.xml:1009: error: Public symbol array/togglebutton_backgrounds declared here is not defined.'
14:30:43.178: [Error] - ApkTool.CompileApk: 'ApkTool: Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 16, -F, C:\Users\myName\AppData\Local\Temp\APKTOOL5017037619860584830.tmp, -x, -I, C:\Users\myName\apktool\framework\1.apk, -I, C:\Users\myName\apktool\framework\2-4.0-tag.apk, -S, C:\Users\myName\AppData\Local\Temp\63166cb4-152f-4b24-8d50-a66904d7bef9\res, -M, C:\Users\myName\AppData\Local\Temp\63166cb4-152f-4b24-8d50-a66904d7bef9\AndroidManifest.xml]'
14:30:43.178: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:255)'
14:30:43.179: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.androlib.Androlib.buildResourcesFull(Androlib.java:324)'
14:30:43.179: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.androlib.Androlib.buildResources(Androlib.java:269)'
14:30:43.179: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.androlib.Androlib.build(Androlib.java:192)'
14:30:43.179: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.androlib.Androlib.build(Androlib.java:174)'
14:30:43.180: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.apktool.Main.cmdBuild(Main.java:188)'
14:30:43.180: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.apktool.Main.main(Main.java:70)'
14:30:43.180: [Error] - ApkTool.CompileApk: 'ApkTool: Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 16, -F, C:\Users\myName\AppData\Local\Temp\APKTOOL5017037619860584830.tmp, -x, -I, C:\Users\myName\apktool\framework\1.apk, -I, C:\Users\myName\apktool\framework\2-4.0-tag.apk, -S, C:\Users\myName\AppData\Local\Temp\63166cb4-152f-4b24-8d50-a66904d7bef9\res, -M, C:\Users\myName\AppData\Local\Temp\63166cb4-152f-4b24-8d50-a66904d7bef9\AndroidManifest.xml]'
14:30:43.180: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.util.OS.exec(OS.java:83)'
14:30:43.180: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:253)'
14:30:43.181: [Error] - ApkTool.CompileApk: 'ApkTool: ... 6 more'
14:30:43.181: [Debug] - ApkTool.CompileApk: 'ApkTool failed, see log for further details'
14:30:43.181: [Debug] - ApkTool.CompileApk: 'Exitcode: 1'
14:30:43.252: [Error] - <>c__DisplayClass38.<BuildApkAsync>b__37: 'Matte: Compiling resource files failed!'
Click to expand...
Click to collapse
---------- Post added at 03:18 PM ---------- Previous post was at 02:37 PM ----------
Figured it out. Delete arrays.xml, public.xml, and styles.xml from the data\res\values folder. Everything worked after that.
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.
I have been using ApkManger for a long time. I have used it since 4.2.2. But on Kit Kat 4.4.2 I have alot of problems compiling my apks. Mainly framework-res.apk and SystemUI.apk.
I have updated SDK to 4.4.2, and also updated to the newest version of Java. I have jdk1.7.0_45 and jre1.7.0_51. I thought I may have solved it, but I still received these errors while editing framework-res.apk/res/values/strings and res/values/array
Code:
--------------------------------------------------------------------------
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) Client VM (build 24.51-b03, mixed mode, sharing)
Could Not Find C:\Users\chris\Desktop\Deviant Manager_2\place-apk-here-for-modding\../place-apk-here-for-modding/signedframework-res.apk
Could Not Find C:\Users\chris\Desktop\Deviant Manager_2\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedframework-res.apk
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
--------------------------------------------------------------------------
|Sat 03/22/2014 -- 17:41:25.07|
--------------------------------------------------------------------------
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) Client VM (build 24.51-b03, mixed mode, sharing)
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\arrays.xml:999: error: Error parsing XML: mismatched tag
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6767: error: Public symbol array/allowedOnDataDisabled declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6792: error: Public symbol array/app_ops_labels declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6777: error: Public symbol array/captivePortalAllowedNetworkTypes declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6798: error: Public symbol array/carrier_properties declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6795: error: Public entry identifier 0x107004a entry index is larger than available symbols (index 74, total symbols 15).
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6795: error: Public symbol array/common_nicknames declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6759: error: Public symbol array/config_autoBrightnessButtonBacklightValues declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6757: error: Public symbol array/config_autoBrightnessHysteresisLevels declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6760: error: Public symbol array/config_autoBrightnessKeyboardBacklightValues declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6758: error: Public symbol array/config_autoBrightnessLcdBacklightValues declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6756: error: Public symbol array/config_autoBrightnessLevels declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6776: error: Public entry identifier 0x1070037 entry index is larger than available symbols (index 55, total symbols 15).
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6776: error: Public symbol array/config_callBarringMMI declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6746: error: Public symbol array/config_cdma_dun_supported_types declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6738: error: Public symbol array/config_data_usage_network_types declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6769: error: Public symbol array/config_defaultNotificationVibePattern declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6772: error: Public symbol array/config_disabledUntilUsedPreinstalledImes declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6784: error: Public symbol array/config_dynamicAutoBrightnessHighHysteresisLevels declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6790: error: Public symbol array/config_dynamicAutoBrightnessHighHysteresisLevelsForEbookOnly declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6785: error: Public symbol array/config_dynamicAutoBrightnessHighHysteresisValues declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6791: error: Public symbol array/config_dynamicAutoBrightnessHighHysteresisValuesForEbookOnly declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6782: error: Public symbol array/config_dynamicAutoBrightnessLevels declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6788: error: Public symbol array/config_dynamicAutoBrightnessLevelsForEbookOnly declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6780: error: Public symbol array/config_dynamicAutoBrightnessLowHysteresisLevels declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6786: error: Public symbol array/config_dynamicAutoBrightnessLowHysteresisLevelsForEbookOnly declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6781: error: Public symbol array/config_dynamicAutoBrightnessLowHysteresisValues declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6787: error: Public symbol array/config_dynamicAutoBrightnessLowHysteresisValuesForEbookOnly declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6783: error: Public symbol array/config_dynamicAutoBrightnessValues declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6789: error: Public symbol array/config_dynamicAutoBrightnessValuesForEbookOnly declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6755: error: Public symbol array/config_forceConsumeBatt declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6751: error: Public symbol array/config_keyboardTapVibePattern declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6761: error: Public symbol array/config_locationProviderPackageNames declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6749: error: Public symbol array/config_longPressVibePattern declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6736: error: Public symbol array/config_masterVolumeRamp declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6814: error: Public symbol array/config_maxPenWindowCountIgnoreAppList declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6779: error: Public symbol array/config_minimumExpressiveBrightnessValues declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6744: error: Public symbol array/config_mobile_hotspot_provision_app declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6800: error: Public symbol array/config_multiInstanceSupportAppList declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6804: error: Public symbol array/config_multiWindowAvoidLaunchStyle declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6812: error: Public symbol array/config_multiWindowDefaultAppList declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6807: error: Public symbol array/config_multiWindowDefaultMinimumAppList declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6803: error: Public symbol array/config_multiWindowFixedRatioList declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6808: error: Public symbol array/config_multiWindowHideFlashBarAppList declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6806: error: Public symbol array/config_multiWindowNotSupportScaleApp declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6809: error: Public symbol array/config_multiWindowPortraitLayoutSupportAppList declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6810: error: Public symbol array/config_multiWindowPortraitLayoutSupportExclusiveActivityList declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6805: error: Public symbol array/config_multiWindowSkipFullScreen declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6799: error: Public symbol array/config_multiWindowSupportAppList declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6802: error: Public symbol array/config_multiWindowSupportComponentList declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6801: error: Public symbol array/config_multiWindowSupportPackageList declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6770: error: Public symbol array/config_notificationFallbackVibePattern declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6773: error: Public symbol array/config_notificationScorers declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6765: error: Public symbol array/config_oemUsbModeOverride declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6768: error: Public symbol array/config_onlySingleDcAllowed declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6774: error: Public entry identifier 0x1070035 entry index is larger than available symbols (index 53, total symbols 15).
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6774: error: Public symbol array/config_operatorConsideredNonRoaming declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6813: error: Public symbol array/config_penWindowDefaultAppList declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6811: error: Public symbol array/config_pen_window_applist declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6733: error: Public symbol array/config_protectedNetworks declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6752: error: Public symbol array/config_safeModeDisabledVibePattern declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6753: error: Public symbol array/config_safeModeEnabledVibePattern declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6775: error: Public entry identifier 0x1070036 entry index is larger than available symbols (index 54, total symbols 15).
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6775: error: Public symbol array/config_sameNamedOperatorConsideredRoaming declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6754: error: Public symbol array/config_scrollBarrierVibePattern declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6748: error: Public symbol array/config_serialPorts declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6764: error: Public symbol array/config_sms_enabled_locking_shift_tables declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6763: error: Public entry identifier 0x107002a entry index is larger than available symbols (index 42, total symbols 15).
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6763: error: Public symbol array/config_sms_enabled_single_shift_tables declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6735: error: Public symbol array/config_statusBarIcons declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6742: error: Public symbol array/config_tether_bluetooth_regexs declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6743: error: Public symbol array/config_tether_dhcp_range declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6745: error: Public entry identifier 0x1070018 entry index is larger than available symbols (index 24, total symbols 15).
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6745: error: Public symbol array/config_tether_upstream_types declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6739: error: Public symbol array/config_tether_usb_regexs declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6740: error: Public symbol array/config_tether_wifi_regexs declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6741: error: Public symbol array/config_tether_wimax_regexs declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6762: error: Public entry identifier 0x1070029 entry index is larger than available symbols (index 41, total symbols 15).
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6762: error: Public symbol array/config_twoDigitNumberPattern declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6747: error: Public symbol array/config_usbHostBlacklist declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6778: error: Public symbol array/config_valuesOfVibrationMagnitudeLevel declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6750: error: Public symbol array/config_virtualKeyVibePattern declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6766: error: Public symbol array/hideApnBlackList declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6797: error: Public entry identifier 0x107004c entry index is larger than available symbols (index 76, total symbols 15).
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6797: error: Public symbol array/imAddressTypes declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6793: error: Public entry identifier 0x1070048 entry index is larger than available symbols (index 72, total symbols 15).
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6793: error: Public symbol array/maps_starting_lat_lng declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6794: error: Public entry identifier 0x1070049 entry index is larger than available symbols (index 73, total symbols 15).
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6794: error: Public symbol array/maps_starting_zoom declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6732: error: Public symbol array/networkAttributes declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6796: error: Public symbol array/powerSavingKey declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6729: error: Public symbol array/preloaded_color_state_lists declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6728: error: Public symbol array/preloaded_drawables declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6737: error: Public symbol array/radioAttributes declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6734: error: Public symbol array/shouldNotWriteMessage declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6771: error: Public symbol array/skip_mum_packages declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6730: error: Public symbol array/special_locale_codes declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6731: error: Public symbol array/special_locale_names declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6726: error: Public symbol array/telephony_provider_3lm declared here is not defined.
C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res\values\public.xml:6727: error: Public symbol array/telephony_provider_oem declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 19, --target-sdk-version, 19, -F, C:\Users\chris\AppData\Local\Temp\APKTOOL1216151521948840255.tmp, -x, -S, C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res, -M, C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:357)
at brut.androlib.Androlib.buildResources(Androlib.java:282)
at brut.androlib.Androlib.build(Androlib.java:205)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:218)
at brut.apktool.Main.main(Main.java:74)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 19, --target-sdk-version, 19, -F, C:\Users\chris\AppData\Local\Temp\APKTOOL1216151521948840255.tmp, -x, -S, C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res, -M, C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:349)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:335)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 19, --target-sdk-version, 19, -F, C:\Users\chris\AppData\Local\Temp\APKTOOL1216151521948840255.tmp, -x, -S, C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\res, -M, C:\Users\chris\Desktop\Deviant Manager_2\other\..\projects\framework-res.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:347)
... 6 more
The system cannot find the file specified.
I have made these exact same edits in 4.3 and 4.2.2 with no errors what so ever. Im not a Java guru so I dont know if that is the problem or not. Any help in the right direction is really appreciated
First of all, Always make sure you are running it from a folder that has NO SPACES in it's path, I see your has.
Code:
Could Not Find C:\Users\chris\Desktop\Deviant Manager_2\place-apk-here-for-modding\../place-apk-here-for-modding/signedframework-res.apk
Could Not Find C:\Users\chris\Desktop\Deviant Manager_2\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedframework-res.apk
move the folder to C:\kitchen (safest option) and first decompile the original file again, then make changes and recompile it
delete
I will try it that way.
EDIT: Still getting errors after changing folder location
Code:
-------------------------------------------------------------------------
|Sat 03/22/2014 -- 20:39:32.21|
--------------------------------------------------------------------------
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) Client VM (build 24.51-b03, mixed mode, sharing)
--------------------------------------------------------------------------
|Sat 03/22/2014 -- 20:41:54.01|
--------------------------------------------------------------------------
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) Client VM (build 24.51-b03, mixed mode, sharing)
Could Not Find C:\cygwin64\home\chris\kitchen\ApkManagerV6.1\place-apk-here-for-modding\../place-apk-here-for-modding/signedSystemUI.apk
Could Not Find C:\cygwin64\home\chris\kitchen\ApkManagerV6.1\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedSystemUI.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\chris\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\cygwin64\home\chris\kitchen\ApkManagerV6.1\other\..\projects\SystemUI.apk\res\layout\status_bar.xml:35: error: Error parsing XML: mismatched tag
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 19, --target-sdk-version, 19, -F, C:\Users\chris\AppData\Local\Temp\APKTOOL2108758804020596205.tmp, -0, arsc, -I, C:\Users\chris\apktool\framework\1.apk, -S, C:\cygwin64\home\chris\kitchen\ApkManagerV6.1\other\..\projects\SystemUI.apk\res, -M, C:\cygwin64\home\chris\kitchen\ApkManagerV6.1\other\..\projects\SystemUI.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, 19, --target-sdk-version, 19, -F, C:\Users\chris\AppData\Local\Temp\APKTOOL2108758804020596205.tmp, -0, arsc, -I, C:\Users\chris\apktool\framework\1.apk, -S, C:\cygwin64\home\chris\kitchen\ApkManagerV6.1\other\..\projects\SystemUI.apk\res, -M, C:\cygwin64\home\chris\kitchen\ApkManagerV6.1\other\..\projects\SystemUI.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, 19, --target-sdk-version, 19, -F, C:\Users\chris\AppData\Local\Temp\APKTOOL2108758804020596205.tmp, -0, arsc, -I, C:\Users\chris\apktool\framework\1.apk, -S, C:\cygwin64\home\chris\kitchen\ApkManagerV6.1\other\..\projects\SystemUI.apk\res, -M, C:\cygwin64\home\chris\kitchen\ApkManagerV6.1\other\..\projects\SystemUI.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
aapt: warning: string 'done_button' has no default translation in C:\cygwin64\home\chris\kitchen\ApkManagerV6.1\other\..\projects\SystemUI.apk\res; found: mn
aapt: warning: string 'ssl_ca_cert_dialog_title' has no default translation in C:\cygwin64\home\chris\kitchen\ApkManagerV6.1\other\..\projects\SystemUI.apk\res; found: mn
aapt: warning: string 'ssl_ca_cert_info_message' has no default translation in C:\cygwin64\home\chris\kitchen\ApkManagerV6.1\other\..\projects\SystemUI.apk\res; found: mn
aapt: warning: string 'ssl_ca_cert_settings_button' has no default translation in C:\cygwin64\home\chris\kitchen\ApkManagerV6.1\other\..\projects\SystemUI.apk\res; found: mn
aapt: warning: string 'ssl_ca_cert_warning_message' has no default translation in C:\cygwin64\home\chris\kitchen\ApkManagerV6.1\other\..\projects\SystemUI.apk\res; found: mn
--------------------------------------------------------------------------
|Sat 03/22/2014 -- 20:47:39.06|
--------------------------------------------------------------------------
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) Client VM (build 24.51-b03, mixed mode, sharing)
Could Not Find C:\ApkManagerV6.1\place-apk-here-for-modding\../place-apk-here-for-modding/signedSystemUI.apk
Could Not Find C:\ApkManagerV6.1\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedSystemUI.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\chris\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'done_button' has no default translation in C:\ApkManagerV6.1\other\..\projects\SystemUI.apk\res; found: mn
aapt: warning: string 'ssl_ca_cert_dialog_title' has no default translation in C:\ApkManagerV6.1\other\..\projects\SystemUI.apk\res; found: mn
aapt: warning: string 'ssl_ca_cert_info_message' has no default translation in C:\ApkManagerV6.1\other\..\projects\SystemUI.apk\res; found: mn
aapt: warning: string 'ssl_ca_cert_settings_button' has no default translation in C:\ApkManagerV6.1\other\..\projects\SystemUI.apk\res; found: mn
aapt: warning: string 'ssl_ca_cert_warning_message' has no default translation in C:\ApkManagerV6.1\other\..\projects\SystemUI.apk\res; found: mn
Git Cha Sum Kit Kat
Deviant Development Team Member
Ok certainly there are less errors now, but still some
I see this error:
Code:
SystemUI.apk\res\layout\status_bar.xml:35: error: Error parsing XML: mismatched tag
Can you please give me the original APKS of framework-res.apk and SystemUI.apk ? (you gave me the code, but I need the apk)
Will upload in second
Git Cha Sum Kit Kat
Deviant Development Team Member
Framework-res
SystemUI
The Sickness said:
Framework-res
SystemUI
Click to expand...
Click to collapse
I was able to compile framework-res.apk fine after decompiling it first, were you not able to do this? I haven't tried SystemUI.apk yet though.
Edit: Nevermind wrong framework-res.apk my bad
Double Edit: Still was able to compile your framework-res folder into framework-res.apk fine
The Sickness said:
Framework-res
SystemUI
Click to expand...
Click to collapse
Got it!
What you need to do is this:
Code:
apktool install-framework framework-res.apk < will install framework as dependency
apktool d SystemUI.apk < works
apktool b SystemUI SystemUI.apk < works
apktool d framework-res.apk < works
apktool b framework-res framework-res.apk < works
broodplank1337 said:
Got it!
What you need to do is this:
Code:
apktool install-framework framework-res.apk < will install framework as dependency
apktool d SystemUI.apk < works
apktool b SystemUI SystemUI.apk < works
apktool d framework-res.apk < works
apktool b framework-res framework-res.apk < works
Click to expand...
Click to collapse
Nothing better than double conformation
[email protected] ~/Desktop/apks/system/framework $ apktool b framework-res
I: Using Apktool 2.0.0-Beta7 on framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building apk file...
Click to expand...
Click to collapse
P.S. broodplank is there a difference between 1 & 2 below? They both output the same "Framework installed to: /path-to-apktool-folder/framework/1.apk" I used #2
1. apktool install-framework framework-res.apk
2. apktool if framework-res.apk
Thanks fellas. I also missed a package in SDK. ...installing it now. Sources for Android
Git Cha Sum Kit Kat
Deviant Development Team Member
Surge1223 said:
Nothing better than double conformation
P.S. broodplank is there a difference between 1 & 2 below? They both output the same "Framework installed to: /path-to-apktool-folder/framework/1.apk" I used #2
1. apktool install-framework framework-res.apk
2. apktool if framework-res.apk
Click to expand...
Click to collapse
Idd hehe, and no they are the same actually , 'if' is just the short version
The Sickness said:
Thanks fellas. I also missed a package in SDK. ...installing it now. Sources for Android
Git Cha Sum Kit Kat
Deviant Development Team Member
Click to expand...
Click to collapse
You're welcome, and thats important idd
I did it the exact way you posted.....it showed the errors, but it did compile. I will test it out tomorrow. Bedtime for this ole man......
Surge1223 said:
Nothing better than double conformation
P.S. broodplank is there a difference between 1 & 2 below? They both output the same "Framework installed to: /path-to-apktool-folder/framework/1.apk" I used #2
1. apktool install-framework framework-res.apk
2. apktool if framework-res.apk
Click to expand...
Click to collapse
Nope, those two commands are exactly the same
if stands for "install framework"
i try decompile settings.apk (cm9) and recompile it without changing any thing and get this error: ị just updated apktool to lastest: 2.00 beta 9, latest java 7 u 55, re-install java.. but not resolve problem. please help me! thanks
Code:
--------------------------------------------------------------------------
|Fri 05/23/2014 -- 15:50:46.82|
--------------------------------------------------------------------------
java version "1.7.0_55"
Java(TM) SE Runtime Environment (build 1.7.0_55-b13)
Java HotSpot(TM) Client VM (build 24.55-b03, mixed mode, sharing)
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\HA TRUNG KIEN\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
D:\BACKUP DESKTOP\Android Apps\viet hoa tool\APK-Multi-Toolv1.0.11\APK-Multi-Tool\other\..\projects\Settings.apk\res\layout\lockscreen_targets.xml:7: error: No resource identifier found for attribute 'rightChevronDrawable' in package 'android'
D:\BACKUP DESKTOP\Android Apps\viet hoa tool\APK-Multi-Toolv1.0.11\APK-Multi-Tool\other\..\projects\Settings.apk\res\layout\lockscreen_targets.xml:7: error: No resource identifier found for attribute 'hitRadius' in package 'android'
D:\BACKUP DESKTOP\Android Apps\viet hoa tool\APK-Multi-Toolv1.0.11\APK-Multi-Tool\other\..\projects\Settings.apk\res\layout\lockscreen_targets.xml:7: error: No resource identifier found for attribute 'verticalOffset' in package 'android'
D:\BACKUP DESKTOP\Android Apps\viet hoa tool\APK-Multi-Toolv1.0.11\APK-Multi-Tool\other\..\projects\Settings.apk\res\layout\lockscreen_targets.xml:7: error: No resource identifier found for attribute 'horizontalOffset' in package 'android'
D:\BACKUP DESKTOP\Android Apps\viet hoa tool\APK-Multi-Toolv1.0.11\APK-Multi-Tool\other\..\projects\Settings.apk\res\layout-land\lockscreen_targets.xml:8: error: No resource identifier found for attribute 'rightChevronDrawable' in package 'android'
D:\BACKUP DESKTOP\Android Apps\viet hoa tool\APK-Multi-Toolv1.0.11\APK-Multi-Tool\other\..\projects\Settings.apk\res\layout-land\lockscreen_targets.xml:8: error: No resource identifier found for attribute 'hitRadius' in package 'android'
D:\BACKUP DESKTOP\Android Apps\viet hoa tool\APK-Multi-Toolv1.0.11\APK-Multi-Tool\other\..\projects\Settings.apk\res\layout-land\lockscreen_targets.xml:8: error: No resource identifier found for attribute 'verticalOffset' in package 'android'
D:\BACKUP DESKTOP\Android Apps\viet hoa tool\APK-Multi-Toolv1.0.11\APK-Multi-Tool\other\..\projects\Settings.apk\res\layout-land\lockscreen_targets.xml:8: error: No resource identifier found for attribute 'horizontalOffset' in package 'android'
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 15, --target-sdk-version, 15, -F, C:\Users\HATRUN~1\AppData\Local\Temp\APKTOOL8248359115018077797.tmp, -I, C:\Users\HA TRUNG KIEN\apktool\framework\1.apk, -S, D:\BACKUP DESKTOP\Android Apps\viet hoa tool\APK-Multi-Toolv1.0.11\APK-Multi-Tool\other\..\projects\Settings.apk\res, -M, D:\BACKUP DESKTOP\Android Apps\viet hoa tool\APK-Multi-Toolv1.0.11\APK-Multi-Tool\other\..\projects\Settings.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, --target-sdk-version, 15, -F, C:\Users\HATRUN~1\AppData\Local\Temp\APKTOOL8248359115018077797.tmp, -I, C:\Users\HA TRUNG KIEN\apktool\framework\1.apk, -S, D:\BACKUP DESKTOP\Android Apps\viet hoa tool\APK-Multi-Toolv1.0.11\APK-Multi-Tool\other\..\projects\Settings.apk\res, -M, D:\BACKUP DESKTOP\Android Apps\viet hoa tool\APK-Multi-Toolv1.0.11\APK-Multi-Tool\other\..\projects\Settings.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, --target-sdk-version, 15, -F, C:\Users\HATRUN~1\AppData\Local\Temp\APKTOOL8248359115018077797.tmp, -I, C:\Users\HA TRUNG KIEN\apktool\framework\1.apk, -S, D:\BACKUP DESKTOP\Android Apps\viet hoa tool\APK-Multi-Toolv1.0.11\APK-Multi-Tool\other\..\projects\Settings.apk\res, -M, D:\BACKUP DESKTOP\Android Apps\viet hoa tool\APK-Multi-Toolv1.0.11\APK-Multi-Tool\other\..\projects\Settings.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more