yashsingh1/xdaforums huggingface dataset:
[Desire HD Themes and Apps] slopppy:
All the way down to 1 :p

Looks fine on mine. 25 makes my eyes hurt in a pitch black room! Maybe we have different screen types or something! haha
[Desire HD Themes and Apps] mulletcutter:
The screen is smaller, mytouch4g :) i couldnt even see ne thing on the screen.
[Desire HD Themes and Apps] slopppy:
Ahh, sorry, I didn't realise you weren't using a Desire HD. Yeah, probably just different screen types. Obviously 1 is a bad value for the myTouch 4G!!

:D
[Desire HD Themes and Apps] mulletcutter:
you said make all 3 sections the same...but valuesdown is different without me touching it.

cuz this last time i put first item to "10" and screen goes black just like the one u made for me that was at "1". if i leave my phone unlocked the screen is black but right b4 it locks screen gets brighter then locks.. this sposed to happen?
[Desire HD Themes and Apps] slopppy:
Hmm, strange. I've always just put all three sections the same. Maybe that somehow relates to that behaviour you're experiencing. That doesn't happen for me.
[Desire HD Themes and Apps] mulletcutter:
But b4 you do any modding are all 3 sections the same?
[Desire HD Themes and Apps] xdadevelopers13:
do you mind sharing the flashable zip via cwm youve cooked??? vu 1.31 user here TIA :D
[Desire HD Themes and Apps] mulletcutter:
If you wanna wait till 2.3.4 comes out, ill mod it and i can post it.
[Desire HD Themes and Apps] slopppy:
Just checked the arrays.xml that comes with Lee's latest ROM and the 3 sections are indeed different.

I can only assume that when I first started this little project, the ROM I was coming from at the time may have had all three the same. Or maybe I read somewhere that you can just make them the same.

If you find out exactly how the Up/Down sections work (apart from the obvious), I'd be cool if you could share it here :)
[Desire HD Themes and Apps] slopppy:
Lower auto-brightness for LeeDroid HD 3.3.3 - No Fly-in transitions

Lower auto-brightness for LeeDroid HD 3.3.3, minus Fly-In Transitions

These are to be flashed right on top of Lee's base ROM, without any other mods (Pure Kingdom Sense 3.0 or Rosie 3.0 mods won't affect this).

I've attached 2 versions, one with just low auto brightness and NOTHING else, and the other also includes the battery mod that I like (hybrid circle, green from 100 to 75, then orange to 25, then red).

Always do a nandroid backup before flashing anything!!!!!

This is a "special" second release of my normal patches, since there is quite a bit of talk around the LeeDroid thread that the fly-in transition is causing some battery issues :confused: I apologise to whoever authored the patch in the LeeDroid thread as I've lost the source, but this patch is based on the no fly-in patch from the thread, with my usual mods on top. If someone finds who the author of the no fly-in patch was, I'll happily pop their name in here.

Cheers,
[Desire HD Themes and Apps] fidoedidoe:
Hi I'm using this excellent guide but have a conceptual question. I've not done anything like this before, so user knowledge/understanding is most likely :)

FYI - i have not uploaded my UOT kitchen zip to my DHD, as I'd like to clarify my question before proceeding (belt and braces approach). I am using ARHD 5.2.5, with All-In One (sense 3.0) mod, XL settings mod and battery mod.

I've read the entire thread front to back, and believe I have followed the instructions closely. In summary I've extracted framework-res.apk, SystemUI.apk and com.htc.resources.apk directly from the phone (as i have mods installed). I then decompile framework-res.apk (without errors) and have modified the arrays.xml with my own values. I then recompile the apk (again without console errors)

FYI - i have used the apktool.jar supplied by sloppy in post 204

At this point I thought, I'd check and see that the newly created unsignedframework-res.apk holds the changed values i made to arrays.xml. I used 7zip to extract the contents, but what confuses me is that - no longer see any references to the "values*" folder structures (within one of these arrays.xml is stored) that featured in the original framework-res.apk.

Does this sound normal?? Is it safe to cook in UOT Kitchen if these are no longer present? I also took the opportunity to look into the framework-res.apk of a zip cooked for ARDH in an earlier post (sorry can't recall which) and it also didn't have the folder structures i was looking for: i.e. /framework-res.apk/res/values).

sorry if this is a noob question?
[Desire HD Themes and Apps] mulletcutter:
If u have root explorer u can unzip apk and look it while its on ur phone
[Desire HD Themes and Apps] fidoedidoe:
thanks for the advice, I don't have that (just ES explorer). I'll backup and apply the UOT Kitchen built zip. and see what happens.

edit: well looks like my concerns were unjust. I've uploaded the UOT Kicthen zip and installed through recovery and all seems to be working okay. I'll need to test further, but first impressions seem to be good, my personal settings may be a little dark - but i am indoors by a sunny window.

To clarify my concern was that there seems to be some folders (res/values*) missing in the recompiled framework-res.apk. Additionally the OUT Kitchen zip was much smaller than the original framework-res.apk (~3Mb compared to ~6MB). anyway all seems ot be good, so many thanks to sloppy for the original thought / detail and all the other thread users input / advice - such a great level of detail here - much appreciated!
[Desire HD Themes and Apps] mulletcutter:
Ya kine too, 2.3.3 was lile 5.5mb, 2.3.4 was only like 3.4
[Desire HD Themes and Apps] slopppy:
Hi mate, sorry for chiming in after you've obviously already sussed it out, but yeah, that's completely normal. When the framework gets compiled, it actually compiles the Res/values folder into one file. Something.arsc from memory.

You can only see the contents of the res /values folder when you decompile.

Glad you sorted it out and got some value from my ramblings in this thread :)
[Desire HD Themes and Apps] ricc@rd:
Can anyone make a lower autobrightness mod for the new ARHD 6.1.0?
[Desire HD Themes and Apps] Waspanater:
I'm cooking one as we speak, with a stock hybrid % battery.

I can post it here if you want.
[Desire HD Themes and Apps] mrhayami:
Added Steps

@sloppy,

Since the sensor reads in lux and each step is recorded as that step only no variation in between, so in my case:

0-10=1 step1

11-40= step2

So my issue is 0-10 are set pretty low and 11-40 are higher as opposed to the stock where these two steps are the same, and thus it causes a constant shift depending on how I hold my device.

Do you know if it is possible to add more steps in so it will flow smoother and without this leap in brightness?

Like something similar to this?

0-10= step1

11-24= step2

25-40= step3

EDIT: I have tested this and it will not read out the extra step just jump from 10 to 40 lux. Works fine but still will not register in any light meter readout anything between.

Also for others.

This may help you with your settings. Just helps you reference what your looking at.

<integer-array name="config_autoBrightnessLevels">
<item>11</item> [COLOR="YellowGreen"]//lux steps+1[/COLOR]
<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>15</item> [COLOR="Red"]//0~10[/COLOR]
<item>50</item> [COLOR="red"]//11~40[/COLOR]
<item>75</item> [COLOR="red"]//41~90[/COLOR]
<item>110</item> [COLOR="red"]//91~160[/COLOR]
<item>125</item> [COLOR="red"]//161~225[/COLOR]
<item>150</item> [COLOR="red"]//226~320[/COLOR]
<item>175</item> [COLOR="red"]//321~640[/COLOR]
<item>198</item> [COLOR="red"]//641~1280[/COLOR]
<item>227</item> [COLOR="red"]//1281~2600[/COLOR]
<item>255</item> [COLOR="red"]//2601+[/COLOR]
[Desire HD Themes and Apps] slopppy:
Yeah, I have researched this myself previously and come up empty handed. It is a limitation either in the sensor hardware or the kernel. I'm unsure which.

Be sure to share if you discover anything new :)
[Desire HD Themes and Apps] mrhayami:
Will do! I'll see if I can delve deeper into it.
[Desire HD Themes and Apps] Steve0007:
Thanks slopppy for this great guide.

I have just sent you a PM :)
[Desire HD Themes and Apps] slopppy:
No probs mate. Your new framework is attached as per your PM.

Let me know how you get on.
[Desire HD Themes and Apps] Steve0007:
Thanks, works like a charm :cool:
[Desire HD Themes and Apps] mulletcutter:
can this work on the xoom? its honeycomb so i dont know what it needs in kitchen. or would it be the same as cm7?
[Desire HD Themes and Apps] slopppy:
Wow ..... I have ..... no idea!

Does honeycomb have a framework-res.apk?? I'm waiting for the quad cores before getting one, I'm not convinced Tegra 2 is the right hardware :)
[Desire HD Themes and Apps] mulletcutter:
Yes it does have a framework.apk, but what else shoud i need?
[Desire HD Themes and Apps] omar302:
Thanks for your great guide. But I have a question regarding step# 24. Choose Option 5 - Zipalign apk:

Whenever I do it (Option 5), in the log file I see the following:

It seems that the operation (Option 5 - Zipalign apk) is intended for "signed" apks, and will automaticaly look for a file with name signedxxxx.apk which means in steps 22/23 we shouldn't have changed the project file as the APK Manager will autamtically go for the resultant file. But, since this is a system apk & does not require signing, then steps 22, 23 & 24 are not actualy required.

I am not an expert, and I have actually started using the APK Manager only because of your guide. But maybe you can shed some light into this and clear it weather these three steps are actually necessary or is it an error from my side.

Thanks again.
[Desire HD Themes and Apps] slopppy:
Hi Omar,

The results you're reporting are very weird. The zipalign option is valid for whatever the currently selected apk is. That's why, in the previous step, you select the newly created file (which happens to be unsigned, since it's a system apk). But the zipalign should be running on whatever app is selected. After you select the unsigned version of the framework-res.apk, as per the instructions, does it show correctly up in the top-right corner of the script UI? Something weird is definitely going on ...

On a side note, I was contacted by the creator of the UOT Kitchen this morning (my time), requesting permission to include this mod in the UOT kitchen. Of course I gave him permission.

My point is that if you hold off, it's about to get a whole lot easier to implement this mod :)

I don't know when he's integrating it, but keep a look out, because this thread will be redundant when that happens :D

Double side note - he also told me that Step 29, uploading the 2 other files other than framework-res.apk is unnecessary .... good to know, I'll update the guide!!!
[Desire HD Themes and Apps] omar302:
Thanks for your reply.

Yes, it does show correctly up in the top-right corner of the script UI. But it just seems that whatever file you select, the script will find a file of the same name but with "unsigned" infront of it.

I am using APK Manager 5.1, so that might be case. In anyway, the mod still works and I do get working results.

As for uploading to UOT Kitchen, I have found that using 7-zip, I can just open any previuosly made flashable zip file (with a framework-res.apk) & just copy over (overwrite) the new framework-res.apk over the old, close the archive & flash through CWM.
[Desire HD Themes and Apps] slopppy:
Weird man!

I did post my version of apk_manager as an attachment in this thread somewhere once, you could always track it down if you can be bothered. But as you said, it's still working, so I expect you won't ;)

Yeah I did mention that in the guide in the OP ... but I also stepped through the UOT Kitchen process also :D

Glad it's still working for you anyways :)
[Desire HD Themes and Apps] Markus700:
Hey Guys,

is it possible to flash the Stock_1.84-Lower_Auto_Brightness_Patch.zip to an htc sensation with ARHD 3.5.x ?

Thanks in advance
[Desire HD Themes and Apps] lukogriffioen:
You are asking in dhd forum.. And it's for a very old dhd ROM. Pretty useless now. Follow the guide to make you're own. Pretty sure the it works the same way for sensation. So the guide is ok for you.
[Desire HD Themes and Apps] reaper90:
Great news!

but at the moment i have a problem that i cant solve... i tried to create a low brightness mod in combination with %battery because i did not find an existing mod with the values i'd like to have. Instruction is very clear, but when compiling my apk, the unsignedframework-res.apk is much smaller than the original one that i took from my ARHD 6.1.1 Rom. After cooking in UOT i flashed it and brightness worked well, but i got problems like this:

whit font on almost white background is not what it should be. Also in Titanium bakcup the settings page is just black and i cant see anything. When returning to stock framework these issues disappear and they do not occur when i use (brightness-)mods created by others... so i think something does not work when compiling(/decompiling) the apk... any ideas?
[Desire HD Themes and Apps] slopppy:
Check out this post - http://xdaforums.com/showpost.php?p=15597781&postcount=204

It seems that different version of apktool.jar can behave quite differently. Give the version I use a try (attached to that post I just linked to), and see if that helps :)

Cheers,
[Desire HD Themes and Apps] reaper90:
Thanks! :)

will try this later.

EDIT: Works well now, recompiled framework-res.apk has now the right size and the issues are gone. Many Thanks again!:)
[Desire HD Themes and Apps] maschenazi:
Hi

Will this work on a Sensation ? I am on ARHD 3.6.7.

Thanks
[Desire HD Themes and Apps] cyberde:
I tried many times but it's still smaller than the original (with batterymod and EQS) and it messes up menus in WhatsApp and other apps. Also the phone seems less responsive.
[Desire HD Themes and Apps] winwintoto1234:
Update:

It's a cloudy & rainy day today. Can't do outdoor test...:mad:
[Desire HD Themes and Apps] slopppy:
haha, don't be mad ... there's no rush :D

I was thinking about what you said about 160 being too bright ... I've noticed that when I'm outdoors and it's on 160 it's just right, but when I'm indoors and it hits 160 it seems like it could be lower ... kinda annoying!

You can always flash back to the previous patch I did for you while you wait to test it properly and give a full report back :P
[Desire HD Themes and Apps] hamurabi1:
Thank you, very much!
[Desire HD Themes and Apps] winwintoto1234:
:)

I agree. The brightness is fine with 160 outdoor but a little too bright for 160 indoor.

I think it is not your auto brightness's issue. It's the light sensor's fault I guess. Or maybe the readings given in GPS status is not accurate?
[Desire HD Themes and Apps] UpInTheAir:
More than likely the sensor, and I've checked the readings from gps status, sensor list, and light meter at various times, each with identical lx readings.
[Desire HD Themes and Apps] hamurabi1:
Hi sloppy...your patch doesn't work...it says "can't open .zip (bad)...installation aborted...
[Desire HD Themes and Apps] winwintoto1234:
Redownload & reflash may help...
[Desire HD Themes and Apps] winwintoto1234:
Update feedback:

At 225, 320, 640, 1280, 2600 and 10240, outdoors, the brightness works perfectly. Don't know whether it's too bright but definitely not too dim. Screen can be read without any problem.

To me

, as suggested earlier, if the brightness at:

40 = 8-10%,

90 = 10-12% and

160 = 12-15%

Then this auto brightness should be considered perfect.

Regards!
[Desire HD Themes and Apps] hamurabi1:
I already try this, but the same thing. :confused:
[Desire HD Themes and Apps] winwintoto1234:
Which one you downloaded? I only use the one with 1.84 because I have battery mod on my phone and didn't try others.

Have you tried this?
[Desire HD Themes and Apps] slopppy:
Hmmm, weird!

I've cooked it in the kitchen again, see if it's any better. File size is slightly different, maybe something went awry.

Make sure the MD5 is ok too: 76693a457fc193acafb5befc240499bf
[Desire HD Themes and Apps] shadowlabs9:
Hi,

Can you please add your mod to the Krzysiec power notification StockCarbon 1.84 and 1.72...?

http://xdaforums.com/showthread.php?t=894837

Best regards
[Desire HD Themes and Apps] UpInTheAir:
Hi sloppy,

With all these requests to add your moded framework to their themes, maybe it would be easier to add a detailed step by step guide how to do it in the OP. The only thing stopping them then, would be laziness. ;-)

I'd do it for you, but away with the family for a few days. Will be checking in now and then via the DHD though.
[Desire HD Themes and Apps] winwintoto1234:
This would be a good idea...:D
[Desire HD Themes and Apps] hamurabi1:
Thanks mate, now it's working... :D

i realy don't know what was wrong with first patch.

Thanks again!
[Desire HD Themes and Apps] chardd23:
hi can i request for a CM7-like auto brightness for leedroid?

the default auto brightness settings seems to be sensitive....
[Desire HD Themes and Apps] slopppy:
Do you mean an auto-brightness tool so you can do it yourself? If so, then I've looked and looked and found no equivalent.

If you mean you want the actual default auto-brightness settings from CM7 (without changing them through the tool), if somebody can tell me what those values are, I could do a version of it for LeeDroid.
[Desire HD Themes and Apps] slopppy:
Yeah, not a bad idea. I'll think about doing that :P
[Desire HD Themes and Apps] vahid123456:
+1 for this

I want this
[Desire HD Themes and Apps] vahid123456:
hi slopppy

are you there man

urgent
[Desire HD Themes and Apps] slopppy:
I am now :)
[Desire HD Themes and Apps] slopppy:
Sorry I've left a few requests outstanding. I've tweaked my settings and have been trying them out for a day or 2. Combine that with a crazy few days at work, and here we find ourselves. Hopefully I'll get time to post my 'how to' guide tomorrow. I'll see how I go!
[Desire HD Themes and Apps] jishinya:
Nice one.. better still if you can post a quick/short guide so we can quickly modify the themes ourselves :D

And yeah, I have the same request as 2 guys before me.. StockCarbon 1.72 & 1.84.. and preferablely GingerCarbon as well :D

Thanks man!
[Desire HD Themes and Apps] darnok3:
'how to' guide please...:)
[Desire HD Themes and Apps] darnok3:
Hey slopppy thank you for the HowTo guide....

after I follow the guide step by step I found an issue in SetCPU, so I do anything wrong?!?

The only thing I change are the BrightnessValues to that of your arrys.xml

Her are the issue

I don't know what i make wrong because anything else is ok.

Maybe you can take a look on the framework.apk

Original:

Android Revolution 5.1.x

- STOCK%ARHD5.1.x.zip (BASIC)

http://www.multiupload.com/UMZJ08PCFK

My framework.apk:

http://dl.dropbox.com/u/24305199/framework-res.apk

Thank you (and sorry for my bad English)
[Desire HD Themes and Apps] milanbarta:
What issue have you found exactly with SetCPU? What's wrong? And other than that is it working? I mean the lower autobrightness values? Just asking before I try it and mess my phone :)
[Desire HD Themes and Apps] darnok3:
Yes the lower autobrightness values are working fine and SetCpu is also working the only think is that if I want chance the Scaling in SetCpu i don't can read them because I only see white like on the picture.
[Desire HD Themes and Apps] milanbarta:
Ok, I'll give it a try and let you know later. Thank you for the time being :)
[Desire HD Themes and Apps] preacher65:
Hey, nice guide. Kudos. :)

Just two comments, meant to be constructive. :)

4. I think there were issues with apktool 1.3.2 and the Sense/Froyo DHD framework, so you had to use 1.3.1. However I think that apktool 1.3.2 (the version that comes with APK Manager) works okay with the new Sense/GB framework, although I haven't tried it yet myself.

11. Although you don't mention it, I assume you're using Notepad++ or a similar editor, I don't think normal Windows Notepad works, as the file format is slightly different for Android (i.e. Linux) text files.

I never managed to push the framework-res.apk file either, always had to flash it in a zip. Although once you've made a zip, you don't need to keep going back to the UOT kitchen, you can just open the zip file (in 7zip or whatever, don't extract it) and then drag and drop your new file on top of the previous one to replace it. I'm sure you already know this but thought it was worth mentioning. :)

Hope that's helpful, and again nice work on the guide. :D
[Desire HD Themes and Apps] slopppy:
Thanks :)

I welcome them!

Thanks for the advice, if it works ok for everyone with the version that comes with APK Manager, I'll remove that caviet!

Oooo, I didn't actually realise this one, thanks again. Yeah, I use Notepad++ as my default text editor, will update the guide.

Yeah, I have done that in the past, but was hesitant to mention it. I'll add it to the guide. Good to see that it's not just me who can't push framework-res.apk via adb! haha

Thanks for your comments mate :)
[Desire HD Themes and Apps] slopppy:
That's a weird one dude. Where did you get the framework-res.apk that you modded from? Straight from your phone? Or from the ROM that you flashed? If you got it from the ROM, had you perhaps flashed any themes on top of it? This could potentially mess things up. Safest thing to do is grab it straight off your phone.

Very weird that it's only in SetCPU. I can't see that screenshot that you attached?? The entire screen goes white? Could you explain it a little more or try and attach the screenshot again?
[Desire HD Themes and Apps] darnok3:
I hope you can see the picture.The framwork.apk I use is

Android Revolution 5.1.x

- STOCK%ARHD5.1.x.zip (BASIC)

http://www.multiupload.com/UMZJ08PCFK
[Desire HD Themes and Apps] slopppy:
The attachment is weird, it's like I can see it from the xda app but not through a browser. In the xda app, all I see is pure white ... does the entire screen turn white? If so, when exactly? Can you video it happening?

So you got the framework-res.apk from the ROM itself. That's fine as long as you hadn't flashed any themes/battery mods/pretty much anything other than just a kernel on top of the ROM. Can you confirm that you just have the pure vanilla ROM on your phone and nothing else? This is very important and you didn't answer it when I asked previously.

Cheers,
[Desire HD Themes and Apps] darnok3:
No the entire screen don't turn white.

When you klick in SetCpu to choose a Scaling typ then you can see a list with ondemand,smartass .... i don't can see because the text ist white in the list.

Yes i have the pure vanilla Rom on my phone but wenn you look

Android Revolution 5.1.x

- STOCK%ARHD5.1.x.zip (BASIC)

http://www.multiupload.com/UMZJ08PCFK

the framework I want to change is am Batterymoded version.

Can you put in your BrightnessMod into that framework.apk for me?

http://www.multiupload.com/UMZJ08PCFK

Thank you for your time.
[Desire HD Themes and Apps] darnok3:
http://xdaforums.com/picture.php?albumid=3400&pictureid=11760

the link to the picture

Edit: Ok i don't know why but in Firfox i can open the link... the internet explorer show me nothing... sorry
[Desire HD Themes and Apps] djcsurf:
...

10 char
[Desire HD Themes and Apps] preacher65:
Just reporting back about the apktool version. I've been told elsewhere (by the super-talented he_stheone64) that there are still a few minor issues with 1.3.2. I don't know if they're likely to affect straightforward edits like this or not, as I'm still on 1.3.1 myself. I suspect it might only be a problem with more serious coding or theming.

But in case anyone does need 1.3.1, go to http://code.google.com/p/android-apktool/downloads/list and select "Deprecated downloads" from the drop down.
[Desire HD Themes and Apps] ShawnWang59:
Hey,

I sent you a pm thank you so much for your time.

shawn