[HOW TO] Add Ambient Display on Settings [Lollipop] - Nexus 5 Themes and Apps

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 !!

Related

[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

[Q] Problem Recompiling Stock Apps

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

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?

Use Apktool on Z1c

Official download here - http://www.coolapk.com/apk/per.pqy.apktool However, latest version is 6.1, and hasn't worked well for me with stock rom. 6.0.5 works perfectly - https://drive.google.com/file/d/0B1niPALD2vPeNmh6bVRjOU1mZ0k/view?usp=drivesdk
Steps (stock Sony 5.1):
- Download and install
- Make a folder in /sdcard called apktool, (or something), and copy 3 system app files there - framework-res.apk, Semcgenericuxp, (or whatever it's called... it's in framework folder).apk, and SystemUI.apk.
- Open apktool, navigate to apktool folder, and 1 by 1 tap on those 3 files and select 'import'. You should get success messages for each one. If not, don't bother going forward from here, it probably won't work. Framework-res will take a while. You can monitor status of import with 'task' option.
After that's done, you should be able to copy any apk to that folder and decompile. Here's how -
- Tap on apk file and select 'decomplie'. In the next screen, check box for 'run as root', then tap 'decompile'. When done, if successful, you will get a new folder called '(name of app)-src', with all decompiled files.
- Use a file explorer and editor to make changes.
- Go back to apktool and long-press on src folder, and choose 'recompile', and 'run as root'. If successful, a new apk will be created called '(name of app)-src.apk.
This is your new apk, but it has to be signed. Here's how -
For system apps:
- Using a file explorer that can explore apk files, (I prefer Mixplorer), go into the new apk, and delete android_manifest.xml file. Then go into the original of the same apk file, and copy android_manifest.xml file and META-INF folder to the new apk. It's now signed and ready to use. Just copy it to the appropriate system folder, and rename and set permissions 644.
For user apps, (installed into /data):
- Use apktool app, and tap on new apk and select 'sign'. A couple of seconds later you should get a new new apk called '(name of app)-src-signed.apk, which you can install normally.
(Updated)
Its works now for decompilling and recompile?
amodeos said:
Its works now for decompilling and recompile?
Click to expand...
Click to collapse
Yes
Found a newer version here - http://onhax.net/apktool-for-android-v5-2-0-all-versions-is-here-latest - I guess with version 5.0+, you don't need /sdcard/apktool folder but all files are included in app. Anyway, it has more promising-seeming settings, but I still couldn't get a successful recompile so far. I wish I knew how to understand the errors. I bet someone could tweak the app file to get it to work on our phone...
Update - got success on KK. Installed Munjeni's .108 ROM, used latest apktool set settings - 'apktool version: 1.5; aapt version: 4.4; device has root: yes', copied /system/framework/framework-res.apk, /system/framework/semcgenericuxp.apk, and /system/priv-app/systemui/systemui.apk to /sdcard. Tap each framework file and select 'import as framework', then tap systemui apk and select 'decompile all'. When done, you have systemui_src folder for editing. I didn't edit anything, but just for test tapped systemui_src folder, and chose 'recompile', and got success, with new apk created. Signed, and moved to system, and works.
Now I'll keep working on lp. Interesting, here is latest output on recompile -
I: Using Apktool 2.0.0-07ea41-SNAPSHOT on SystemUI.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: /data/data/per.pqy.apktool/1.apk
I: Decoding Shared Library (com.sonyericsson.uxp), pkgId: 2
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
Seems to be no errors, but no new apk is created. Any ideas?
levone1 said:
Update - got success on KK. Installed Munjeni's .108 ROM, used latest apktool set settings - 'apktool version: 1.5; aapt version: 4.4; device has root: yes', copied /system/framework/framework-res.apk, /system/framework/semcgenericuxp.apk, and /system/priv-app/systemui/systemui.apk to /sdcard. Tap each framework file and select 'import as framework', then tap systemui apk and select 'decompile all'. When done, you have systemui_src folder for editing. I didn't edit anything, but just for test tapped systemui_src folder, and chose 'recompile', and got success, with new apk created. Signed, and moved to system, and works.
Now I'll keep working on lp. Interesting, here is latest output on recompile -
I: Using Apktool 2.0.0-07ea41-SNAPSHOT on SystemUI.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: /data/data/per.pqy.apktool/1.apk
I: Decoding Shared Library (com.sonyericsson.uxp), pkgId: 2
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
Seems to be no errors, but no new apk is created. Any ideas?
Click to expand...
Click to collapse
apk is created in apktool\SystemUI\dist folder.
I tried 2.0.2 (with TMA) and it's working on 5.1.1.
Just a bump, in case anyone else is interested. Version 5.02 is working well with latest fw for modding 3rd party app, (see my recent posts here - http://forum.xda-developers.com/showthread.php?t=1929663&page=178#post64177685 Also, another user here - http://forum.xda-developers.com/showthread.php?t=2359240&page=12#post64180188 - seems to be getting success with system apps...
Pls help me eror
Code:
ERROR: Asset package include '/data/data/per.pqy.apktool/1.apk' not found.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktool/apktool/openjdk/bin/aaptnew, p, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 3010372, --version-name, 3.1.372.151210.15c3353_PRC, -F, /data/data/per.pqy.apktool/APKTOOL1247617767483554883.tmp, -0, arsc, -0, apk, -0, , -0, arsc, -I, /data/data/per.pqy.apktool/1.apk, -S, /sdcard/mod/NotificationCenter_src/res, -M, /sdcard/mod/NotificationCenter_src/AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:472)
at brut.androlib.Androlib.buildResources(Androlib.java:410)
at brut.androlib.Androlib.build(Androlib.java:298)
at brut.androlib.Androlib.build(Androlib.java:268)
at brut.apktool.Main.cmdBuild(Main.java:225)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktool/apktool/openjdk/bin/aaptnew, p, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 3010372, --version-name, 3.1.372.151210.15c3353_PRC, -F, /data/data/per.pqy.apktool/APKTOOL1247617767483554883.tmp, -0, arsc, -0, apk, -0, , -0, arsc, -I, /data/data/per.pqy.apktool/1.apk, -S, /sdcard/mod/NotificationCenter_src/res, -M, /sdcard/mod/NotificationCenter_src/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:425)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:458)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktool/apktool/openjdk/bin/aaptnew, p, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 3010372, --version-name, 3.1.372.151210.15c3353_PRC, -F, /data/data/per.pqy.apktool/APKTOOL1247617767483554883.tmp, -0, arsc, -0, apk, -0, , -0, arsc, -I, /data/data/per.pqy.apktool/1.apk, -S, /sdcard/mod/NotificationCenter_src/res, -M, /sdcard/mod/NotificationCenter_src/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:419)
... 6 more
I: Using Apktool 2.0.3
I: Smaling smali folder into classes.dex...
I: Building resources...
nvlinh.kaitoukid said:
Pls help me eror
Code:
ERROR: Asset package include '/data/data/per.pqy.apktool/1.apk' not found.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktool/apktool/openjdk/bin/aaptnew, p, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 3010372, --version-name, 3.1.372.151210.15c3353_PRC, -F, /data/data/per.pqy.apktool/APKTOOL1247617767483554883.tmp, -0, arsc, -0, apk, -0, , -0, arsc, -I, /data/data/per.pqy.apktool/1.apk, -S, /sdcard/mod/NotificationCenter_src/res, -M, /sdcard/mod/NotificationCenter_src/AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:472)
at brut.androlib.Androlib.buildResources(Androlib.java:410)
at brut.androlib.Androlib.build(Androlib.java:298)
at brut.androlib.Androlib.build(Androlib.java:268)
at brut.apktool.Main.cmdBuild(Main.java:225)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktool/apktool/openjdk/bin/aaptnew, p, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 3010372, --version-name, 3.1.372.151210.15c3353_PRC, -F, /data/data/per.pqy.apktool/APKTOOL1247617767483554883.tmp, -0, arsc, -0, apk, -0, , -0, arsc, -I, /data/data/per.pqy.apktool/1.apk, -S, /sdcard/mod/NotificationCenter_src/res, -M, /sdcard/mod/NotificationCenter_src/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:425)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:458)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktool/apktool/openjdk/bin/aaptnew, p, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 3010372, --version-name, 3.1.372.151210.15c3353_PRC, -F, /data/data/per.pqy.apktool/APKTOOL1247617767483554883.tmp, -0, arsc, -0, apk, -0, , -0, arsc, -I, /data/data/per.pqy.apktool/1.apk, -S, /sdcard/mod/NotificationCenter_src/res, -M, /sdcard/mod/NotificationCenter_src/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:419)
... 6 more
I: Using Apktool 2.0.3
I: Smaling smali folder into classes.dex...
I: Building resources...
Click to expand...
Click to collapse
What are you trying to do,(decompile, recompile, which apk, etc). Also, if you wipe data on Apktool app, you delete a necessary file in /data/data, so you have to reinstall the app.
Bump - new version 6.0 released - https://www.google.com/url?sa=t&sou...ggrMAQ&usg=AFQjCNE1AnZq9tew_xjnR7hOPN295_PWhw
Version 6.0.6, (a user's mod - I haven't found a difference from 6.0.5) - https://yadi.sk/d/pwh1wHLXkU3qB
New version works for SystemUI on stock 5.1. Successfully nodded navbar XML and recompiled. Make sure to check 'aapt 5.1' option in popup box when recompiling.
amodeos said:
Its works now for decompilling and recompile?
Click to expand...
Click to collapse
Yes
6.1 released - http://forum.xda-developers.com/showpost.php?p=65590715&postcount=200
levone1 said:
Bump - new version 6.0 released - https://www.google.com/url?sa=t&sou...ggrMAQ&usg=AFQjCNE1AnZq9tew_xjnR7hOPN295_PWhw
Version 6.0.6, (a user's mod - I haven't found a difference from 6.0.5) - https://yadi.sk/d/pwh1wHLXkU3qB
Click to expand...
Click to collapse
How do I get the key for that version of the app?? Every other version is free but it tells me I need a key for 6.0/6.1 apktool. Also I'm having a recompile error with ApkTOOl 5.2 it is unable to execute the aapt files I guess. I've tried aaptnew aapt5.1 aapt4.4 and aapt5.0 none of them work. But decompiling does work. In order to get decompile to work though I had to go online and download IBotPeaches apktool_2.1.1.jar and replace apktool_2.0.0.jar with it to decompile. I'm on my Note 5 running the first release of Marshmallow.
---------- Post added at 06:48 AM ---------- Previous post was at 06:15 AM ----------
ltsJames said:
How do I get the key for that version of the app?? Every other version is free but it tells me I need a key for 6.0/6.1 apktool. Also I'm having a recompile error with ApkTOOl 5.2 it is unable to execute the aapt files I guess. I've tried aaptnew aapt5.1 aapt4.4 and aapt5.0 none of them work. But decompiling does work. In order to get decompile to work though I had to go online and download IBotPeaches apktool_2.1.1.jar and replace apktool_2.0.0.jar with it to decompile. I'm on my Note 5 running the first release of Marshmallow.
Click to expand...
Click to collapse
Nvm, got a working copy of 6.0.6. Thanks for the link!!!!!!
ltsJames said:
How do I get the key for that version of the app?? Every other version is free but it tells me I need a key for 6.0/6.1 apktool. Also I'm having a recompile error with ApkTOOl 5.2 it is unable to execute the aapt files I guess. I've tried aaptnew aapt5.1 aapt4.4 and aapt5.0 none of them work. But decompiling does work. In order to get decompile to work though I had to go online and download IBotPeaches apktool_2.1.1.jar and replace apktool_2.0.0.jar with it to decompile. I'm on my Note 5 running the first release of Marshmallow.
---------- Post added at 06:48 AM ---------- Previous post was at 06:15 AM ----------
Nvm, got a working copy of 6.0.6. Thanks for the link!!!!!!
Click to expand...
Click to collapse
Great. Let me know... For some reason 6.05 works better for me than 6.06 or 6.10.
Bump for op update...
Just found this - https://www.androidfilehost.com/?fid=24572369242686015
Uses apktool 2.2 jar, and no startup wait time, and twice as fast as other one...

Categories

Resources