Jump to content

[MOD] [JJ9] Autobright r0.1 [TFT] [2011/02/09]


Guest 90180360

Recommended Posts

Guest 90180360

This mod changes the display brightness levels, if automatic brightness is enabled.

The lowest possible values are lower and the highest possible are higher than normal.

The values in between have been adjusted.

Install the zip with clockwork.

You MUST wipe!

This changes framework-res.apk, which means it's not compatible with themes.

Only works with Japanese Jellyfish RLS9 right now (individual update zips for other ROMs might follow).

It doesn't change anything for OLED Blades.

It doesn't change the brightness levels you can manually choose.

USE AT YOUR OWN RISK

Autobright_r0.1_JJ9.zip

To restore, replace the edited framework-res.apk in the zip with the one from the ROM you're using, then install again with clockwork.

I've prepared the zip for those using JJ9: restore_JJ9.zip

Brightness levels:

Original Autobright 0.1

30	   15

50	   40

70	   65

90	   90

110	 115

140	 150

170	 190

210	 240

Two phones in complete darkness, the left one is modded.

img0002qk.jpg

I've mostly done this for myself, but I'm of course happy to share :P

Feedback appreciated!!

Edited by 90180360
Link to comment
Share on other sites

Guest Victor von Zeppelin

Ah ha, I've been wanting something like this for a while...but alas, the other way round, Have full darkness lighter.

And also, shame it'll only work on JJ, any chance you could give some pointers on how I could do this for myself, on my framework apk?

Link to comment
Share on other sites

Guest ololizoz

I'm using this now. But it seems that the screen never times out? It's on all the time, even if I set screen timeout to 15 sec and waits for 30.

EDIT: Is there a undo?

Edited by ololizoz
Link to comment
Share on other sites

Guest Victor von Zeppelin
I'm using this now. But it seems that the screen never times out? It's on all the time, even if I set screen timeout to 15 sec and waits for 30.

EDIT: Is there a undo?

I'm assuming you'd just open up the package from this thread, replace the framework apk with the one from your rom, and reflash this new package.

Link to comment
Share on other sites

Guest 90180360
I'm assuming you'd just open up the package from this thread, replace the framework apk with the one from your rom, and reflash this new package.

Exactly. I can upload a package that brings you back to JJ9.

Link to comment
Share on other sites

Guest 90180360
But it seems that the screen never times out? It's on all the time, even if I set screen timeout to 15 sec and waits for 30.

Screen timeout should not be affected.

Link to comment
Share on other sites

Guest Victor von Zeppelin
Screen timeout should not be affected.

C'mon man though, a little insight into what you did, you'd be my new favourite battery saver :P

Link to comment
Share on other sites

C'mon man though, a little insight into what you did, you'd be my new favourite battery saver :P
Decompile framework-res, edit arrays.xml, recompile, et voilà.
Link to comment
Share on other sites

Guest 90180360
Decompile framework-res.apk, edit arrays.xml, recompile, et voilà.

Exactly. Don't forget to sign though.

See how to do it in this thread earlier today. (Special thanks again to jt_mcg!)

I've changed the "config_autoBrightnessLcdBacklightValues, I guess "config_autoBrightnessLevels" is for OLEDs.

About the values: 10 seems too low (screen stays completely dark), while 300 seems to high (brightness jumps back to regular levels after about a second).

Edited by 90180360
Link to comment
Share on other sites

Guest 90180360
And also, shame it'll only work on JJ

The method works for all ROMs, unfortunately there's no other way (known to me) than to replace the whole framework-res.apk.

Link to comment
Share on other sites

Exactly. Don't forget to sign though.

I've changed the "config_autoBrightnessLcdBacklightValues, I guess "config_autoBrightnessLevels" is for OLEDs.

I've just learned how to do it in this thread earlier today.

(Special thanks again to jt_mcg!)

I've tried many different vlaues.

10 seems too low (screen stays completely dark), while 300 seems to high (brightness jumps back to regular levels after about a second).

Nice work! I may have to look into your mod for my framework.

Thank you!

Link to comment
Share on other sites

Guest Simon O

In case it helps anyone here are the original values from the Orange 2.1 ROM:

	<integer-array name="config_autoBrightnessLevels">
<item>20</item>
<item>50</item>
<item>100</item>
<item>300</item>
<item>600</item>
<item>800</item>
<item>1000</item>
<item>3000</item>
<item>8000</item>
<item>10000</item>
<item>12000</item>
<item>999999999</item>
</integer-array>
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>30</item>
<item>50</item>
<item>70</item>
<item>90</item>
<item>110</item>
<item>130</item>
<item>150</item>
<item>170</item>
<item>190</item>
<item>210</item>
<item>230</item>
<item>255</item>
</integer-array>[/code]

Link to comment
Share on other sites

Guest 90180360
In case it helps anyone here are the original values from the Orange 2.1 ROM:

	<integer-array name="config_autoBrightnessLevels">

		<item>20</item>

		<item>50</item>

		<item>100</item>

		<item>300</item>

		<item>600</item>

		<item>800</item>

		<item>1000</item>

		<item>3000</item>

		<item>8000</item>

		<item>10000</item>

		<item>12000</item>

		<item>999999999</item>

	</integer-array>

	<integer-array name="config_autoBrightnessLcdBacklightValues">

		<item>30</item>

		<item>50</item>

		<item>70</item>

		<item>90</item>

		<item>110</item>

		<item>130</item>

		<item>150</item>

		<item>170</item>

		<item>190</item>

		<item>210</item>

		<item>230</item>

		<item>255</item>

	</integer-array>
Ok, that's interesting! In the Swiss stock ROM (OCH_P729BV1.0.0B01) they are identical to JJ9:
  <integer-array name="config_autoBrightnessLevels">

		<item>5</item>

		<item>300</item>

		<item>500</item>

		<item>1000</item>

		<item>3000</item>

		<item>8000</item>

	</integer-array>

	<integer-array name="config_autoBrightnessLcdBacklightValues">

		<item>30</item>

		<item>70</item>

		<item>90</item>

		<item>110</item>

		<item>140</item>

		<item>170</item>

		<item>210</item>

	</integer-array>

So ZTE was expecting especially bright conditions in the UK? :P

I wonder if it would be possible to change the number of steps manually, didn't try that yet.

Also I wonder how it would be possible to change the display brightness which can be set manually. The min and max seem to correspond to the original min and max of the automatic brightness, but they don't change if arrays.xml is edited.

Edited by 90180360
Link to comment
Share on other sites

Guest Len Ash

Same values in Paul's R12:

<integer-array name="config_autoBrightnessLevels">

<item>5</item>

<item>300</item>

<item>500</item>

<item>1000</item>

<item>3000</item>

<item>8000</item>

</integer-array>

- <integer-array name="config_autoBrightnessLcdBacklightValues">

<item>30</item>

<item>70</item>

<item>90</item>

<item>110</item>

<item>140</item>

<item>170</item>

<item>210</item>

</integer-array>

Edited by Len Ash
Link to comment
Share on other sites

Guest Len Ash
In case it helps anyone here are the original values from the Orange 2.1 ROM:

	<integer-array name="config_autoBrightnessLevels">

		<item>20</item>

		<item>50</item>

		<item>100</item>

		<item>300</item>

		<item>600</item>

		<item>800</item>

		<item>1000</item>

		<item>3000</item>

		<item>8000</item>

		<item>10000</item>

		<item>12000</item>

		<item>999999999</item>

	</integer-array>

	<integer-array name="config_autoBrightnessLcdBacklightValues">

		<item>30</item>

		<item>50</item>

		<item>70</item>

		<item>90</item>

		<item>110</item>

		<item>130</item>

		<item>150</item>

		<item>170</item>

		<item>190</item>

		<item>210</item>

		<item>230</item>

		<item>255</item>

	</integer-array>

Interesting... I'm not sure that's true. It doesn't match the values I've just pulled from a virgin OUK ROM...

The first array is for the light sensor values, not the "screen brightness" level per se. So this calibrates for screen and button brightness depending on the light level and the type of sensor, as in INPUT. Changing the first value in the first array changes the "light level" at which the first "brightness level" in the second array is used.

The second array sets the screen brightness (for OLED and LCD) level as an OUTPUT.

The second array MUST have one line more than the first array. Which is why I believe the above tables to be bogus.

Use both arrays, but do so "properly".... :P

Edited by Len Ash
Link to comment
Share on other sites

Guest Simon O
Interesting... I'm not sure that's true. It doesn't match the values I've just pulled from a virgin OUK ROM...

The first array is for the light sensor values, not the "screen brightness" level per se. So this calibrates for screen and button brightness depending on the light level and the type of sensor, as in INPUT. Changing the first value in the first array changes the "light level" at which the first "brightness level" in the second array is used.

The second array sets the screen brightness (for OLED and LCD) level as an OUTPUT.

The second array MUST have one line more than the first array. Which is why I believe the above tables to be bogus.

Use both arrays, but do so "properly".... :P

Values taken from P729BV1.0.0B08 framework-res which is the TFT Orange ROM 1st version. I assumed it would be similar to the first OLED version with lcd additions.

Edited by flibblesan
Link to comment
Share on other sites

Guest Len Ash
Ah ha, I've been wanting something like this for a while...but alas, the other way round, Have full darkness lighter.

And also, shame it'll only work on JJ, any chance you could give some pointers on how I could do this for myself, on my framework apk?

Done one for Paul's R12... not sure which way round you need it though?

Link to comment
Share on other sites

Guest Victor von Zeppelin
Done one for Paul's R12... not sure which way round you need it though?

Ah, you excellent man!

I'd personally prefer it how it is, but with the lower values, for when it's totally dark, to be a tad higher, so, maybe, make step 1 = step 2, and make step 2 halfway between step 2 and 3.

Thank you :P

Link to comment
Share on other sites

Guest Len Ash
Ah, you excellent man!

I'd personally prefer it how it is, but with the lower values, for when it's totally dark, to be a tad higher, so, maybe, make step 1 = step 2, and make step 2 halfway between step 2 and 3.

Thank you :P

So you want it to be generally brighter - particularly at low ambient levels?

Are you OK with ADB?

Link to comment
Share on other sites

Guest Victor von Zeppelin
So you want it to be generally brighter - particularly at low ambient levels?

Are you OK with ADB?

I feel that the higher values are fine, it's just bottoming out that I feel needs to be higher.

And yes, all good with ADB. Are you basing it around the r12 framework-res?

Link to comment
Share on other sites

Guest Len Ash
I feel that the higher values are fine, it's just bottoming out that I feel needs to be higher.

And yes, all good with ADB. Are you basing it around the r12 framework-res?

Yep - just push via ADB

Will pop an attachment up soon...

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.