[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.10-Beta3. This should fix the issue where the widget was not displaying in the widget picker in Sense 5 ROMs. Please test the attached CapButnBrightness-1.0.10-Beta3.apk and reply with your experiences, good or bad.

NOTE: If using a third-party launcher, like Apex Launcher, and the widget is not showing up in the widget picker, try doing the following:
  1. Open the device settings screen
  2. Select "Apps"
  3. Click on your launcher in the app list (eg. "Apex Launcher", "Nova Launcher")
  4. Click "Force Stop"
  5. Scroll down and click the "Clear Cache" button; you may need to wait for up to 10 seconds for it to become un-grayed
  6. Press the HOME key to go back to the home screen
  7. The widget should now appear in the widget picker

Changes in v1.0.10-Beta3 (since v1.0.10-Beta2)
  • Fix issue where widget does not show up in widget picker in Sense 5 (by setting minWidth=40dp and minHeight=40dp)

Changes in v1.0.10-Beta2 (since v1.0.10-Beta1)
  • Fix turning buttons backlight back on when the screen turns on if the backlight is exclusively set via the widget
  • Potential fix for the widget not showing up in the launcher's list of widgets (ie. setting android:installLocation="internalOnly")

Changes in v1.0.10-Beta1 (since v1.0.9)
  • Home screen widget added

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. You can also attach a screenshot of this screen if that is easier.

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
Clear data, uninstall, recovery, clear cache and delvik, install 1.0.10-Beta1.

Still don't have widget. I'm using sense launcher. ARHD Rom.
I believe this issue is fixed in v1.0.10-Beta3: http://forum.xda-developers.com/showthread.php?p=45438180#post45438180

I was able to reproduce this on my friend's HTC One XL with Sense 5, and the fix was simply to specify the minimum width and height of the widget. Please let me know if you still see this issue in v1.0.10-Beta3.
 
  • Like
Reactions: nur.salikeen

Tetsumi06

Senior Member
Dec 17, 2012
634
164
0
Bangor
A new beta version of this app is available: v1.0.10-Beta3. This should fix the issue where the widget was not displaying in the widget picker in Sense 5 ROMs. Please test the attached CapButnBrightness-1.0.10-Beta3.apk and reply with your experiences, good or bad.

NOTE: If using a third-party launcher, like Apex Launcher, and the widget is not showing up in the widget picker, try doing the following:
  1. Open the device settings screen
  2. Select "Apps"
  3. Click on your launcher in the app list (eg. "Apex Launcher", "Nova Launcher")
  4. Click "Force Stop"
  5. Scroll down and click the "Clear Cache" button; you may need to wait for up to 10 seconds for it to become un-grayed
  6. Press the HOME key to go back to the home screen
  7. The widget should now appear in the widget picker

Changes in v1.0.10-Beta3 (since v1.0.10-Beta2)
  • Fix issue where widget does not show up in widget picker in Sense 5 (by setting minWidth=40dp and minHeight=40dp)

Changes in v1.0.10-Beta2 (since v1.0.10-Beta1)
  • Fix turning buttons backlight back on when the screen turns on if the backlight is exclusively set via the widget
  • Potential fix for the widget not showing up in the launcher's list of widgets (ie. setting android:installLocation="internalOnly")

Changes in v1.0.10-Beta1 (since v1.0.9)
  • Home screen widget added

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. You can also attach a screenshot of this screen if that is easier.

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.
You've hit the nail on the head. Now got the widget on my Sense 5 homescreen and working beautifully.

Nice one

----------------------o('_')o----------------------
Sent from an HTC One with using xda app:
TrickDroid ROM 9.1.0
Bulletproof 4.3
 

Tabtoub

Senior Member
Aug 3, 2011
1,000
520
0
Tunis
Thanks for reminding me about this issue you reported a while ago about the "bright" setting not being full brightness on the HTC One, and the "dim" brightness being too dim.

Can you try out the attached test version of the app CapButnBrightness-1.0.10-HtcOneDimFix1.apk? Based on the "Debug Information" you provided I've plugged some different values for writing to the "currents" file (ie. 10 and 20 instead of 1 and 3 for dim and bright, respectively).
full birght is fixed, but now there is no difference between full birght and dim buttons, the button which turns off is working fine
 

denversc

Senior Member
Jul 1, 2012
428
320
0
Kitchener
full birght is fixed, but now there is no difference between full birght and dim buttons, the button which turns off is working fine
Can you try this attached APK: CapButnBrightness-1.0.10-HtcOneDimFix2.apk
It uses 3 instead of 10 for the "dim" brightness, the value that was previously used for "bright" which you said was actually pleasantly dim.
 

Attachments

  • Like
Reactions: makbil and Tabtoub

makbil

Senior Member
Sep 4, 2008
6,246
1,498
0
Bodrum
Can you try this attached APK: CapButnBrightness-1.0.10-HtcOneDimFix2.apk
It uses 3 instead of 10 for the "dim" brightness, the value that was previously used for "bright" which you said was actually pleasantly dim.
Tested this on ARHD 20.1 (4.3) and seems to be working good so far. The buttons too dim issue has been solved too. Will report again after some use.
Well done.:good:
 

denversc

Senior Member
Jul 1, 2012
428
320
0
Kitchener
A new version of this app is available: v1.0.10. This version adds a home screen widget and uses better brightness levels for the HTC One. This version has been published to the Google Play Store in the "Pro" version; the free version will be updated to on Sept 24, 2013. Note that the $0.99 sale on the Pro version is in effect until Sept 22, 2013.

Changes in v1.0.10 (since v1.0.9)
  • Home screen widget added
  • Brightness levels improved on HTC One

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. So you must first uninstall any beta versions of the app before installing this release version from the Play Store.
 

Attachments

denversc

Senior Member
Jul 1, 2012
428
320
0
Kitchener
The "free" version of the app has now been upgraded to v1.0.10, and includes all features in the Pro version 1.0.10. The new version of the app will be available from the Google Play store in the next 24-48 hours. For the impatient, the APK can be downloaded from http://dl.bintray.com/sleepydragon/CapacitiveButtons/CapButnBrightness-1.0.10.apk and installed manually.

Reminder: If you have a beta (or any non-release) version of this app installed then you will need to first uninstall it before installing this official version. Failing to do so will result in attempts to install the release version failing due to the non-release versions being signed with a developer key and the release versions signed with a release key.
 

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=46093827#post46093827

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:

makbil

Senior Member
Sep 4, 2008
6,246
1,498
0
Bodrum
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.
........................
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.
I had the following issue on the latest pro version on Playstore. The buttons would light up nicely but doing almost anything that changed the screen would make the lights go off until activated again. It did request and receive root permission on boot and at other times. I will give this version a try and post results.
I am on ARHD 22 (4.3) with stock kernel.
Will this be automatically updated when there is an update to the pro version on Playstore or do I have to install it manually as well?
 

Tetsumi06

Senior Member
Dec 17, 2012
634
164
0
Bangor
I had the following issue on the latest pro version on Playstore. The buttons would light up nicely but doing almost anything that changed the screen would make the lights go off until activated again. It did request and receive root permission on boot and at other times. I will give this version a try and post results.
I am on ARHD 22 (4.3) with stock kernel.
Will this be automatically updated when there is an update to the pro version on Playstore or do I have to install it manually as well?
Running anything that also changes the buttons? Lux perhaps?

----------------------o('_')o----------------------
Sent from an HTC One with using xda app:
TrickDroid ROM 11.0
Bulletproof 6.2
 

denversc

Senior Member
Jul 1, 2012
428
320
0
Kitchener
I had the following issue on the latest pro version on Playstore. The buttons would light up nicely but doing almost anything that changed the screen would make the lights go off until activated again. It did request and receive root permission on boot and at other times. I will give this version a try and post results.
I am on ARHD 22 (4.3) with stock kernel.
Will this be automatically updated when there is an update to the pro version on Playstore or do I have to install it manually as well?
I've noticed in several ROMs that the buttons turn on with the screen but automatically turn off shortly thereafter, like after 5 seconds. This is something that my app cannot control, since it's the kernel making these decisions. I know it might be tricky, but if you could capture a video to demonstrate the behaviour that you're seeing I'd be happy to investigate further. Also, it could help if you post the contents of the "Debug Information" screen of the app.

To answer your 2nd question, the Pro version in the Play Store it always updated with new features before the free version. The features and fixes included in the "beta" versions released in this thread are first integrated into the Pro version, then the free version a few weeks later. I hope this answers your question.
 

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=46316855#post46316855

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:

makbil

Senior Member
Sep 4, 2008
6,246
1,498
0
Bodrum
I've noticed in several ROMs that the buttons turn on with the screen but automatically turn off shortly thereafter, like after 5 seconds. This is something that my app cannot control, since it's the kernel making these decisions. I know it might be tricky, but if you could capture a video to demonstrate the behaviour that you're seeing I'd be happy to investigate further. Also, it could help if you post the contents of the "Debug Information" screen of the app.

To answer your 2nd question, the Pro version in the Play Store it always updated with new features before the free version. The features and fixes included in the "beta" versions released in this thread are first integrated into the Pro version, then the free version a few weeks later. I hope this answers your question.
Sorry for the late reply. I'm on ARHD 13.4 ROM now (4.2.2) with stock kernel. I am reverting back to the pro version on the playstore and will send the log files from that one.
 

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