hi guys i modded the stock framework apk to give lower brightness at lower light here are the values i set
10
15
20
30
40
50
55
70
80
100
200
255
Click to expand...
Click to collapse
here are the stock values
14
28
37
51
71
80
96
108
144
181
254
255
Click to expand...
Click to collapse
to install copy the file to your system/framework folder and overwrite the old one
DOWNLOAD
http://www65.zippyshare.com/v/73724600/file.html
Will this work on something like Xylon?
Sent from my Nexus 4 using Tapatalk 2
joshnichols189 said:
Will this work on something like Xylon?
Click to expand...
Click to collapse
No, Xylon uses a modded framework. You flash this and you'll get system UI force close.
if you have some experience with apk manager you can do this yourself it's fairly easy. Here's a write up i did for the galaxy nexus a while ago. It should be similar for the nexus 4 just different values for the brightness.
Basically what you have to do is decompile the framework-res.apk and change the values is arrays.xml and recompile and push it back using adb.
1. Download APK manager
2. Grab framework-res.apk from your phone under \system\framework\ (you can use root explorer or adb push) and place it in the "place-apk-here-for-modding" folder
3. Run Script.bat and select option 9
4. go to projects\framework-res.apk\res\values\arrays.xml and edit your values with the ones roger posted in my link above
5. Once edited, compile the apk using option 11
6. Is this a system apk. Ans: y
7. Qn: Aside from the signatures...least. Ans: y
8. Prompt: In the apk manager folder u'll find a keep folder..... done then press enter on this script. Press any key to continue . . . go to "keep" folder and delete resources.arsc and then press any key
9. Choose option 22 to set project to unsignedframework-res.apk
10. Choose option 5 to zipalign the new apk.
11. rename the unsignedframework-res.apk to framework-res.apk and push it to system/framework with these commands in adb.
Code:
Mount System in recovery
adb push framework-res.apk /system/framework/framework-res.apk
reboot
here are the values in arrays.xml to be changed. (the values and number of items will probably be different for the Nexus 4 but you can add or delete items if you want more or less brightness settings)
Code:
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>16</item>
<item>40</item>
<item>60</item>
<item>70</item>
<item>70</item>
<item>250</item>
</integer-array>
here's what i had the new values at.(The lower value of 5 might be too dim or bright for the nexus 4 so you might have to see what you prefer)
Code:
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>5</item>
<item>20</item>
<item>50</item>
<item>70</item>
<item>150</item>
<item>250</item>
</integer-array>
You can play around with the numbers to see what suits you. Just make sure you do a nandroid backup before attempting this mod.
Will this work even on odexed ?
Sent from my Nexus 4 using xda app-developers app
evostevo1 said:
Will this work even on odexed ?
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
Yep I'm using it on stock odexed
Sent from my Nexus 4 using Tapatalk 2
neotekz said:
if you have some experience with apk manager you can do this yourself it's fairly easy. Here's a write up i did for the galaxy nexus a while ago. It should be similar for the nexus 4 just different values for the brightness.
Basically what you have to do is decompile the framework-res.apk and change the values is arrays.xml and recompile and push it back using adb.
1. Download APK manager
2. Grab framework-res.apk from your phone under \system\framework\ (you can use root explorer or adb push) and place it in the "place-apk-here-for-modding" folder
3. Run Script.bat and select option 9
4. go to projects\framework-res.apk\res\values\arrays.xml and edit your values with the ones roger posted in my link above
5. Once edited, compile the apk using option 11
6. Is this a system apk. Ans: y
7. Qn: Aside from the signatures...least. Ans: y
8. Prompt: In the apk manager folder u'll find a keep folder..... done then press enter on this script. Press any key to continue . . . go to "keep" folder and delete resources.arsc and then press any key
9. Choose option 22 to set project to unsignedframework-res.apk
10. Choose option 5 to zipalign the new apk.
11. rename the unsignedframework-res.apk to framework-res.apk and push it to system/framework with these commands in adb.
Code:
Mount System in recovery
adb push framework-res.apk /system/framework/framework-res.apk
reboot
here are the values in arrays.xml to be changed. (the values and number of items will probably be different for the Nexus 4 but you can add or delete items if you want more or less brightness settings)
Code:
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>16</item>
<item>40</item>
<item>60</item>
<item>70</item>
<item>70</item>
<item>250</item>
</integer-array>
here's what i had the new values at.(The lower value of 5 might be too dim or bright for the nexus 4 so you might have to see what you prefer)
Code:
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>5</item>
<item>20</item>
<item>50</item>
<item>70</item>
<item>150</item>
<item>250</item>
</integer-array>
You can play around with the numbers to see what suits you. Just make sure you do a nandroid backup before attempting this mod.
Click to expand...
Click to collapse
For some reasons APK managers dont work with JB 4.2, The steps in Xylon for Nexus4 are too bright compared to stock, but thanks anyway I will keep looking for a fix.
Sent from my Nexus 4
Will this work with this ROM?
http://forum.xda-developers.com/showthread.php?t=2009561
I am assuming yes, but I just want to make sure.
SIGUEL said:
For some reasons APK managers dont work with JB 4.2, The steps in Xylon for Nexus4 are too bright compared to stock, but thanks anyway I will keep looking for a fix.
Sent from my Nexus 4
Click to expand...
Click to collapse
I posted a apk manager that works with android 4.2.1
http://forum.xda-developers.com/showthread.php?t=2063477
Sent from my Nexus 4 using Tapatalk 2
TheLawIX said:
Will this work with this ROM?
http://forum.xda-developers.com/showthread.php?t=2009561
I am assuming yes, but I just want to make sure.
Click to expand...
Click to collapse
I'm not sure I think that ROM has a custom framework
Sent from my Nexus 4 using Tapatalk 2
newcastle9 said:
I posted a apk manager that works with android 4.2.1
http://forum.xda-developers.com/showthread.php?t=2063477
Sent from my Nexus 4 using Tapatalk 2
Click to expand...
Click to collapse
Thanks a lot, this one worked.
Sent from my Nexus 4
I tried it here, but looks like it didn't work, no change at all for the lowest level.
neotekz said:
if you have some experience with apk manager you can do this yourself it's fairly easy. Here's a write up i did for the galaxy nexus a while ago. It should be similar for the nexus 4 just different values for the brightness.
Basically what you have to do is decompile the framework-res.apk and change the values is arrays.xml and recompile and push it back using adb.
1. Download APK manager
2. Grab framework-res.apk from your phone under \system\framework\ (you can use root explorer or adb push) and place it in the "place-apk-here-for-modding" folder
3. Run Script.bat and select option 9
4. go to projects\framework-res.apk\res\values\arrays.xml and edit your values with the ones roger posted in my link above
5. Once edited, compile the apk using option 11
6. Is this a system apk. Ans: y
7. Qn: Aside from the signatures...least. Ans: y
8. Prompt: In the apk manager folder u'll find a keep folder..... done then press enter on this script. Press any key to continue . . . go to "keep" folder and delete resources.arsc and then press any key
9. Choose option 22 to set project to unsignedframework-res.apk
10. Choose option 5 to zipalign the new apk.
11. rename the unsignedframework-res.apk to framework-res.apk and push it to system/framework with these commands in adb.
Code:
Mount System in recovery
adb push framework-res.apk /system/framework/framework-res.apk
reboot
here are the values in arrays.xml to be changed. (the values and number of items will probably be different for the Nexus 4 but you can add or delete items if you want more or less brightness settings)
Code:
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>16</item>
<item>40</item>
<item>60</item>
<item>70</item>
<item>70</item>
<item>250</item>
</integer-array>
here's what i had the new values at.(The lower value of 5 might be too dim or bright for the nexus 4 so you might have to see what you prefer)
Code:
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>5</item>
<item>20</item>
<item>50</item>
<item>70</item>
<item>150</item>
<item>250</item>
</integer-array>
You can play around with the numbers to see what suits you. Just make sure you do a nandroid backup before attempting this mod.
Click to expand...
Click to collapse
Tried to do that...but i tried to install the compiled apk with "Solid Explorer".
I finished up with all crashing (because of the framework-res replacement) and after a forced reboot i got a boot loop ( i think ). (Oh, i forgot to edit permissions whether its needed) haha
Nandroid restore after that :good:
But i really wanted to try Paranoid Android values in Nexus 4.
I need a more detailed guide because i'm doing something wrong...
I copy/pasted the resources file (from original framework-res.apk) in order to "compile" the apk.....after that...zipaligned.....and then tried to install it normal (but can't) second..tried to install it with the explorer..
thesebastian said:
Tried to do that...but i tried to install the compiled apk with "Solid Explorer".
I finished up with all crashing (because of the framework-res replacement) and after a forced reboot i got a boot loop ( i think ). (Oh, i forgot to edit permissions whether its needed) haha
Nandroid restore after that :good:
But i really wanted to try Paranoid Android values in Nexus 4.
I need a more detailed guide because i'm doing something wrong...
I copy/pasted the resources file (from original framework-res.apk) in order to "compile" the apk.....after that...zipaligned.....and then tried to install it normal (but can't) second..tried to install it with the explorer..
Click to expand...
Click to collapse
Try using a different version of apk manager. I remember having to use a few different versions before it worked. I don't remember what version. It might of been apktool that I used. I haven't done this mod in a while since the auto brightness of the nexus 4 with AOKP is good and I just use screen dim when I want to go lower.
neotekz said:
Try using a different version of apk manager. I remember having to use a few different versions before it worked. I don't remember what version. It might of been apktool that I used. I haven't done this mod in a while since the auto brightness of the nexus 4 with AOKP is good and I just use screen dim when I want to go lower.
Click to expand...
Click to collapse
In my case...i wanted to use Paranoid_Android Kernel (it's AOSP kernel with different gamma settings called "Halfbreed"). But PA ROM has higher Auto Brightness for this gamma...that's why i wanted to try this. I'm on Stock right now QQ.
BTW...i'm very noob with all this...so it's ok
I tried to use apktool 1st...
but i don't know how to sign the file..zip align...etc if i use that tool...
Can it work for 4.3 ?
Hi, I want lower auto brightness to save battery life, but my nexus 4 is 4.3 (I buy it just 3 days)
can I still use this one for lower auto brightness to save battery life ?
can you tell me, how do you mod this? (/system/framework/framework-res.apk)
just unzip it, then change setting, then re-zip it?
I want to learn this skill to mod it by my self.
thanks.
Related
CRT screen off animation for JVP for odexed (stock) and deodexed ROM's.
UPDATE 14.06.2011:
- /framework-res.apk/resources.arsc file isn't compressed (like in stock Samsung ROM's)
- optimized all framework PNGs (with optipng) in framework-res.apk and twframework-res.apk (lower memory footprint, maybe slightly faster)
- autofixing /system/framework permissions in CWM package
10.06.2011:
- fixed CWM package
- enabled animation in /framework-res.apk/res/values/bools.xml
All .apk files all zipaligned, like in stock ROM
Installation:
Download zip and apply via CWM:
CRT_screen_off-optimized-JVP-CWM3-proper.zip (5.71 MB)
OR (if you don't have CWM):
Download framework-res.apk and replace it in /system/framework/ directory by Root Explorer or adb shell. You should have ~6MB free space on /system partition before operation (delete some unneeded apps from system using Root Explorer or nitrality).
framework-res.apk (7.95 MB)
After installation you have to open Settings => Display => Animations and turn them ON to get it working Also don't change speed of animations by Spare Parts or nitrality - it will disable CRT screen off.
thank you so much that was prety fast
BTW what is electron beam ?
can you provide pics pls?
does not work, says installation aborted.
Tested? I Made the same and gives me a bootloop
Edit : cwm3 package Not working.
Sent from my GT-I9000 using Tapatalk
rhadoo04 said:
does not work, says installation aborted.
Click to expand...
Click to collapse
Same here.
Deodexed/zipaligned and dark core kernel 2.7.2 here.
Sorry didn't have CWM3 to test (CF-Root wasn't finished), and there was a problem with update-script. Here's the proper package, should work now:
--links in first post--
Tested on CF-Root for JVP, it works
BTW what is electron beam ?
Click to expand...
Click to collapse
It's other name for CRT screen off animation
Tested? I Made the same and gives me a bootloop
Click to expand...
Click to collapse
Using this framework-re.apk on my phone and it works
Bo$s said:
Sorry didn't have CWM3 to test (CF-Root wasn't finished), and there was a problem with update-script. Here's the proper package, should work now:
CRT_screen_off-JVP-CWM3-proper.zip (5.4 MB)
Tested on CF-Root for JVP, it works
It's other name for CRT screen off animation
Using this framework-re.apk on my phone and it works
Click to expand...
Click to collapse
thanks for the new file, gona try it!
Now i can begin with my new theme for JVP.
edit: Working as i should now, thanks!
CRT animation works a treat on JVP and SpeedMod 15H.
Thanks for doing this so quickly
I'll have to try this later
thanks, working like a charm
thanks great work!!! congratulation
can you please made like this mod for JPJV6 or tell me how to do it
suwidah said:
thanks great work!!! congratulation
can you please made like this mod for JPJV6 or tell me how to do it
Click to expand...
Click to collapse
Download apk_manager 5.0 beta (somewhere in apk_manager thread).
Download apktool 1.4.1 (or newer), extract it, replace apktool.jar in apk_manager/other folder with downloaded version.
Pull framework-res.apk and twframework-res.apk from /system/framework/ and put them in apk_manager (modding folder).
Open apk_manager, choose framework-res.apk as project, decompile it with dependency, as dependency give twframework-res.apk.
After decompile go to projects/framework-res.apk/res/values/.
Open bools.xml in notepad, change value of bool name='config_animateScreenLights' from 'true' to 'false' and save it.
Go to apk_manager, compile, answer Yes for question about system file, answer Yes in next question, go to keep folder, remove resources.arsc, then hit enter in apk_manager.
After successful compile you can choose zipalign options.
You will find unsignedframework-res.apk in modding folder, rename it to framework-res.apk and put in /system/framework/.
Pretty easy
WOW!! very useful and nice step by step.
Thanks Mr. Bo$s I will use your guide after I receive my SGS from repair in Sunday, I will tell you if I successful in this
no I haven't successful it's keep restart on boot animation:confused
I KNOW it says 'CWM3', but will it work with the 'CWM2.5' that comes with speedmod's new kernel?
thx for the response...
WORKED LIKE A CHARM!!!
I ended up using "Super Manager" (free) from the market to install the apk file instead of messing with CWM.
Thanks a lot for that!!
Raman's deodoxed XXJVP with Speedmod kernel k15-t6
DanDroidian said:
I KNOW it says 'CWM3', but will it work with the 'CWM2.5' that comes with speedmod's new kernel?
thx for the response...
Click to expand...
Click to collapse
It should work with CWM 2.5 too.
Sent from my GT-I9000 using Tapatalk
Bo$s said:
Download apk_manager 5.0 beta (somewhere in apk_manager thread).
Download apktool 1.4.1 (or newer), extract it, replace apktool.jar in apk_manager/other folder with downloaded version.
Pull framework-res.apk and twframework-res.apk from /system/framework/ and put them in apk_manager (modding folder).
Open apk_manager, choose framework-res.apk as project, decompile it with dependency, as dependency give twframework-res.apk.
After decompile go to projects/framework-res.apk/res/values/.
Open bools.xml in notepad, change value of bool name='config_animateScreenLights' from 'true' to 'false' and save it.
Go to apk_manager, compile, answer Yes for question about system file, answer Yes in next question, go to keep folder, remove resources.arsc, then hit enter in apk_manager.
After successful compile you can choose zipalign options.
You will find unsignedframework-res.apk in modding folder, rename it to framework-res.apk and put in /system/framework/.
Click to expand...
Click to collapse
after all that make reboot intio cwm recovery and take fix permissions
most of bt wifi drain or any problems come from noobish copying over files via adb, root explorer, cwm flashables that are not setting proper permisions and owners for files... fix permisions should be used 'just in case' after such interference with system
Thanks, works like a charm!
works like a charm, thanks.
Hi,
I wanted to share a little mod that could help in extending battery life - lowering default auto-brightness levels. As all of You know our big, bright SuperAMOLED Plus is an excelent display but for that it uses most of our battery:/ I like the idea of auto-brightness but I find it too bright for most of the time. Setting brightness manualy to one level makes it either too dim or it uses too much battery and switching it all the time that You go outside or turn on the light is a little bit inconvenient. In order to lower auto-brightness levels You have to change values in framework-res.apk/res/values/arrays.xml
These are stock Samsung values:
Code:
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>32</item>
<item>69</item>
<item>118</item>
<item>177</item>
<item>255</item>
</integer-array>
These are values that I use (It is just an example):
Code:
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>5</item>
<item>30</item>
<item>70</item>
<item>130</item>
<item>255</item>
</integer-array>
These brightness levels are corresponding to the amount of light that light sensor is getting - the lowest value is while in the low light the highest when for example your phone is in direct sunlight. Brightness values are defined by numbers 1 is the lowest possible setting and 255 is the maximum brightness that can be set.
As You can see I was pretty aggressive with lowering these values and yet the screen is still bright in every situation. You can set them a little bit higher or lower in order to suit your preferences.
Here is a guide on how to perform this mod on any framework-res.apk using apk manager (thanks for the guide goes to desean):
1. Download APK manager and unpack somewhere
2. Grab framework-res.apk from your phone under \system\framework\ (e.g. adb pull) and place it in the "place-apk-here-for-modding" folder
3. Run Script.bat and select option 9
4. Once done, go to projects\framework-res.apk\res\values\arrays.xml and edit your values as per first post.
5. Once edited, compile the apk using option 11
6. Qn: Is this a system apk. Ans: y
7. Qn: Aside from the signatures, would .... least. Ans: y
8. Prompt: In the apk manager folder u'll find a keep folder..... done then press enter on this script. Press any key to continue . . . You have to go to "keep" folder and delete resources.arsc because arrays.xml have been changed. After this You can press any key in apk manager window.
9. Once done, input 22 in apk manager and select "unsignedframework-res.apk" by entering the number that stands for it. After selecting it You should see in apk main window in the top right corner "Current-App: unsignedframework-res.apk". Now press 5 to zipalign apk. You will find your completed, zipaligned apk under place-apk-here-for-modding\unsignedframework-res.apk. Rename it back to framework-res.apk and adb push the file back to your phone
And here is a link for already modified framework-res.apk (originaly made by Kahvitahra with his modifications - APM + CRT + OS + JKays Green Battery I just added lower auto-brightness levels). It will work only with VillainRom 2.4.2:
http://www.multiupload.com/5TE5GY2J32
I hope that You'll like it
Thanks! 10char
LockeOn said:
Hi,
I wanted to share a little mod that could help in extending battery life - lowering default auto-brightness levels. As all of You know our big, bright SuperAMOLED Plus is an excelent display but for that it uses most of our battery:/ I like the idea of auto-brightness but I find it too bright for most of the time. Setting brightness manualy to one level makes it either too dim or it uses too much battery and switching it all the time that You go outside or turn on the light is a little bit inconvenient. In order to lower auto-brightness levels You have to change values in framework-res.apk/res/values/arrays.xml
These are stock Samsung values:
Code:
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>32</item>
<item>69</item>
<item>118</item>
<item>177</item>
<item>255</item>
</integer-array>
These are values that I use (It is just an example):
Code:
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>5</item>
<item>30</item>
<item>70</item>
<item>130</item>
<item>255</item>
</integer-array>
As You can see I was pretty aggressive with lowering these values and yet the screen is still bright in every situation. You can set them a little bit higher or lower in order to suit your preferences.
Here is a link for already modified framework-res.apk (originaly made by Kahvitahra with his modifications - APM + CRT + OS + JKays Green Battery I just added lower auto-brightness levels). It will work only with VillainRom 2.4.2:
http://www.multiupload.com/5TE5GY2J32
I hope that You'll like it
Click to expand...
Click to collapse
Thanks again
I'm on Batista 3.7.2..
open the framework-res.apk.. but couldn't find the arrays.xml
can i copy n paste the file.. ?
zoule HCo said:
I'm on Batista 3.7.2..
open the framework-res.apk.. but couldn't find the arrays.xml
can i copy n paste the file.. ?
Click to expand...
Click to collapse
You have to decompile the apk first!
zoule HCo said:
I'm on Batista 3.7.2..
open the framework-res.apk.. but couldn't find the arrays.xml
can i copy n paste the file.. ?
Click to expand...
Click to collapse
u need to decompile it /..smali..
kalpik said:
You have to decompile the apk first!
Click to expand...
Click to collapse
yup i already decompile the apk..
batista framework-res.apk i think fully modified..
will download the link above..
compiled, changed the values, can't notice any difference... but I'll keep watching.
Edit:
Ok, lower values - can notice the difference, it works!
My values - 255, 140, 90, 40, 10.
Yeah! Will try to compile later! Thx this was the mod I waiting for!
Sent from my GT-I9100 using XDA App
EDIT: Tryed to compile for cog 1.5 but stuck into bootloop...
EDIT2: Have made it work! Here the file for Cognition 1.5 with Lucid/Hyperdroid Theme with these params:
Code:
<item>3</item>
<item>30</item>
<item>70</item>
<item>140</item>
<item>255</item>
Can you outline the procedure and tools used..just simple steps would do.. Btw is the hack working as expected?
Sent from my GT-I9100 using Tapatalk
Excuse my ignorance, but how do I install this?
Sent from my GT-I9100
lostsoul said:
Excuse my ignorance, but how do I install this?
Sent from my GT-I9100
Click to expand...
Click to collapse
look for APK Manager links and how to
you need to decompil framework-res.apk
then compil back
sicopat said:
look for APK Manager links and how to
you need to decompil framework-res.apk
then compil back
Click to expand...
Click to collapse
Do you have to change anything in the apk manager setting? such as compression rate?
Also, during compiling, it will prompt whether this is a system apk, do I answer "y"?
I really wanted to try this out, using MoDaCo but there is no framework-res.apk/res/values/arrays.xml in the framework-res.apk. Am I pulling it from the right place? I pulled it from /system/framework/
prosumerhacks said:
Can you outline the procedure and tools used..just simple steps would do.. Btw is the hack working as expected?
Sent from my GT-I9100 using Tapatalk
Click to expand...
Click to collapse
lostsoul said:
Excuse my ignorance, but how do I install this?
Sent from my GT-I9100
Click to expand...
Click to collapse
ebliss said:
Do you have to change anything in the apk manager setting? such as compression rate?
Also, during compiling, it will prompt whether this is a system apk, do I answer "y"?
Click to expand...
Click to collapse
I will post a simple guide how to modify any framework-res.apk using apkmanager but it has to wait till midnight or so. Another thing is that I think that 70, 130 and 255 values can be lowered a little bit more - I have been using my phone all day while I was outside and the screen was really bright. If anyone will find some kind of perfect ultra low levels please share them, for now everybody can test their configuration. Last thing - i was using my phone a lot today and battery usage for display went down from usual 68-72% to 55-56%.
ebliss said:
Do you have to change anything in the apk manager setting? such as compression rate?
Also, during compiling, it will prompt whether this is a system apk, do I answer "y"?
Click to expand...
Click to collapse
yes
DanRyb said:
I really wanted to try this out, using MoDaCo but there is no framework-res.apk/res/values/arrays.xml in the framework-res.apk. Am I pulling it from the right place? I pulled it from /system/framework/
Click to expand...
Click to collapse
on post 5, it is already mentioned that you need to decompile the apk first!
Thanks for your reply, but I did decompile it! I do not see that file within the structure listed!
desean said:
yes
on post 5, it is already mentioned that you need to decompile the apk first!
Click to expand...
Click to collapse
ebliss said:
Do you have to change anything in the apk manager setting? such as compression rate?
Also, during compiling, it will prompt whether this is a system apk, do I answer "y"?
Click to expand...
Click to collapse
don't change compression rate
every apks located in /system folders are system apk so Yes.
you press Yes then Yes again. a keep folder is created delete ressources.acrs in it, then press any kay in apk manager windows
in place here apk to mod you have now unsignedframework-res.apk, just rename it in framework-res.apk and if you want you can zipallign it (it will work without last step)
Thanks LockeOn for sharing.
Just a quick how-to for everyone else before more people post on how to apply the MOD, using APK manager (I think this is the easiest method)
Steps
Download APK manager and unpack somewhere
Grab framework-res.apk from your phone under \system\framework\ (e.g. adb pull) and place it in the "place-apk-here-for-modding" folder
Run Script.bat and select option 9
Once done, go to projects\framework-res.apk\res\values\arrays.xml and edit your values as per first post.
Once edited, compile the apk using option 11
Qn: Is this a system apk. Ans: y
Qn: Aside from the signatures, would .... least. Ans: y
Prompt: In the apk manager folder u'll find a keep folder..... done then press enter on this script. Press any key to continue . . . You have to go to "keep" folder and delete resources.arsc because arrays.xml have been changed. After this You can press any key in apk manager window.
Once done, input 22 in apk manager and select "unsignedframework-res.apk" by entering the number that stands for it. After selecting it You should see in apk main window in the top right corner "Current-App: unsignedframework-res.apk". Now press 5 to zipalign apk. You will find your completed, zipaligned apk under place-apk-here-for-modding\unsignedframework-res.apk
rename back to framework-res.apk and adb push the file back to your phone.
And here are the values I use, taking some values from my Hero days
Code:
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>5</item>
<item>25</item>
<item>60</item>
<item>125</item>
<item>255</item>
</integer-array>
Since some MOD (like APM for example) make changes to the framework-res.apk, it is better for you to do your own instead of begging others to do and post here.
Edit1: Updated steps as recommended by LockeOn
Edit2: using more aggressive values now after few days testing
Code:
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>2</item>
<item>15</item>
<item>32</item>
<item>100</item>
<item>200</item>
</integer-array>
before this, i was always using minimum brightness instead of auto brightness thus decided to set 32 and below for majority of the values. it works for me when i am indoor and outdoor under low light. when outdoors under brightness, the increase is bright enough for me so I believe i have found my sweet spot
note that my environment and preference may diff from everyone so what works for me may not work for you
DanRyb said:
Thanks for your reply, but I did decompile it! I do not see that file within the structure listed!
Click to expand...
Click to collapse
I think you unpacked, not decompile.
[Guide][DDKQ8] Remove "Swipe screen to unlock" | Center lockscreen Clock | more...
No guide can explain every bit of information a beginner needs to know to achieve the wanted results. You need to make an effort and have patience to learn what you need.
This guide assumes that you have some basic knowledge like managing files on your phone, setting permissions, using command prompt on your computer. I will not explain what is ADB or Root Explorer or how to use them. google can help with that.
The steps described here are the steps i did on my computer (windows) and my rom (rooted, deodexed). i cannot promise to offer support, i'm a semi-noob myself.
standard disclaimer applies: Do it at your own risk & Backup your system before trying any of this.
What you will need:
• apk file compiler/decompiler: i will use apktool
• archive manager: winrar, 7zip
• Text editor : Notepad++ is recommended
• A way to manage files on the phone: ADB, Android Commander, Root Explorer
• an image editor (for some parts): Photoshop, Gimp, Paint.NET...
Part I. Decompiling
1. First you need to download and install apktool which allows you to decompile apk files and rebuild them. some people prefer APK Manager but i find apktool simpler to use.
Download these two files and export them to your Windows directory.
apktool-install-windows-r04-brut1.tar.bz2
apktool1.4.3.tar.bz2
2. Pull the file framework-res.apk from /system/framework/ on your phone and place it on your computer. for exemple under C:\lockscreen\
3. Now open a command prompt window and change the current directory to C:\lockscreen\ by entering the command
Code:
cd c:\lockscreen
Then decompile your apk file by entering the following command
Code:
apktool d framework-res.apk
This will create a new folder named framework-res within it are the decompiled contents of framework-res.apk
Part II. Editing files
Remove "Swipe screen to unlock"
1. Open \framework-res\res\values\strings.xml
2. Find lockscreen_unlock_guide_text
3. In that line, delete Swipe screen to unlock
Note: \res\values\strings.xml is for English language. if you're using a differnet language on your phone then you have to edit the corresponding strings.xml file in the proper values directory. for exemple if you're using French then you'll have to edit the strings.xml file under values-fr
Change the date format on the lock screen
1. Open \framework-res\res\values\strings.xml
2. Find mid_month_day_mid_wday_no_year
3. Replace E. d MMM. with the format you want.
Reference:
d numeric Day of the Month (1)
dd numeric Day of the Month (01)
EEE short Day of the week (Mon)
EEEE long Day of the week (Monday)
M numeric Month (1)
MM numeric Month (01)
MMM short Month (Jan)
MMMM long Month (January)
yy short year (09)
yyyy long year (2009)
exemple: yyyy MMMM d, EEEE to display 2012 March 12, Monday
Center the lockscreen clock and date
Explaining this mod step by step would take too long. All the editing is done in a single file \res\layout\zzz_keyguard_screen_clockwidget.xml
I uploaded the edited file (not compiled). All you have to do is replace you original file under framework-res\res\layout\ with this one before you compile. Advanced users can take a look at it, compare it with the original and edit it if they want/can.
I also replaced the charging icon that appears on the lockscreen. The png file is inluded with the xml file. To apply it, after you're done with Part III of this guide, open your modded apk file with winrar/7zip, browse to \res\drawable-mdpi\ then drag the png and drop it in the apk.
Part III. Creating the modded file
After we're done editing the xml files, we will recompile them and update the original apk with the modded ones.
1. Go back to that command prompt window and enter the following command to recompile the files
Code:
apktool b framework-res
(no .apk at the end)
when it's done, you will find a new folder under framework-res named build where the compiled files are placed.
2. Go to framework-res\build\apk\ copy the resources.arsc file
3. Open your original framework-res.apk file with an archive manager like winrar or 7zip (do not extratct, open with) and paste resources.arsc inside it.
4. If you used the edited zzz_keyguard_screen_clockwidget.xml file, then you have also to copy the compiled version from \buid\apk\layout\ and paste it under the same path inside your apk file.
Now your framework-res.apk is modded and ready to be installed.
5. Place the apk in your phone under /system/framework/ and set its permissions to rw-r--r--
Note: Some may prefer to copy the file to /system/ first, set the permissions and then move it to /system/framework
6. Reboot
Changing the font of the clock:
For some reason, this clock is not actual text, it does not use a font. Instead, the numbers are png files placed under /res/drawable-mdpi/
So to change the font, you will have to make new png files for each number, plus one for the column )
I uploaded the ones i made. you can take a look at them to note the dimensions and names of the files. you have to use those same names. also notice that there are two different files for the number one.
After you're done modding your framework-res.apk and just before you send it your phone, open it with winrar and browse to /res/drawable-mdpi/ then drag the png files you made and drop them inside the apk.
Flashable zips:
lockscreen_text_patch_DDKQ8.zip => remove "Swipe screen to unlock" text
LockscreenMod_Stock_DDKQ8.zip => Centered clock and mod with replaced clock font for stock DDKQ8
dali47 said:
This is a short guide explaining how to remove the "Swipe screen to unlock" text from the new galaxy-note-like lockscreen available in the new DDKQ8 rom.
i will add more details if asked for.
Click to expand...
Click to collapse
Maybe you know how to make the date display more "acceptable"? I hate how it looks in stock...
I would really appreciate a flashable zip to solve this problem.
Nice
FROM XDA APP
PRESS THNX IF I HELPED YOU
U can remove everything from lockscreen
herpderp © aint got money to pay to my fish
Thanks..!! was searching for this..!!
Will try this today or tomorrow...can anyone tell or make a guide on how to enable crt animation on stock 2.3.6 DDKQ8
Sent from my GT-S5830 using xda premium
iSxy said:
Will try this today or tomorrow...can anyone tell or make a guide on how to enable crt animation on stock 2.3.6 DDKQ8
Sent from my GT-S5830 using xda premium
Click to expand...
Click to collapse
Same way as every other
herpderp © aint got money to pay to my fish
Hey Can u tell the way by wich i can use this lockscreen in lewa rom....
if i want to replace stock rom lockscreen, i need to replace framework-res.apk only, right?
1 Question..
Can we just replace that Swipe to unlock text to our own custom one?
wassupadi said:
Hey Can u tell the way by wich i can use this lockscreen in lewa rom....
Click to expand...
Click to collapse
i dont think u can
FROM XDA APP
PRESS THNX IF I HELPED YOU
iSxy said:
1 Question..
Can we just replace that Swipe to unlock text to our own custom one?
Click to expand...
Click to collapse
Yes
FROM XDA APP
PRESS THNX IF I HELPED YOU
Good guide.
Sent from my GT-S5830 using xda premium
kmarci said:
Maybe you know how to make the date display more "acceptable"? I hate how it looks in stock...
I would really appreciate a flashable zip to solve this problem.
Click to expand...
Click to collapse
how do you mean acceptable?
i can only make a flashable zip for specific roms and themes. maybe i will see what roms out there are based on DDKQ8 and make a couple of zips.
i usually prefer making guides than making falashable zips so anyone can apply the mod on it's own specific system.
wassupadi said:
Hey Can u tell the way by wich i can use this lockscreen in lewa rom....
Click to expand...
Click to collapse
the lockscreen it hard coded un the framework, maybe also some other files. i personally cnt do it. if you want to try to port it i can provide you with any files you need from stock DDKQ8
hanaxxaru said:
if i want to replace stock rom lockscreen, i need to replace framework-res.apk only, right?
Click to expand...
Click to collapse
not really. not all frameworks are compatible with all roms. it probably will not work. it needs to be ported. but you can try of you want. just make a backup of your system before.
iSxy said:
1 Question..
Can we just replace that Swipe to unlock text to our own custom one?
Click to expand...
Click to collapse
sure you can. just replace "swipe screen to unlock" with whatever you want. there might be some limitations for how much text you can fit. i didnt try it.
K ty..ill try tomorw for custom text.. Anyone tell me some good line to write?
Sent from my GT-S5830 using xda premium
dali47 said:
how do you mean acceptable?
i can only make a flashable zip for specific roms and themes. maybe i will see what roms out there are based on DDKQ8 and make a couple of zips.
i usually prefer making guides than making falashable zips so anyone can apply the mod on it's own specific system.
Click to expand...
Click to collapse
Something in this format: year. month day., name of the day. For today: 2012. march 12., monday
I'm on same rom as you are (stocklite v5). Would you please help me how to change the date display?
kmarci said:
Something in this format: year. month day., name of the day. For today: 2012. march 12., monday
I'm on same rom as you are (stocklite v5). Would you please help me how to change the date display?
Click to expand...
Click to collapse
ok, i figured it out
open \res\values\strings.xml
find mid_month_day_mid_wday_no_year
in that line, change E. d MMM. into yyyy. MMMM d., EEEEE
re-build and replace resources.arsc in original apk
posibilities
is it possible to move the framework thing to another stock rom using maybe titanium back up?
dali47 said:
ok, i figured it out
open \res\values\strings.xml
find mid_month_day_mid_wday_no_year
in that line, change E. d MMM. into yyyy. MMMM d., EEEEE
re-build and replace resources.arsc in original apk
Click to expand...
Click to collapse
Hey dude, you're unbeleivable! Thanks a lot! (Unfortunatelly I can only hit once the thanks button... )
torchwolfery said:
is it possible to move the framework thing to another stock rom using maybe titanium back up?
Click to expand...
Click to collapse
not sure what "thing" you mean. but no. Titanium Backup backs up apps and settings. the lockscreen is neither an app nor a setting.
kmarci said:
Hey dude, you're unbeleivable! Thanks a lot! (Unfortunatelly I can only hit once the thanks button... )
Click to expand...
Click to collapse
glad to help
CRT Animation On/Off running any GB rom (2.3.x)
Here is the screen Off/On animations mod. An awesome tweak which makes your phone's sleeping animations like old tv's shutting down.
Lets Begin.
[NOTE: Im not responsible for any bricked devices.]
Things needed
1. JAVA - Click Here
2. APK MANAGER - Click Here
3. Notepad++ - Click Here
Procedure
1. Download all the above applications.
2. Open APKMANAGER folder and place your roms "framework-res.apk" in "place-apk-here-for-modding" folder.
(framework-res.apk is placed in "/system/framework/here")
3. Open APKMANAGER folder and open "Script.bat".
4. Open "script.bat" and press "9" and hit enter. (this decompiles your framework-res.apk)
5. If sucessful, close this script and go to "APKMANAGER"/"projects"/"framework-res.apk"/"res"/"values" folder. Open "bools.xml"
6. Change
"<bool name="config_animateScreenLights">true</bool>"
to
"<bool name="config_animateScreenLights">false</bool>"
7. Again open script.bat and click on "11". (It will compile the application)
8. It will ask whether it is a system application or not, type "y" and hit enter.
9. It will show
"Aside from the signatures, would you like to copy over any additional files that you didn't modify
from the original apk in order to ensure least # of errors (y/n)
Press "y" and hit enter!
10. It will do the extracting. DO NOT PRESS ANY KEY NOW.
11. Open "APKMANAGER" folder, there will be a new folder "keep". Delete "resources.arsc" file from there.
12. Now open script and hit enter.
Click to expand...
Click to collapse
And the most IMPORTANT part.
After flashing framework go to settings>Display>Animations, select "All Animations".
AND if you dont want the animation simply change
"<bool name="config_animateScreenLights">false</bool>"
to
"<bool name="config_animateScreenLights">true</bool>"
CREDITS
Daneshm90 for the APKMANAGER
me for the guide
Reserved
dude!! 4 your kind information sadly there is no any value folder in frameworks - res !!
& also bool.img in frameworks whole app.!! in our galaxy y!!
thewarlord said:
dude!! 4 your kind information sadly there is no any value folder in frameworks - res !!
& also bool.img in frameworks whole app.!! in our galaxy y!!
Click to expand...
Click to collapse
i have checked in the stock rom of y.
it is there
If you decompile framework-res.apk you will get it.
I will attach images for easier use.
Have you actually tried this because this has been around for ages
I'm sure
Stock framework in our phone does not support this
cm7 percy does not support this
Both due to hardware libs
deleted
DarkEyed said:
i will edit the thread with images tomorow
Click to expand...
Click to collapse
I don't think you understand
I'm not saying that the files mentioned don't exist because they do
I'm saying you can edit them as mentioned but due to our hardware libs the changes will have absolutely no effect
This is a guide to enable the navbar on the Galaxy Note 3 running Android 4.3 (NOT an overlay!). I can't guarantee this will work with any xposed modules or navbar mods. This will put an AOSP-like navigation bar on your Note 3, NOT a TouchWiz one! Which means from left to right, the buttons are: Back, Home, Recent.
[UPDATED 12/22/13] - Added back_ime (down arrow instead of back when keyboard is open)! Zip updated, steps are the same. See screenshots.
!!If you are on 4.4.2 KitKat!!
You do not need to do anything with SystemUI, Samsung left all the important stuff in there. Just download GravityBox Xposed module for KitKat, and enable navigation bar.
You need to know how to decompile SystemUI.apk, modify it, then recompile it.
This is for DEODEXED roms!
1. Decompile SystemUI.apk
2. Go to the folder SystemUI.apk was decompiled in. Open res/values/drawables.xml and add the following line, then save it:
Code:
<item type="drawable" name="tw_navigationbar_bg">#ff000000</item>
3. Open /res/values/public.xml, find this line, delete it, then save:
Code:
<public type="drawable" name="tw_navigationbar_bg_land" id="0x7f020194" />
4. Open the attached zip file, find and open the folder "drawable". Copy all 5 xml files and paste them in res/drawable/, replacing the existing files.
5. Delete the files "tw_navigationbar_bg.png" and "tw_navigationbar_bg_land.png" from /res/drawable.
6. Find the folder "drawable-xhdpi" in the attached zip and copy it to res/, this will add a new folder in that directory.
7. Find and open the folder "layout" in the attached zip and copy the xml file to res/layout, replacing the existing xml.
8. Compile the decompiled SystemUI.apk
7. Put the new SystemUI.apk in the system directory on your phone, change permissions to rw-r--r--. Now cut the new SystemUI.apk to the clipboard (ES file browser) and go to system/app and find the old SystemUI.apk.
9. Rename the old SystemUI.apk to SystemUI.apk.bak, and quickly paste the new SystemUI.apk into system/app. Be quick about pasting new apk, the phone will restart about 5 seconds after renaming the old one.
10. Add the following line to your build.prop:
Code:
qemu.hw.mainkeys=0
11. If your phone did not reboot on it's own, reboot the phone, and you should have a navigation bar! There are various guides on how to disable the capacitive nav buttons, so I won't cover that here.
Thanks to @gharrington for writing up this guide for the S4 on Android 4.2.2; I used that as a starting point!
Here is a pre-edited SystemUI.apk you can use (attached below). This removes any themes you have!
[UPDATED 12/22/13] - Added the down arrow instead of back when keyboard is open!
[UPDATED 12/24/13] - Made a flashable zip! If you want to flash a zip theme, just flash the attached zip after flashing your theme. Then either flash Navigation_Bar_ON.zip from this post or add qemu.hw.mainkeys=0 to your build.prop if you haven't already
[UPDATED 03/10/14] - KitKat users do not need this mod, the stock SystemUI has everything it needs. See big red text for instructions.
For DEODEXED: Copy the new SystemUI.apk to /system, change permissions to rw-r--r--. Go to /system/app and rename the old SystemUI.apk to SystemUI.apk.bak, then move the new SystemUI.apk to /system/app. Flash the Navigation_Bar_ON.zip from this post (thanks @jovi23!) in TWRP or CWM. Reboot, and done!
If your ROM doesn't have init.d support, add "qemu.hw.mainkeys=0" (without quotes) to your build.prop, reboot, and done!
For ODEXED: Follow the same steps above, but also rename SystemUI.odex to SystemUI.odex.bak.
DO NOT FLASH THE ZIP IF YOU ARE ON 4.4.2
You do not need to do anything to SystemUI.apk, Samsung left everything it needs in there. Just get GravityBox Xposed module for KitKat and enable the navigation bar.
If you wish to use this SystemUI.apk in your ROM, all I ask is that you give credit
Any screenshot thanks?I forgot, first
Sent from my SM-N900T using Tapatalk
JT man said:
Any screenshot thanks?
Click to expand...
Click to collapse
Oh yes, sorry. I attached one to the second post.
This is what i been looking for have to look into how to decompile and recompiling the systemUI looks really complicated
Sent from my SM-N900T using XDA Premium 4 mobile app
Would anyone mind testing this SystemUI.apk? Need to be deodexed. Copy it to /system/, then change permissions to rw-r--r--. Now move it over to /system/app. Be sure to rename your old one to SystemUI.apk.bak, incase it doesn't work. I made this from a stock, deodexed ROM, so it should work, but I want it tested by someone else before I post it up top.
This will get rid of a lot of theming, so if you are themed, beware, as I haven't tested it that.
Moved to second post.
Hmm... after decompiling my SystemUI.apk I don't see those 2 files from steps 2 and 3
fredrick1213 said:
Hmm... after decompiling my SystemUI.apk I don't see those 2 files from steps 2 and 3
Click to expand...
Click to collapse
Hmm, that's odd, I'm sure the apk needs those. Were there any errors on decompile? Also, did you install framework-res.apk, SystemUI.apk, and twframework-res.apk into apktool?
gakio12 said:
Hmm, that's odd, I'm sure the apk needs those. Were there any errors on decompile? Also, did you install framework-res.apk, SystemUI.apk, and twframework-res.apk into apktool?
Click to expand...
Click to collapse
Ok so my problem was that I wasn't installing SystemUI.apk but even after installing it I don't see the public file in res/values
fredrick1213 said:
Ok so my problem was that I wasn't installing SystemUI.apk but even after installing it I don't see the public file in res/values
Click to expand...
Click to collapse
Can you open up the SystemUI.apk in 7z to see if the public.xml file is in res/values?
gakio12 said:
Can you open up the SystemUI.apk in 7z to see if the public.xml file is in res/values?
Click to expand...
Click to collapse
This is really weird. It doesn't even have the values folder
fredrick1213 said:
This is really weird. It doesn't even have the values folder
Click to expand...
Click to collapse
If you can attach the SystemUI.apk, I will take a look at it.
gakio12 said:
If you can attach the SystemUI.apk, I will take a look at it.
Click to expand...
Click to collapse
Here ya go
fredrick1213 said:
Here ya go
Click to expand...
Click to collapse
Thanks. I think this is because you are running an ODEXED ROM, correct? From your sig I assume it is pure stock TouchWiz, just rooted. You can try using my SystemUI.apk that I posted a few posts back, but you would need to rename SystemUI.odex to SystemUI.odex.bak AND SystemUI.apk to SystemUI.apk.bak, just so you get backups of existing files.
When I was doing it, my phone would reboot on it's own 5 seconds after renaming SystemUI.apk, so I only had 5 seconds to put the new one in there. This is where TWRP really helped.
In your screen shot - The Nav Bar looks like it's hiding the very bottom of the screen - Does this mod take into account the presence of the Nav Bar - And shift the display up - ie; is the Nav Bar hiding the Dock?
Sent from my SGH-I317 using Tapatalk
Yes, this mod is an actual navbar. It does not hide the dock. I will post another screenshot.
gakio12 said:
Yes, this mod is an actual navbar. It does not hide the dock. I will post another screenshot.
Click to expand...
Click to collapse
Thanks - And one other question - Are you doing this all on the phone - or are you doing any of it on the pc? .... I just read through the first page very quickly..
Sent from my SM-N900W8 using Tapatalk 2
shaggyskunk said:
Thanks - And one other question - Are you doing this all on the phone - or are you doing any of it on the pc? .... I just read through the first page very quickly..
Click to expand...
Click to collapse
I did almost all on the PC, only part I did on the phone was move the new SystemUI.apk into place. There is a stock SystemUI.apk I posted in post #6 if you want to give that a try (must be deodexed). If you do give it a try, please let me know how it works out
Anyway of making it transparent and also is there a way to enable 3 dot menu?
Sent from my SM-N900T using Tapatalk
gakio12 said:
Thanks. I think this is because you are running an ODEXED ROM, correct? From your sig I assume it is pure stock TouchWiz, just rooted. You can try using my SystemUI.apk that I posted a few posts back, but you would need to rename SystemUI.odex to SystemUI.odex.bak AND SystemUI.apk to SystemUI.apk.bak, just so you get backups of existing files.
When I was doing it, my phone would reboot on it's own 5 seconds after renaming SystemUI.apk, so I only had 5 seconds to put the new one in there. This is where TWRP really helped.
Click to expand...
Click to collapse
gakio12 said:
I did almost all on the PC, only part I did on the phone was move the new SystemUI.apk into place. There is a stock SystemUI.apk I posted in post #6 if you want to give that a try (must be deodexed). If you do give it a try, please let me know how it works out
Click to expand...
Click to collapse
I followed your advice and it worked! I now have the navbar. I'm odexed btw and it still worked. Thanks!