• Announcements

    • Reminder - MoDaCo position on illegal content   07/30/15

      ILLEGAL CONTENT I'd like to just reaffirm MoDaCo's position regarding piracy and illegal content in the light of some recent questions / postings. Posts will be censored by myself or my moderation team if the contain or link to: Illegal / pirated / cracked software or sites that host such softwareNintendo emulators / ROMs or sites hosting them (in light of Nintendo's legal stance)CUSTOM ROMS You may discuss and post links to custom device ROMs on MoDaCo, provided the following rules are adhered to: ROMs must not contain any illegal 3rd party software (this includes trial versions included without permission)ROMs must give full credit to the original authorISSUES If you have any issues with this policy, please contact PaulOBrien directly via PM.
    • Reminder: Selling items on the forum directly is not allowed   07/30/15

      Please note that selling items on the forum directly is not allowed by the forum rules. There is a forum for eBay auctions whereby you can list the items on eBay and link to them there. This is the ONLY forum for this type of activity. You may also advertise links to the eBay forum in your signature. Please note that selling directly in contravention of these rules will result in a warning / suspension / ban.

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

36 posts in this topic

Posted (edited)

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
0

Share this post


Link to post
Share on other sites

Posted

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?

0

Share this post


Link to post
Share on other sites

Posted (edited)

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
0

Share this post


Link to post
Share on other sites

Posted

Thanks, might use this!

Do you mind shedding some light on how you did this?

0

Share this post


Link to post
Share on other sites

Posted

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.

0

Share this post


Link to post
Share on other sites

Posted

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.

0

Share this post


Link to post
Share on other sites

Posted

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.

0

Share this post


Link to post
Share on other sites

Posted

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

0

Share this post


Link to post
Share on other sites

Posted

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à.
0

Share this post


Link to post
Share on other sites

Posted (edited)

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
0

Share this post


Link to post
Share on other sites

Posted

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.

0

Share this post


Link to post
Share on other sites

Posted

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!

0

Share this post


Link to post
Share on other sites

Posted

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]

0

Share this post


Link to post
Share on other sites

Posted (edited)

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
0

Share this post


Link to post
Share on other sites

Posted (edited)

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 LanceH
0

Share this post


Link to post
Share on other sites

Posted

the value 9999999999 is for ???

exploding the screen ??? :P

0

Share this post


Link to post
Share on other sites

Posted (edited)

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 LanceH
0

Share this post


Link to post
Share on other sites

Posted (edited)

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
0

Share this post


Link to post
Share on other sites

Posted

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?

0

Share this post


Link to post
Share on other sites

Posted

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

0

Share this post


Link to post
Share on other sites

Posted

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?

0

Share this post


Link to post
Share on other sites

Posted

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?

0

Share this post


Link to post
Share on other sites

Posted

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...

0

Share this post


Link to post
Share on other sites

Posted (edited)

Yep - just push via ADB

Will pop an attachment up soon...

Try the attached (zipped not for Clockwork!)

You may need to resign in to your Google accounts.... for some reason.

framework_res.zip

Edited by LanceH
0

Share this post


Link to post
Share on other sites

Posted (edited)

This one is for R12 TFTs only. Not GB themed versions.

More (i.e. smoother) brightness steps and goes as low as possible for max battery life.

Push extracted file via ADB or similar

TFT_Battery_saver_framework_res.zip

Edited by LanceH
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

MoDaCo is part of the MoDaCo.network, © Paul O'Brien 2002-2015. MoDaCo uses IntelliTxt technology.