[Galaxy S III Original Android Development] :
auto brightness

I have found a bug which is related to auto brightness when i change the number of steps, the brightness is always at the highest level. Only default settings work.

10-03 11:51:43.496 2253 2815 E PowerManagerService: Values array must be non-empty and must be one element longer than the auto-brightness levels array. Check config.xml.

10-03 11:51:43.496 2253 2815 E PowerManagerService: java.lang.ArrayIndexOutOfBoundsException: length=11; index=20

10-03 11:51:43.496 2253 2815 E PowerManagerService:	at com.android.server.PowerManagerService.getAutoBrightnessValue(PowerManagerService.java:2746)

10-03 11:51:43.496 2253 2815 E PowerManagerService:	at com.android.server.PowerManagerService.lightSensorChangedLocked(PowerManagerService.java:2966)

10-03 11:51:43.496 2253 2815 E PowerManagerService:	at com.android.server.PowerManagerService.updateLightSettings(PowerManagerService.java:3323)

10-03 11:51:43.496 2253 2815 E PowerManagerService:	at com.android.server.PowerManagerService.access$1700(PowerManagerService.java:84)

10-03 11:51:43.496 2253 2815 E PowerManagerService:	at com.android.server.PowerManagerService$SettingsObserver.update(PowerManagerService.java:560)

10-03 11:51:43.496 2253 2815 E PowerManagerService:	at java.util.Observable.notifyObservers(Observable.java:138)

10-03 11:51:43.496 2253 2815 E PowerManagerService:	at java.util.Observable.notifyObservers(Observable.java:113)

10-03 11:51:43.496 2253 2815 E PowerManagerService:	at android.content.ContentQueryMap.requery(ContentQueryMap.java:145)

10-03 11:51:43.496 2253 2815 E PowerManagerService:	at android.content.ContentQueryMap$1.onChange(ContentQueryMap.java:105)

10-03 11:51:43.496 2253 2815 E PowerManagerService:	at android.database.ContentObserver.onChange(ContentObserver.java:129)

10-03 11:51:43.496 2253 2815 E PowerManagerService:	at android.database.ContentObserver$NotificationRunnable.run(ContentObserver.java:180)

10-03 11:51:43.496 2253 2815 E PowerManagerService:	at android.os.Handler.handleCallback(Handler.java:615)

10-03 11:51:43.496 2253 2815 E PowerManagerService:	at android.os.Handler.dispatchMessage(Handler.java:92)

10-03 11:51:43.496 2253 2815 E PowerManagerService:	at android.os.Looper.loop(Looper.java:137)

10-03 11:51:43.496 2253 2815 E PowerManagerService:	at android.os.HandlerThread.run(HandlerThread.java:60)

10-03 11:51:43.496 2253 2815 E PowerManagerService: Values array must be non-empty and must be one element longer than the auto-brightness levels array. Check config.xml.

10-03 11:51:43.496 2253 2815 E PowerManagerService: java.lang.ArrayIndexOutOfBoundsException: length=11; index=20

10-03 11:51:43.496 2253 2815 E PowerManagerService:	at com.android.server.PowerManagerService.getAutoBrightnessValue(PowerManagerService.java:2746)

10-03 11:51:43.496 2253 2815 E PowerManagerService:	at com.android.server.PowerManagerService.lightSensorChangedLocked(PowerManagerService.java:2972)

10-03 11:51:43.496 2253 2815 E PowerManagerService:	at com.android.server.PowerManagerService.updateLightSettings(PowerManagerService.java:3323)

10-03 11:51:43.496 2253 2815 E PowerManagerService:	at com.android.server.PowerManagerService.access$1700(PowerManagerService.java:84)

10-03 11:51:43.496 2253 2815 E PowerManagerService:	at com.android.server.PowerManagerService$SettingsObserver.update(PowerManagerService.java:560)

10-03 11:51:43.496 2253 2815 E PowerManagerService:	at java.util.Observable.notifyObservers(Observable.java:138)

10-03 11:51:43.496 2253 2815 E PowerManagerService:	at java.util.Observable.notifyObservers(Observable.java:113)

10-03 11:51:43.496 2253 2815 E PowerManagerService:	at android.content.ContentQueryMap.requery(ContentQueryMap.java:145)

10-03 11:51:43.496 2253 2815 E PowerManagerService:	at android.content.ContentQueryMap$1.onChange(ContentQueryMap.java:105)

10-03 11:51:43.496 2253 2815 E PowerManagerService:	at android.database.ContentObserver.onChange(ContentObserver.java:129)

10-03 11:51:43.496 2253 2815 E PowerManagerService:	at android.database.ContentObserver$NotificationRunnable.run(ContentObserver.java:180)

10-03 11:51:43.496 2253 2815 E PowerManagerService:	at android.os.Handler.handleCallback(Handler.java:615)

10-03 11:51:43.496 2253 2815 E PowerManagerService:	at android.os.Handler.dispatchMessage(Handler.java:92)

10-03 11:51:43.496 2253 2815 E PowerManagerService:	at android.os.Looper.loop(Looper.java:137)

10-03 11:51:43.496 2253 2815 E PowerManagerService:	at android.os.HandlerThread.run(HandlerThread.java:60)

10-03 11:51:49.116 1914 2126 D audio_hw_primary: select_output_device: AUDIO_DEVICE_OUT_SPEAKER

10-03 11:51:49.221 3665 3665 E Fluency_Log: Could not read 'keypress model' file at "/storage/sdcard0/Android/data/com.touchtype.swiftkey/files/model-0.im"

10-03 11:51:49.221 3470 3470 D PhoneStatusBar: addNotification score=0

10-03 11:51:49.226 3665 3665 E Fluency_Log: Cannot save an empty KeyPressModel - call reset() or loadFile() to set up the model first

10-03 11:51:49.226 3665 3665 W KeyPressModelImpl: Attempted to save before layout configured.

10-03 11:51:57.301 1914 2126 D audio_hw_primary: select_output_device: AUDIO_DEVICE_OUT_SPEAKER

10-03 11:51:57.336 3665 3665 E Fluency_Log: Cannot save an empty KeyPressModel - call reset() or loadFile() to set up the model first

10-03 11:51:57.336 3665 3665 W KeyPressModelImpl: Attempted to save before layout configured.

10-03 11:51:58.156 2253 2815 E PowerManagerService: Values array must be non-empty and must be one element longer than the auto-brightness levels array. Check config.xml.

10-03 11:51:58.156 2253 2815 E PowerManagerService: java.lang.ArrayIndexOutOfBoundsException: length=11; index=20

10-03 11:51:58.156 2253 2815 E PowerManagerService:	at com.android.server.PowerManagerService.getAutoBrightnessValue(PowerManagerService.java:2746)

10-03 11:51:58.156 2253 2815 E PowerManagerService:	at com.android.server.PowerManagerService.lightSensorChangedLocked(PowerManagerService.java:2966)

10-03 11:51:58.156 2253 2815 E PowerManagerService:	at com.android.server.PowerManagerService.updateLightSettings(PowerManagerService.java:3323)

10-03 11:51:58.156 2253 2815 E PowerManagerService:	at com.android.server.PowerManagerService.access$1700(PowerManagerService.java:84)

10-03 11:51:58.156 2253 2815 E PowerManagerService:	at com.android.server.PowerManagerService$SettingsObserver.update(PowerManagerService.java:560)

10-03 11:51:58.156 2253 2815 E PowerManagerService:	at java.util.Observable.notifyObservers(Observable.java:138)

10-03 11:51:58.156 2253 2815 E PowerManagerService:	at java.util.Observable.notifyObservers(Observable.java:113)

10-03 11:51:58.156 2253 2815 E PowerManagerService:	at android.content.ContentQueryMap.requery(ContentQueryMap.java:145)

10-03 11:51:58.156 2253 2815 E PowerManagerService:	at android.content.ContentQueryMap$1.onChange(ContentQueryMap.java:105)

10-03 11:51:58.156 2253 2815 E PowerManagerService:	at android.database.ContentObserver.onChange(ContentObserver.java:129)

10-03 11:51:58.156 2253 2815 E PowerManagerService:	at android.database.ContentObserver$NotificationRunnable.run(ContentObserver.java:180)

10-03 11:51:58.156 2253 2815 E PowerManagerService:	at android.os.Handler.handleCallback(Handler.java:615)

10-03 11:51:58.156 2253 2815 E PowerManagerService:	at android.os.Handler.dispatchMessage(Handler.java:92)

10-03 11:51:58.156 2253 2815 E PowerManagerService:	at android.os.Looper.loop(Looper.java:137)

10-03 11:51:58.156 2253 2815 E PowerManagerService:	at android.os.HandlerThread.run(HandlerThread.java:60)

10-03 11:51:58.156 2253 2815 E PowerManagerService: Values array must be non-empty and must be one element longer than the auto-brightness levels array. Check config.xml.

10-03 11:51:58.156 2253 2815 E PowerManagerService: java.lang.ArrayIndexOutOfBoundsException: length=11; index=20

10-03 11:51:58.156 2253 2815 E PowerManagerService:	at com.android.server.PowerManagerService.getAutoBrightnessValue(PowerManagerService.java:2746)

10-03 11:51:58.156 2253 2815 E PowerManagerService:	at com.android.server.PowerManagerService.lightSensorChangedLocked(PowerManagerService.java:2972)

10-03 11:51:58.156 2253 2815 E PowerManagerService:	at com.android.server.PowerManagerService.updateLightSettings(PowerManagerService.java:3323)

10-03 11:51:58.156 2253 2815 E PowerManagerService:	at com.android.server.PowerManagerService.access$1700(PowerManagerService.java:84)

10-03 11:51:58.156 2253 2815 E PowerManagerService:	at com.android.server.PowerManagerService$SettingsObserver.update(PowerManagerService.java:560)

10-03 11:51:58.156 2253 2815 E PowerManagerService:	at java.util.Observable.notifyObservers(Observable.java:138)

10-03 11:51:58.156 2253 2815 E PowerManagerService:	at java.util.Observable.notifyObservers(Observable.java:113)

10-03 11:51:58.156 2253 2815 E PowerManagerService:	at android.content.ContentQueryMap.requery(ContentQueryMap.java:145)

10-03 11:51:58.156 2253 2815 E PowerManagerService:	at android.content.ContentQueryMap$1.onChange(ContentQueryMap.java:105)

10-03 11:51:58.156 2253 2815 E PowerManagerService:	at android.database.ContentObserver.onChange(ContentObserver.java:129)

10-03 11:51:58.156 2253 2815 E PowerManagerService:	at android.database.ContentObserver$NotificationRunnable.run(ContentObserver.java:180)

10-03 11:51:58.156 2253 2815 E PowerManagerService:	at android.os.Handler.handleCallback(Handler.java:615)

10-03 11:51:58.156 2253 2815 E PowerManagerService:	at android.os.Handler.dispatchMessage(Handler.java:92)

10-03 11:51:58.156 2253 2815 E PowerManagerService:	at android.os.Looper.loop(Looper.java:137)

10-03 11:51:58.156 2253 2815 E PowerManagerService:	at android.os.HandlerThread.run(HandlerThread.java:60)