Found it here:
http://forum.xda-developers.com/showthread.php?t=1034743
Sucessfully made it working an my Evo3D.
Should save a lot of battery..
I've used apktool instead of apk manager, doesnt work for me with apk manager.
How to deal with apktool?:
http://forum.xda-developers.com/showthread.php?t=1225558
- Take the steps 1 - 5 (pull the framework-res instead of SystemUI.apk)
- go to the decompiled folder->res->values: array.xml
and edit the valus as described here:
steps 13-15:
http://forum.xda-developers.com/showthread.php?t=1034743
you could just take values of the attached array.xml file.
...on GSM Leedroid I got bootloops when I was using values under 20...
Then take the steps 7 to the end from here:
http://forum.xda-developers.com/showthread.php?t=1225558
use framework-res instead of SystemUI
AND drag&drop the ressources.arsc from new compiled to original framework-res.apk with 7zip.
Turge said:
That worked perfectly. Here's what I did:
Pulled the framework: adb pull /system/framework/framework-res.apk
Pulled the resources: adb pull /system/framework/com.htc.resources.apk
Decompiled the framework-res APK: apktool d framework-res.apk
Edited arrays.xml with the new values
Recompiled the APK: apktool b framework-res framework-res-new.apk
Dragged and dropped resource.arsc from framework-res-new.apk to framework-res.apk
Pushed the modified APK: adb push framework-res.apk /system/framework/
Set the permissions - omitted this step since it has enough permission
Rebooted
I'll need to tweak the settings since it's a little low atm..
Click to expand...
Click to collapse
gl
Awesome sauce!
I used this to mod - http://forum.xda-developers.com/showthread.php?t=1193149
I'm a tiny bit surprised this hasn't gotten more responses with how much people ***** about the auto-brightness. lol
I just did this, waiting for phone to reboot. should it be smoking?....
kidding. anyways, I dropped the 1st half of the values, added more steps to make transitions a little smoother. *cross fingers and wafts smoke away from face*
Or you could skip all that bull**** and just use root explorer and goto
/sys/devices/platform/leds-pm8050/leds/button-backlight/currents. Open currents in text editor and change value 20 to value 2. It will lower them by more than half. Don't forget to save before you exit.
mattfmartin said:
Or you could skip all that bull**** and just use root explorer and goto
/sys/devices/platform/leds-pm8050/leds/button-backlight/currents. Open currents in text editor and change value 20 to value 2. It will lower them by more than half. Don't forget to save before you exit.
Click to expand...
Click to collapse
OK.... I see several references to LED and buttons and such.. you sure this has to do.with the autobrightness of the screen?..
Sent from my PG86100 using Tapatalk
felacio said:
OK.... I see several references to LED and buttons and such.. you sure this has to do.with the autobrightness of the screen?..
Sent from my PG86100 using Tapatalk
Click to expand...
Click to collapse
Nope it doesn't. Read to fåst. Thought it was another bright capacitive led thread.
Did you managed to get it working felacio? Which rm you are using? If you want I can do it for you..
Sent from my HTC EVO 3D X515m using XDA Premium App
j4n87 said:
Did you managed to get it working felacio? Which rm you are using? If you want I can do it for you..
Click to expand...
Click to collapse
Oh yeah. The sensor is very crude. The other values I added are ignored. It was set for 11 and 41 lux values. I changed the 41 to 31. The phone ignores the 31 value and changes the brightness at 41 still. So. With that in mind. I need to find a brighter brightness for the lowest value because it won't trigger in soft lit conditions. But its just a tad too dark for those soft lit situations. So.....
Anyways. Yeah! It worked. Just gotta work with my values. Lol.
Sent from my PG86100 using Tapatalk
oh, okay..yeah also noticed that the sensivity is a bit slow.
But still better than the standard configuration
felacio said:
Oh yeah. The sensor is very crude. The other values I added are ignored. It was set for 11 and 41 lux values. I changed the 41 to 31. The phone ignores the 31 value and changes the brightness at 41 still. So. With that in mind. I need to find a brighter brightness for the lowest value because it won't trigger in soft lit conditions. But its just a tad too dark for those soft lit situations. So.....
Anyways. Yeah! It worked. Just gotta work with my values. Lol.
Sent from my PG86100 using Tapatalk
Click to expand...
Click to collapse
So what's the exact procedure for this?
1. Use APK Tool to decompile the framework-res APK (apktool d framework-res.apk)
2. Edit arrays.xml with the values
3. Recompile the APK (apktool b framework-res framework-res.apk)
4. Push the APK to /system/framework/
5. Set the permissions
6. Reboot
I obviously screwed up a step because my boot animation kept looping until I pushed the original APK and rebooted. The new APK is also almost half the size as the original...
Turge said:
So what's the exact procedure for this?
1. Use APK Tool to decompile the framework-res APK (apktool d framework-res.apk)
2. Edit arrays.xml with the values
3. Recompile the APK (apktool b framework-res framework-res.apk)
4. Push the APK to /system/framework/
5. Set the permissions
6. Reboot
I obviously screwed up a step because my boot animation kept looping until I pushed the original APK and rebooted. The new APK is also almost half the size as the original...
Click to expand...
Click to collapse
updated op with step 7-end.
j4n87 said:
updated op with step 7-end.
Click to expand...
Click to collapse
Ahh.. this is probably what I was looking for: drag&drop the ressources.arsc from new compiled to original framework-res.apk with 7zip.
Thanks, I'll try it after lunch using WinRAR.
you're welcome
j4n87 said:
you're welcome
Click to expand...
Click to collapse
That worked perfectly. Here's what I did:
Pulled the framework: adb pull /system/framework/framework-res.apk
Pulled the resources: adb pull /system/framework/com.htc.resources.apk
Decompiled the framework-res APK: apktool d framework-res.apk
Edited arrays.xml with the new values
Recompiled the APK: apktool b framework-res framework-res-new.apk
Dragged and dropped resource.arsc from framework-res-new.apk to framework-res.apk
Pushed the modified APK: adb push framework-res.apk /system/framework/
Set the permissions - omitted this step since it has enough permission
Rebooted
I'll need to tweak the settings since it's a little low atm..
Turge said:
That worked perfectly. Here's what I did:
Pulled the framework: adb pull /system/framework/framework-res.apk
Pulled the resources: adb pull /system/framework/com.htc.resources.apk
Decompiled the framework-res APK: apktool d framework-res.apk
Edited arrays.xml with the new values
Recompiled the APK: apktool b framework-res framework-res-new.apk
Dragged and dropped resource.arsc from framework-res-new.apk to framework-res.apk
Pushed the modified APK: adb push framework-res.apk /system/framework/
Set the permissions - omitted this step since it has enough permission
Rebooted
I'll need to tweak the settings since it's a little low atm..
Click to expand...
Click to collapse
yeah, thats the right way
..will add this to the OP
j4n87 said:
yeah, thats the right way
..will add this to the OP
Click to expand...
Click to collapse
Cool.
By the way, you can see the settings used via "adb shell" using the command: logcat | grep lcdValue
D/PowerManagerService( 245): New lightsensor value:90, lcdValue:60
D/PowerManagerService( 245): New lightsensor value:10, lcdValue:20
D/PowerManagerService( 245): New lightsensor value:10, lcdValue:20
D/PowerManagerService( 245): New lightsensor value:160, lcdValue:80
D/PowerManagerService( 245): New lightsensor value:90, lcdValue:60
D/PowerManagerService( 245): New lightsensor value:90, lcdValue:60
D/PowerManagerService( 245): New lightsensor value:90, lcdValue:60
D/PowerManagerService( 245): New lightsensor value:160, lcdValue:80
D/PowerManagerService( 245): New lightsensor value:40, lcdValue:40
Is it safe to assume that this method will work on Sensation?
KrisHilbun said:
Is it safe to assume that this method will work on Sensation?
Click to expand...
Click to collapse
Yep. I did if for a friends sensation. Same process.
Doesn't work
Hi,
I tried doing this and followed the exact steps (used the values from the other posting) and when the phone finishes rebooting, the screen stays in the dimmest value rather then adjusting by itself when I set it to auto brightness.
The only different thing I did was instead of using ADB, I used root explorer to pull out framework-res and com.htc into my SD card then moved that to my apktool folder to extract. Then used root explorer to copy it back into system/framework and applied the same permissions as it was before.
Any ideas?
I jumped to a new rom and ran also to issues. My phone was in a bootloop after editing the array xml. Got a "devide by zero fatal exception" - found out, that the lowest value I can us is 21 - the array.xml in the thread i linked is starting with 5 i think.
My current array.xml:
Code:
</integer-array>
<integer-array name="config_autoBrightnessLevels">
<item>11</item>
<item>41</item>
<item>91</item>
<item>161</item>
<item>226</item>
<item>321</item>
<item>641</item>
<item>1281</item>
<item>2601</item>
</integer-array>
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>21</item>
<item>21</item>
<item>41</item>
<item>72</item>
<item>110</item>
<item>145</item>
<item>186</item>
<item>208</item>
<item>231</item>
<item>255</item>
</integer-array>
<integer-array name="config_autoBrightnessLcdBacklightValuesUp">
<item>21</item>
<item>41</item>
<item>88</item>
<item>145</item>
<item>145</item>
<item>145</item>
<item>186</item>
<item>208</item>
<item>231</item>
<item>255</item>
</integer-array>
<integer-array name="config_autoBrightnessLcdBacklightValuesDown">
<item>21</item>
<item>41</item>
<item>88</item>
<item>145</item>
<item>145</item>
<item>186</item>
<item>208</item>
<item>231</item>
<item>255</item>
<item>255</item>
</integer-array>
<integer-array name="config_autoBrightnessButtonBacklightValues">
<item>255</item>
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
</integer-array>
<integer-array name="config_autoBrightnessKeyboardBacklightValues">
<item>255</item>
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
</integer-array>
..are you also sure, that you have all object tags opend/close correctly?
Sometimes I copied too much/less from one to other xml and also got faulty behaviour.
Related
First let me note that all credit goes to FxN. I simply am updating the code for the Droid 2. Thank you for all the work you did FxN. Also, this is only for DeOdexed phones.
NOTE BEFORE YOU START:
Standard disclaimer, I don't guarantee anything that might happen after following these steps, and I mean anything!! These steps worked for me and I have tried to include every minute step!
1. Connect phone using USB and check that you can see your device using: adb devices
2. in your SDK/tools directory from command line do:
PHP:
adb pull /system/framework/services.jar services.jar
3. Make a backup of the services.jar file that just popped in the tools folder just in case!
4. Download smali and baksmali from http://code.google.com/p/smali/ and place them in the tools folder. Rename the files to baksmali.jar and smali.jar to save on typing later
5. Open the services.jar file with something such as winrar or 7zip or whatever you prefer
6. Copy out the classes.dex file to your SKD/tools folder
7. run following from command line:
PHP:
java -jar baksmali.jar -o classout/ classes.dex
8. Now browse to your new folders classout/com/android/server/status
9. Open the file StatusBarIcon.smali in something like notepad or context or any text editor
10. Locate a line that says: .line 61, under this line it should have something like:
PHP:
const/high16 v6, -0x100
11. Change this to say:
PHP:
const/high16 v6, -0x1
12. Save the file
13. Now back to the command line and from your SDK/tools folder run:
PHP:
java -Xmx512M -jar smali.jar classout/ -o new-classes.dex
14. If the above finishes without errors you should have a file called new-classes.dex in your SDK/tools folder now that is the same size as your classes.dex file.
15. Rename the old classes.dex file to classes-old.dex and rename the new-classes.dex file to classes.dex
16. Open the services.jar file with your archiving tool again from step 5 and replace the existing classes.dex file with our new classes.dex we just created.
17. From command line run:
PHP:
adb remount
18. also from command line:
PHP:
adb push services.jar /system/framework/
19. Finally run:
PHP:
adb shell reboot
On step 11, this is setting the font to red. If you want white change the line to
PHP:
const v6, -0x1
Original FxN Post is sourced:http://forum.xda-developers.com/showthread.php?t=549309
Could you post a white services.jar?
I've been trying to get this to happen for a while. I thought it had to do with the method of deodexing, but it turns out it may be the services.jar itself. i've talked Xeudoxus, and he's going to take a look. Also, the way he's going to do it, will be incorporated into xUltimate, so that will make this process a billion times easier.
Here you go.
Rename .rar to .jar
theecho said:
Here you go.
Rename .rar to .jar
Click to expand...
Click to collapse
does this change ALL status bar text to white or just the clock?
also, would it work on nondeodexed phones?
Currently just the clock. As for the non-deodexed not sure..you should pull you current and push this and let us know
theecho said:
Currently just the clock. As for the non-deodexed not sure..you should pull you current and push this and let us know
Click to expand...
Click to collapse
im not sure how this is valuable if the other statbar text is gonna remain black.
have to start somewhere. Im working on the other portions just need to find where they are stored.
theecho said:
have to start somewhere. Im working on the other portions just need to find where they are stored.
Click to expand...
Click to collapse
i _thought_ they were in framework-res color but i think im wrong there.
I know that there are some default values stored in the status_bar.xml as i have changed the active action such as preparing sd card and stuff like that. I am trying to at least change the date before proceeding with my theme.
theecho said:
Currently just the clock. As for the non-deodexed not sure..you should pull you current and push this and let us know
Click to expand...
Click to collapse
didnt work. guess it wont if you have:
services.jar
services.odex
not sure how to make them one file.
http://www.droidxforums.com/forum/droid-x-themes/4620-how-manually-deodex-your-phone.html
check that out.
theecho said:
http://www.droidxforums.com/forum/droid-x-themes/4620-how-manually-deodex-your-phone.html
check that out.
Click to expand...
Click to collapse
this worked great thanks. gonna try the white services.jar soon.
white services.jar works great. now if we can just get the rest of the text in white we can go back to the black bg themes
all white status bar. Again change .rar to .jar
theecho said:
all white status bar. Again change .rar to .jar
Click to expand...
Click to collapse
getting closer.. notifications are still black text.
do you mean the pictures? like the tiny icons?
Screenshot of new wifi icon
i made some screen shots.. first one should say the sms text but its black so you dont see it.. second has some list items all black..
those arent the status bar and are not controlled by services.jar.
Try this framework.apk and tell me if you sms text is white.
theecho said:
those arent the status bar and are not controlled by services.jar.
Try this framework.apk and tell me if you sms text is white.
Click to expand...
Click to collapse
yep, this fixed the notification colors to white. can you tell me what portion of this is for the color change so that i can only apply that portion.
do you know which file affects the dropdown list text colors?
not yet i do not that was in the status_bar.xml located in res/layout/
hit me up on gtalk
How to theme
Samsung Vibrant Edition
Disclaimer: this guide is not idiot proof! You must have 1/2 a brain, 1/4 a brain will not work! Currently we have no way to know if you actually have 1/4 a brain or 1/2 so please take caution!
Click to expand...
Click to collapse
If you have extra images in your framework folders, it may cause problems later.. so try not to copy & paste or add extra images! - jumaaneface
Click to expand...
Click to collapse
What you will need:
-Apk Manager (Click)
-Android SDK (Click)
-An image editor, Adobe Photoshop is recommended!
-One brain.. (Edit: Half a brain is needed, not the full thing)
-Two hands..
-Fingers, 10 of them recommended!
-framework-res.apk
-twframework-res.apk
-services.jar (If you want to change the clock color)
How-to edit the apks:
1.) Get your two apk files (framework-res.apk & twframework-res.apk)
2.) Place them in apk-manager/place-apk-here-for-modding/
3.) Open apk-manager/script.bat
4.) Select option 22
5.) Select framework-res.apk
6.) Select option 1
7.) Select option 22
8.) Select twframework-res.apk
9.) Select option 1
10.) Go to apk-manager/projects/framework-res.apk/res/drawable-hdpi (or /drawable-hdpi-v4)
11.) Edit the .png files that you would like to change
12.) Go to apk-manager/projects/twframework-res/apk/res/drawable-hdpi (or /drawable-hdpi-v4)
13.) Edit the .png files that you would like to change
14.) Go back to script.bat
15.) Select option 22
16.) Select framework-res.apk
17.) Select option 3
18.) Select option 22
19.) Select twframework-res.apk
20.) Select option 3
(Don't zipalign)
21.) There will be two files in your place-here-for-modding folder.. They are called unsingedframework-res.apk & unsingedtwframework-res.apk just backup the originals, and delete the unsinged from part from the two new files.
How-to edit services.jar, clock color:
1.) Go to your SDK folder.. example: C:\android-sdk-windows\tools
2.) Get your services.jar file & open it with winrar
3.) Take the classes.dex from it & put it in your android-sdk-windows\tools\ folder
4.) Open CMD
5.) Run the following command: "CD C:\android-sdk-windows\tools" (directory may not be the same)
6.) Run the following command: "java -jar baksmali.jar -o classout/ classes.dex"
7.) Go to classout\com\android\server\status\StatusBarIcon.smali
8.) On line 34 it will look something like: "const/4 v7, -0x1"
9.) On line 34 change the above to: "const v7, 0xffffff" (That will be black)
10.) Compile the classes.dex by using this command: "java -Xmx512M -jar smali.jar classout/ -o new-classes.dex"
11.) Get the new-classes.dex from android-sdk-windows\tools\ folder & move it to your desktop
12.) Rename new-classes.dex to classes.dex
13.) Re-open the services.jar using winrar & past your new classes.dex in there
(Notice: After editing the clock color, it will take longer to boot the first time! Be patient!)
I may update this if people need an even easier guide...
I wrote this a while ago, and just had it on my forums.
Original: Click here
Helpful things:
"How to change colors from standard hex to smali code" - Tonicacid
"How to use html colors for changing the clock" - Master (me)
Nice dude thanks
This is awesome.
shouldnt you be able to change the ffffff in "const v7, 0xffffff" to whatever color you want?
Yeah, you can change it to whatever you want.. When I get home I'll add the directions to change the text color in the pull down and market downloads...
Tonicacid said:
shouldnt you be able to change the ffffff in "const v7, 0xffffff" to whatever color you want?
Click to expand...
Click to collapse
It would actually be
"const v7, 0xffff0000" for red, etc. But yes, you can change that value.
Possibly one of the most helpful threads. Just enough to make me feel I have 1/2 a brain.
stuck
Hey I'm new to this and first of all thank you so much for this!
Second I'm having a problem, I'm stuck at "java -Xmx512M -jar smali.jar classout/ -o new-classes.dex"
I keep getting "classout\com\android\server\status\StatusBarIcon.smali[0,0] 10145074 connot fit into a short"
I'm trying to change the status bar clock to Green.
Thank you again.
r6kid said:
Hey I'm new to this and first of all thank you so much for this!
Second I'm having a problem, I'm stuck at "java -Xmx512M -jar smali.jar classout/ -o new-classes.dex"
I keep getting "classout\com\android\server\status\StatusBarIcon.smali[0,0] 10145074 connot fit into a short"
I'm trying to change the status bar clock to Green.
Thank you again.
Click to expand...
Click to collapse
What hex code are you using
Sent from my SGH-T959 using XDA App
Sorry I wasn't using my half a brain I found my mess up I over looked the "const/4"
I will take it that I don't need apk manager. Just need to unpack, repack, and sign. I could also just use a Hex editor to change the colors on the things I would like to change such as date, notification text, etc.. Just like I did with the G1.
toeshot said:
I will take it that I don't need apk manager. Just need to unpack, repack, and sign. I could also just use a Hex editor to change the colors on the things I would like to change such as date, notification text, etc.. Just like I did with the G1.
Click to expand...
Click to collapse
I am pretty sure you can't use Hexedit to edit the Clock. You need to decompile it.
Also, you don't sign /system apks
Awesome! I barely qualify as a 1/2 brain. ApkManager is sweet simple program that does the job. In the many times I have used it, I noticed that recompilation of the files are not clean after images have been change/edit. So I always optimize images inside (option 2) everytime I recompile. Does this help and worth doing?
BTW: what xml editor are you guys using? Some of the ones that I downloaded are crap.
Tonicacid said:
What hex code are you using
Sent from my SGH-T959 using XDA App
Click to expand...
Click to collapse
I used "9acd32" but my clock isnt showing up at all now, I should be able to flash this with NinjaMorph right? or do I need to go in and replace it?
Master™ said:
I am pretty sure you can't use Hexedit to edit the Clock. You need to decompile it.
Also, you don't sign /system apks
Click to expand...
Click to collapse
ya I have to smali, to edit the clock. I was just wondering if apk manager offered anything out of unpacking the file.
r6kid said:
I used "9acd32" but my clock isnt showing up at all now, I should be able to flash this with NinjaMorph right? or do I need to go in and replace it?
Click to expand...
Click to collapse
Use the color code 6532CD for that color.
Sent from my SGH-T959 using XDA App
Tonicacid said:
Use the color code 6532CD for that color.
Sent from my SGH-T959 using XDA App
Click to expand...
Click to collapse
I'm still getting a no show for the clock?
r6kid said:
I'm still getting a no show for the clock?
Click to expand...
Click to collapse
Can you post the code you used
Sent from my SGH-T959 using XDA App
".prologue
const v7, 0x6532CD"
r6kid said:
".prologue
const v7, 0x6532CD"
Click to expand...
Click to collapse
This is a dumb question but your not putting the " marks in are you?
Sent from my SGH-T959 using XDA App
As more and more people are interested to port roms from other phones to our x10, these 2 features are usually missing and need some modifications to work properly.
Here is a simple guide to enable these 2 features on our x10
Pre-Requisite
1. You need to know how to use apktool or any tool that can decompile/compile apks.
2. You need to know how to use smali/baksmali tool
This is not a tutorial of how to use apktool or smali tool. Please google for the above for downloads and tutorials
Credits to Z&J for their great FreeX10 rom that provides a base for reference.
Enable Hardware LED
You need to modify framework-res.apk (in /system/framework folder)
1. backup the original framework-res.apk
2. use apktool to decode framework-res.apk to a folder
syntax:
Code:
apktool d framework-res.apk
This should create a folder "framework-res" in the current folder
3. use a text editor (eg notepad++) to open the file <foldername>/res/values/array.xml
look for something similar to below:
Code:
<integer-array name="config_autoBrightnessLevels">
<item>200</item>
<item>400</item>
<item>1000</item>
<item>3000</item>
</integer-array>
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>25</item>
<item>55</item>
<item>70</item>
<item>70</item>
<item>250</item>
</integer-array>
<integer-array name="config_autoBrightnessButtonBacklightValues">
<item>255</item>
<item>255</item>
<item>0</item>
<item>0</item>
<item>0</item>
</integer-array>
<integer-array name="config_autoBrightnessKeyboardBacklightValues">
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
</integer-array>
and replace it with:
Code:
<array name="config_autoBrightnessLevels" />
<array name="config_autoBrightnessLcdBacklightValues" />
<array name="config_autoBrightnessButtonBacklightValues" />
<array name="config_autoBrightnessKeyboardBacklightValues" />
4. open the file <foldername>/res/values/bools.xml
looks for the line:
Code:
<bool name="config_automatic_brightness_available">true</bool>
and change the word "true" to "false"
5. compile the apk
syntax:
Code:
apktool b <foldername>
6. replace the resources.arsc in original framework-res.apk with the one in <foldername>/build/apk folder
Note: I use TotalCommander as it has 2 pane windows and can open apk file as folder but there should be many guides in the App & Theme section
that teach you how to replace resources file in framework-res.apk
7. replace the framework-res.apk in /system/framework folder
8. reboot
Enable Camera Flash Light
You need to modify services.jar (in /system/framework folder)
1. backup the original services.jar
2. use winrar to extract classes.dex from services.jar
3. use smali/baksmali tool to decode classes.dex to a folder
syntax:
Code:
java -jar baksmali.jar -o <foldername>/ classes.dex
4. use a text editor (eg notepad++) to open the file <foldername>/com/android/server/LightsService.smali
5. look for lines that contain this (there should be 5 of them):
Code:
"/sys/class/leds/spotlight/brightness"
or
"/sys/class/leds/flashlight/brightness"
and replace it with:
Code:
"/sys/class/leds/lv5219lg:fled/spotlight_enable"
6. use smali/baksmali tool to compile classes.dex
syntax:
Code:
java -Xmx512M -jar smali.jar <foldername>/ -o classes.dex
7. replace classes.dex in services.jar with the new classes.dex using winrar
8. replace the services.jar in /system/framework folder
9. reboot
10. test it with switchpro or LED Light (from market) or vignette (provided camera works)
Notes:
1. If booting fails that'd mean something wrong in compiling / packing the apk. please replace the original file
2. The method may not apply to every rom. Do it at your own risk.
Pls hit "Thanks" if it helps you
This guide was so badly needed,
awesome job bro.... Thumbs up to this awesome guide
@cobrato
thank you for this!!!
it will help many ppl who r porting ROMs
@all
u can find the above mentioned tools in most android kitchens [email protected]
some useful links:
one of the best kitchens available: dsixda's HTC Android Kitchen
for smali/baksmali tool http://code.google.com/p/smali/
EASYapkTOOLcompilerDECOMPILER
can this be used to turn of the keyboard lights?
can someone make a xrec zip for this?
Would a flashable zip be possible?
sent from my gingerbread powered c64 with NO wlod
chiefy009 said:
Would a flashable zip be possible?
sent from my gingerbread powered c64 with NO wlod
Click to expand...
Click to collapse
Of course it will be possible. But it will be rom secific.
Sent from my X10project using XDA Premium App
Ask for patch in TripNreaver Miui 1.0.6
Hi,
Im dumb in commandline, so i ask for someone please to help me in make this patch.
Im ataching the framework_res.apk and services.jar from tripmiui 1.0.6.
http://www.megaupload.com/?d=GK7UQZF0
thanks in advance.
Has anybody checked if this works?
Cobrato appreciate that someone took out a patch for 1.0.63 tripmiui?
Hello, i keep breaking my device...:-( stuck in step 6...
Thanks cobrato , can you make this work in a flashable zip format so we can install it directly to the phone with the no hassle of typing.
flashable zip will be really greatfull...
For flashable zip you'll need to do it for each rom and that's not the purpose of this thread
For those who are interested. Applied to Trip's MIUI 1.07 using this tutorial. (Great COBS! Easy to follow!)
framework - http://dl.dropbox.com/u/11996466/framework-res.apk
Services.jar - http://dl.dropbox.com/u/11996466/services.jar
It works for me!
armic said:
For those who are interested. Applied to Trip's MIUI 1.07 using this tutorial. (Great COBS! Easy to follow!)
framework - http://dl.dropbox.com/u/11996466/framework-res.apk
Services.jar - http://dl.dropbox.com/u/11996466/services.jar
It works for me!
Click to expand...
Click to collapse
Are those the files needed for trips 1.07?
Sent from my X10i TripNMiUI using XDA App
kylec said:
Are those the files needed for trips 1.07?
Sent from my X10i TripNMiUI using XDA App
Click to expand...
Click to collapse
try Trips' without this and observe if there are hardware led and flash using vig.
armic said:
For those who are interested. Applied to Trip's MIUI 1.07 using this tutorial. (Great COBS! Easy to follow!)
framework - http://dl.dropbox.com/u/11996466/framework-res.apk
Services.jar - http://dl.dropbox.com/u/11996466/services.jar
It works for me!
Click to expand...
Click to collapse
hey, great job.
which permissions need to be set for framework-res.apk to work?
can it use for enable flash light for video recording in cm 6.1.3 ?
pedrocel85 said:
hey, great job.
which permissions need to be set for framework-res.apk to work?
Click to expand...
Click to collapse
Both
X X -
X - -
X - -
Sent from my X10i TripNMiUI using XDA Premium App
farzin_silver said:
can it use for enable flash light for video recording in cm 6.1.3 ?
Click to expand...
Click to collapse
As COB said, we need to do it on every ROM separately.
Sent from my X10i TripNMiUI using XDA Premium App
Hi! I have a very odd problem: somehow my SystemUI.apk mods won't keep (i.e. after pushing, the XML edits are reversed to stock). I'm attempting to remove the brightness slider. It should be a simple edit to the tw_status_bar_expanded.xml: add the red code; many others have used this edit successfully (Verizon GS3, international GS3, etc.):
Code:
<LinearLayout android:orientation="vertical" android:id="@id/brightness_controller" [B][COLOR="Red"]android:visibility="gone"[/COLOR][/B] android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="56.0dip">
However, it didn't work on my phone, even after three attempts. So, on a hunch, I edited something totally different:
Code:
android:background="ff000000"
to
Code:
android:background="00000000"
-- which should make the brightness bar transparent: that didn't work after pushing, either! Frustrated, I pulled the SystemUI.apk back and saw that...somehow...the XML had "reverted" back to stock, showing
Code:
[B]android:background="ff000000"[/B]
Here's my "flow," if anyone can diagnose this wacky issue:
1. Use Virtual Ten Studios (an IDE, integrated development environment) to pull SystemUI.apk (after installing framework-res.apk resources).
2. Create backup of SystemUI.apk
3. Edit XML in SystemUI.apk -> save -> recompile and zipalign.
4. Copy AndroidManifest.xml and META-INF folder from backup apk to modded apk.
5. Boot phone into recovery -> push modded SystemUI.apk to /system/app [states that it pushed correctly] (I do recovery because, as I just learned, you can't push to a phone that's on, if it has a secure kernel; adb remount or adb shell mount still yield permission denied, but recovery doesn't!).
6. Reboot.
I thought it was just a fluke, but I ran the experiment again, this time changing the color of the bar: ff000000 -> ff000001 (left is XML before pushing; right is XML after pulling): http://prntscr.com/qoqcx
Thought it could be a permissions issue, but I ran adb shell -> chmod 644 /system/app/SystemUI.apk from recovery. Still doesn't work! I pulled the just-modded pushed APK and, boom, there it lies with none of my edits. :/
Any thoughts out there?
There's got to be a reason... My phone can't be a demon. Right?
For what it's worth, I've successfully flashed a SystemUI.apk as a flashable zip, so my phone isn't immune. There's just something wrong with my process....
A friendly bump because of subforum change!
Thanks To Peetr_ for his Hybrid Rom
Thanks to LockeOn for His detailed guide
If you think the brightness of LCD is high during low light or night, if you think the button back light is not necessary during day time then this mod is for you.
This is a modified framework-res.apk of peetr_'s Hybrid rom. Modified LCD auto brightness
levels and button back light for better battery life.Button back light only illuminate at low brightness level.
I am using this mode for past few days without any issue. Use it at your own risk.
BUILT IN AUTOBRIGHTNESS LEVELS
<item>30</item>
<item>100</item>
<item>200</item>
<item>300</item>
<item>800</item>
<item>1500</item>
</integer-array>
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>30</item>
<item>60</item>
<item>100</item>
<item>140</item>
<item>200</item>
<item>225</item>
<item>250</item
MODIFIED AUTOBRIGHTNESS LEVELS
<integer-array name="config_autoBrightnessLevels">
<item>3</item>
<item>10</item>
<item>20</item>
<item>30</item>
<item>60</item>
<item>90</item>
<item>120</item>
<item>180</item>
<item>250</item>
<item>500</item>
<item>800</item>
<item>1200</item>
<item>1800</item>
<item>2500</item>
<item>5000</item>
</integer-array>
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>13</item>
<item>18</item>
<item>25</item>
<item>30</item>
<item>40</item>
<item>50</item>
<item>60</item>
<item>70</item>
<item>80</item>
<item>90</item>
<item>100</item>
<item>120</item>
<item>150</item>
<item>180</item>
<item>210</item>
<item>240</item>
</integer-array>
Installation
1. Copy your framework-res.apk from system/framework/ to sd card as a backup using Es file explorer or root explorer
2. Copy attached framework-res.apk to System/framework and overwrite it.
3. After overwriting Phone will reboot.
4. After reboot Change the permission of framework-res.apk to rw-r-r
Tested in my Electrify that running Peetr_'s Hybrid locked rom. It may not work with other roms.
Sorry for my English
pradeeppk said:
Thanks To Peetr_ for his Hybrid Rom
Thanks to LockeOn for His detailed guide
If you think the brightness of LCD is high during low light or night, if you think the button back light is not necessary during day time then this mod is for you.
This is a modified framework-res.apk of peetr_'s Hybrid rom. Modified LCD auto brightness
levels and button back light for better battery life.Button back light only illuminate at low brightness level.
I am using this mode for past few days without any issue. Use it at your own risk.
BUILT IN AUTOBRIGHTNESS LEVELS
<item>30</item>
<item>100</item>
<item>200</item>
<item>300</item>
<item>800</item>
<item>1500</item>
</integer-array>
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>30</item>
<item>60</item>
<item>100</item>
<item>140</item>
<item>200</item>
<item>225</item>
<item>250</item
MODIFIED AUTOBRIGHTNESS LEVELS
<integer-array name="config_autoBrightnessLevels">
<item>3</item>
<item>10</item>
<item>20</item>
<item>30</item>
<item>60</item>
<item>90</item>
<item>120</item>
<item>180</item>
<item>250</item>
<item>500</item>
<item>800</item>
<item>1200</item>
<item>1800</item>
<item>2500</item>
<item>5000</item>
</integer-array>
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>13</item>
<item>18</item>
<item>25</item>
<item>30</item>
<item>40</item>
<item>50</item>
<item>60</item>
<item>70</item>
<item>80</item>
<item>90</item>
<item>100</item>
<item>120</item>
<item>150</item>
<item>180</item>
<item>210</item>
<item>240</item>
</integer-array>
Installation
1. Copy your framework-res.apk from system/framework/ to sd card as a backup using Es file explorer or root explorer
2. Copy attached framework-res.apk to System/framework and overwrite it.
3. After overwriting Phone will reboot.
4. After reboot Change the permission of framework-res.apk to rw-r-r
Tested in my Electrify that running Peetr_'s Hybrid locked rom. It may not work with other roms.
Sorry for my English
Click to expand...
Click to collapse
Thanks
MarcquisDale said:
Thanks
Click to expand...
Click to collapse
Please share your experience if you tried it. I am noticed a good improvement in battery life and less strain for my eyes. Actually it will Not harm anything. If you don't like the mod just replace it with the backup framework-res.apk. Or if you need more or less brightness in any levels please report. I will modify and upload another framework-res.apk. You can check the variation of lcd brightness using android sensorbox application.
Sent from my Motorola Electrify using Tapatalk 2
pradeeppk said:
Please share your experience if you tried it. I am noticed a good improvement in battery life and less strain for my eyes. Actually it will Not harm anything. If you don't like the mod just replace it with the backup framework-res.apk. Or if you need more or less brightness in any levels please report. I will modify and upload another framework-res.apk. You can check the variation of lcd brightness using android sensorbox application.
Sent from my Motorola Electrify using Tapatalk 2
Click to expand...
Click to collapse
Its running great so far
pradeeppk said:
Thanks To Peetr_ for his Hybrid Rom
Thanks to LockeOn for His detailed guide
If you think the brightness of LCD is high during low light or night, if you think the button back light is not necessary during day time then this mod is for you.
This is a modified framework-res.apk of peetr_'s Hybrid rom. Modified LCD auto brightness
levels and button back light for better battery life.Button back light only illuminate at low brightness level.
I am using this mode for past few days without any issue. Use it at your own risk.
BUILT IN AUTOBRIGHTNESS LEVELS
<item>30</item>
<item>100</item>
<item>200</item>
<item>300</item>
<item>800</item>
<item>1500</item>
</integer-array>
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>30</item>
<item>60</item>
<item>100</item>
<item>140</item>
<item>200</item>
<item>225</item>
<item>250</item
MODIFIED AUTOBRIGHTNESS LEVELS
<integer-array name="config_autoBrightnessLevels">
<item>3</item>
<item>10</item>
<item>20</item>
<item>30</item>
<item>60</item>
<item>90</item>
<item>120</item>
<item>180</item>
<item>250</item>
<item>500</item>
<item>800</item>
<item>1200</item>
<item>1800</item>
<item>2500</item>
<item>5000</item>
</integer-array>
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>13</item>
<item>18</item>
<item>25</item>
<item>30</item>
<item>40</item>
<item>50</item>
<item>60</item>
<item>70</item>
<item>80</item>
<item>90</item>
<item>100</item>
<item>120</item>
<item>150</item>
<item>180</item>
<item>210</item>
<item>240</item>
</integer-array>
Installation
1. Copy your framework-res.apk from system/framework/ to sd card as a backup using Es file explorer or root explorer
2. Copy attached framework-res.apk to System/framework and overwrite it.
3. After overwriting Phone will reboot.
4. After reboot Change the permission of framework-res.apk to rw-r-r
Tested in my Electrify that running Peetr_'s Hybrid locked rom. It may not work with other roms.
Sorry for my English
Click to expand...
Click to collapse
thanx
did the first 3 steps on my stock, locked, rooted 2.3.4 photon
Installation
1. Copy your framework-res.apk from system/framework/ to sd card as a backup using Es file explorer or root explorer
2. Copy attached framework-res.apk to System/framework and overwrite it.
3. After overwriting Phone will reboot.
Click to expand...
Click to collapse
my phone will hang at the sprint "now" screen at bootup, and then vibrate. It will restart and hang at the sprint "now" screen again, and then shut off. Sometimes it will get past the "now" screen and get into a "starting services" screen, but hang there. How can I fix this? I did make a copy of my original, and it is on my microSD.
Edit: got my phone working again after SBF to stock.
This mode is only for peetr_s hybrid rom
Sent from my Electrify using Tapatalk
Thanks
Sent from my MB855 using XDA Free mobile app