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

denversc

Senior Member
Jul 1, 2012
428
320
0
Kitchener
A new beta version of this app is available: v1.0.11-Beta01. The main new feature is an improved mechanism for requesting root permissions, which leads to a "snappier" application experience. Please test the attached CapButnBrightness-1.0.11-Beta1.apk and reply with your experiences, good or bad.

EDIT: A newer beta version is available: http://forum.xda-developers.com/showthread.php?p=46093742#post46093742

Changes in v1.0.11-Beta1 (since v1.0.10)
  • Completely re-wrote the mechanism that requests root; see below for details and benefits
  • HTC One S official support added
  • ACCESS_SUPERUSER added to AndroidManifest.xml (to note superuser requirements in Google Play Store)

Improved Root Mechanism
Old Behaviour: Root is requested every time that the brightness changes.
New Behaviour: Root is requested the first time that the brightness changes, and after each reboot; all other brightness changes do not request root.
The net result of this change is that changing the brightness is "snappier", and happens more quickly.
This should also fix Issue 27 "If superuser has a PIN, root requests are too frequent and time out" (https://code.google.com/p/hox-cap-butn-brightness/issues/detail?id=27)

Please reply to this post with your feedback. If reporting issues, please go to the "Debug Information" screen, press the "copy" button, and paste its contents. This will immensely help with investigation of issues.

Reminder: This "beta version" of the app is signed with a developer key so it will fail to install if you have an official version of the app installed. So you must first uninstall any official versions of the app before installing this test version.
 

Attachments

Last edited:

denversc

Senior Member
Jul 1, 2012
428
320
0
Kitchener
A new beta version of this app is available: v1.0.11-Beta02. The main new feature is a further improved mechanism for requesting root permissions, which leads to a "snappier" application experience. Please test the attached CapButnBrightness-1.0.11-Beta2.apk and reply with your experiences, good or bad.

EDIT: A newer beta version is available: http://forum.xda-developers.com/showthread.php?p=46316755#post46316755

Changes in v1.0.11-Beta2 (since v1.0.11-Beta1)
  • Request root on a background thread instead of the main thread to avoid UI hangs
  • Explicity turn on buttons backlight when screen turns on (affects HTC One XL evita only)

Changes in v1.0.11-Beta1 (since v1.0.10)
  • Completely re-wrote the mechanism that requests root; see below for details and benefits
  • HTC One S official support added
  • ACCESS_SUPERUSER added to AndroidManifest.xml (to note superuser requirements in Google Play Store)

Please reply to this post with your feedback. If reporting issues, please go to the "Debug Information" screen, press the "copy" button, and paste its contents. This will immensely help with investigation of issues.

Reminder: This "beta version" of the app is signed with a developer key so it will fail to install if you have an official version of the app installed. So you must first uninstall any official versions of the app before installing this test version.
 

Attachments

Last edited:

davevinci

Senior Member
Apr 12, 2012
845
242
0
Baguio City
Works for me

Hey dev thanks for the app! it works on the OPTIMUS G E975!!!

---------- Post added at 04:15 AM ---------- Previous post was at 04:04 AM ----------

Application Version: 1.0.11-Beta2

Detected Device: HTC One X+ (evitareul)
Supports Setting Capacitive Buttons Backlight Brightness: Yes
Setting Capacitive Buttons Backlight Brightness Possible: Yes

/sys/class/leds/button-backlight/currents
File Exists: No

/sys/class/leds/button-backlight/brightness
File Exists: Yes
File Permissions: Read/Write
File UID: 10103
File Contents: 1

/sys/class/leds/button-backlight/lut_coefficient
File Exists: No

Build.BOOTLOADER: MAKOZ10o
Build.DEVICE: e975
Build.DISPLAY: thinkingbridge_e975-userdebug 4.2.2 JDQ39E eng.TeamBridge.20130627.031818 test-keys
Build.MANUFACTURER: LGE
Build.MODEL: LG-E975
Build.PRODUCT: geehrc_open_eu
Build.VERSION.RELEASE: 4.2.2

Process UID: 10103
CPU ABI 1: armeabi-v7a
CPU ABI 2: armeabi
Hey dev thanks for the app! it works on the OPTIMUS G E975!!!
 

davevinci

Senior Member
Apr 12, 2012
845
242
0
Baguio City
Hey dev thanks for the app! it works on the OPTIMUS G E975!!!
Thanks for the report! I've added LG Optimus G to the list of unofficially supported devices... to be moved to the supported list someday :)


Welcome! Been using it for a while now.. I just hate those capacitive lights popping on and off.

I just noticed if i deactivate your app and try to use my key lights again, it messes up the light timeout. It stays on as long as screen is on but turns off when screen is off... Had to do a reboot to get back to default settings..Anyway maybe u can add a feature for keyboard light timeout?

Sent from my LG-E975 using XDA Premium 4 mobile app
 

denversc

Senior Member
Jul 1, 2012
428
320
0
Kitchener
I just noticed if i deactivate your app and try to use my key lights again, it messes up the light timeout. It stays on as long as screen is on but turns off when screen is off... Had to do a reboot to get back to default settings..Anyway maybe u can add a feature for keyboard light timeout
Yes, that will be one of the side effects of the app (messing up the buttons backlight timeout). If you uninstall the app and reboot your phone it will go back to normal though. If I am misunderstanding your issue, please reply with the content's of the application's "Debug Information" screen. Thanks!
 

denversc

Senior Member
Jul 1, 2012
428
320
0
Kitchener
A new beta version of this app is available: v1.0.11-Beta03. The main new feature in this beta is an animation that was added to the home screen widget when it is touched. Please test the attached CapButnBrightness-1.0.11-Beta3.apk and reply with your experiences, good or bad.

Changes in v1.0.11-Beta3 (since v1.0.11-Beta2)
  • Add animation to home screen widget
  • Clean up some logcat log messages

Changes in v1.0.11-Beta2 (since v1.0.11-Beta1)
  • Request root on a background thread instead of the main thread to avoid UI hangs
  • Explicity turn on buttons backlight when screen turns on (affects HTC One XL evita only)

Changes in v1.0.11-Beta1 (since v1.0.10)
  • Completely re-wrote the mechanism that requests root; see below for details and benefits
  • HTC One S official support added
  • ACCESS_SUPERUSER added to AndroidManifest.xml (to note superuser requirements in Google Play Store)

Please reply to this post with your feedback. If reporting issues, please go to the "Debug Information" screen, press the "copy" button, and paste its contents. This will immensely help with investigation of issues.

Reminder: This "beta version" of the app is signed with a developer key so it will fail to install if you have an official version of the app installed. So you must first uninstall any official versions of the app before installing this test version.
 

Attachments

denversc

Senior Member
Jul 1, 2012
428
320
0
Kitchener
A new version of this app is available: v1.0.11. This version addresses some long-standing issues with UI hangs and superuser permissions usage. It also adds an animation to the home screen widget. This version has been published to the Google Play Store in the "Pro" version; the free version will be updated to v1.0.11 on Nov 13, 2013. Note that the $0.99 USD sale on the Pro version expired on Sept 22, 2013 and the price is, at the time of writing, $2.00 USD.

Changes in v1.0.11 (since v1.0.10)
  • Animation added to home screen widget
  • Improved superuser permissions usage
  • Fix lags and hangs of the UI when changing brightness levels
  • Fix occasional issue turning buttons backlight back on with screen on HTC One XL (evita)
  • HTC One S officially supported
  • Logcat log messages cleaned up

Pro Version in Google Play Store: https://play.google.com/store/apps/details?id=org.sleepydragon.capbutnbrightness.pro

Reminder: This "release version" of the app is signed with the official key so it will fail to install if you have a beta version of the app installed. You must first uninstall any beta versions of the app before installing this release version from the Play Store.
 

denversc

Senior Member
Jul 1, 2012
428
320
0
Kitchener
A new version of this app is available: v1.0.13. This version fixes issues with the buttons backlight turning off, avoids cycling through "dim" in the widget if not supported, and adds HTC Sensation support. This version has been published to the Google Play Store in the "Pro" version; the free version will be updated to v1.0.13 on Dec 04, 2013.

The free version has also been updated to v1.0.12, and is available in the Play store and the APK is also available for download.

Please see http://forum.xda-developers.com/showthread.php?p=47453810#post47453810 for details and a link to the APK of the updated free version.

Changes in v1.0.13 (Since v1.0.12)
  • fix issue where buttons backlight sometimes turns off after a few seconds instead of staying on
  • avoid cycling through the "dim" setting in the widget if dim is not even supported
  • HTC Sensation support added
  • fix issue where "dim not supported" is erroneously reported on when selecting "off" brightness when dim is not supported (HTC One X international quad-core variant only)
  • correct spelling error in a dialog: brigtness -> brightness

NOTE: If you have a beta or test version of this app installed, you must first uninstall it before installing one of these two official versions. The reason is that having two versions of the app installed will interfere with each other. Also, the official APKs are signed with the "official" key, whereas the beta/test versions are signed with the developer key, and if keys don't match then the app will fail to install.