FORUMS
Remove All Ads from XDA

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

2,528 posts
Thanks Meter: 9,294
 
By raffaele88, Senior Member on 16th November 2014, 11:09 PM
Post Reply Email Thread
17th November 2014, 02:14 AM |#11  
feizhel_vandrago's Avatar
Senior Member
Flag South Kalimantan
Thanks Meter: 54
 
More
Quote:
Originally Posted by raffaele88

You need to put old signature inside framework after compile...same all mods when you use apktool

i just put original Meta INF & Android Manifest to my decompiled apk, is it wrong or i left something?
 
 
17th November 2014, 02:15 AM |#12  
david279's Avatar
Senior Member
Flag New Orleans
Thanks Meter: 1,900
 
Donate to Me
More
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.jav a: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(An drolibResources.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(An drolibResources.java:481)
... 6 more


So i dont.
17th November 2014, 02:42 AM |#13  
flex360's Avatar
Senior Member
Thanks Meter: 6,823
 
Donate to Me
More
Quote:
Originally Posted by david279

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.jav a: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(An drolibResources.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(An drolibResources.java:481)
... 6 more


So i dont.

delete the values-watch forlder in res
17th November 2014, 02:46 AM |#14  
david279's Avatar
Senior Member
Flag New Orleans
Thanks Meter: 1,900
 
Donate to Me
More
Quote:
Originally Posted by flex360

delete the values-watch forlder in res

Yea i just did that and it worked
17th November 2014, 03:02 AM |#15  
Argumentation's Avatar
Senior Member
Flag Washinton, DC
Thanks Meter: 151
 
Donate to Me
More
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
17th November 2014, 03:12 AM |#16  
raffaele88's Avatar
OP Senior Member
Flag Salerno
Thanks Meter: 9,294
 
Donate to Me
More
Delete folder values-watch
The Following User Says Thank You to raffaele88 For This Useful Post: [ View ] Gift raffaele88 Ad-Free
17th November 2014, 03:25 AM |#17  
gamer.11's Avatar
Senior Member
Flag Ernakulam
Thanks Meter: 84
 
More
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.
17th November 2014, 03:47 AM |#18  
Argumentation's Avatar
Senior Member
Flag Washinton, DC
Thanks Meter: 151
 
Donate to Me
More
Quote:
Originally Posted by raffaele88

Delete folder values-watch

Got it edited and compiled, but now it won't boot up... Any ideas?
17th November 2014, 05:13 AM |#19  
david279's Avatar
Senior Member
Flag New Orleans
Thanks Meter: 1,900
 
Donate to Me
More
Anyone get it to boot? I was able to build but it gets stuck at the boot animations.
17th November 2014, 05:18 AM |#20  
nikhil007mmus's Avatar
Inactive Recognized Developer
Flag Pune
Thanks Meter: 8,815
 
Donate to Me
More
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 !!
17th November 2014, 05:31 AM |#21  
ragnarokx's Avatar
Senior Member
Flag GMT-5
Thanks Meter: 516
 
More
Quote:
Originally Posted by nikhil007mmus

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

+1 that would be awesome
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes