[Q] Problems compiling with ApkTool - Galaxy Grand Prime Q&A, Help & Troubleshooting

Hello.
I'm trying to modify some elements in SystemUI.apk (status bar icons), so I edited an especific XML file to do so.
I'm using Windows 10 on my Laptop and Lollipop on my device
I know how to compile and decompile APK's, so that's not my real problem. I'm using the latest version of ApkTool.
ApkTool decompiles the SystemUI without any problems but my problem begins when I'm trying to recompile the APK again (Even if I DON'T edit any files of the APK).
I got the following error:
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\Jonathan\AppData\Local\Temp\brut_util_Jar_92819838988690248.tmp
[and a huuuuge blablablabla]
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\Jonathan\AppData\Local\Temp\brut_util_Jar_92819838988690248.tmp, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 21, --version-name, 5.0.2-G530HXXU2BOH5, -F, C:\Users\Jonathan\AppData\Local\Temp\APKTOOL368471836953682867.tmp
[More blablabla]
at brut.util.OS.exec(OS.java:93)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:419)
... 6 more
Caused by: java.io.IOException: Cannot run program "C:\Users\Jonathan\AppData\Local\Temp\brut_util_Jar_92819838988690248.tmp": CreateProcess error=206, El nombre del archivo o la extensión es demasiado largo
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at brut.util.OS.exec(OS.java:84)
... 7 more
Caused by: java.io.IOException: CreateProcess error=206, El nombre del archivo o la extensión es demasiado largo
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
Click to expand...
Click to collapse
Any ideas please?
Thanks in advance!

Related

(basic?) apktool help needed (linux)

Hi all,
I've been working on this problem for a while now and can't figure it out... I've set my paths, but when I try to run "./apktool b out", I get these errors. The main error seems to be "could not exec command: [aapt"
Any help would be appreciated.
Environment:
Code:
[email protected]:~/Desktop/Android$ echo $ADB
/home/user/apktool/
[email protected]:~/Desktop/Android$ ls /home/user/apktool/
aapt apktool framework
[email protected]:~/Desktop/Android$ ls .
aapt apktool apktool.jar out
Error:
Code:
[email protected]:~/Desktop/Android$ ./apktool b out
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL3036840749983313245.tmp, -I, /home/user/apktool/framework/1.apk, -S, /home/user/Desktop/Android/out/res, -M, /home/user/Desktop/Android/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/APKTOOL3036840749983313245.tmp, -I, /home/user/apktool/framework/1.apk, -S, /home/user/Desktop/Android/out/res, -M, /home/user/Desktop/Android/out/AndroidManifest.xml] at brut.util.OS.exec(Unknown Source)
... 7 more
Caused by: java.io.IOException: Cannot run program "aapt": java.io.IOException: error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:474)
at java.lang.Runtime.exec(Runtime.java:610)
at java.lang.Runtime.exec(Runtime.java:483)
... 8 more
Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.<init>(UNIXProcess.java:164)
at java.lang.ProcessImpl.start(ProcessImpl.java:81)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:467)
... 10 more
Please delete thread, I fixed my issue. But for future people: I didn't place files in /usr/local/bin, then the files were not chmod'ed correctly.

(HELP) Having problem when compiling SystemUI

I was trying to mod something. and when i complie it shows these errors,
1) "C:\apk\SystemUI\res\values\public.xml:227: error: Public symbol drawable/stat_sys_data_fully_connected_lte declared here is not defined."
Where should i define this? In which xml?
and 2) is this
"Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\DOCUME~1\ruby\LOCALS~1\Temp\APKTOOL771954817637 9540634.tmp, -I, C:\Documents and Settings\ruby\apktool\framework\1.apk, -S, C:\Documents and Settings\ruby\Desktop\Apk_Manager_5.0.2\other\..\p rojects\Hype-SystemUI.apk\res, -M, C:\Documents and Settings\ruby\Desktop\Apk_Manager_5.0.2\other\..\p rojects\Hype-SystemUI.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib .java:301)
at brut.androlib.Androlib.buildResources(Androlib.jav a: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:\DOCUME~1\ruby\LOCALS~1\Temp\APKTOOL771954817637 9540634.tmp, -I, C:\Documents and Settings\ruby\apktool\framework\1.apk, -S, C:\Documents and Settings\ruby\Desktop\Apk_Manager_5.0.2\other\..\p rojects\Hype-SystemUI.apk\res, -M, C:\Documents and Settings\ruby\Desktop\Apk_Manager_5.0.2\other\..\p rojects\Hype-SystemUI.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.java:191)
... 6 more"
What it is? Im really confused. So please someone help me!!!
Pliss provide full logcat lol
U must edit the manifest to bro
Sent from my GT-S5360 using Xparent ICS Blue Tapatalk 2
Simple way to decompile nd re compile is use GUI apk tool search it on xda!
Sent from my GT-S5360 using xda premium

[Q] Sense Multitasking Recents Mod for CM10.1

Hello everyone! I beleive this is the correct forum, so let me begin.
My brother recently got an HTC Droid DNA. Ok phone, laggy in some aspects that it should not be, but overall pretty cool. I have fallen in love with Sense Multitasking. I love the sleek look of it, and the reflection at the bottom.
My question is:
Is there any way to get the Sense Multitasking Recents for the Nexus 4?​
I understand certain files would need to be edited and decompiled, and I would be up for doing this. A flashable mod would be preferable, but I have been unable to find one that works. I have however found these two mods, which do exactly what I'm looking for, but for other phones.
Link: http://forum.xda-developers.com/showthread.php?t=2245793
Link: http://forum.xda-developers.com/showthread.php?t=2227191
I have found guides, but most of those guides are for CM9/10 ROMS, and they do not work for CM10.1 for whatever reason.
Link: http://forum.xda-developers.com/showthread.php?t=2066740
Link: http://forum.xda-developers.com/showthread.php?t=1589963
Any help on the matter would be much appreciated!
Many thanks for your time,
Connor Baker
So, in a way I'm bumping this. By digging deeper through the interwebz, I managed to find this guide: http://forum.xda-developers.com/showthread.php?t=2188545
I've made all the edits, and am trying to recompile SystemUI.apk, but apparently something isn't working in the framework-res.apk\res\values\public.xml
Here's the error that I receive in CMD prompt (yes, I am using Windows):
Code:
C:\Users\Connor Baker\Downloads\apktool1.5.2>apktool b framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\Users\Connor Baker\Downloads\apktool1.5.2\fr
amework-res\res/drawable-ldrtl-xhdpi
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\CONNOR~1\AppData\Local\T
emp\APKTOOL3157169261723515344.tmp, -x, -0, arsc, -S, C:\Users\Connor Baker\Down
loads\apktool1.5.2\framework-res\res, -M, C:\Users\Connor Baker\Downloads\apktoo
l1.5.2\framework-res\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, 17, --target-sdk-version, 17, -F, C:
\Users\CONNOR~1\AppData\Local\Temp\APKTOOL3157169261723515344.tmp, -x, -0, arsc,
-S, C:\Users\Connor Baker\Downloads\apktool1.5.2\framework-res\res, -M, C:\User
s\Connor Baker\Downloads\apktool1.5.2\framework-res\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, 17, --target-sdk-version, 17, -F, C:\Users\CONNOR~1\AppData\Local\Tem
p\APKTOOL3157169261723515344.tmp, -x, -0, arsc, -S, C:\Users\Connor Baker\Downlo
ads\apktool1.5.2\framework-res\res, -M, C:\Users\Connor Baker\Downloads\apktool1
.5.2\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
C:\Users\Connor Baker\Downloads\apktool1.5.2>apktool b SystemUI
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
C:\Users\Connor Baker\Downloads\apktool1.5.2\SystemUI\res\values\public.xml:94:
error: Public entry identifier 0x7f0204c0 entry index is larger than available s
ymbols (index 1216, total symbols 1215).
C:\Users\Connor Baker\Downloads\apktool1.5.2\SystemUI\res\values\public.xml:94:
error: Public symbol drawable/nav_bar_bg declared here is not defined.
C:\Users\Connor Baker\Downloads\apktool1.5.2\SystemUI\res\values\public.xml:93:
error: Public entry identifier 0x7f0204bf entry index is larger than available s
ymbols (index 1215, total symbols 1215).
C:\Users\Connor Baker\Downloads\apktool1.5.2\SystemUI\res\values\public.xml:93:
error: Public symbol drawable/notification_header_bg declared here is not define
d.
C:\Users\Connor Baker\Downloads\apktool1.5.2\SystemUI\res\values\public.xml:96:
error: Public entry identifier 0x7f0204c2 entry index is larger than available s
ymbols (index 1218, total symbols 1215).
C:\Users\Connor Baker\Downloads\apktool1.5.2\SystemUI\res\values\public.xml:96:
error: Public symbol drawable/notification_icon_area_smoke declared here is not
defined.
C:\Users\Connor Baker\Downloads\apktool1.5.2\SystemUI\res\values\public.xml:98:
error: Public entry identifier 0x7f0204c4 entry index is larger than available s
ymbols (index 1220, total symbols 1215).
C:\Users\Connor Baker\Downloads\apktool1.5.2\SystemUI\res\values\public.xml:98:
error: Public symbol drawable/notification_item_background_color declared here i
s not defined.
C:\Users\Connor Baker\Downloads\apktool1.5.2\SystemUI\res\values\public.xml:99:
error: Public entry identifier 0x7f0204c5 entry index is larger than available s
ymbols (index 1221, total symbols 1215).
C:\Users\Connor Baker\Downloads\apktool1.5.2\SystemUI\res\values\public.xml:99:
error: Public symbol drawable/notification_item_background_color_pressed declare
d here is not defined.
C:\Users\Connor Baker\Downloads\apktool1.5.2\SystemUI\res\values\public.xml:97:
error: Public entry identifier 0x7f0204c3 entry index is larger than available s
ymbols (index 1219, total symbols 1215).
C:\Users\Connor Baker\Downloads\apktool1.5.2\SystemUI\res\values\public.xml:97:
error: Public symbol drawable/notification_shortcut_background_color declared he
re is not defined.
C:\Users\Connor Baker\Downloads\apktool1.5.2\SystemUI\res\values\public.xml:95:
error: Public entry identifier 0x7f0204c1 entry index is larger than available s
ymbols (index 1217, total symbols 1215).
C:\Users\Connor Baker\Downloads\apktool1.5.2\SystemUI\res\values\public.xml:95:
error: Public symbol drawable/system_bar_background 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, 17, --target-sdk-version, 17, -F, C:\Users\CONNOR~1\AppData\Local\T
emp\APKTOOL467937039532912873.tmp, -0, arsc, -I, C:\Users\Connor Baker\apktool\f
ramework\1.apk, -S, C:\Users\Connor Baker\Downloads\apktool1.5.2\SystemUI\res, -
M, C:\Users\Connor Baker\Downloads\apktool1.5.2\SystemUI\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, 17, --target-sdk-version, 17, -F, C:
\Users\CONNOR~1\AppData\Local\Temp\APKTOOL467937039532912873.tmp, -0, arsc, -I,
C:\Users\Connor Baker\apktool\framework\1.apk, -S, C:\Users\Connor Baker\Downloa
ds\apktool1.5.2\SystemUI\res, -M, C:\Users\Connor Baker\Downloads\apktool1.5.2\S
ystemUI\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, 17, --target-sdk-version, 17, -F, C:\Users\CONNOR~1\AppData\Local\Tem
p\APKTOOL467937039532912873.tmp, -0, arsc, -I, C:\Users\Connor Baker\apktool\fra
mework\1.apk, -S, C:\Users\Connor Baker\Downloads\apktool1.5.2\SystemUI\res, -M,
C:\Users\Connor Baker\Downloads\apktool1.5.2\SystemUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
C:\Users\Connor Baker\Downloads\apktool1.5.2>
So yeah. I'm not sure what I'm doing wrong :l Any help would be gladly appreciated!
Connor Baker
Found what might be the problem (or one of them...):
https://code.google.com/p/android-apktool/issues/detail?id=424
The path appears to be invalid, "C:\Users\Connor Baker\Downloads\apktool1.5.2\framework-res\res/drawable-land-xhdpi". The backslash should be a forward slash. How would I fix this?
Connor Baker
Totally lost and way out my league.
Alright. So, because I really would like to have the Sense multitasking screen, I decided to re-install Ubuntu, in an attempt to see if a different OS fixed the problems I was having. Unfortunately, it didn't. So for whatever reason, I have decided to use the java version of the command.
I did find something interesting though.
When I run the java version of the command:
Code:
[email protected]:/usr/local/bin/apktool1.5.2$ java -jar apktool.jar b finished-framework-res
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.DirectoryException: java.util.zip.ZipException: error in opening zip file
at brut.androlib.Androlib.readMetaFile(Androlib.java:164)
at brut.androlib.Androlib.build(Androlib.java:183)
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.directory.DirectoryException: java.util.zip.ZipException: error in opening zip file
at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:55)
at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:38)
at brut.androlib.res.util.ExtFile.getDirectory(ExtFile.java:55)
at brut.androlib.Androlib.readMetaFile(Androlib.java:160)
... 4 more
[COLOR="Red"][B]Caused by: java.util.zip.ZipException: error in opening zip file[/B][/COLOR]
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:127)
at java.util.zip.ZipFile.<init>(ZipFile.java:143)
at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:53)
... 7 more
I get quite a few errors. But what made me wonder is when I do the same command, except with the flag for aapt (-a), I not only get fewer errors, but a different "Caused by"
Code:
[email protected]:/usr/local/bin/apktool1.5.2$ java -jar apktool.jar b [COLOR="Red"][B]-a[/B][/COLOR] finished-framework-res
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:164)
at brut.androlib.Androlib.build(Androlib.java:183)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
[B][COLOR="Red"]Caused by: brut.directory.PathNotExist: apktool.yml[/COLOR][/B]
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:160)
... 4 more
I am now thoroughly, and utterly lost as to what to do. Again, any suggestions or ideas would be much appreciated.
Many thanks for your time and patience,
Connor Baker
EDIT:
I forgot to mention that I do Google a bunch of my errors and try to be as proactive as possible about solving my problems. I notice that a lot of people are getting the same errors that I am, and that different things will fix it.
I think it could be as simple as apktool not working correctly for me.
So, here's a list of things I have and have not done:
I did install Java (JRE, and JDK)
I did set up the Android SDK (Ubuntu)
I do have working adb (Ubuntu)
I did try to use a variety of programs to get the decompiled and editied .apk's to compile back
I did notice that if I decompiled framework-res.apk, and then tried to recompile it without editing it, I still got the same errors. I'm getting the creepy feeling that it may just be apktool. The latest version that I found was made back on the 2nd of February.
I did try Chainfire's fappt (fast aapt), and recieved the same results as the normal aapt.
I did switch out the aapt from the apktools package with the one in the Android SDK.
I DID NOT mess with any environmental varibales in Windows
I DID NOT add anything to my PATH file/directory "thingy" in Ubuntu
NEW: I have NOT edited SystemUI's public.xml, which may be causing some issues.
Thanks again,
Connor Baker
Pretty sure you need a sense port some guy says he got it booting just wait a while
Sent from my Nexus 4 using xda premium
randomnoob83 said:
Pretty sure you need a sense port some guy says he got it booting just wait a while
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
I would like that and I am following development closely, but right now in the short term (and possibly for the long term as well), I really want to get the Sense Recents Menu look... I find it quite sexy.
Thanks for reminding me about the port though
Connor Baker
randomnoob83 said:
Pretty sure you need a sense port some guy says he got it booting just wait a while
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
The fact that this mod works on devices without sense would say otherwise.
I know there is a sense recent-apps mod for Xperia Arc S, also windows phone and more, cause I had an xperia arc s... What I mean is sense recent-apps could be ported
randomnoob83 said:
Pretty sure you need a sense port some guy says he got it booting just wait a while
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
Actually this feature of sense recents was present for the galaxy nexus and worked on aosp roms. It was even included in aokp but it was eventually removed.
Sense port isn't necessary.
Sent from my Nexus 4 using Tapatalk 4 Beta
Oh. My. God.
I think I figured it out. I decided to use a different PC (my Dad's), and got the same error. I then read through it as closely as possible. I found out that I couldn't compile because it was a path error. I hadn't specified the correct directory. I feel like an idiot
Well, now that it's fixed, I will try to build an compile and test it out
Connor Baker
EDIT: Read my post on the next page :l
Well, it appears that only framework-res compiled successfully. SystemUI still won't compile.
Here's the code:
Code:
C:\Users\Brian\Downloads\APK-Multi-Tool-Experimental-RELEASE\APK-Multi-Tool-Expe
rimental-RELEASE\projects>apktool b SystemUI SystemUI.apk
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
C:\Users\Brian\Downloads\APK-Multi-Tool-Experimental-RELEASE\APK-Multi-Tool-Expe
rimental-RELEASE\projects\SystemUI\res\layout-land\status_bar_recent_panel.xml:5
: error: Error: No resource found that matches the given name (at 'id' with valu
e '@id/recents_transition_background').
C:\Users\Brian\Downloads\APK-Multi-Tool-Experimental-RELEASE\APK-Multi-Tool-Expe
rimental-RELEASE\projects\SystemUI\res\layout-land\status_bar_recent_panel.xml:7
: error: Error: No resource found that matches the given name (at 'id' with valu
e '@id/recents_transition_placeholder_icon').
C:\Users\Brian\Downloads\APK-Multi-Tool-Experimental-RELEASE\APK-Multi-Tool-Expe
rimental-RELEASE\projects\SystemUI\res\layout-land\status_bar_recent_panel.xml:1
1: error: Error: No resource found that matches the given name (at 'text' with v
alue '@string/recent_apps_title').
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\Brian\AppData\Local\Temp
\APKTOOL8099337422514245639.tmp, -0, arsc, -I, C:\Users\Brian\apktool\framework\
1.apk, -S, C:\Users\Brian\Downloads\APK-Multi-Tool-Experimental-RELEASE\APK-Mult
i-Tool-Experimental-RELEASE\projects\SystemUI\res, -M, C:\Users\Brian\Downloads\
APK-Multi-Tool-Experimental-RELEASE\APK-Multi-Tool-Experimental-RELEASE\projects
\SystemUI\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:353)
at brut.androlib.Androlib.buildResources(Androlib.java:281)
at brut.androlib.Androlib.build(Androlib.java:209)
at brut.androlib.Androlib.build(Androlib.java:177)
at brut.apktool.Main.cmdBuild(Main.java:237)
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, 17, --target-sdk-version, 17, -F, C:
\Users\Brian\AppData\Local\Temp\APKTOOL8099337422514245639.tmp, -0, arsc, -I, C:
\Users\Brian\apktool\framework\1.apk, -S, C:\Users\Brian\Downloads\APK-Multi-Too
l-Experimental-RELEASE\APK-Multi-Tool-Experimental-RELEASE\projects\SystemUI\res
, -M, C:\Users\Brian\Downloads\APK-Multi-Tool-Experimental-RELEASE\APK-Multi-Too
l-Experimental-RELEASE\projects\SystemUI\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:406)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:334)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 17, --target-sdk-version, 17, -F, C:\Users\Brian\AppData\Local\Temp\A
PKTOOL8099337422514245639.tmp, -0, arsc, -I, C:\Users\Brian\apktool\framework\1.
apk, -S, C:\Users\Brian\Downloads\APK-Multi-Tool-Experimental-RELEASE\APK-Multi-
Tool-Experimental-RELEASE\projects\SystemUI\res, -M, C:\Users\Brian\Downloads\AP
K-Multi-Tool-Experimental-RELEASE\APK-Multi-Tool-Experimental-RELEASE\projects\S
ystemUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:404)
... 6 more
C:\Users\Brian\Downloads\APK-Multi-Tool-Experimental-RELEASE\APK-Multi-Tool-Expe
rimental-RELEASE\projects>
Thank you again for your time guys!
Connor Baker
Connor Baker said:
Well, it appears that only framework-res compiled successfully. SystemUI still won't compile.
Here's the code:
Code:
C:\Users\Brian\Downloads\APK-Multi-Tool-Experimental-RELEASE\APK-Multi-Tool-Expe
rimental-RELEASE\projects>apktool b SystemUI SystemUI.apk
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
C:\Users\Brian\Downloads\APK-Multi-Tool-Experimental-RELEASE\APK-Multi-Tool-Expe
rimental-RELEASE\projects\SystemUI\res\layout-land\status_bar_recent_panel.xml:5
: error: Error: No resource found that matches the given name (at 'id' with valu
e '@id/recents_transition_background').
C:\Users\Brian\Downloads\APK-Multi-Tool-Experimental-RELEASE\APK-Multi-Tool-Expe
rimental-RELEASE\projects\SystemUI\res\layout-land\status_bar_recent_panel.xml:7
: error: Error: No resource found that matches the given name (at 'id' with valu
e '@id/recents_transition_placeholder_icon').
C:\Users\Brian\Downloads\APK-Multi-Tool-Experimental-RELEASE\APK-Multi-Tool-Expe
rimental-RELEASE\projects\SystemUI\res\layout-land\status_bar_recent_panel.xml:1
1: error: Error: No resource found that matches the given name (at 'text' with v
alue '@string/recent_apps_title').
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\Brian\AppData\Local\Temp
\APKTOOL8099337422514245639.tmp, -0, arsc, -I, C:\Users\Brian\apktool\framework\
1.apk, -S, C:\Users\Brian\Downloads\APK-Multi-Tool-Experimental-RELEASE\APK-Mult
i-Tool-Experimental-RELEASE\projects\SystemUI\res, -M, C:\Users\Brian\Downloads\
APK-Multi-Tool-Experimental-RELEASE\APK-Multi-Tool-Experimental-RELEASE\projects
\SystemUI\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:353)
at brut.androlib.Androlib.buildResources(Androlib.java:281)
at brut.androlib.Androlib.build(Androlib.java:209)
at brut.androlib.Androlib.build(Androlib.java:177)
at brut.apktool.Main.cmdBuild(Main.java:237)
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, 17, --target-sdk-version, 17, -F, C:
\Users\Brian\AppData\Local\Temp\APKTOOL8099337422514245639.tmp, -0, arsc, -I, C:
\Users\Brian\apktool\framework\1.apk, -S, C:\Users\Brian\Downloads\APK-Multi-Too
l-Experimental-RELEASE\APK-Multi-Tool-Experimental-RELEASE\projects\SystemUI\res
, -M, C:\Users\Brian\Downloads\APK-Multi-Tool-Experimental-RELEASE\APK-Multi-Too
l-Experimental-RELEASE\projects\SystemUI\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:406)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:334)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 17, --target-sdk-version, 17, -F, C:\Users\Brian\AppData\Local\Temp\A
PKTOOL8099337422514245639.tmp, -0, arsc, -I, C:\Users\Brian\apktool\framework\1.
apk, -S, C:\Users\Brian\Downloads\APK-Multi-Tool-Experimental-RELEASE\APK-Multi-
Tool-Experimental-RELEASE\projects\SystemUI\res, -M, C:\Users\Brian\Downloads\AP
K-Multi-Tool-Experimental-RELEASE\APK-Multi-Tool-Experimental-RELEASE\projects\S
ystemUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:404)
... 6 more
C:\Users\Brian\Downloads\APK-Multi-Tool-Experimental-RELEASE\APK-Multi-Tool-Expe
rimental-RELEASE\projects>
Thank you again for your time guys!
Connor Baker
Click to expand...
Click to collapse
for CM10.1
you have not add these lines :
- /res/values/strings.xml
add this line to the end
Code:
<string name="recent_apps_title">Recent apps</string>
- /res/values/ids.xml
add this line to the end
Code:
<item type="id" name="recents_transition_background" />
<item type="id" name="recents_transition_placeholder_icon" />
see my guide for CM10.1 http://forum.xda-developers.com/showthread.php?t=2296068
Adi Aisiteru Reborn said:
for CM10.1
you have not add these lines :
- /res/values/strings.xml
add this line to the end
Code:
<string name="recent_apps_title">Recent apps</string>
- /res/values/ids.xml
add this line to the end
Code:
<item type="id" name="recents_transition_background" />
<item type="id" name="recents_transition_placeholder_icon" />
see my guide for CM10.1 http://forum.xda-developers.com/showthread.php?t=2296068
Click to expand...
Click to collapse
I looked through the guide, and I'm slightly confused with the smali editing.
"
STEP - 2
DECOMPILE, SystemUI.apk
go to - smali/com/android/systemui/recent/RecentsPanelView.smali
find this line method :
Code:
.method private updateThumbnail(Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;Landroid/graphics/Bitmap;ZZ)V
Delete that line until its .end method
Code:
.method private updateThumbnail(Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;Landroid/graphics/Bitmap;ZZ)V
-
-
-
DELETE UNTIL .end method
-
-
-
.end method"
Does that mean that from that line onwards (line 861-2081 beleive), until the very end of the page, I just delete the 1000+ lines of code? Or do I stop at the first .end method that comes up after the desired line (.method private updateThumbnail(Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;Landroid/graphics/Bitmap;ZZ)V)?
By the way, thank you a ton for your help! I'm really eager to get this working!
Connor Baker
Connor Baker said:
I looked through the guide, and I'm slightly confused with the smali editing.
"
STEP - 2
DECOMPILE, SystemUI.apk
go to - smali/com/android/systemui/recent/RecentsPanelView.smali
find this line method :
Code:
.method private updateThumbnail(Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;Landroid/graphics/Bitmap;ZZ)V
Delete that line until its .end method
Code:
.method private updateThumbnail(Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;Landroid/graphics/Bitmap;ZZ)V
-
-
-
DELETE UNTIL .end method
-
-
-
.end method"
Does that mean that from that line onwards (line 861-2081 beleive), until the very end of the page, I just delete the 1000+ lines of code? Or do I stop at the first .end method that comes up after the desired line (.method private updateThumbnail(Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;Landroid/graphics/Bitmap;ZZ)V)?
By the way, thank you a ton for your help! I'm really eager to get this working!
Connor Baker
Click to expand...
Click to collapse
not until the very end line of the smali you delete it,
only on that .method..
and each method on the smali has their own .end method
or if you still dont undesrtand just upload me your RecentPanelView.smali , I'll edit it for you
Adi Aisiteru Reborn said:
not until the very end line of the smali you delete it,
only on that .method..
and each method on the smali has their own .end method
or if you still dont undesrtand just upload me your RecentPanelView.smali , I'll edit it for you
Click to expand...
Click to collapse
Many, many, MANY thanks dude!
I'm gonna try to do a fresh re-compile. Thanks for your awesome mod and guide
Connor Baker
Adi Aisiteru Reborn said:
not until the very end line of the smali you delete it,
only on that .method..
and each method on the smali has their own .end method
or if you still dont undesrtand just upload me your RecentPanelView.smali , I'll edit it for you
Click to expand...
Click to collapse
I'm getting this error now for the status_bar_recent_panel in both res\layout and res\layout-land. The only thing I can think of that would cause this problem is a typo or me not copying and pasting correctly into the .xml file.
Also, I attached the files that I thought you'd need if you wanted to take a look at the problem.
Code:
C:\Users\Brian\Downloads\APK-Multi-Tool-Experimental-RELEASE\APK-Multi-Tool-Expe
rimental-RELEASE\projects>apktool b SystemUI SystemUI.apk
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
C:\Users\Brian\Downloads\APK-Multi-Tool-Experimental-RELEASE\APK-Multi-Tool-Expe
rimental-RELEASE\projects\SystemUI\res\layout\status_bar_recent_panel.xml:11: er
ror: Error: No resource found that matches the given name (at 'text' with value
'@string/recent_apps_title').
C:\Users\Brian\Downloads\APK-Multi-Tool-Experimental-RELEASE\APK-Multi-Tool-Expe
rimental-RELEASE\projects\SystemUI\res\layout-land\status_bar_recent_panel.xml:1
1: error: Error: No resource found that matches the given name (at 'text' with v
alue '@string/recent_apps_title').
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\Brian\AppData\Local\Temp
\APKTOOL2279690671510886495.tmp, -0, arsc, -I, C:\Users\Brian\apktool\framework\
1.apk, -S, C:\Users\Brian\Downloads\APK-Multi-Tool-Experimental-RELEASE\APK-Mult
i-Tool-Experimental-RELEASE\projects\SystemUI\res, -M, C:\Users\Brian\Downloads\
APK-Multi-Tool-Experimental-RELEASE\APK-Multi-Tool-Experimental-RELEASE\projects
\SystemUI\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:353)
at brut.androlib.Androlib.buildResources(Androlib.java:281)
at brut.androlib.Androlib.build(Androlib.java:209)
at brut.androlib.Androlib.build(Androlib.java:177)
at brut.apktool.Main.cmdBuild(Main.java:237)
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, 17, --target-sdk-version, 17, -F, C:
\Users\Brian\AppData\Local\Temp\APKTOOL2279690671510886495.tmp, -0, arsc, -I, C:
\Users\Brian\apktool\framework\1.apk, -S, C:\Users\Brian\Downloads\APK-Multi-Too
l-Experimental-RELEASE\APK-Multi-Tool-Experimental-RELEASE\projects\SystemUI\res
, -M, C:\Users\Brian\Downloads\APK-Multi-Tool-Experimental-RELEASE\APK-Multi-Too
l-Experimental-RELEASE\projects\SystemUI\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:406)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:334)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 17, --target-sdk-version, 17, -F, C:\Users\Brian\AppData\Local\Temp\A
PKTOOL2279690671510886495.tmp, -0, arsc, -I, C:\Users\Brian\apktool\framework\1.
apk, -S, C:\Users\Brian\Downloads\APK-Multi-Tool-Experimental-RELEASE\APK-Multi-
Tool-Experimental-RELEASE\projects\SystemUI\res, -M, C:\Users\Brian\Downloads\AP
K-Multi-Tool-Experimental-RELEASE\APK-Multi-Tool-Experimental-RELEASE\projects\S
ystemUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:404)
... 6 more
EDIT: I had to upload the files to my google drive, because XDA won't let me upload .xml files :l
Link: https://drive.google.com/folderview?id=0B3NRC75seiK4NXVTR0x6dm9uYjg&usp=sharing
Many thanks for your time,
Connor Baker
Connor Baker said:
I'm getting this error now for the status_bar_recent_panel in both res\layout and res\layout-land. The only thing I can think of that would cause this problem is a typo or me not copying and pasting correctly into the .xml file.
Also, I attached the files that I thought you'd need if you wanted to take a look at the problem.
Code:
C:\Users\Brian\Downloads\APK-Multi-Tool-Experimental-RELEASE\APK-Multi-Tool-Expe
rimental-RELEASE\projects>apktool b SystemUI SystemUI.apk
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
C:\Users\Brian\Downloads\APK-Multi-Tool-Experimental-RELEASE\APK-Multi-Tool-Expe
rimental-RELEASE\projects\SystemUI\res\layout\status_bar_recent_panel.xml:11: er
ror: Error: No resource found that matches the given name (at 'text' with value
'@string/recent_apps_title').
C:\Users\Brian\Downloads\APK-Multi-Tool-Experimental-RELEASE\APK-Multi-Tool-Expe
rimental-RELEASE\projects\SystemUI\res\layout-land\status_bar_recent_panel.xml:1
1: error: Error: No resource found that matches the given name (at 'text' with v
alue '@string/recent_apps_title').
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\Brian\AppData\Local\Temp
\APKTOOL2279690671510886495.tmp, -0, arsc, -I, C:\Users\Brian\apktool\framework\
1.apk, -S, C:\Users\Brian\Downloads\APK-Multi-Tool-Experimental-RELEASE\APK-Mult
i-Tool-Experimental-RELEASE\projects\SystemUI\res, -M, C:\Users\Brian\Downloads\
APK-Multi-Tool-Experimental-RELEASE\APK-Multi-Tool-Experimental-RELEASE\projects
\SystemUI\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:353)
at brut.androlib.Androlib.buildResources(Androlib.java:281)
at brut.androlib.Androlib.build(Androlib.java:209)
at brut.androlib.Androlib.build(Androlib.java:177)
at brut.apktool.Main.cmdBuild(Main.java:237)
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, 17, --target-sdk-version, 17, -F, C:
\Users\Brian\AppData\Local\Temp\APKTOOL2279690671510886495.tmp, -0, arsc, -I, C:
\Users\Brian\apktool\framework\1.apk, -S, C:\Users\Brian\Downloads\APK-Multi-Too
l-Experimental-RELEASE\APK-Multi-Tool-Experimental-RELEASE\projects\SystemUI\res
, -M, C:\Users\Brian\Downloads\APK-Multi-Tool-Experimental-RELEASE\APK-Multi-Too
l-Experimental-RELEASE\projects\SystemUI\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:406)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:334)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 17, --target-sdk-version, 17, -F, C:\Users\Brian\AppData\Local\Temp\A
PKTOOL2279690671510886495.tmp, -0, arsc, -I, C:\Users\Brian\apktool\framework\1.
apk, -S, C:\Users\Brian\Downloads\APK-Multi-Tool-Experimental-RELEASE\APK-Multi-
Tool-Experimental-RELEASE\projects\SystemUI\res, -M, C:\Users\Brian\Downloads\AP
K-Multi-Tool-Experimental-RELEASE\APK-Multi-Tool-Experimental-RELEASE\projects\S
ystemUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:404)
... 6 more
EDIT: I had to upload the files to my google drive, because XDA won't let me upload .xml files :l
Link: https://drive.google.com/folderview?id=0B3NRC75seiK4NXVTR0x6dm9uYjg&usp=sharing
Many thanks for your time,
Connor Baker
Click to expand...
Click to collapse
read my instruction very carefully
this line which haven't you add yet to the end of strings.xml
Code:
<string name="recent_apps_title">Recent apps</string>
Adi Aisiteru Reborn said:
read my instruction very carefully
this line which haven't you add yet to the end of strings.xml
Code:
<string name="recent_apps_title">Recent apps</string>
Click to expand...
Click to collapse
Wow. I didn't scroll all the way to the bottom and pasted it in the wrong place. :banghead::banghead::banghead::banghead::banghead::banghead:
Well. I should really sleep more.
I'm testing this now. I can not express my gratitude enough dude, and thanks for putting up with me and my... Well, my stupid mistakes.
Connor Baker
Ok. I'm getting stuck on the boot logo, but that's progress.
Both .apks succesfully compiled, but here's the thing: I compiled them using CMD pompt, not apk multi tool. So, I'm not sure if I need to compile the .apks in a certain way, and that's why this is happening, or if something is else going wrong :l
Uploaded the .apks that I compiled.
framework-res.apk: https://docs.google.com/file/d/0B3NRC75seiK4ZXUtOU84MU5Tb2M/edit?usp=sharing
SystemUI.apk: https://docs.google.com/file/d/0B3NRC75seiK4Sk85RDVMRHZlUU0/edit?usp=sharing
Connor Baker
Also, if you would like any logs, or if there is any way that I could help you to help me fix the problem, let me know.
Connor Baker said:
Ok. I'm getting stuck on the boot logo, but that's progress.
Both .apks succesfully compiled, but here's the thing: I compiled them using CMD pompt, not apk multi tool. So, I'm not sure if I need to compile the .apks in a certain way, and that's why this is happening, or if something is else going wrong :l
Uploaded the .apks that I compiled.
framework-res.apk: https://docs.google.com/file/d/0B3NRC75seiK4ZXUtOU84MU5Tb2M/edit?usp=sharing
SystemUI.apk: https://docs.google.com/file/d/0B3NRC75seiK4Sk85RDVMRHZlUU0/edit?usp=sharing
Connor Baker
Also, if you would like any logs, or if there is any way that I could help you to help me fix the problem, let me know.
Click to expand...
Click to collapse
My question is, you are having bootlop or systemUI closes ?
if bootlop , means something wrong with your framework-res.apk, try not to edit framework-res.apk yet,. just use your stok CM10.1 framework-res.apk.
but if you having systemui closes means something from with your editing the systemUI.apk

Please help me for decompile and recompile

dear anyone can help me, please....
i am trying to decompile .apk using xdaAUTOTOOL v4.03,
following the instruction for decompile it 100% succes but i am facing a problem when try to recompile it,
below are the error message
-----------------------------------------------------
[*] Processing Abacus folder...
-----------------------------------------------------
Recompiling Abacus.apk...
I: Smaling...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\johanes\AppData\Local\Temp\APKTOOL71941129915223021.tmp, -I, C:\Users\johanes\apktool\framework\1.apk, -S, C:\xdaAutoTool_V4.0.3\_INPUT_APK\Abacus\res, -M, C:\xdaAutoTool_V4.0.3\_INPUT_APK\Abacus\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(Unknown Source)
at brut.androlib.Androlib.buildResourcesFull(Unknown Source)
at brut.androlib.Androlib.buildResources(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.apktool.Main.cmdBuild(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\johanes\AppData\Local\Temp\APKTOOL71941129915223021.tmp, -I, C:\Users\johanes\apktool\framework\1.apk, -S, C:\xdaAutoTool_V4.0.3\_INPUT_APK\Abacus\res, -M, C:\xdaAutoTool_V4.0.3\_INPUT_APK\Abacus\AndroidManifest.xml]
at brut.util.OS.exec(Unknown Source)
... 7 more
Caused by: java.io.IOException: Cannot run program "aapt": CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
... 8 more
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 11 more
and then
----------------------------------------------------
[*] Processing framework-res folder...
-----------------------------------------------------
Recompiling framework-res.apk...
W: Could not find sources
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\johanes\AppData\Local\Temp\APKTOOL2330454914228838825.tmp, -x, -S, C:\xdaAutoTool_V4.0.3\_INPUT_APK\framework-res\res, -M, C:\xdaAutoTool_V4.0.3\_INPUT_APK\framework-res\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(Unknown Source)
at brut.androlib.Androlib.buildResourcesFull(Unknown Source)
at brut.androlib.Androlib.buildResources(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.apktool.Main.cmdBuild(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\johanes\AppData\Local\Temp\APKTOOL2330454914228838825.tmp, -x, -S, C:\xdaAutoTool_V4.0.3\_INPUT_APK\framework-res\res, -M, C:\xdaAutoTool_V4.0.3\_INPUT_APK\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(Unknown Source)
... 7 more
Caused by: java.io.IOException: Cannot run program "aapt": CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
... 8 more
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 11 more
DONE!
Please help me to solve this problem

[Q] TW 4.4.2 SecContacts Recompile Errors

Has anyone been able to successfully recompile the 4.4.2 SecContacts_Osup.apk after editing/theming the app? I keep getting the following error when trying to recompile with apktool and if I fix the error to get the apk to recompile then the contacts app force closes after installing to phone
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\APK-Multi-Tool\other\..\projects\SecContacts_OSup.apk\res\layout\photo_selector_view_popup.xml:9: error: Error: No resource found that matches the given name (at 'layout' with value '@layout/photo_updates_header').
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\Brett\AppData\Local\Temp\APKTOOL5711550799888320867.tmp, -0, arsc, -I, C:\Users\Brett\apktool\framework\1.apk, -S, C:\APK-Multi-Tool\other\..\projects\SecContacts_OSup.apk\res, -M, C:\APK-Multi-Tool\other\..\projects\SecContacts_OSup.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\Brett\AppData\Local\Temp\APKTOOL5711550799888320867.tmp, -0, arsc, -I, C:\Users\Brett\apktool\framework\1.apk, -S, C:\APK-Multi-Tool\other\..\projects\SecContacts_OSup.apk\res, -M, C:\APK-Multi-Tool\other\..\projects\SecContacts_OSup.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\Brett\AppData\Local\Temp\APKTOOL5711550799888320867.tmp, -0, arsc, -I, C:\Users\Brett\apktool\framework\1.apk, -S, C:\APK-Multi-Tool\other\..\projects\SecContacts_OSup.apk\res, -M, C:\APK-Multi-Tool\other\..\projects\SecContacts_OSup.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
tterb1980 said:
Has anyone been able to successfully recompile the 4.4.2 SecContacts_Osup.apk after editing/theming the app? I keep getting the following error when trying to recompile with apktool and if I fix the error to get the apk to recompile then the contacts app force closes after installing to phone
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\APK-Multi-Tool\other\..\projects\SecContacts_OSup.apk\res\layout\photo_selector_view_popup.xml:9: error: Error: No resource found that matches the given name (at 'layout' with value '@layout/photo_updates_header').
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\Brett\AppData\Local\Temp\APKTOOL5711550799888320867.tmp, -0, arsc, -I, C:\Users\Brett\apktool\framework\1.apk, -S, C:\APK-Multi-Tool\other\..\projects\SecContacts_OSup.apk\res, -M, C:\APK-Multi-Tool\other\..\projects\SecContacts_OSup.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\Brett\AppData\Local\Temp\APKTOOL5711550799888320867.tmp, -0, arsc, -I, C:\Users\Brett\apktool\framework\1.apk, -S, C:\APK-Multi-Tool\other\..\projects\SecContacts_OSup.apk\res, -M, C:\APK-Multi-Tool\other\..\projects\SecContacts_OSup.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\Brett\AppData\Local\Temp\APKTOOL5711550799888320867.tmp, -0, arsc, -I, C:\Users\Brett\apktool\framework\1.apk, -S, C:\APK-Multi-Tool\other\..\projects\SecContacts_OSup.apk\res, -M, C:\APK-Multi-Tool\other\..\projects\SecContacts_OSup.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
Click to expand...
Click to collapse
I have the same error...I try to re install new TWframework and new framework res app...but nothing happend....
Cocolopes said:
I have the same error...I try to re install new TWframework and new framework res app...but nothing happend....
Click to expand...
Click to collapse
I was finally able to get it to work. Replace the photo_selector_view_popup.xml in the layouts folder with the one that I have attached here then recompile SecContacts as usual. Then use 7zip to copy the manifest.mf from the original SecContacts to the one you just created and you should be good to go. By doing this I was able to recompile and install my themed SecContacts and everything is working as usual.
Some help pls!
tterb1980 said:
I was finally able to get it to work. Replace the photo_selector_view_popup.xml in the layouts folder with the one that I have attached here then recompile SecContacts as usual. Then use 7zip to copy the manifest.mf from the original SecContacts to the one you just created and you should be good to go. By doing this I was able to recompile and install my themed SecContacts and everything is working as usual.
Click to expand...
Click to collapse
Hi @tterb1980,
I replaced with the attached file of yours, and it did recompile. Then I used the manifest.mf from old contact apk to my new one (used store option in winrar). Then I placed the new apk (with manifest.mf of old one) to system/priv-app, but it's not showing in app drawer.
What wrong do you think I'm doing. Do I need to use the resources.arsc file, too, of old apk?

Categories

Resources