[Q] Problem Recompiling Stock Apps - Galaxy S 4 Q&A, Help & Troubleshooting

I tried decompiling the apss, making small changes like changing one .9 png file.
But even if I make no changes, I still cannot recompile it. For other apps I have no problems, just the stock apps, like the SPlannerWidget.
Using apktool to recompile, this is the error I get:
C:\Users\user\Desktop\AndroidApktool>W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
C:\Users\user\Desktop\AndroidApktool\SPlannerAppWi dget\res\values\public.xml:385: error: Public symbol color/APKTOOL_DUMMY_00f3 declared here is not defined.
C:\Users\user\Desktop\AndroidApktool\SPlannerAppWi dget\res\values\public.xml:386: error: Public symbol color/APKTOOL_DUMMY_00f4 declared here is not defined.
C:\Users\user\Desktop\AndroidApktool\SPlannerAppWi dget\res\values\public.xml:387: error: Public symbol color/APKTOOL_DUMMY_00f5 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, 16, --target-sdk-version, 17, -F, C:\Users\user\AppData\Local\Temp\APKTOOL4454488444 059374456.tmp, -0, arsc, -I, C:\Users\user\apktool\framework\1.apk, -S, C:\Users\user\Desktop\AndroidApktool\SPlannerAppWi dget\res, -M, C:\Users\user\Desktop\AndroidApktool\SPlannerAppWi dget\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib .java:358)
at brut.androlib.Androlib.buildResources(Androlib.jav a:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-version, 17, -F, C:\Users\user\AppData\Local\Temp\APKTOOL4454488444 059374456.tmp, -0, arsc, -I, C:\Users\user\apktool\framework\1.apk, -S, C:\Users\user\Desktop\AndroidApktool\SPlannerAppWi dget\res, -M, C:\Users\user\Desktop\AndroidApktool\SPlannerAppWi dget\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.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, 16, --target-sdk-version, 17, -F, C:\Users\user\AppData\Local\Temp\APKTOOL4454488444 059374456.tmp, -0, arsc, -I, C:\Users\user\apktool\framework\1.apk, -S, C:\Users\user\Desktop\AndroidApktool\SPlannerAppWi dget\res, -M, C:\Users\user\Desktop\AndroidApktool\SPlannerAppWi dget\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.java:355)
... 6 more
Why can't I recompile? I see a lot of mods for stock apps here, so obviously, people can successfully recompile stock apps.
I already have framework-res.apk and twframework-res.apk in there.
What's wrong?

excellentlanding said:
I tried decompiling the apss, making small changes like changing one .9 png file.
But even if I make no changes, I still cannot recompile it. For other apps I have no problems, just the stock apps, like the SPlannerWidget.
Using apktool to recompile, this is the error I get:
C:\Users\user\Desktop\AndroidApktool>W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
C:\Users\user\Desktop\AndroidApktool\SPlannerAppWi dget\res\values\public.xml:385: error: Public symbol color/APKTOOL_DUMMY_00f3 declared here is not defined.
C:\Users\user\Desktop\AndroidApktool\SPlannerAppWi dget\res\values\public.xml:386: error: Public symbol color/APKTOOL_DUMMY_00f4 declared here is not defined.
C:\Users\user\Desktop\AndroidApktool\SPlannerAppWi dget\res\values\public.xml:387: error: Public symbol color/APKTOOL_DUMMY_00f5 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, 16, --target-sdk-version, 17, -F, C:\Users\user\AppData\Local\Temp\APKTOOL4454488444 059374456.tmp, -0, arsc, -I, C:\Users\user\apktool\framework\1.apk, -S, C:\Users\user\Desktop\AndroidApktool\SPlannerAppWi dget\res, -M, C:\Users\user\Desktop\AndroidApktool\SPlannerAppWi dget\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib .java:358)
at brut.androlib.Androlib.buildResources(Androlib.jav a:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-version, 17, -F, C:\Users\user\AppData\Local\Temp\APKTOOL4454488444 059374456.tmp, -0, arsc, -I, C:\Users\user\apktool\framework\1.apk, -S, C:\Users\user\Desktop\AndroidApktool\SPlannerAppWi dget\res, -M, C:\Users\user\Desktop\AndroidApktool\SPlannerAppWi dget\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.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, 16, --target-sdk-version, 17, -F, C:\Users\user\AppData\Local\Temp\APKTOOL4454488444 059374456.tmp, -0, arsc, -I, C:\Users\user\apktool\framework\1.apk, -S, C:\Users\user\Desktop\AndroidApktool\SPlannerAppWi dget\res, -M, C:\Users\user\Desktop\AndroidApktool\SPlannerAppWi dget\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.java:355)
... 6 more
Why can't I recompile? I see a lot of mods for stock apps here, so obviously, people can successfully recompile stock apps.
I already have framework-res.apk and twframework-res.apk in there.
What's wrong?
Click to expand...
Click to collapse
read that perhaps can help
http://forum.xda-developers.com/showthread.php?t=2259308

Related

(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

APK Tool Recompiling help

So when i try to recompile the SystemUI.apk with apktool, i get this
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 18, --target-sdk-version, 18, -F, C:\Users\Yannic\AppData\Local\Tem
p\APKTOOL7777543365384498079.tmp, -0, arsc, -I, C:\Users\Yannic\apktool\framewor
k\1.apk, -S, C:\Users\Yannic\Documents\SGS Note 3 ADB\ThemeBackground\APK-Multi-
Tool\other\..\projects\SystemUI\res, -M, C:\Users\Yannic\Documents\SGS Note 3 AD
B\ThemeBackground\APK-Multi-Tool\other\..\projects\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, 18, --target-sdk-version, 18, -F, C:
\Users\Yannic\AppData\Local\Temp\APKTOOL7777543365384498079.tmp, -0, arsc, -I, C
:\Users\Yannic\apktool\framework\1.apk, -S, C:\Users\Yannic\Documents\SGS Note 3
ADB\ThemeBackground\APK-Multi-Tool\other\..\projects\SystemUI\res, -M, C:\Users
\Yannic\Documents\SGS Note 3 ADB\ThemeBackground\APK-Multi-Tool\other\..\project
s\SystemUI\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, 18, --target-sdk-version, 18, -F, C:\Users\Yannic\AppData\Local\Temp\
APKTOOL7777543365384498079.tmp, -0, arsc, -I, C:\Users\Yannic\apktool\framework\
1.apk, -S, C:\Users\Yannic\Documents\SGS Note 3 ADB\ThemeBackground\APK-Multi-To
ol\other\..\projects\SystemUI\res, -M, C:\Users\Yannic\Documents\SGS Note 3 ADB\
ThemeBackground\APK-Multi-Tool\other\..\projects\SystemUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
Can anyone help me? I want to theme my SystemUI.apk with a custom drawer background, but even unchanged, trying to recompile the STOCK SystemUI.apk, even gives me this, i cant recompile it at all, modified or not.

[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?

[HOW TO] Add Ambient Display on Settings [Lollipop]

Hey guys! Today I'll be showing you how to add the Ambient Dislpay in Settings:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
You will need
framework-res.apk from the rom you are modding
SystemUI.apk from your Rom
Notepad++ or another text editor of your choice
apktool
Click to expand...
Click to collapse
Ok now we can start
First decompile Systemui.apk with this comand
Code:
apktool d systemui.apk
Navigate to systemui/res/values/bools and open it with Notepad++ and change this line:
from
PHP:
<bool name="doze_display_state_supported">false</bool>
<bool name="doze_pulse_on_pick_up">false</bool>
to
PHP:
<bool name="doze_display_state_supported">true</bool>
<bool name="doze_pulse_on_pick_up">true</bool>
Save and ricompile systemui with this comand:
Code:
apktool b systemui
Now start to mod framework-res.apk
Decompile framework-res.apk with apktool with this comand:
Code:
apktool d framework-res.apk
Navigate to framework-res/res/values/string and open it with notepad++ and change this line:
from
PHP:
<string name="config_dozeComponent"></string>
to
PHP:
<string name="config_dozeComponent">com.android.systemui/com.android.systemui.doze.DozeService</string>
Save and close.....
Now in the same folder open bool.xml and with notepad++ and mod this line:
from
PHP:
<bool name="config_dozeAfterScreenOff">false</bool>
<bool name="config_powerDecoupleInteractiveModeFromDisplay">false</bool>
to
PHP:
<bool name="config_dozeAfterScreenOff">true</bool>
<bool name="config_powerDecoupleInteractiveModeFromDisplay">true</bool>
Save it and close....
Now in the same folder open Interger.xml with notepad++ andmod this line:
from
PHP:
<integer name="config_screenBrightnessDoze">1</integer>
to
PHP:
<integer name="config_screenBrightnessDoze">17</integer>
Now recompile with this comand:
Code:
apktool b framework-res.apk
That's it!!! Enjoy with your new mod
NB... Remember to insert original Signature after recompile APK,you can find in original folder on apktool​
In attachment file there is my apktool if you need
thanks to david279 for update guide
Just please post the framework for Stock Lollipop Rom
Thanks man but I can't do any of that from my phone right now
---------- Post added at 05:55 PM ---------- Previous post was at 05:50 PM ----------
Oops Nevermind Ubuntu to the rescue
Thank you very much for the apktool
thanks for the apktool
Ok what am i doing wrong
I: Using Apktool 2.0.0-dirty on framework-res.apk
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:247)
at brut.androlib.Androlib.build(Androlib.java:266)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:240)
at brut.apktool.Main.main(Main.java:89)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:243)
... 4 more
get bootlop after doing this :silly: will try it again later btw, thanks OP
david279 said:
Ok what am i doing wrong
I: Using Apktool 2.0.0-dirty on framework-res.apk
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:247)
at brut.androlib.Androlib.build(Androlib.java:266)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:240)
at brut.apktool.Main.main(Main.java:89)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:243)
... 4 more
Click to expand...
Click to collapse
You have java installed?
I though i did. Installing stuff now...
feizhel_vandrago said:
get bootlop after doing this :silly: will try it again later btw, thanks OP
Click to expand...
Click to collapse
You need to put old signature inside framework after compile...same all mods when you use apktool
raffaele88 said:
You need to put old signature inside framework after compile...same all mods when you use apktool
Click to expand...
Click to collapse
i just put original Meta INF & Android Manifest to my decompiled apk, is it wrong or i left something?
whats the sigature? im new to apktool.
Edit....Now this error
I: Using Apktool 2.0.0-dirty on framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" invalid resource directory name: /home/david/Downloads/framework-res/res/values-watch
brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/tmp/brut_util_Jar_2728941901145358304.tmp, p, --forced-package-id, 1, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 21, --version-name, 5.0-1570415, -F, /tmp/APKTOOL3406553026750852423.tmp, -x, -0, arsc, -S, /home/david/Downloads/framework-res/res, -M, /home/david/Downloads/framework-res/AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:449)
at brut.androlib.Androlib.buildResources(Androlib.java:383)
at brut.androlib.Androlib.build(Androlib.java:286)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:240)
at brut.apktool.Main.main(Main.java:89)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/tmp/brut_util_Jar_2728941901145358304.tmp, p, --forced-package-id, 1, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 21, --version-name, 5.0-1570415, -F, /tmp/APKTOOL3406553026750852423.tmp, -x, -0, arsc, -S, /home/david/Downloads/framework-res/res, -M, /home/david/Downloads/framework-res/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:487)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:434)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [/tmp/brut_util_Jar_2728941901145358304.tmp, p, --forced-package-id, 1, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 21, --version-name, 5.0-1570415, -F, /tmp/APKTOOL3406553026750852423.tmp, -x, -0, arsc, -S, /home/david/Downloads/framework-res/res, -M, /home/david/Downloads/framework-res/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:481)
... 6 more
So i dont.
david279 said:
whats the sigature? im new to apktool.
Edit....Now this error
I: Using Apktool 2.0.0-dirty on framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" invalid resource directory name: /home/david/Downloads/framework-res/res/values-watch
brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/tmp/brut_util_Jar_2728941901145358304.tmp, p, --forced-package-id, 1, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 21, --version-name, 5.0-1570415, -F, /tmp/APKTOOL3406553026750852423.tmp, -x, -0, arsc, -S, /home/david/Downloads/framework-res/res, -M, /home/david/Downloads/framework-res/AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:449)
at brut.androlib.Androlib.buildResources(Androlib.java:383)
at brut.androlib.Androlib.build(Androlib.java:286)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:240)
at brut.apktool.Main.main(Main.java:89)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/tmp/brut_util_Jar_2728941901145358304.tmp, p, --forced-package-id, 1, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 21, --version-name, 5.0-1570415, -F, /tmp/APKTOOL3406553026750852423.tmp, -x, -0, arsc, -S, /home/david/Downloads/framework-res/res, -M, /home/david/Downloads/framework-res/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:487)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:434)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [/tmp/brut_util_Jar_2728941901145358304.tmp, p, --forced-package-id, 1, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 21, --version-name, 5.0-1570415, -F, /tmp/APKTOOL3406553026750852423.tmp, -x, -0, arsc, -S, /home/david/Downloads/framework-res/res, -M, /home/david/Downloads/framework-res/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:481)
... 6 more
So i dont.
Click to expand...
Click to collapse
delete the values-watch forlder in res
flex360 said:
delete the values-watch forlder in res
Click to expand...
Click to collapse
Yea i just did that and it worked
Any idea what's causing this error?
Code:
C:\Users\Admin\Desktop\apktool_lolly>apktool b framework-res
I: Using Apktool 2.0.0-dirty on framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\Users\Admin\Desktop\apktool_lolly\framework-
res\res/values-watch
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [C:\Users\Admin\
AppData\Local\Temp\brut_util_Jar_7863948608617729428.tmp, p, --forced-package-id
, 1, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 21, --vers
ion-name, 5.0-1570415, -F, C:\Users\Admin\AppData\Local\Temp\APKTOOL851320018741
208575.tmp, -x, -0, arsc, -S, C:\Users\Admin\Desktop\apktool_lolly\framework-res
\res, -M, C:\Users\Admin\Desktop\apktool_lolly\framework-res\AndroidManifest.xml
]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:449)
at brut.androlib.Androlib.buildResources(Androlib.java:383)
at brut.androlib.Androlib.build(Androlib.java:286)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:240)
at brut.apktool.Main.main(Main.java:89)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [C:\Users\Admin\AppData\Local\Temp\brut_util_Jar_7863948608617729
428.tmp, p, --forced-package-id, 1, --min-sdk-version, 21, --target-sdk-version,
21, --version-code, 21, --version-name, 5.0-1570415, -F, C:\Users\Admin\AppData
\Local\Temp\APKTOOL851320018741208575.tmp, -x, -0, arsc, -S, C:\Users\Admin\Desk
top\apktool_lolly\framework-res\res, -M, C:\Users\Admin\Desktop\apktool_lolly\fr
amework-res\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:487)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:434)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\Admin\Ap
pData\Local\Temp\brut_util_Jar_7863948608617729428.tmp, p, --forced-package-id,
1, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 21, --versio
n-name, 5.0-1570415, -F, C:\Users\Admin\AppData\Local\Temp\APKTOOL85132001874120
8575.tmp, -x, -0, arsc, -S, C:\Users\Admin\Desktop\apktool_lolly\framework-res\r
es, -M, C:\Users\Admin\Desktop\apktool_lolly\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:481)
... 6 more
Delete folder values-watch
Please don't take me the wrong way, you have done a very good job of it but, won't ambient display keep the screen on? Ergo meaning more battery drainage? The reason ambient display is on AMOLED screens are because of the pixel independent display, but LCD is plain old ON/OFF.
raffaele88 said:
Delete folder values-watch
Click to expand...
Click to collapse
Got it edited and compiled, but now it won't boot up... Any ideas?
Anyone get it to boot? I was able to build but it gets stuck at the boot animations.
Thanks a lot for the guide but it would be really appreciated if we could have a precompiled flashable zip of LRX210 stock version for direct flashing !! It would work pretty well !!

Categories

Resources