5,595,428 Members 48,286 Now Online
XDA Developers Android and Mobile Development Forum

[APP][Nov-13-2013] Capacitive Buttons v1.0.13

Tip us?
 
denversc
Old
(Last edited by denversc; 7th December 2013 at 03:52 PM.)
#1  
denversc's Avatar
Senior Member - OP
Thanks Meter 314
Posts: 428
Join Date: Jul 2012
Location: Kitchener

 
DONATE TO ME
Default [APP][Nov-13-2013] Capacitive Buttons v1.0.13

NOTE: Please use the DevDB thread for all devices instead of this device-specific thread: http://forum.xda-developers.com/show....php?t=2496347


This small application allows you to change the brightness of the capacitive buttons (back, home, and recent tasks) on many HTC devices and a few non-HTC devices, including the HTC One X (both dual-core and quad-core models), the HTC One X+, and the HTC One. 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.

App review by Portal Administrator / Editor-in-Chief for XDA-Developers Will Verduzco: http://www.xda-developers.com/androi...ny-htc-devices

Features
  • Intuitive UI to set the brightness of the capacitive buttons to bright, dim, or off
  • Home screen widget to cycle between brightness levels

Latest Versions
Latest Pro Version: 1.0.13
Latest Free Version: 1.0.13

Download
Google Play (Pro version): https://play.google.com/store/apps/d...brightness.pro
Google Play (Free version): https://play.google.com/store/apps/d...butnbrightness
APK (v1.0.13): http://dl.bintray.com/sleepydragon/C...ess-1.0.13.apk
YouTube Video: https://www.youtube.com/watch?v=r9Zj-z02CR8

Differences in the Pro Version
The Pro version receives new features and bug fixes 2-4 weeks earlier than the free version. That's it! Oh, and also the free version has a link at the bottom of the main UI to upgrade to pro. The main motivation to pay for the pro version is to get official app updates easily and automatically via the Google Play Store. If you're happy with waiting for updates or using beta versions then you can live a full and happy life with the free version.

Officially Supported Devices
  • HTC One X (evita and endeavoru)
  • HTC One (m7)
  • HTC One X+ (evitareul)
  • HTC One S
  • HTC Sensation

Unofficially Supported Devices
  • HTC One V
  • HTC Desire HD
  • HTC Evo 3D
  • HTC Droid MAXX
  • HTC Droid DNA
  • HTC Butterfly S
  • LG Optimus G

Officially Unsupported Devices (devices that are known not to work)
  • Samsung Galaxy S2
  • Samsung Galaxy S3

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 ROMs and kernels
  • "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

Reporting Bugs
Use the "Bug Reports" feature of this DevDB project or add a post to this thread. Please include the contents of the application's "Debug Information" page (available from the "Settings" screen) when reporting bugs, as it contains invaluable information for developers to use when investigating issues. There is a "Copy" button in the top-right corner of the screen for easy cut & paste.

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 (brief - see full change log in the next post)
  • 1.0.13 (Nov 14, 2013) Fixed buttons turning off issue, skip dim in widget if not supported, HTC Sensation support added
  • 1.0.12 (Oct 24, 2013) Fixed "default" button error: "Changing permissions of file failed"
  • 1.0.11 (Oct 23, 2013) Fixed long-standing issues with UI lags and superuser permissions usage, animation added to home screen widget
  • 1.0.10 (Sept 10, 2013) Home screen widget added, HTC One brightness levels fixed
  • 1.0.9 (Sept 03, 2013) HTC One support added, support for devices without the "currents" file added
  • 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:
Feel free to bake the free version of 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 (obsolete - please use this thread instead):
Attached Thumbnails
Click image for larger version

Name:	CapButnBrightnessPro-1.0.10-Screenshot1.jpg
Views:	263
Size:	17.1 KB
ID:	2248555   Click image for larger version

Name:	CapButnBrightnessPro-1.0.10-Screenshot2.jpg
Views:	288
Size:	43.6 KB
ID:	2248556   Click image for larger version

Name:	CapButnBrightnessPro-1.0.10-Screenshot3.jpg
Views:	251
Size:	18.5 KB
ID:	2248557   Click image for larger version

Name:	CapButnBrightnessPro-1.0.10-Screenshot4.jpg
Views:	239
Size:	39.0 KB
ID:	2248558   Click image for larger version

Name:	CapButnBrightnessPro-1.0.10-Screenshot5.jpg
Views:	231
Size:	45.9 KB
ID:	2248561  

Click image for larger version

Name:	CapButnBrightnessPro-1.0.10-Screenshot6.jpg
Views:	224
Size:	24.4 KB
ID:	2248562  
The Following 37 Users Say Thank You to denversc For This Useful Post: [ Click to Expand ]
 
ptesmoke
Old
#2  
ptesmoke's Avatar
Senior Member
Thanks Meter 627
Posts: 2,514
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
The depressing thing about tennis is, no matter how good I get, I'll never be as good as a wall. -Mitch Hedberg
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 314
Posts: 428
Join Date: Jul 2012
Location: Kitchener

 
DONATE TO ME
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
Forum Moderator / Recognized Developer
Thanks Meter 5021
Posts: 1,986
Join Date: Nov 2011
Location: New Jersey

 
DONATE TO ME
Nice App! Works well on AOKP.
#teamkang

Follow me on Twitter
@rohanXm
for the my latest development updates

Devices:
LG Nexus 4 (DD)
Asus Nexus 7 (DD)
HTC One XL
LG Optimus G
HTC G2
 
ptesmoke
Old
#5  
ptesmoke's Avatar
Senior Member
Thanks Meter 627
Posts: 2,514
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
The depressing thing about tennis is, no matter how good I get, I'll never be as good as a wall. -Mitch Hedberg
 
denversc
Old
#6  
denversc's Avatar
Senior Member - OP
Thanks Meter 314
Posts: 428
Join Date: Jul 2012
Location: Kitchener

 
DONATE TO ME
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 314
Posts: 428
Join Date: Jul 2012
Location: Kitchener

 
DONATE TO ME
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:	1239
Size:	72.2 KB
ID:	1370284  
 
Chrysis
Old
#8  
Chrysis's Avatar
Senior Member
Thanks Meter 11
Posts: 145
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!


HTC One X [ Evita | S4 | AT&T LTE ]
OS: Android 4.4.2 KitKat
Status: S-OFF, Unlocked
HBoot: 2.14
ROM: CyanogenMod 11 Nightly 12/12/13
Kernel: Torched Kernel KK Build #2.1 (w/ CPU-Fix)
Launcher: Nova Launcher 2.3
Radio: HTC ATT 3.18
Recovery: Unofficial Team Win Recovery Project 2.6.3.0 (SELinux)
 
denversc
Old
#9  
denversc's Avatar
Senior Member - OP
Thanks Meter 314
Posts: 428
Join Date: Jul 2012
Location: Kitchener

 
DONATE TO ME
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 146
Posts: 515
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
______________________________

Device History:
32 GB LG Nexus 5
16 GB LG Nexus 4
ASUS Nexus 7 (2013)
AT&T HTC One X
AT&T Samsung Galaxy SII
Motorola Atrix 4G

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes