Assign other buttons to unlock screen - HTC Desire S

For those who don`t want to brick power button may be an answer beside using apps like tap tap or similar in using sensor and consuming battery life.
It is possible to do this with desire s? (for volume up/down or home key maybe)
http://forum.xda-developers.com/showthread.php?t=683902
pina_ said:
Has anyone already found a way to display the lockscreen using another button then the power on/off button? I can't get used to the new unlocking method. On my Hero, I just had to press a button to see the lockscreen and I even could press a button twice to unlock it.
I guess it should be possible with rooted phones? But I don't know how ofc...
Solution:
You need to edit the file bravo-keypad.kl in /system/usr/keylayout
Open the file in a text editor, you'll see something like this:
Code:
key 102 HOME
key 139 MENU
key 158 BACK
key 217 SEARCH
key 107 ENDCALL WAKE_DROPPED
key 116 POWER WAKE_DROPPED
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
You'll have to put the string 'WAKE_DROPPED' behind the button you wish to use to unlock. It has been set on POWER and ENDCALL by default.
You need to pull the file first via recovery, edit it, then push it back to your phone. You can only do this via the recovery, not via programs like Root Explorer!
Go into recovery, then type in the following commands:
Windows:
adb-nilezon shell mount /system
adb-nilezon pull /system/usr/keylayout/bravo-keypad.kl c:\
edit bravo-keypad.kl to your liking
adb-nilezon push c:\bravo-keypad.kl /system/usr/keylayout/bravo-keypad.kl
adb-nilezon shell reboot
Mac:
./adb-mac shell mount /system
./adb-mac pull /system/usr/keylayout/bravo-keypad.kl
edit bravo-keypad.kl to your liking
./adb-mac push bravo-keypad.kl /system/usr/keylayout/bravo-keypad.kl
./adb-mac shell reboot
many thanks to RedDragCZ and ritdaw!
Click to expand...
Click to collapse

Although I didn't try myself I've heard that tap tap is working on Desire S.
Another option is possible if you run CM7 rom (early beta can be found in this section). Within CM settings there is an option to enable volume keys to wake the device. I've tested it and it works perfectly. You can also use it in conjunction with Screen Off And Lock app (free version on the Market) which is fantastic app in itself. It puts a shortcut on your home screen and by tapping it you send your device to sleep. This is perfect combination for me since it actually enables me to skip using power button completely.
As for capacitive keys, afaik it's impossible to wake the device with them.

rubbish said:
Although I didn't try myself I've heard that tap tap is working on Desire S.
Another option is possible if you run CM7 rom (early beta can be found in this section). Within CM settings there is an option to enable volume keys to wake the device. I've tested it and it works perfectly. You can also use it in conjunction with Screen Off And Lock app (free version on the Market) which is fantastic app in itself. It puts a shortcut on your home screen and by tapping it you send your device to sleep. This is perfect combination for me since it actually enables me to skip using power button completely.
As for capacitive keys, afaik it's impossible to wake the device with them.
Click to expand...
Click to collapse
Would this method not cause battery drain as it either uses the proximity sensor or keeps the screen in partial wake mode?

stonedandhappy said:
Would this method not cause battery drain as it either uses the proximity sensor or keeps the screen in partial wake mode?
Click to expand...
Click to collapse
I know that is working but at full recharge after 9 hours in the morning I checked battery status what is using it and tap tap app was using 46% of it... is a very good app but I don`t want to stay with recharger in my pocket )

I have modified all saga_keypad.kl in /system/usr/keylayout, made key 114,115 (volume keys) WAKE_DROPPED and nothing... I can`t unlock screen with volumes.
CM7 rom can use it, LockBot can use it why we can`t use it by modify it in manual mode without any app?
edit: I have tried this using Root Explorer file edit. After I saw this:
pina_ said:
You need to pull the file first via recovery, edit it, then push it back to your phone. You can only do this via the recovery, not via programs like Root Explorer!
Click to expand...
Click to collapse
Why only with adb ? Is not the same if I have DS rooted ?

codryn said:
I know that is working but at full recharge after 9 hours in the morning I checked battery status what is using it and tap tap app was using 46% of it... is a very good app but I don`t want to stay with recharger in my pocket )
Click to expand...
Click to collapse
I believe the question was about Screen Off And Lock app? If that's the case then no, there's no extra battery drain. Tapping the shortcut puts the phone into proper sleep mode.

I`m using Screen Off And Lock too binded on search key to turn off. I liked to tap tap but I don`t want to have proximity sensor always on.

HEEEEELP. Now I can`t use my buttons ((( what should I do please? I can use touch screen but no buttons ( How can I enter in recovery to full wipe without buttons? (

Through ADB.
adb shell reboot recovery

use SEARCH key to lock screen
key 217 SEARCH => key 217 POWER
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
The POWER button is not too weak
so I think we can UNLOCK screen by using POWER botton

i managed to go in rom manager > boot into recovery > wipe/format everithing and installing new rom.
In key test all keys are working. Now lets hope that keys are working in awake mode to.
yee keys are working now. so don`t use root explorer to modify keyboard settings :|

Ended to use WidgetLocker. Very good app and I can unlock screen with volume keys but I have to forget default lockscreen (lbc rom)

I'd love to be able to implement this feature as well!
I've used WidgetLocker which did the job but the lockscreens weren't quite to my taste.
Anyone else out there keen for this feature?

No luck until now...so I`m not the only one who doesn`t want to use 3rd app that drain battery to unlock screen ) Welcome in the club bro...
update: after using ButtonRemapper v0.2.4.1:
1.volume +- with wake_dropped = didn`t worked to unlock screen.
2.volume +- binded as power and wake_dropped = when screen was on it worked to make screen off but when screen was off didn`t worked to unlock.
out of ideas :|

Look HERE for info how to do it.

Related

[Q] To Use Volume Button To Wake Up

Is the a App or a way to use the volume button to wake up the screen so we don't put to much stress on the power button?
Sent from my HTC Sensation 4G using xda premium
I use tap tap app and it uses ones proximity sensor to turn on and off your screen with a swipe of your hand or some like to refer to as "the force" lol.
But if you are looking for an alternative wake, I think there is, I forget what the app is called right now.
There is an application called Button Remapper and that could help you just wake up screen with volume buttons or other hard buttons on my HTC Desire.. give a try to it on Sensation...
check here
http://forum.xda-developers.com/showthread.php?t=850464
Alternative is Widget Locker and i suppose that will also Show up unlock screen pressing volume buttons but then u have to sacrifice Sense 3 lock screen...
I agree with jjdoctor widgetlocker has been my lock screen for years across a numerous amount of phones. That is, if you want to sacrifice the sense lockscreen.
I use Tap Tap app as well. Pretty cool app. I try not to run it all the time though because it can drain the battery a bit. I also use widgetsoid as well which has an unlock widget where you can then use the volume rocker to wake up the phone.
Sent from my HTC Sensation 4G using Tapatalk
Tried Widgetsoid on a different phone but couldnt locate the Option to wakeup screen with Volume buttons.. its all about widgets in this application..
Btw... BUTTON REMAPPER isnt working ? Nobody ever used it? You wont be sacrficing Sense Lock screen for it..moreover its light application and wont even drain ur battery..
For Widgetsoid, I think you want to create a widget, select screen and then check auto lock. That will create a widget which you can enable/disable the lock screen. Then you can use the volume rocker to wake up the phone.
Sent from my HTC Sensation 4G using Tapatalk
I was looking for something that can wake up the phone not remove lock screen just to wake up. I tried nolock. It removes the lock screen just to wake up.
Try adding these to the build.prop (remember to do a nandroid)
To enable the Volume button too unlock the phone
ro.config.hw_Vol_down_unlockscreen=true
To wake the phone when pressing the volume key
ro.config.hwfeature_wakeupkey=1
I havent tried these so let me know my sensation is at service at the moment.
Thanks for the information!
rawtek said:
Try adding these to the build.prop (remember to do a nandroid)
To enable the Volume button too unlock the phone
ro.config.hw_Vol_down_unlockscreen=true
To wake the phone when pressing the volume key
ro.config.hwfeature_wakeupkey=1
I havent tried these so let me know my sensation is at service at the moment.
Click to expand...
Click to collapse
tried it... didn't work...
I too would love to be able to wake up my phone with the volume rocker, but keep the lockscreen intact.
The power button on my previous phone wore out way too fast, and this is a worry with the Sensation.
Tried several different apps, editing the build.prop file, button remapper... nothing has worked so far.
I'm using Insertcoin 3.2.0... which is fabulous.
I found this http://forum.xda-developers.com/showthread.php?t=1293967
I been using insertcoin rom and love it.
Sent from my HTC Sensation Z710e using xda premium
Here's what I found and been using it since. It's awesome.. enjoy guys! Copied and pasted directly from syc7090 - full credits to him. http://forum.xda-developers.com/showthread.php?p=18039135#post18039135
1. Download baksmali and smali (both baksmali-1.2.8 & smali-1.2.8 jars and scripts, total 4 files) to the desktop from http://code.google.com/p/smali/ (on the left, you will see the 4 links under "downloads")
2. Copy and transfer android.policy.jar (system\framework folder) from your phone to the desktop. it's also a good idea to backup the file just in case something goes wrong and you need to revert back.
3. Unzip android.policy.jar and extract classes.dex file to the desktop.
4. From the command line, navigate to the desktop and type "java -jar baksmali-1.2.8.jar classes.dex". It will create a directory named "out".
7. Open KeyguardViewMediator.smali (found in out/com/android/internal/policy/impl/) with wordpad.
8. Scroll down and find ".method private isWakeKeyWhenKeyguardShowing(I)Z".
9. Delete cases 0x18 and 0x19 in the switch statement towards the bottom of the method. Save.
10. From the command line, type "java -jar smali-1.2.8.jar -o classes.dex out". You now have a new classes.dex that has your modification.
11. Open android.policy.jar file on your desktop with 7zip and insert the new classes.dex file.
12. Copy the new file to your phone (system\framework folder, ensure that you set proper permissions) and reboot.
please note that i am not responsible if you mess anything up (although, the steps are pretty brick-proof). hack away at your own risk.
ps if you want to turn the screen off without using the power button, download "screen off and lock" from the market. awesome free app. shut down the screen by long pressing the search button.
kpjimmy said:
I use tap tap app and it uses ones proximity sensor to turn on and off your screen with a swipe of your hand or some like to refer to as "the force" lol.
But if you are looking for an alternative wake, I think there is, I forget what the app is called right now.
Click to expand...
Click to collapse
This should help.http://forum.xda-developers.com/showthread.php?p=18226553

[Q] Function keys, del, etc.

With CM, does the Fn key work? I was trying to hit F2 to open the bios on a remote machine and it wasn't working (RDP to Raritan). I also need a delete key. I guess I should look into remapping keys, unless there is a convenient way to use these keys that I'm missing.
Nope, I do not believe the F keys work at all -- at least I've been unable to use them so far -- save remapping, like you mentioned already.
briankb said:
With CM, does the Fn key work? I was trying to hit F2 to open the bios on a remote machine and it wasn't working (RDP to Raritan). I also need a delete key. I guess I should look into remapping keys, unless there is a convenient way to use these keys that I'm missing.
Click to expand...
Click to collapse
In the most recent nightly builds, these keys finally *do* work! Months ago I missed my delete key so much I ended up digging into the mechanism that provides keymappings for CM10 and was able to make the 'lock' key on the keyboard emit a FORWARD_DEL keycode instead of uselessly locking my tablet everytime I hit it.
It's a little technical but let me give you a brief overview of how keycodes work on the TF700s. Under /system/usr you will find two directories: keylayout and keychars. We will be interested are the 'asusdec' keylayouts and keychars files.
First, the keychars directory houses that describe each key for all of the different supported keyboard types. For the most part, there is really no need to play around with any of the files in here but looking the asusdec.kcm will give you a nice reference for what each key does and also describes what each key should do if modifiers like 'shift' or 'alt' are pressed. Again, I wouldn't play around with these too much as it might but perhaps you'll have better luck with that than I did
Next, keylayout, this is where all the mapping between hardware keycode (that is the decimal output by depressing a key such as 'r', which yields 19) to the aforementioned keychars entry. Again, asusdec.kl is pretty much the only place you might need to play around with but be careful doing so as these files have a tendency to change in the nightly builds.
To give you a real world example of what all this means, in order to accomplish my modification of making the 'POWER' key into a 'FORWARD_DEL' key, I found the matching keycode for 'POWER' (this is 142) and replaced the reference to POWER with FORWARD_DEL, rebooted, and done! Since I build the CM10.1 source daily, I put this into a local repo branch and now it gets applied to every build I make. Nevertheless, here is a diff of the 'offical' asusdec.kl vs mine:
Code:
diff --git a/prebuilt/asusdec.kl b/prebuilt/asusdec.kl
index 228c95d..d610ac5 100644
--- a/prebuilt/asusdec.kl
+++ b/prebuilt/asusdec.kl
@@ -21,7 +21,7 @@ key 163 MEDIA_NEXT WAKE_DROPPED
key 113 VOLUME_MUTE WAKE_DROPPED
key 114 VOLUME_DOWN WAKE_DROPPED
key 115 VOLUME_UP WAKE_DROPPED
-key 142 POWER WAKE
+key 142 FORWARD_DEL WAKE_DROPPED
key 41 GRAVE WAKE_DROPPED
key 2 1 WAKE_DROPPED
key 3 2 WAKE_DROPPED
To take a look at these files from the official github repository, check em out @ https://github.com/CyanogenMod/android_device_asus_tf700t/tree/cm-10.1/prebuilt.
Lastly, a word of caution, these files are pretty crucial to your keyboard, well, working. Take care in keeping backups and any new flashed ROM will replace these. Worst comes to worst, have a version of CM you're ready to reflash and it should blow away any mistakes if you find your keyboard acting up. For the brave, I will attach my personal asusdec.kl which you can simply (after backing up yours) place in /system/usr/keylayout if AND ONLY IF you are on the CM10.1 nightly. Otherwise, just try the recent nightly and see if it solves your problems.
As for the F## keys, check out the top of the asusdec.kl file and you'll see the wifi key falls through to F1, the bluetooth key to F2, etc etc.. That being said, if you hit F1 it will ultimately emit the keycode for F1 but *will* also still toggle your wifi .. quite annoying. You don't even need to use the FN modifier though I am working out a way to allow FN-Wifi to pass F1, FN-Bluetooth to pass F2, etc..
Hope that helps to clear some things up, please feel free to ask more as I'm happy to discuss Best of luck.
I too did the FORWARD_DEL hack -- putting the tablet to sleep 15 times within one single e-mail body annoyed me to Hell and back.
briankb said:
With CM, does the Fn key work? I was trying to hit F2 to open the bios on a remote machine and it wasn't working (RDP to Raritan). I also need a delete key. I guess I should look into remapping keys, unless there is a convenient way to use these keys that I'm missing.
Click to expand...
Click to collapse
One other thing I totally forgot is to ask what RDP client do you use? I've been using Jump with great success but that only really works if you're able to RDP directly to the Windows box. If not, you would have to setup an SSH tunnel or something of the like :\ If you haven't checked out Jump yet, take a look at it since it has a popup menu option for all the common 'full keyboard' keys. [Play Store Link]
MartyHulskemper said:
I too did the FORWARD_DEL hack -- putting the tablet to sleep 15 times within one single e-mail body annoyed me to Hell and back.
Click to expand...
Click to collapse
I hear that.. I did the same with the Wifi toggle key too but that was a bit more of a hack since it's handled in asusdec. Boy is that button meaningless Glad to hear I'm not the only one to find a 'screen off' button more than pointless.
This may be a little off topic but does anyone know of a key sequence to wake up the table from the keyboard dock?
houtx2 said:
This may be a little off topic but does anyone know of a key sequence to wake up the table from the keyboard dock?
Click to expand...
Click to collapse
Depending on which version of CM you're running, it's simply a matter of editing the asusdec.kl file I described above. Adding 'WAKE' or 'WAKE_DROPPED' after the line in the keylayout specification should do the trick. That being said, if I recall correctly, the code for waking up on keypress wasn't working correctly until pretty recently in the CM nightly builds. As of current, it seems to work great and is even controlled directly from the 'Advanced' option in the Android Settings, under the heading for 'Dock'. If you're really interested in this functionality, I would recommend trying the most recent build and see if it does the trick for you since editing the keylayout files by hand can be somewhat tricky and I'm not 100% sure it will work otherwise.
Here is a screenshot of the Advanced settings dialog with the Dock option:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Hope that helps and if you decide to either way, let me know how it goes though.
jhannah01 said:
Depending on which version of CM you're running, it's simply a matter of editing the asusdec.kl file I described above. Adding 'WAKE' or 'WAKE_DROPPED' after the line in the keylayout specification should do the trick. That being said, if I recall correctly, the code for waking up on keypress wasn't working correctly until pretty recently in the CM nightly builds. As of current, it seems to work great and is even controlled directly from the 'Advanced' option in the Android Settings, under the heading for 'Dock'. If you're really interested in this functionality, I would recommend trying the most recent build and see if it does the trick for you since editing the keylayout files by hand can be somewhat tricky and I'm not 100% sure it will work otherwise.
Here is a screenshot of the Advanced settings dialog with the Dock option:
Hope that helps and if you decide to either way, let me know how it goes though.
Click to expand...
Click to collapse
Thanks for the great reply but I should have mentioned that I am still stock and not on CM.
houtx2 said:
Thanks for the great reply but I should have mentioned that I am still stock and not on CM.
Click to expand...
Click to collapse
Ah, well that might even make it easier. If I recall correctly, there was an option in stock under the 'Asus Settings' that I think is called 'Mobile Dock Battery Saving Mode' or something equally as vague that might do the trick for you
houtx2 said:
This may be a little off topic but does anyone know of a key sequence to wake up the table from the keyboard dock?
Click to expand...
Click to collapse
You *could* enable waking from the keyboard dock in the ASUS-specific settings. I am pretty sure, though, that both options might drain the battery rather strongly.

***REQUESTING INFO FROM USERS! SEE LAST POST!!!*** Screen Locker v1.0.1

Hey fellow XDA members!
I was using my phone and accidentally clicked a bunch of things xD
So I was like, well it would be nice to have a way to lock my screen but still see it lol.
Then I saw on Facebook where someone said "I really hate when I give my phone to someone to look at a picture and they swipe left or right to look at other pictures"
So I made an app that you can lock the screen and disable all touch input, it also disables the status bar from being expanded as well. Also consumes button presses
You activate the lock by either long pressing on the search button, or a notification
To unlock your screen again, just enter a pattern which you created I love this app Hope you guys do as well!
Donations appreciated! Thanks are loved!
UPDATE 10.31.13
- Fixed home button issue
- Temporarily fixed recent apps issue
UPDATE 11.1.13
- Removed trying to close recent apps, instead screen is completely black and you can only unlock it, nothing else will unlock it. and you cannot see what is on the screen. (labeled as b1 for "beta 1" as im not sure how many people will like this method.)
Downloads temporarily removed.
elesbb said:
Hey fellow XDA members!
I was using my phone and accidentally clicked a bunch of things xD
So I was like, well it would be nice to have a way to lock my screen but still see it lol.
Then I saw on Facebook where someone said "I really hate when I give my phone to someone to look at a picture and they swipe left or right to look at other pictures"
So I made an app that you can lock the screen and disable all touch input, it also disables the status bar from being expanded as well. Also consumes button presses
You activate the lock by either long pressing on the search button, or a notification
To unlock your screen again, just enter a pattern which you created I love this app Hope you guys do as well!
Donations appreciated! Thanks are loved!
Click to expand...
Click to collapse
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Sent from my SGH-M919 using Tapatalk
This is a genius idea!
Tried it on HTC DNA was able to use the back and the home button. Using either, the notification shade kept rolling itself back up. These are capacitive buttons on my phone. The touch was disabled though.
Sent via my M7DNA
Nice work with this app. It works like a charm on my Nexus 7 2013. I've featured it on the XDA Portal.
Also I forgot device has no search button and in the full screen mode for gallery app no notification pulldown is available. I know gallery lock down was a focus for the app.
Sent via my M7DNA
Great minds, great works
I haven't used this app yet since im in the office now but I just cant wait to try this
This is something I was really looking for but never thought that someone like you will make an app for this too
Great work mate :good::good::good:
I'm curious from a dev standpoint - how do you handle the home key presses? Or does the system level alert cause them to be ignored automatically?
EDIT: A home key press bypasses the app. Maybe add an option so your app can be a "launcher" as well.
sounds promising and useful! the screen is locked but what about the the home button and the back key? can others bypass the lock by pressing them?
Easy to bypass
rayjr13 said:
Tried it on HTC DNA was able to UAE the back and the home button. Using either the notication shade kept rolling itself back up. These are capacitive buttons on my phone. The touch was disabled though.
Sent via my M7DNA
Click to expand...
Click to collapse
Unfortunately, as Rayjr13 mentions, hitting the home or back button unlocks.
elesbb said:
Hey fellow XDA members! .........
Click to expand...
Click to collapse
wow great idea! your the man
Brilliant idea!
I have two little things though:
I use SlimBean's soft navigation buttons. These buttons can still be pressed when locked by your awesome app.
I have my hardware buttons disabled. It would be nice to have a way to link a software button to lock the screen.
nyc app BUT
on my desire X stock android 4.1.1 JB i can still use my home button after turning on the screen lock. and from there after it gives home scren i can navigate to menus. it defeats d sole purpose of this wonderful app. please fix the bug and disable all buttons and touches once app is activated. thanks..
Stock Samsung galaxy s3. Used home button and took me to my wallpaper. Unable to exit app. Unable to input gesture. Only way to exit app was restarting phone. So while it works as promised. If I passed the phone over to a friend they and press the hold button only option left for me is hard reset and this is a problem for me and I'm sure others. Otherwise this is a great app and has great potential. Keep up the good work. Look forward to a fix.
Sent from my SGH-T999 using XDA Premium 4 mobile app
elesbb said:
App info
Click to expand...
Click to collapse
I found a bug. When you press the home button you will go to your home screen, and if you long press it, you will have access to all recently used apps without restrictions. The settings could be there...
Should be a great idea. Unfortunately I do not have search button. The only physical buttons I have are the power and volume buttons. And, for all full screen apps, I also cannot callup the notification to activate SCREENLOCK. In fact, I have most apps mod to full screen, meaning that I have no means to activate your app for most of the time.
Sent from my C6603 using xda app-developers app
drdionysius said:
Brilliant idea!
I have two little things though:
I use SlimBean's soft navigation buttons. These buttons can still be pressed when locked by your awesome app.
I have my hardware buttons disabled. It would be nice to have a way to link a software button to lock the screen.
Click to expand...
Click to collapse
The buttons will still be pressable, however, the back and menu buttons should be consumed by my app. The recent apps menu is kind of tricky to override, as system windows usually have a higher priority, like my S4 has multiwindow, when you click the little button to expand multiwindow, you can still access the apps and leave whatever is locked. I have a few ideas to fixing this that i will have to test and try myself. It is only version 1.0 so there is lots of room for improvement!
willverduzco said:
Nice work with this app. It works like a charm on my Nexus 7 2013. I've featured it on the XDA Portal.
Click to expand...
Click to collapse
Woohoo! Nice! Thanks a million!!
Addressing the issues!
Hello everyone! Thanks for the awesome feedback for my app!
I would like to address the issues stated:
HOME BUTTON PRESSES
- This is next to impossible to completely consume. It was patched back in froyo or gingerbread i think. However, there are other methods I can take that will prevent this.
1st. I can make my app behave as a launcher app, meaning, when you press the home button, it will ask you which app to use as your launcher, you would select mine, then in my app, i would ask you which app to use as your actual home launcher. Then, when you press the home button, my app will get launched, it will do some checking, then if the screen lock is enabled, it will simply ignore the home button press, but if the screen lock is not enabled, it will navigate to your actual home screen. (Probably the prefered method)
2nd. The home button will take you to your home screen, however, the screen will remain locked. (Kind of like this option cause you can then detect if the friend or person was trying to be snoopy xD)
3rd. The home button will take you to your home screen, however, immediately after it will relaunch whichever app you locked and re-lock the screen.
I'm not too sure which option I will pick, mainly depends on device compatibility, I'm thinking the first and second options will be more compatible with more devices. So I will test those two options and if I like them both, I will include both options in the release.
UNABLE TO ACTIVATE IN FULLSCREEN
- Again, multiple fixes to this problem
1. You can use my "Clock in fullscreen" app to show a clock in fullscreen, then pressing the clock will expand the status bar.
2. I can listen for when the foreground app goes into a fullscreen state, then create an onscreen button, Clicking the button will lock the screen and remove the button, unlocking the screen will unlock the screen and show the button again. ( I probably will go with this approach) I might even make this an always showing button, or at least an option.
I think those were the extent of the issues, I will get working on it as soon as possible! Thanks again everyone for the support! Thats what makes any app wonderful, is the KIND support from the users instead of silly belly aching xD
Have a wonderful day everyone!
The other issue wasn't addressed but it may be a nonissue with the planned fixes. But when the lock is active and the back or home button is pressed, the notification shade continuously rolls up. I also never attempted and also didn't hear anyone ever say they were able to unlock their phone with the gesture.
Keep up the great work.
Here's a suggestion:
In SlimBean you have the option to "expand desktop" which hides the status bar as well as the soft navigation buttons (optional). Check the GitHub here: https://github.com/SlimRoms
Might have some leads on how to do that.:good:

How to remap buttons?

Does anyone know how to remap app switcher button to menu, and long press back to kill app?
Thanks!
Painless001 said:
Does anyone know how to remap app switcher button to menu, and long press back to kill app?
Thanks!
Click to expand...
Click to collapse
All in one gestures app in play store seems to be the best thing we've got right now
nflwideout86 said:
All in one gestures app in play store seems to be the best thing we've got right now
Click to expand...
Click to collapse
Hey - thanks very much for the tip. Haven't come across this before, but it looks like just the thing as we await xposed and or cm. Unfortunately, can't get it to work - it requires turning on universal switch, and doing so crashes my settings due no doubt to a conflict with something I've frozen... Will try to figure it out, but thanks again...
nflwideout86 said:
All in one gestures app in play store seems to be the best thing we've got right now
Click to expand...
Click to collapse
All In One Gestures doesn't have an option for the menu key, I'm guessing it's root only.
Does anyone else have a suggestion?
xxshabsxx said:
All In One Gestures doesn't have an option for the menu key, I'm guessing it's root only.
Does anyone else have a suggestion?
Click to expand...
Click to collapse
....but the S6 doesn't even have a menu key?
nflwideout86 said:
....but the S6 doesn't even have a menu key?
Click to expand...
Click to collapse
Correct. I'm talking about adding an option to either long press or short press the recent apps button to a menu button.
xxshabsxx said:
Correct. I'm talking about adding an option to either long press or short press the recent apps button to a menu button.
Click to expand...
Click to collapse
but it does.....under hard keys...might need to press the plus icon to add the recent key and then change it to menu
and i'm pretty sure that feature doesn't require root. (i could be wrong though)
just need to turn on the accessibility service.
nflwideout86 said:
but it does.....under hard keys...might need to press the plus icon to add the recent key and then change it to menu
and i'm pretty sure that feature doesn't require root. (i could be wrong though)
just need to turn on the accessibility service.
Click to expand...
Click to collapse
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
That's what I see when I try and change it. THere isn't a menu option.
xxshabsxx said:
That's what I see when I try and change it. THere isn't a menu option.
Click to expand...
Click to collapse
Hmm...looks like you do have to be rooted.
When i'm in there the menu option sits right between the recent apps and screen off option...
nvm then
All in one gestures app
nflwideout86 said:
Hmm...looks like you do have to be rooted.
When i'm in there the menu option sits right between the recent apps and screen off option...
nvm then
Click to expand...
Click to collapse
Can anyone tell me if the All in One Gestures app works on the S6 Edge? I have a S6 Edge rooted. I installed All in One Gestures app. I setup up the app to change my recent apps button to Menu and I made the long back press into Kill app. BUT when I exit the app none of my remap changes work? All my buttons work like the normal stock setup. I have accessibility enabled and all that. I'm wondering if this app does not work on the new Lollipop version on my Edge? Does anyone have any words of wisdom for me? I'm trying to remap my buttons. Thanks.
Thank so much for this thread, I didn't even know any of this was possible. I've just come from 5 prior phones with a menu button, and I hate the Recent Apps button there. I ended up making that button do nothing (I already have the backlighting disabled), set long press on the Back button to be Recent Apps, and long press on home to Voice Search. It still doesn't give me the Menu button that I want so badly, but this will be much less frustrating. I just wish I could assign screencap to one of them. (It takes me about 8 tries to successfully get a screen cap w/ power/home.)
Anyway, thanks again!
Re-map buttons
Bueller......................Bueller.............
Personally I use Xposed Additions to re-map buttons, but you need to be rooted and have Xposed Framework (idk if it's Lollipop compatible yet, I'm on KitKat).
Xposed additions is fabulous, so if you can try and get that. You could also try Pie Controls from the play store (no root needed) and it'll let you access on screen versions of any buttons you want.
Hope that helps
Xposed Nope
Xposed does not work on Lollipop.
Bricking1 said:
Xposed does not work on Lollipop.
Click to expand...
Click to collapse
False. It's been working on Lollipop since Feb. See
Xposed
los1223 said:
False. It's been working on Lollipop since Feb. See
Click to expand...
Click to collapse
But only the Alpha version, correct? Or do they now have a stable version for LP 5.2?
Change Recent Apps Button to Menu Button
Finally figured out how to remap the Recent Apps button back to Menu....
Use a root explorer (I used X-plore with root enabled).
Go to
/system/usr/keylayout/Generic.kl
Backup file Generic.kl ( copy it as a .bk or something )
Then open the file Generic.kl using the text editor within X-plore.
Then find the word APP_SWITCH linking with the code number (mine is key 254), change APP_SWITCH to MENU. Then reboot and your are done. The Recent Apps button is now back to being a Menu button. Life is great.
---------- Post added at 06:42 PM ---------- Previous post was at 06:41 PM ----------
DevonSloan said:
Thank so much for this thread, I didn't even know any of this was possible. I've just come from 5 prior phones with a menu button, and I hate the Recent Apps button there. I ended up making that button do nothing (I already have the backlighting disabled), set long press on the Back button to be Recent Apps, and long press on home to Voice Search. It still doesn't give me the Menu button that I want so badly, but this will be much less frustrating. I just wish I could assign screencap to one of them. (It takes me about 8 tries to successfully get a screen cap w/ power/home.)
Anyway, thanks again!
Click to expand...
Click to collapse
Finally figured out how to remap the Recent Apps button back to Menu....
Use a root explorer (I used X-plore with root enabled).
Go to
/system/usr/keylayout/Generic.kl
Backup file Generic.kl ( copy it as a .bk or something )
Then open the file Generic.kl using the text editor within X-plore.
Then find the word APP_SWITCH linking with the code number (mine is key 254), change APP_SWITCH to MENU. Then reboot and your are done. The Recent Apps button is now back to being a Menu button. Life is great.
Bricking1 said:
Can anyone tell me if the All in One Gestures app works on the S6 Edge? I have a S6 Edge rooted. I installed All in One Gestures app. I setup up the app to change my recent apps button to Menu and I made the long back press into Kill app. BUT when I exit the app none of my remap changes work? All my buttons work like the normal stock setup. I have accessibility enabled and all that. I'm wondering if this app does not work on the new Lollipop version on my Edge? Does anyone have any words of wisdom for me? I'm trying to remap my buttons. Thanks.
Click to expand...
Click to collapse
I have S6 edge rooted... Tryed everything and could make All in One Gestures app works, but never assigning the menu button. I think the option of having menu is not enabled in S6 rom.
Remap the Edge
That app didn't work on my edge either. But fear not my fellow Android addict! Just edit your Generic.kl file! Change the quick app to MENU. See screen shot for file location. You want to edit key 254. Change that to MENU.
BEFORE DOING THIS COPY THE ORIGINAL Generic.kl file AND NAME IT SOMETHING ELSE like Generic.org. That way you still have the original file in case......
Bricking1 said:
Can anyone tell me if the All in One Gestures app works on the S6 Edge? I have a S6 Edge rooted. I installed All in One Gestures app. I setup up the app to change my recent apps button to Menu and I made the long back press into Kill app. BUT when I exit the app none of my remap changes work? All my buttons work like the normal stock setup. I have accessibility enabled and all that. I'm wondering if this app does not work on the new Lollipop version on my Edge? Does anyone have any words of wisdom for me? I'm trying to remap my buttons. Thanks.
Click to expand...
Click to collapse
JacobManning17 said:
Personally I use Xposed Additions to re-map buttons, but you need to be rooted and have Xposed Framework (idk if it's Lollipop compatible yet, I'm on KitKat).
Xposed additions is fabulous, so if you can try and get that. You could also try Pie Controls from the play store (no root needed) and it'll let you access on screen versions of any buttons you want.
Hope that helps
Click to expand...
Click to collapse
YES IT WORKS!!!!!!!!!!!!
Menu button working on S6 edge rooted and with Pie Control.
---------- Post added at 01:03 AM ---------- Previous post was at 12:50 AM ----------
Bricking1 said:
Finally figured out how to remap the Recent Apps button back to Menu....
Use a root explorer (I used X-plore with root enabled).
Go to
/system/usr/keylayout/Generic.kl
Backup file Generic.kl ( copy it as a .bk or something )
Then open the file Generic.kl using the text editor within X-plore.
Then find the word APP_SWITCH linking with the code number (mine is key 254), change APP_SWITCH to MENU. Then reboot and your are done. The Recent Apps button is now back to being a Menu button. Life is great.
---------- Post added at 06:42 PM ---------- Previous post was at 06:41 PM ----------
Finally figured out how to remap the Recent Apps button back to Menu....
Use a root explorer (I used X-plore with root enabled).
Go to
/system/usr/keylayout/Generic.kl
Backup file Generic.kl ( copy it as a .bk or something )
Then open the file Generic.kl using the text editor within X-plore.
Then find the word APP_SWITCH linking with the code number (mine is key 254), change APP_SWITCH to MENU. Then reboot and your are done. The Recent Apps button is now back to being a Menu button. Life is great.
Click to expand...
Click to collapse
Did not worked on my S6 edge....
Tnx for trying!

Remap Bixby manually & using all in one gestures; Bind to flashlight [ROOT]

The bixby button is an absolute waste of a physical key on samsungs part, and ever since I got my S8 a little over a month ago I've been trying to find a way to completely remap the key without any of this bypass nonsense that flashes bixby for a moment before proceeding with your action, or returning to your home screen etc. I'm currently using a rooted S8 on renovate ice r155, with the latest AIO gestures & Tasker.
I highly recommend using MiXplorer as a root explorer, you will need one for this. Basic knowledge on using tasker will help too.
Thanks to redplate, j91co & kuaka as I've pieced together their help in order to make this work on my phone.
Links to threads here:
https://forum.xda-developers.com/galaxy-s8+/how-to/root-remap-bixby-button-o-app-t3601061/page10
https://forum.xda-developers.com/s7-active/how-to/how-to-tasker-to-assign-flashlight-t3396760
So I have made a little tutorial on how to re-assign the key; this must be done manually and does not require an app for anything other than more extensive actions.
Therefore there are two parts to this: manually re-assign the key, and linking the key to all in one gestures.
Re-assign the key:
(1) Open a root explorer, and navigate to root: /system/usr/keylayout
(2) Copy generic.kl and rename the copy to generic.kl.bak
(3) Open generic.kl and edit as text; either rename to .txt and revert back or use MiXplorer to edit directly
(4) Find '703'; it should look like # input_fw Intelligent Key for Dream key 703 WAKE (or 'WINK' depending on device version, its ok)
(5) Simply rename the entry in capitals, for example WINK to VOLUME_DOWN
(6) Save the file, reboot.
(7) If any issues, restore the backup.
Link to AIO Gestures & Tasker
For this example I'm going to show you how to use AIO gestures with Tasker to toggle the flashlight with the bixby key.
(1) Manually re assign the key as shown in the first part: use something not commonly used. I used the function DVR. Save & reboot after changing this.
(2) Download tasker & AIO gestures. Grant root permissions and accessibility permissions in settings.
(3) Open AIO gestures and go to the hard keys section; 3 dots in top corner > custom keys
(4) Press bixby, it should display what you assigned it to. In my case it showed DVR. Press add.
(5) It will now be shown in the list of hard keys. Press it once to open the menu. You can choose anything you like, im going to assign it to a tasker shortcut:
(6) Swipe to the 'shortcut' section and scroll down to task shortcut
(7) Add a new task, and filter for 'torch'. Set ' toggle'. Press back, and again.
You should now have your bixby key bound to flashlight. I've tested this and it works from the AOD too. Enjoy, and please give credit to the great oaks who figured this all out cus im a flop and couldn't have done it without them
Of course if you know how to use tasker and stuff you can do whatever you want with this, take full advantage of that button! F#ck samsung for forcing the stain bixby is into our devices.
by is on us.
I haven't tested myself, but apparently this method also works with all of the bixby apps removed.
If somebody would like to incorporate this into an app, that'd be mad and you'd be a legend for doing so.
Here is a list of some actions I have accumulated from some threads you can assign to the key:
VOLUME_DOWN
VOLUME_UP
HOME
POWER - Power menu
MUSIC - starts your favorite music player
CAMERA - Open camera
APP_SWITCH - App switcher
VOICE_ASSIST - Google Assistant
SYSRQ - Take screenshot
CALENDAR - Open default calendar
CONTACTS - default contacts
MESSAGE - Default messenger
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I guess you have never heard of the BxActions app, on xda and the play store... Remapping of Bixby button, without root even. Works great
I've used all those apps and each of them have a quirk where it flashes open for a short time, or sends you back to the home screen. In my opinion it's not an elegant solution and just isn't fluid enough, this way bixby doesn't show up at all and it works from everywhere.
Can I open a specific app on my phone with this?
Sent from my SM-G955F using Tapatalk
beugologist said:
I've used all those apps and each of them have a quirk where it flashes open for a short time, or sends you back to the home screen. In my opinion it's not an elegant solution and just isn't fluid enough, this way bixby doesn't show up at all and it works from everywhere.
Click to expand...
Click to collapse
No Bixby flashing up anymore Also, it always worked from everywhere. Maybe that is a pro thing, but I like to donate to helpful devs, so I have pro..
toole said:
Can I open a specific app on my phone with this?
Click to expand...
Click to collapse
BxActions can...
Interesting, always used a free version and had some sort of quirk. Maybe it's improved since I last used it like the other week, but it never blocked bixby properly.
Whilst it's a nice app, you're also heaps limited to what you can assign the key too so bringing tasker to the table gives you pretty much endless possibilities.
Maybe the Devs will see this thread and incorporate this into their app for free....
Yeah, a recent BxActions update made it so Bixby doesn't come up anymore. There is an extra one-time step to take with the PC (don't need adb or anything special), but it's super easy, doesn't install anything extra, steps you through it, and takes all of about 30 seconds. It has just about every option I can think of for reassigning the button, including ability to customize actions for a long press or a double press of the button. It's come a long way even in the last few weeks in my opinion.
Although, it's nice to have options, that's what I love about Android. I just thought I'd present another option in case it wasn't known, so thanks for your post!!
Cheers for that, I had no clue they had fixed up all the blocking stuff, I'd love to check it out but I've completely removed bixby in favor for rebinding it lol. Still, that's mad that the dev has sorted it all out without the need for even adb or root; I might check it out as some point as the only thing limiting me currently I'm not sure how to configure it for double and long presses, could be my lack of knowledge with tasker, I'm still learning all this stuff.
Does BxActions have tasker support?
Anyway cheers for letting me know, it's a communal effort to get rid of Bixby
DUDE....I HAD TO MAKE AN ACCOUNT TO THANK YOU! This mod make all the Bixby disabler app obsolete! You should put this in theme and mods, it really deserve more notice!
beugologist said:
Does BxActions have tasker support?
Click to expand...
Click to collapse
This I don't know, never used tasker...
Anyway cheers for letting me know, it's a communal effort to get rid of Bixby
Click to expand...
Click to collapse
My thoughts exactly!
I recommend Button Mapper (from XDA developer flar2) from the play store. It can remap every key, and you can assign actions for press, double press and long press, too. It also has a long list of actions you can assign to the buttons. More, it doesn't need Tasker to be installed.
It has rooted and rootless mode; in rooted mode you can launch the actions even without unlocking the phone. It is very smooth and light, it doesn't flash the screen when Bixby button is pressed.
kbarni said:
I recommend Button Mapper (from XDA developer flar2) from the play store. It can remap every key, and you can assign actions for press, double press and long press, too. It also has a long list of actions you can assign to the buttons. More, it doesn't need Tasker to be installed.
It has rooted and rootless mode; in rooted mode you can launch the actions even without unlocking the phone. It is very smooth and light, it doesn't flash the screen when Bixby button is pressed.
Click to expand...
Click to collapse
BxActions does all that and more apparently, as BxActions will let you launch the actions with the phone locked, even without root... Also doesn't need tasker, is smooth, light, and doesn't flash Bixby, and does single, double, and long presses, and is also from an XDA dev...
Wait, just realized you said "remap every key", as in remapping of volume keys as well? If so, that's kind of cool, even though I don't need that for anything...
otis_bartleh said:
BxActions does all that and more apparently, as BxActions will let you launch the actions with the phone locked, even without root... Also doesn't need tasker, is smooth, light, and doesn't flash Bixby, and does single, double, and long presses, and is also from an XDA dev...
Wait, just realized you said "remap every key", as in remapping of volume keys as well? If so, that's kind of cool, even though I don't need that for anything...
Click to expand...
Click to collapse
Button Mapper does all the Bixby stuff for free, has more actions to choose from, also allows you to remap other buttons, and if you have root, is faster, more reliable and will give you even more options.
flar2 said:
Button Mapper does all the Bixby stuff for free, has more actions to choose from, also allows you to remap other buttons, and if you have root, is faster, more reliable and will give you even more options.
Click to expand...
Click to collapse
Free I don't care about, developers deserve our money, it's not easy... Remapping other buttons is cool, sounds like another good one!
---------- Post added at 09:06 AM ---------- Previous post was at 09:04 AM ----------
flar2 said:
Button Mapper does all the Bixby stuff for free, has more actions to choose from, also allows you to remap other buttons, and if you have root, is faster, more reliable and will give you even more options.
Click to expand...
Click to collapse
I hit post previously and it disappeared, so if this ends up double posting, sorry about that...
I don't care about free, developers deserve our money, coding isn't quick and easy... But re-mapping other buttons, that is cool, sounds like another good one!
toole said:
Can I open a specific app on my phone with this?
Click to expand...
Click to collapse
Yeah, you can assign it to whatever you want with tasker.
otis_bartleh said:
BxActions does all that and more apparently, as BxActions will let you launch the actions with the phone locked, even without root... Also doesn't need tasker, is smooth, light, and doesn't flash Bixby, and does single, double, and long presses, and is also from an XDA dev...
Wait, just realized you said "remap every key", as in remapping of volume keys as well? If so, that's kind of cool, even though I don't need that for anything...
Click to expand...
Click to collapse
Yeah you are literally editing the keymap file, so you can change any of the hardware buttons like this.
flar2 said:
Button Mapper does all the Bixby stuff for free, has more actions to choose from, also allows you to remap other buttons, and if you have root, is faster, more reliable and will give you even more options.
Click to expand...
Click to collapse
Thanks! I'll check it out.
I've checked out using button mapper as an alternative, and discovered only the volume keys work with the display off / device locked. Whilst it is more usefull than aio guestures, it completely defeats the purpose of having an easy to access flashlight key, considering I'd have to unlock my phone. Found that bixby actions doesn't work at all now due to remapping the key (plus im too much of a stinge to pay for long / double press, everyone with an S8 should have had this from the factory but I see nothing wrong with charging for hard work).
Found a new thread describing a method using 'Xposed edge' (pro ver here https://play.google.com/store/apps/details?id=com.jozein.xedgepro&hl=en, free one too) that supposedly does all these things plus double press, through using xposed, however im a bit skeptical using this as a solution due to the current state of xposed atm.
If anyone else knows a great tool that can remap CUSTOM keys, from anywhere (aod, lockscreen, home, in app), that supports long, double and single presses I would be forever grateful.
Whilst BxActions seems like the best solution to remove bixby (from the perspective of all users) at this point in time, I've just glanced through it to find a lack of tasker support (guess you could build your own tasker app and launch it but that's trek and a dirty solution), but cheers to jawomo for his effort with this and everyone else who's contributed.
I checked out button mapper, but still prefer BxActions since it works with the lock screen without root... Nice there are so many options...
I agree that it shouldn't be needed and we shouldn't have Bixby forced upon us when we pay as much for a phone as we did (or are)...
Thanks for this. Anyone know of a way to get it to work with the screen off? It works with the always-on display, but not if that's disabled and the screen is off.
Also, I'll warn everyone else not to do what I did on my first attempt. I used Total Commander to copy generic.kl to a non-root folder, made my changes there with TC Edit (part of Total Commander, but it can't get root access to edit system files directly), deleted the original generic.kl, then moved the edited version back to /system/usr/keylayout. I don't know why this didn't work, but after a reboot I was unable to use any keys at all - not the Bixby button, not the power button, even the on-screen keyboard refused to appear. I could unlock the phone with the fingerprint scanner and open apps, but I couldn't restore my generic.kl.bak since I couldn't delete the .bak part with no keyboard. Thankfully I had a very fresh system backup I could restore, though I'm sure I could have also renamed the .bak file with ADB. I tried again, this time editing generic.kl directly with ES File Explorer (instead of using Total Commander to edit a copy) and it worked as it's supposed to.

Categories

Resources