PPCGeeks

PPCGeeks (http://forum.ppcgeeks.com/index.php)
-   Android On TP2 (http://forum.ppcgeeks.com/forumdisplay.php?f=179)
-   -   [WM App/Util] Android Launcher - Disable Auto-Backlight and Run Haret (http://forum.ppcgeeks.com/showthread.php?t=115664)

bedoig 03-24-2010 06:56 PM

[WM App/Util] Android Launcher - Disable Auto-Backlight and Run Haret
 
1 Attachment(s)
EDIT -- Hi everybody. I don't really have time to mess with this any more at the moment, but Reefermattness has offered to merge this with his utility (PPCGeeks thread, XDA thread), so I'd check there for any additional updates/requests/etc. Thanks!



I like having my backlight auto-adjust in WM, but for the time being we still have to turn that off before launching Haret in order to have backlight control in Android. So... here is a little app that does just that... disables the automatic backlight adjustment and then runs haret. Just install the cab and look for "Android Launcher" in your Start menu (you still need your own Android package on your storage card - including haret).

http://farm3.static.flickr.com/2720/...ca7e0296_o.png

I made this mostly just for myself, but figured I'd share in case anyone else finds it useful. I'm by no means a developer (more of an amateur tinkerer) so I don't really intend to offer much support or additional development.

Also, I had originally intended to write another little program to run at Windows startup to re-enable auto-adjustment, but it doesn't seem to be necessary. The setting doesn't appear to stick after the system reboots. Maybe there isn't enough time before haret runs for the registry to be committed. Not really sure, but I'd be curious if anyone else's results vary.

Edit - new version configurable via the registry. Change the string value at HKLM\SOFTWARE\AndroidLauncher -- HaretLocation to reflect the location of haret on your storage card.

Edit2 - added app to re-enable the auto-adjustment on Windows startup, since the results seemed to be inconsistent. This will ensure that it is back on when Windows starts. If you've downloaded previously, you might want to update to this version.

jimmyz 03-24-2010 11:31 PM

Re: [App] Android Launcher - Disable Auto-Backlight and Run Haret
 
thanks! Do the android files have to be in the root- what about if I use an "andboot" folder?

bedoig 03-24-2010 11:46 PM

Re: [App] Android Launcher - Disable Auto-Backlight and Run Haret
 
Yes, for the time being at least it's hardcoded to look for haret at \Storage Card\haret.exe (which means it also won't work for localizations other than standard english).

It's mainly targeted at the CDMA TP2 builds of Android, since there is so much variation from one device to another as to what hardware is functional. I'm not even sure that this would disable the auto-backlight on other devices, certainly not non-HTC devices. Are there any devices other than the Vogue that use an andboot folder? I could make it configurable via the registry.

bedoig 03-25-2010 11:08 AM

Re: [App] Android Launcher - Disable Auto-Backlight and Run Haret
 
Uploaded a new version - now you can specify where haret is located in the registry.

jimmyz 03-25-2010 11:38 AM

Re: [App] Android Launcher - Disable Auto-Backlight and Run Haret
 
thanks again- I am running on a sprint TP2 but like to try to keep my SD card somewhat organized- this will help!
EDIT- just tried it and it works great!

bedoig 03-25-2010 11:43 AM

Re: [App] Android Launcher - Disable Auto-Backlight and Run Haret
 
Quote:

Originally Posted by jimmyz (Post 1659018)
thanks again- I am running on a sprint TP2 but like to try to keep my SD card somewhat organized- this will help!

It's in the first post: HKLM\SOFTWARE\AndroidLauncher -- HaretLocation.

I didn't realize we (TP2 users) were able to use an Andboot folder. That would keep things cleaner. Does everything boot correctly for you that way, vs having it on the root of the SD? I thought I had tried putting everything there once, and it didn't boot for me.

Does your auto-adjustment stay on in WM? It seems to be inconsistent for me. Might need to go ahead and write the part to re-enable it at Windows boot.

bedoig 03-25-2010 04:55 PM

Re: [App] Android Launcher - Disable Auto-Backlight and Run Haret
 
Went ahead and added a startup app to ensure that auto-adjustment is on when Windows boots. New cab in first post.

jimmyz 03-25-2010 05:10 PM

Re: [App] Android Launcher - Disable Auto-Backlight and Run Haret
 
Quote:

Originally Posted by bedoig (Post 1659872)
Went ahead and added a startup app to ensure that auto-adjustment is on when Windows boots. New cab in first post.

Hah- you beat me to it- I was just about to post that the autoback light stayed off when I rebooted into windows- will try the new app now
Also- with the newest builds you can keep your build within ANDBOOT, also I believe you can edit the startup for HARET to use whatever folder you want

bedoig 03-25-2010 05:19 PM

Re: [App] Android Launcher - Disable Auto-Backlight and Run Haret
 
Quote:

Originally Posted by jimmyz (Post 1659894)
Also- with the newest builds you can keep your build within ANDBOOT, also I believe you can edit the startup for HARET to use whatever folder you want

Ah, cool. I'll have to do that. It's a pain tracking down android files scattered across the root of the card every time I want to do a clean update. Thanks!

TGabriele 03-28-2010 05:06 PM

Re: [WM App/Util] Android Launcher - Disable Auto-Backlight and Run Haret
 
Great work! Thanks!

Just a thought after playing around a bit. How hard would it be to incorporate the disabling and re-enabling of the advanced power options as well (i.e., "On battery/external power: turn of backlight/device if not used for...")? Getting this functionality would be the ultimate! I noticed that without it, I couldn't get the backlight to stay off when I hit the power button. Thanks again and keep up the great work!


All times are GMT -4. The time now is 05:42 AM.

Powered by vBulletin® ©2000 - 2025, Jelsoft Enterprises Ltd.
©2012 - PPCGeeks.com


Content Relevant URLs by vBSEO 3.6.0