yashsingh1/xdaforums huggingface dataset:
[HTC EVO 3D] j4n87:
Found it here:

http://xdaforums.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://xdaforums.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://xdaforums.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://xdaforums.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.

gl :)
[HTC EVO 3D] nabbed:
Awesome sauce!

I used this to mod - http://xdaforums.com/showthread.php?t=1193149
[HTC EVO 3D] felacio:
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?.... :confused:

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*
[HTC EVO 3D] mattfmartin:
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.
[HTC EVO 3D] felacio:
OK.... I see several references to LED and buttons and such.. you sure this has to do.with the autobrightness of the screen?..
[HTC EVO 3D] mattfmartin:
Nope it doesn't. :p Read to fåst. Thought it was another bright capacitive led thread.
[HTC EVO 3D] j4n87:
Did you managed to get it working felacio? Which rm you are using? If you want I can do it for you..
[HTC EVO 3D] felacio:
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.
[HTC EVO 3D] j4n87:
oh, okay..yeah also noticed that the sensivity is a bit slow.

But still better than the standard configuration :)
[HTC EVO 3D] Turge:
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...
[HTC EVO 3D] j4n87:
updated op with step 7-end.
[HTC EVO 3D] Turge:
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.
[HTC EVO 3D] j4n87:
you're welcome :)
[HTC EVO 3D] Turge:
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..
[HTC EVO 3D] j4n87:
yeah, thats the right way :)

..will add this to the OP :)
[HTC EVO 3D] Turge:
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
[HTC EVO 3D] KrisHilbun:
Is it safe to assume that this method will work on Sensation?
[HTC EVO 3D] felacio:
Yep. I did if for a friends sensation. Same process.
[HTC EVO 3D] Rytt55:
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?
[HTC EVO 3D] j4n87:
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:

</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.
[HTC EVO 3D] KrisHilbun:
Thanks appreciate the reply :)
[HTC EVO 3D] Biofall:
The app juice defender will do this for you, but with an easy-to-use interface for noobs or lazy people. OP, do you mind if I add this to my stickied battery life thread after I try it out and confirm?
[HTC EVO 3D] :
yeah, sure (:

What is juice defender able to do? lower the backlight values.
[HTC EVO 3D] Biofall:
Cool. JD can do it all, and more.
[HTC EVO 3D] Mega-Japan:
At first sight I thought doing this would have been so complicated, but once I gave it a go, it's a lot simpler than one would think.

The default values in the linked thread's xml files were very low for average user. So here's what I set my values to:

</integer-array>
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>21</item>
<item>41</item>
<item>61</item>
<item>81</item>
<item>101</item>
<item>121</item>
<item>141</item>
<item>161</item>
<item>181</item>
<item>255</item>
</integer-array>
<integer-array name="config_autoBrightnessLcdBacklightValuesUp">
<item>21</item>
<item>41</item>
<item>61</item>
<item>81</item>
<item>101</item>
<item>121</item>
<item>141</item>
<item>161</item>
<item>181</item>
<item>255</item>
</integer-array>
<integer-array name="config_autoBrightnessLcdBacklightValuesDown">
<item>21</item>
<item>41</item>
<item>61</item>
<item>81</item>
<item>101</item>
<item>121</item>
<item>141</item>
<item>161</item>
<item>181</item>
<item>255</item>
</integer-array>

Having intervals of 20 made it smooth and simple. Put your phone next to a light bulb and you'll see the brightness turn to its highest setting.

Thanks a lot to OP =).

Edit: After doing this, I realize some stuff in the phone had gone nuts. Some contacts had been deleted, the background was defaulted, all sync apps had been reset, there was a bug when I ended a call.

After a SECOND restart, everything seemed to have gone back to normal, although I still had to manually set the background back, and re-sync with google and whatnot.

I believe to have done exactly as instructed so I really have no clue what went wrong. Perhaps due to custom rom? Doubt it...
[HTC EVO 3D] freeza:
Framework files you won't wanna push while Android is actually booted. I always do it in recovery. It will minimize any problems.
[HTC EVO 3D] TymmyD:
Can a flashable mod be made? Or is it ROM specific?
[HTC EVO 3D] lukjod:
Must the device be rooted to do this or is some workaround tp push back changed apk to system
[HTC EVO 3D] No1ustad:
+1... last time i messed around with that file i ended up in a rebooting loop...
[HTC EVO 3D] :
Yeah, you have to be rooted to do this.

It's not possible to make a flashable zip, because the framework of each rom could be different.

Don't think, that it's too difficult? (:

@ people that got bootloops, I also got bootloops on specific roms when my lowest value was under 20.
[HTC EVO 3D] cruise350:
When your phone starts locking up or freezing for no reason remember you did this and then undue it. This mod has been the biggest source for random freezes of the phone since people started using it. I would stay away from it.
[HTC EVO 3D] :
I'm using this for over two month now, without any issues.

...and I don't think that this LIGHT mod can cause random freezes and reboots.

No one is forced to use this mod. But I suggest it to everyone which will save some battery. Why should my display stay at e.g. 40% brightness at night, when it can be dimmed to 20% or lower - The stock settings are far too high.
[HTC EVO 3D] loscassapalle:
i need root for use that?
[HTC EVO 3D] taqri85:
Obviously.
[HTC EVO 3D] iTouch24:
I am getting a replacement phone sent to me and wanted to check to see if it was refurbished or not. In the past i have gotten lucky with the phone not being refurbished.

i think u had to do ## codes to tell.
[HTC EVO 3D] osifervic:
In dialpad press

##786# ..... Scroll down ,You will see reconditioned status and activation date
[HTC EVO 3D] jwinkel:
He is right about the ##786#.. but typically if you get a replacment phone from sprint and not Asurion, the only times that you will get a new device is if they are on back order or if you complain enough to customer service.
[HTC EVO 3D] iTouch24:
its coming from asurion ... lost my original .. we will see
[HTC EVO 3D] iTouch24:
i got phone and it says all 0's for data and voice and NO for reconditioned ...

it has the asurion sticker though behind the battery on phone

so i am guessing it is safe to say that the phone is brand new???
[HTC EVO 3D] abdeviation:
mine says "not available". replacement from sprint store
[HTC EVO 3D] iTouch24:
hmmm that is weird .. wonder what that means
[HTC EVO 3D] poetry999:
If you get the phone and theres a sticker behind the battery then most likely it refurbished. When i had my OG EVO and had to get it replaced through asurion, it was refurbished, they sent me 3 replacements all refurbushed and defected. So about the 4th one, it actually came in fresh out the original box with all the accessories.
[HTC EVO 3D] osifervic:
...Yes , Unfortunately it sounds like its likely a refurbished handset.

I had been fortunate enough in my past experience with Asurion Insurance to have gotten brand new units. The brand new units come in original box with a brand new sealed battery , SD card and all accessories. (Exactly the same way as if you purchased it in the store)

The refurbished ones come in a Asurion box , have their sticker in battery compartment and is the handset only. No battery .

However, if you would like them to send you a new unit . Keep sending back any refurbished units they send you. After 2 or 3 times they usually send out brand new in box units.
[HTC EVO 3D] iTouch24:
Crap, and i thought it was a new unit because it didnt say reconditioned. The one I have from them now has no dead pixels and seems pretty solid except for the battery cover not snapping all the way shut on the top. I asked if they could mail me out a new battery cover but they have to ship me another unit.

Anything else I should make sure is ok on the unit? Some of you guys have gotten unlucky with refurbished units. Some people actually believe that refurbished units can be better then new because they are all specifically inspected. How long does asurion warranty phone?
[HTC EVO 3D] Skyphos:
Great info. I got mine a week after release and suspected it was too young to be a refurb. I was able to confirm today that it was not. I managed to get it for $375 on the 4th of July weekend on Craigslist. Dunno how i found such a sweet deal.

Not to take the thread on a tangent, but can anyone list all of the ## codes? Seems like i've used this one and at least one other before (the one where you must use your MSL as password). I'd like to make note of them for future ref.

**EDIT** Link to my question: http://xdaforums.com/showthread.php?t=1145219
[HTC EVO 3D] stiffmast3r:
guys, why does the ##786# command doesnt work for me?

i have to type it in dealpad, right? and then? comes the "infobox"? not for me..

maybe im to stupid for that -.-

btw: i have a gsm 3vo
[HTC EVO 3D] iTouch24:
i think it is just for the sprint cdma versions ... it also could be the ROM u are running
[HTC EVO 3D] stiffmast3r:
i thought that... its not rooted, running stock rom 2.3.4, software version 1.20.401.2 -> is this the old version, before the OTA?
[HTC EVO 3D] flashstein:
You will almost always get a referb with your warranty until they send you several that is defective before you get a new one.
[HTC EVO 3D] iTouch24:
WoW did i get lucky ... so i called asurion to tell them that my battery cover was not closing all the way on the phone which was messing up my power buttons and volume buttons and wanted them to send me a new battery cover. They said that they cannot just send me the battery cover but would have to send out another phone. Well this time i opened box and it was a brand new HTC box sealed with everything in it .. manuals .. charger, etc etc ... i was very very pleased .. thanks asurion ... this was only my first exchange with asurion
[Sony Ericsson XPERIA X10 Mini] bolajones:
I own a X10mini with GingerDX ported by stelios97 and I´m happy with this. But I would like to try GingerDX port by D4rKn3sSyS. How do I modify latest D4 ROM to work on mini?

Cheers
[Sony Ericsson XPERIA X10 Mini] XxLordxX:
WTF are you trying to do? Use a X10 Mini Pro rom on a X10 Mini? Are you crazy man?!

Eu sei que vc eh brasileiro, por isso essa parte está em português, e nem tente fazer isso, pois pode travar seu celular e ele será "tão útil quanto um tijolo"...

-------------------------------------------------------------------------------------

(To Mod message) Sorry if I broke the English rule, but we two are Brazilian then it's easier write in Portuguese instead English...
[Sony Ericsson XPERIA X10 Mini] stelios97:
I don't understand why you want to use d4 port of gingerdx and not mine??? what's the difference???
[Sony Ericsson XPERIA X10 Mini] XxLordxX:
stelios97 is right, and we can find some differences, for example: if you post today an update, probably D4 will post the same update in some days, not on the exactly day. So bolajones you're using GingerDX by stelios97 I recommend you stay with it because you will receive updates quicker than me, a x10 mini pro user. Did you understand. Thanks stelios97 for the help ;)
[Sony Ericsson XPERIA X10 Mini] bolajones:
I´m just curious to see the difference on daily use because I think each of you has ported GingerDX on your way, like d4´s memory optimizations on ramdisk files.

In fact, it´s not a big deal. Sorry if I disturb you stelios97! It was not my intention. Keep up the good work. I use your version of Ginger and I like it very much. Many thanks for that!!!

Cheers
[Sony Ericsson XPERIA X10 Mini] mrworldwide092:
why do you want D4's port ,,, wat is diff b/w stellios port and D4 port?????

i dont see any diff(i think you have not used gingerdx)

iv been using gingerdx frm v005
[Sony Ericsson XPERIA X10 Mini] bolajones:
Hi all

After a closer look I could verify both versions are pretty the same rom. Please, disregard my question.

Thanks
[HTC EVO 3D] jamexman:
Be warned, if you unlock with HTC's method and you don't have s-off already, you will be able to load roms but NOT KERNELS at all.
[HTC EVO 3D] mwalt2:
What kernels have you tried? Maybe it just won't work all custom ones are currently based on the old kernel (ie not downgrade). Have you tried flashing freeza's 2.3.4 kernel with ciq removed?
[HTC EVO 3D] FaithCry:
LMAO too funny.
[HTC EVO 3D] graffixnyc:
I tried freeza's kernel on a phone that was unlocked via HTC unlock. Doesnt take.. And you know how when you flash kernels it usually takes like 10 seconds to flash? It takes a couple of minutes to flash. Even if you install a rom when it gets to install the boot.img it hangs longer than it takes to install /system

Same thing that is happening with the recoveries(except that one older version on cwm) they appear to flash fine but the changes do not really take
[HTC EVO 3D] sniperkill:
Who in their right mind would choose HTC's unlock method, over Revolutionary? If they did choose HTC's unlocking method, then their pretty stupid and they shouldn't be flashing roms in the first place.

I mean, come-on. Revolutionary gave us an exploit to get s-off and root with the users in mind. HTC gave us the unlocking method with HTC in mind. So if you chose HTC, when we have Revolutionary, you deserve whatever you get. IMHO
[HTC EVO 3D] graffixnyc:
I did the HTC unlock on my buddy's phone Just to be the guinea pig :) Plus he doesnt have a clue about flashing or anything like that (that's why he gave his phone to me to set up for) My phone thank god was s-offed using revolutionary.

I'm going to try to hold on to his phone for as long as I can because me and Haus_ have been trying to figure out what we can do to unlock it. We've also been bouncing ideas around with IEF..
[HTC EVO 3D] sgt. slaughter:
Class A **** response there.

There many reasons to go through it. One being if you didn't have the choice and ur phone had the OTA already applied. The other being for dev purposes and to see what all it actually does so we can get a idea about it.
[HTC EVO 3D] Rem3Dy:
Well said
[HTC EVO 3D] ssconceptz:
Someone please delete this thread as what is stated in the original post is totally false. The stock kernal with CIQ removed does indeed work, no other custom 2.3.3 Kernals will work with 2.3.4 because the framework is different.

Edit: Not to mention once an unofficial exploit is available, I am positive it can be ran on top of the HTC Unlock to give you S-OFF.

My EVO 3D is HTC Unlocked.
[HTC EVO 3D] jamexman:
Correcto mundo on the **** answer.

And yes, I'm new here, but it doesn't mean I did my search. Read many guides how to use HTC unlock here, and all of there where "so revolutionary isn't needed anymore" "you can install roms with htc method" bla bla bla, but none of them say you can't install kernels. So I just posted this as a warning for other newbies.

And yes, as the other guy, I did try the stock modified new kernel, and nope, doesn't take it. Appears HTC has put some kind of lock to the kernel.
[HTC EVO 3D] westona:
Yup... I can confirm this too. I updated my phone via ota, then proceeded to the htc unlock page. (should have read xda first) Bootloader unlock was very easy, and cwm installed fine. after cwm installed I noticed wifi reads error after you try to turn on. Nothing besides the initial cwm flashed via bootloader, and kernels do not flash in cwm. Now im pissed, n feel like a dumbass. Thanks HTC. Well... Im gonna try to get the phone covered under an insurance claim. With a new phone, I cant say I will make the same mistake twice...
[HTC EVO 3D] SPreston2001:
Cant you just relock the phone via the HTC method and use a revolutionary method once its relocked?
[HTC EVO 3D] graffixnyc:
Can you post screen shots of you settings kernel version before and after you flashed the kernel? Or are you just saying it worked because you flashed it and nothing broke? I flashed freeza's kernel and my kernel version didn't change at all. Not even the date SMP PREEMPT Fri Aug 5

Plus some of the things it claimed to do at boot didn't happen

I still had data in these after I flashed and booted:

Removes files from /data/system/dropbox ()

-Removes files from /data/system/appusagestats

-Removes files from /data/system/usagestats

These were still all read write:

-Modifies permissions on /data/system/dropbox to read-only

-Modifies permissions on /data/system/appusagestats to read-only

-Modifies permissions on /data/system/usagestats to read-only

All Still had full permissions:

-Removes permissions on /data/system/userbehavior.db

-Removes permissions on /data/system/userbehavior.db

-Removes permissions on /data/system/userbehavior.db-shm

-Removes permissions on /data/system/userbehavior.db-wal

-Removes permissions on /data/system/userbehavior.xml

Plus the fact the kernel takes a few minutes to flash when it should only take the most a few seconds tells you something isnt right. Have you guys tried flashing a kernel by it self? Do you notice it takes a long time to flash? Or when you're flashing a rom watch the progress. Does it hang and take longer to flash the boot image than the system image? that shouldnt be. Something is for sure not taking. I flashed his kernel and nothing broke, but none of his changes he made to it stuck
[HTC EVO 3D] graffixnyc:
No, you cannot. Revolutionary doesnt support the 1.50 bootloader. In the past we could solve this by downgrading the bootloader. But now HTC built in a bootloader version check. It wont allow you to flash a bootloader with an older version of the current bootloader. We tried changing the mainver in the misc partition and that's how we found that out. Then we tried to flash the RUU with the older 1.40 bootloader we got a "bootloader is older version" IEF from alpharev/revolutionary said "That's a new one" Him and I were on irc the other night trying to figure it out. At first we couldnt even get a RUU to run. That's when I discovered to get a RUU to run you first have to relock the phone(which you could unlock again after)
[HTC EVO 3D] SPreston2001:
Ok so would it be best if anyone who used the HTC unlock method to relock the phone via HTC and wait for you guys to come up with a exploit for the 1.50 hboot?