Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
denversc
Old
(Last edited by denversc; 5th January 2013 at 12:32 AM.)
#1  
denversc's Avatar
Senior Member - OP
Thanks Meter 189
Posts: 278
Join Date: Jul 2012
Location: Kitchener
Default [APP][Jan-03] Capacitive Button Brightness v1.0.8



This small application allows you to change the brightness of the capacitive buttons (back, home, and recent tasks) on the HTC One X (both dual-core and quad-core models) and the HTC One X+. Users have also reported success on other devices, including HTC One V, HTC One S, HTC Desire HD, and Evo 3g. Root is required in order for this application to work. This application works on any ROM, including CleanROM, ViperXL, Cyanogenmod, AOKP, and MIUI.

Download
Google Play: https://play.google.com/store/apps/d...butnbrightness
APK (v1.0.8): http://code.google.com/p/hox-cap-but...ness-1.0.8.apk
YouTube Video: https://www.youtube.com/watch?v=r9Zj-z02CR8

Changes in Current Version
  • "Dim" support added for the International (quad-core) HTC One X and HTC One X+ (note: does not work on all ROMs/kernels/hboots)
  • New application icon (thanks to XDA user lesscro)
  • "Debug Information" screen added, accessible from the "Settings" screen
  • "Credits" screen added, accessible from the "About" screen
  • Complete re-write of code that sets capacitive buttons brightness, to allow it to support multiple devices
  • Fixed scrolling in "About" screen
  • Fixed crash when device is rotated in the "Settings" screen

Frequently Asked Questions
  • Which brightness setting is "stock"? It depends. On Sense based ROMs (eg. CleanROM, ViperXL) "Bright" seems to be the default. On AOSP-based ROMs (eg. CM10, AOKP) "Dim" seems to be the default. It all depends on how/if the ROM maintainer tweaked the default setting. The "default default" (ie. if you RUU to stock) setting is "bright". In v1.0.4, a "Default" button was added to allow reverting to stock brightness.
  • How do I get back to the default setting? The most reliable way is to click the "Default" button on the main screen of the application then simply reboot. Or, you can just set the brightness setting that is the default.
  • What happens if I uninstall the app? Nothing. Well, it doesn't change the brightness setting if that's what you're wondering. After a reboot, though, the brightness setting will revert back to the ROM's default setting.

Known Issues
  • "Dim" does not work on all ROM/kernel/hboot combinations of the HTC One X+ and International One X (quad-core endeavoru)
  • "Off" does not stick when "GV Integation" app installed

Source
This application is released under the GPL3 open-source license. Source code is published at https://code.google.com/p/hox-cap-butn-brightness

Credits
Turge - for providing a MOD to perform the same task (http://forum.xda-developers.com/show....php?t=1694375)
gridlock489 - for providing higher-resolution images for the buttons in the main UI
slimdizzy - for testing on the HTC One X+ and letting me borrow his device to try things out
TToivanen - for testing on the International HTC One X (endeavoru)
lesscro - for providing the title banner that you see at the top of this post
skdubg - for testing on the HTC One X+, especially the new "dim" support

Change Log
  • 1.0.8 (Jan 02, 2013) dim support for all devices, new home screen icon, debug information and credits screen added, fixed about screen scrolling
  • 1.0.7 (Dec 10, 2012) fixes bug where brightness setting does not persist when turning screen off then back on; only affects endeavoru and evitareul
  • 1.0.6 (Dec 06, 2012) added support for HTC One X+ and International HTC One X (endeavoru); added detected device name at bottom of "About" screen
  • 1.0.5 (Nov 25, 2012) fixed pixelated button images in main UI (thanks to gridlock489 for providing higher-resolution images)
  • 1.0.4 (Nov 03, 2012) visual indication when buttons pressed, better error message if not rooted, "Default" button added, some words translated
  • 1.0.3 (Oct 11, 2012) Brightness setting now sticks across reboots
  • 1.0.2 (Oct 03, 2012) Change theme to Holo (dark), replace button text off/dim/bright with pretty icons
  • 1.0.1 (Oct 02, 2012) Added to Google Play, new application icon, added "About" screen
  • 1.0.0 (Sept 29, 2012) Initial release

Old APKs:
https://code.google.com/p/hox-cap-bu...downloads/list

Feel free to bake this app into custom ROMs or publish it in other places. No need to ask permission from me. However, I am quite interested personally in different places that this app is used. So if you do include it in a ROM or whatever feel free to post a note to this thread to let me know! The app is licensed under the GPL, which means you can even take it apart and include it in your own stuff... I just ask that you honor the spirit of the GPL (unlike HTC's 120-day policy... grrr!)

Threads for this app for other devices:
@sleepydragonsw
Attached Thumbnails
Click image for larger version

Name:	Screenshot-CapButnBrightness-1.0.8-1.jpg
Views:	356
Size:	17.4 KB
ID:	1612594   Click image for larger version

Name:	Screenshot-CapButnBrightness-1.0.8-2.jpg
Views:	343
Size:	18.5 KB
ID:	1612595   Click image for larger version

Name:	Screenshot-CapButnBrightness-1.0.8-3.jpg
Views:	346
Size:	36.2 KB
ID:	1612596   Click image for larger version

Name:	Screenshot-CapButnBrightness-1.0.8-4.jpg
Views:	332
Size:	47.8 KB
ID:	1612597   Click image for larger version

Name:	Screenshot-CapButnBrightness-1.0.8-5.jpg
Views:	322
Size:	24.6 KB
ID:	1612598  

The Following 33 Users Say Thank You to denversc For This Useful Post: [ Click to Expand ]
 
ptesmoke
Old
#2  
ptesmoke's Avatar
Senior Member
Thanks Meter 562
Posts: 2,322
Join Date: Sep 2008
Location: Cold Lake
If we can do this much what is stopping us from making a bln type mod? Since our notification led sucks so bad, let's make the cap lights flash!

Sent from my One X using xda premium
Nexus 4 - CM10.1 Nightlies
Nexus 7 - CM10.1 Nightlies
Samsung i9100 - CM10.1 Nightlies

Retired:HTC One X+,HTC One X,Samsung Captivate, Acer Iconia A100, HTC Desire z, HTC Desire, Acer Liquid MT, Sony Xperia X10, HTC Touch Pro, HTC Diamond, HTC Touch, HTC Titan
The Following User Says Thank You to ptesmoke For This Useful Post: [ Click to Expand ]
 
denversc
Old
#3  
denversc's Avatar
Senior Member - OP
Thanks Meter 189
Posts: 278
Join Date: Jul 2012
Location: Kitchener
Quote:
Originally Posted by ptesmoke View Post
If we can do this much what is stopping us from making a bln type mod? Since our notification led sucks so bad, let's make the cap lights flash!
I'm just a novice Android developer so I'm afraid I can't help too much with this. In theory, it is quite easy to "flash" the capacitive buttons. Maybe you could try using an application like Tasker to flash the LEDs in response to a message being received? You would need to write a plugin or something to Tasker, but that would certainly be possible. You could also post in the forum of your ROM of choice requesting this feature, and pointing them to this thread as proof that it is possible, and not too difficult. If you REALLY want the feature, you may even be able to offer a bounty for someone to implement it for you? Nothing speaks quite as loudly as your wallet.

Tasker on Google Play: https://play.google.com/store/apps/d....taskerm&hl=en
 
rohan32
Old
#4  
rohan32's Avatar
Recognized Developer
Thanks Meter 3986
Posts: 1,859
Join Date: Nov 2011
Location: New Jersey

 
DONATE TO ME
Nice App! Works well on AOKP.
Did I help you out? Consider hitting the "Thanks" button at the bottom left of my post!
Follow @rohanXmon Twitter for my latest development updates!
Like my work? Think about a donation!

AT&T HTC One XL
[KERNEL] rohan.kernel
[ROM] King Kang Developer
[ROM] AOKP Jellybean / AOKP ICS Official Maintainer
[ROM] ParanoidAndroid Jellybean Official Maintainer
[ROM] Evervolv ICS Official Maintainer
Join us in #cyanogenmod-evita on Freenode for support and discussions!


HP TouchPad
[KERNEL] XENON Kernel
[ROM] AOKP ICS Nightly Builds
[MODPACK] SUPREME Mods


Asus Nexus 7 / HTC G2
 
ptesmoke
Old
#5  
ptesmoke's Avatar
Senior Member
Thanks Meter 562
Posts: 2,322
Join Date: Sep 2008
Location: Cold Lake
Quote:
Originally Posted by denversc View Post
I'm just a novice Android developer so I'm afraid I can't help too much with this. In theory, it is quite easy to "flash" the capacitive buttons. Maybe you could try using an application like Tasker to flash the LEDs in response to a message being received? You would need to write a plugin or something to Tasker, but that would certainly be possible. You could also post in the forum of your ROM of choice requesting this feature, and pointing them to this thread as proof that it is possible, and not too difficult. If you REALLY want the feature, you may even be able to offer a bounty for someone to implement it for you? Nothing speaks quite as loudly as your wallet.

Tasker on Google Play: https://play.google.com/store/apps/d....taskerm&hl=en
Well in the Sammy world its called "bln", needs to be implemented into the kernel, and there's an app that controls it. Turge would likely know hella lot more than I would on implementing something like that or if it needs to be rewritten for our device. But where you already know where to adjust the power going to them... Half the battle should be done I would think... Its just a matter of programming the notification led trigger to send pulses to that same spot....

Sent from my One X using xda premium
Nexus 4 - CM10.1 Nightlies
Nexus 7 - CM10.1 Nightlies
Samsung i9100 - CM10.1 Nightlies

Retired:HTC One X+,HTC One X,Samsung Captivate, Acer Iconia A100, HTC Desire z, HTC Desire, Acer Liquid MT, Sony Xperia X10, HTC Touch Pro, HTC Diamond, HTC Touch, HTC Titan
 
denversc
Old
#6  
denversc's Avatar
Senior Member - OP
Thanks Meter 189
Posts: 278
Join Date: Jul 2012
Location: Kitchener
Quote:
Originally Posted by rohan32 View Post
Nice App! Works well on AOKP.
Thanks for confirming, rohan. I've added a note to the OP that this app works on any ROM... the way that it sets the brightness is ROM-independent.
 
denversc
Old
#7  
denversc's Avatar
Senior Member - OP
Thanks Meter 189
Posts: 278
Join Date: Jul 2012
Location: Kitchener
If anyone with a hint of artistic talent (unlike me!) is interested, I've love to have a decent icon for this application. The one I'm using right now is just a black circle with a white "home" icon in the middle, with a white glow around the outer circle (see attached image). Lame if you ask me :) I'm open to just about anything, and will certainly give credit! Thanks!
Attached Thumbnails
Click image for larger version

Name:	ic_hires.png
Views:	994
Size:	72.2 KB
ID:	1370284  
 
Chrysis
Old
#8  
Chrysis's Avatar
Member
Thanks Meter 6
Posts: 98
Join Date: Jun 2012
Location: Reno, NV
Just installed 1.01 for use with AOKP and the on-screen navbar. Looks good! Wish it did stick at boot, but hasn't been a big deal at all. Thanks!
 
denversc
Old
#9  
denversc's Avatar
Senior Member - OP
Thanks Meter 189
Posts: 278
Join Date: Jul 2012
Location: Kitchener
Quote:
Originally Posted by Chrysis View Post
Just installed 1.01 for use with AOKP and the on-screen navbar. Looks good! Wish it did stick at boot, but hasn't been a big deal at all. Thanks!
Thanks for the feedback, Chrysis! It shouldn't be too hard to add the feature where it sets the brightness on startup, so I'll add that to my todo list.
 
PatriotXT92
Old
#10  
Senior Member
Thanks Meter 105
Posts: 475
Join Date: Apr 2011
Just tried this on Codename Android and it worked perfectly. I'll let you know if I find any new bugs.

Sent from my One X using xda premium

__________________________________________

Phone History:
LG Nexus 4 (Current)
AT&T HTC One X (Backup)
AT&T Samsung Galaxy SII (Replaced under warranty)
Motorola Atrix 4G (Sold)

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...