[ROOT] Remap Bixby Button with simple, double and long press - Samsung Galaxy Note 9 Guides, News, & Discussion

The ultimate solution for assigning an action or application to the Bixby button
I found a trick to assign the Bixby button to an action, application and more... Support a single click, double-click and hold (also works the screen off)
Here are the functions you can assign to the Bixby button
Navigates: back, home, recent apps...
Controls: sleep/wake up, show power menu, shutdown, reboot, expand notifications panel...
Rotation control.
Media controls: play/pause, next, previous, stop...
Fast scroll: scroll to top/ bottom.
Edit: copy, paste...
Universal copy, one tap copy text every where.
Settings: auto brightness, rotation, wifi, mobile data...
Start app/shortcut/activity, finish activity, previous app/next app, kill app...
Freezer: freeze/thraw app.
Input gesture, key event, text...
Shortcut panel, app drawer, freezer drawer, side bar...
Floating widget.
Swipe adjust: swipe on the edge to adjust brightness, screen filter, volume...
Gesture pointer, extends your finger.
Notification, speech, toast.
Screen filter, torch.
Conditional: if screen on, keyguard on, wifi connected/disconnected, battery level, time period, wifi connected to, app focused...
Multi action, saved multi action.
...
Disclaimer:
I AM NOT RESPONSIBLE FOR ANY DAMAGE DONE TO YOUR DEVICE IF YOU DECIDE TO USE THIS GUIDE. IT'S PRETTY SAFE THOUGH BECAUSE I HAVE HEAVILY TESTED EVERYTHING THAT I WROTE.
Required
All Samsung rom custom Android 8.1
A root access (preferably MAGISK)
Step 1
Remap Bixby Button
As in the article :
1. Go with any root Explorer (I'm using Solid Explorer) to /system/usr/keylayout
2. Rename the Generic.kl to Generic.txt
3. Open this file with an text editor
4. Search for 703 to get following entry: # input_fw Intelligent Key for Dream key 703 WINK
5. Change it to whatever you want. I simply tried following: # input_fw Intelligent Key for Dream key 703 ASSIST
6. Rename it back to Generic.kl (otherwise you won't be able to press any hardware button after reboot)
7. Check permissions
8. Restart your device
For now, Bixby is used Google Assitant with item display on the screen
Other order :
HOME - Homebutton
POWER - Powermenu
MUSIC - Starts your favorite music player
MEDIA_PLAY_PAUSE - Play pause media
VOLUME_UP - Sets volume up
VOLUME_DOWN - Sets volume down
VOLUME_MUTE - Volume media (set default media volume in phone setting)
CAMERA - Starts camera app
APP_SWITCH - Recent apps button
ASSIST - Google Assistant (with item display on the screen)
VOICE_ASSIST - Google Assistant (fast)
QPANEL_ON_OFF - Notification area
EXPLORER - Favorite internet browser
SYSRQ - Screenshot
PAGE_UP
PAGE_DOWN
CALCULATOR
CALENDAR
CONTACTS
CALL
If you want to be able to use more features such as double-clicking, long-clicking, launching an application, adjusting the vibrator or other, leave "ASSIST" and continue the steps.
Picture with the SEARCH function :
{
"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"
}
Source : https://forum.xda-developers.com/galaxy-s8+/how-to/root-remap-bixby-button-o-app-t3601061
Step 2
Install Xposed
Flash zip Xposed with Magisk, TWRP or FlashFire.
If your phone is rooting with Magisk (best method) :
Launch Magisk Manager to search, download and install the "Xposed Framework (SDK 27)" for Android 8.1
or
How-to flash with TWRP :
1. Transfer the zip and apk to your phone.
2. Now boot into TWRP by pressing bixby+volume up+power on while phone is turned off
3. Go to "Install" menu of TWRP select the zip and flash the zip.
4. Restart the phone and Install the apk and run the application to verify that everything is green
or
How-to flash with FlashFire :
1. Transfer the zip and apk to your phone.
2. Install FlashFire
3. Start the application and press "+"
4. Choose "Flash ZIP or OTA" and select the zip
5. Select "Auto-Mount" and "Mount / system read / write" and validate
6. Press "Flash" and "ok" then wait until the phone restarts
7. Install the apk and run the application to verify that everything is green
The link for the ZIP to flash (xposed) for 8.1
https://dl-xda.xposed.info/framework/sdk27/arm64/xposed-v90-sdk27-arm64-beta3.zip
The link for the "Xposed Installer apk"
https://forum.xda-developers.com/attachment.php?attachmentid=4393082&d=1516301692
A link to uninstall Xposed in case of problem (zip to flash with TWRP):
https://dl-xda.xposed.info/framework/uninstaller/xposed-uninstaller-20180117-arm64.zip
Source Xposed Nougat :
https://forum.xda-developers.com/showthread.php?t=3034811
Step 3
Customize the Bixby Button
This module provides you Gesture control, Key control and other smart triggers. to trigger actions you want.
Next, download "Xposed edge" or "Xposed edge pro" from the Play Store and activate the "Xposed edge" module in "Xposed Installer" and then restart the phone.
1. Launch the Xposed Edge module and activate "Keys" and access it
2. Press Add and click on the Bixby button
3. Activate the newly assigned Bixby button (KEYCODE_ASSIST)
4. And with the arrow on the side assign an action for a single click, double-click and hold down
Do not forget to activate key control and the button assign
And now it will work
Bonus
Gesture for navigation with Xposed Edge:
https://www.youtube.com/watch?v=DkAGCtbJr-U&feature=youtu.be
You have the possibility to choose a side of the screen, and to assign an action with a slide in the desired direction
The sources that allowed me to realize this guide
Links to threads here:
https://forum.xda-developers.com/xposed/xposed-android-nougat-sdk-25-arm64-t3639221
https://forum.xda-developers.com/galaxy-s8+/how-to/root-remap-bixby-button-o-app-t3601061
Sorry for mistakes, I speak french

This is the best solution so far I found. Thank you so much obedmaleka.

Related

[Q] Possible bug with Home button setting

I posted this earlier in the main HTC M8 forum bug list post and figured it belongs here instead because someone with the ATT version said they don't have that. This is something that I experienced before and after I rooted the Sprint M8.
Basically what happens is that once you enable the setting to long press home for menu under settings and try to use it, it just takes you back to your home screen every time. I was expecting this to be similar to the long press for menu setting the recent apps button had with the EVO 4G LTE.
Go to Settings > Display, gestures and buttons > Buttons - Home
{
"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"
}
Can anyone else confirm?
Bachatu said:
I posted this earlier in the main HTC M8 forum bug list post and figured it belongs here instead because someone with the ATT version said they don't have that. This is something that I experienced before and after I rooted the Sprint M8.
Basically what happens is that once you enable the setting to long press home for menu under settings and try to use it, it just takes you back to your home screen every time. I was expecting this to be similar to the long press for menu setting the recent apps button had with the EVO 4G LTE.
Go to Settings > Display, gestures and buttons > Buttons - Home
Can anyone else confirm?
Click to expand...
Click to collapse
I thought this was just me. It's driving me crazy because I have no menu button.
Captain_Throwback said:
I thought this was just me. It's driving me crazy because I have no menu button.
Click to expand...
Click to collapse
I'm glad I'm not the only one! This has been driving me insane since day One. No pun intended.
I'm not sure how many people here had one but... this reminds of the quick launch WebOS introduced back with the Pre. I hope we are able to add more apps to the quick launch.
Same thing here, along with the unlock screen. You swipe up too low it brings up Google search or browser. Highly annoying
Yeah I'm going crazy over this too. I thought maybe something was supposed to pop up in the bubble along with the search icon when you hold the home button.
I'm sure we'll find a way to make a persistent menu button.
Sent From My HTC One!
schmeggy929 said:
Same thing here, along with the unlock screen. You swipe up too low it brings up Google search or browser. Highly annoying
Click to expand...
Click to collapse
Just swipe up without turning on the screen first. It turns on and unlocks the phone. No risk of accidentally going to Google and you save a step.
Neither setting in that section seems to have any effect as far as I can see. The home button always acts like "home" if you press and release, or press and hold, and even if you set "press and hold" to be Google Now, pressing and holding still simply acts like you just took a long time to release and it acts as a "home" button.
And, I haven't been able to figure out at all what the "Home double-click speed" setting even refers to.
I think the double-click speed refers to how quickly you need to double tap the screen while it's off to turn it on, maybe? Not sure why anyone would double-tap then swipe instead of just directly swiping, but whatever.
Sent from my 831C using xda app-developers app
It sounds like these are settings left over from the M7, which didn't have on-screen buttons and long press home was needed for menu and double tapping the home button was needed for recent apps. Sounds like they forgot to remove the setting when they switched to on screen buttons.
ahecht said:
It sounds like these are settings left over from the M7, which didn't have on-screen buttons and long press home was needed for menu and double tapping the home button was needed for recent apps. Sounds like they forgot to remove the setting when they switched to on screen buttons.
Click to expand...
Click to collapse
So if this is in fact the case, where is my Menu button? I can't get to the settings in ES File Explorer without a Menu button.
Captain_Throwback said:
So if this is in fact the case, where is my Menu button? I can't get to the settings in ES File Explorer without a Menu button.
Click to expand...
Click to collapse
The menu button shows up for me correctly in legacy apps. This is the correct behavior per http://android-developers.blogspot.com/2012/01/say-goodbye-to-menu-button.html?m=1
If ES File Explorer is setting the SDK version to 11 or higher and not providing an action overflow or other on screen way to access the menu then that is a bug with that program.
EDIT: In ES File Explorer, click on the button in the upper right to slide out the "Fast Access" panel. There is a settings button at the bottom of the panel.
ahecht said:
The menu button shows up for me correctly in legacy apps. This is the correct behavior per http://android-developers.blogspot.com/2012/01/say-goodbye-to-menu-button.html?m=1
View attachment 2661791
If ES File Explorer is setting the SDK version to 11 or higher and not providing an action overflow or other on screen way to access the menu then that is a bug with that program.
EDIT: In ES File Explorer, click on the button in the upper right to slide out the "Fast Access" panel. There is a settings button at the bottom of the panel.
Click to expand...
Click to collapse
Top left works too
schmeggy929 said:
Top left works too
Click to expand...
Click to collapse
You're correct, of course. When I was writing that I had already pressed the button, causing it to move to the upper right when the panel slid out.

[Android 2.3.3+] Best Application Launcher : Gestures

Best Application Launcher - program for quick running application by one gestures on screen and quick On/Off WIFI, GPS, BlueTooth. Not need click many buttons - Make ONE Gestures ! Tested on Android from version 2.3.3(on phone) to version 4.2.2(on the tablet), and all worked fine. On highest version android 4.4.2 - incorrect worked with layers of display , but if you can someone check and help to respond me - i not have device higher 4.2.2 version.
{
"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 application run a programs by using preassigned recognition of gestures - with start point on field of button, following the shape moving of the finger- example (using vector analysis ). It replaces the classic pictograms.
Full Version: https://play.google.com/store/apps/details?id=com.app.launcher
Lite Version(Small Vectors): https://play.google.com/store/apps/details?id=com.app.launcherLite
Launcher - is always displayed on top of other runnable applications in a the transparent of a square highlighted by default red frame - does not interfere with to other programs and reading of text and does not take much space. Battery pack does not consume as in itself does not do anything in the background - just waiting for events onTouch function.
To control the program's earlier opened - opens a list of all running software, where you can quickly switch between them or close them (but only if they work in the background). Also at the top of the list are three buttons: 'Close the program', 'Menu', 'Minimize List'.
For operation of can use eight basic gestures finger movement, with pitch between vector directions 45 degrees, you can also use a combination of vectors in two directions, for example: upward and then left, left - then down, etc.
Of course you can used to bind programs different gestures in the menu configuration (Settings).
In the settings for my application, you can also change the appearance of Best App Launcher shape of fonts. Also there is a 'Excludes Application'-a list of open applications android, or rarely system utilities external services - work as active and which cause an error when you switch to them. Since sometimes fall on the list active of user task, such system utilities can be marked as' Excludes 'so they will not show up of the custom list programs.
Default management Best App Launcher set eight gestures:
1(UpRight) - Open the program settings
2(Right) - Minimize all open Activiti (applications) in the background
3(DownRight) - Close the program
67(Left then UpLeft) - Open the settings menu android
65(Left then DownLeft) - See the screen resolution.
87(Up then UpLeft) - FAST ON/OFF WIFI !
78(UpLeft then Up) - ON/OFF GPS
76(UpLeft then Left) - ON/OFF BlueTooth
Moving Launcher icon on the screen - this is done by dragging a button with delaying of the click on the icon, greater than 2.5 seconds; after removal of retention clicking- icon is positioned at the new location. If pressing the button Best App Launcher was less than 2.5 seconds - then starts the analysis finger motion vectors and the program begin to work search tied to this vector the set configuration (if something is scheduled for this vector).
The program is added to the AutoRun.
In the future I plan to add the ability to display instead pictograms Best App Launcher - of the clock / date, alarm clocks, quick opening the list of take brief notes, exchange rates, quick On/Off GSM Radio Module, ON/OFF AutoRotation and Rotation Screen, encryption Messenger by PGP dual keys and other details and information... at the request of of users - should any arise.
Small update for version - fix some errors. Check please - people : - )
gestures
Gestures are not working on 4.4kitkat
help
Why not use Unity Launcher sorry can not provide link check out on play store. the best.
nihalr2 said:
Why not use Unity Launcher
Click to expand...
Click to collapse
For him - need more space on screen, slow and many click for launch/switch apps.

[Guide] How to automatize your life with your Pebble

Introduction:
So you have a Pebble and you love how you can check your emails and mute your boss's call without even looking at your phone?
It's all really cool, but if you're anything like me, that's just not enough. You want to do more with even less effort.
How can we expand the possibilities to near-infinity?
With the help of three awesome apps:
- Tasker [Paid]
- AutoPebble [Free/Paid]
- PebbleTasker [Paid]
Other apps mentioned in this guide:
- Canvas for Pebble [Free]
- Calendar for Pebble [Free]
Note: You can use the free version of AutoPebble, but Tasker is a must.
I believe most of you know how powerful tool Tasker is, so imagine all those possibilities on your wrist and let's do something practical:
The Basics of AutoPebble:
Every watchapp, that has a companion app or a settings in the Pebble app communicates through the Pebble app itself.
AutoPebble's purpose is to intercept and filter these communications right from Tasker and execute tasks accordingly.
My favorite feature is the ability to start watchapps on your Pebble.
One of my profile:
When I press button DOWN in Canvas it will load the Calendar watchapp.
1) To be able to load an app, we need to know the apps UUID (it's an id that is unique to every app):
a) start the AutoPebble app on your phone (you don't have to install the watchapp, it is for more advanced stuff) and make sure the "Automatically Detect" is ticked.
{
"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"
}
b) now start the Calendar watchapp on your Pebble, AutoPebble should recognise its UUID.
c) in AutoPebble open "Manage Other Pebble Apps" and longpress on the new entry, it is convenient to rename it to Calendar, now longpress again and Enable it
(if AutoPebble doesn't recognise an app, you have to manually type in the UUID, Calendar's one is: b41e3dcf-6162-4147-9c58-643e1091fb93)
d) now you have to do the same with Canvas (it's UUID is 654db887-5135-4b22-be8b-2e1b5c0cb49d)
(you have to do this procedure for every watchapp you'd like to interact with)
2) Open Tasker and create a new task:
a) add an action to it: Plugin->AutoPebble App
b) click on Configuration and scroll down to Other Pebble App, choose Calendar from the list
c) click on Action and choose Open
Note: now if you execute the task, the Calendar watchapp should start on your Pebble
3) Check the buttons and values we want to trigger the task:
a) open AutoPebble app on your phone
b) check Log other Apps
c) go to Log Listing
d) press the button on your Pebble while in Canvas (Canvas' button's are 200 and values are CL_S1 for UP, CL_S2 for SELECT and CL_S3 for DOWN)
4) Open Tasker and create a new profile:
a) choose State->Plugin->AutoPebble Other App
b) click on Configuration
c) App: Canvas
d) Direction: Watch To Phone
e) Key Filter: 200
f) Value Filter: CL_S3
Important: to make this work, uncheck every watchface in the Canvas app, except the active one
Now if you press the DOWN button while in Canvas, Tasker will catch the command and launch the Calendar watchapp.
Additional notes: This only works with watchfaces that actually send commands to the phone and sadly the BACK button cannot be intercepted.
PebbleTasker:
PebbleTasker is a handy watchface, that lets you execute any Tasker task on your phone. I'm no Tasker guru, but I use it to mute my phone, turn on/off tethering, and launch more watchfaces.
If you launch the PebbleTasker app on your phone, you can assign 3 Tasker task to the three button and one-one to longpress UP/DOWN.
If you click on "More..." and "Select Tasks for menu" you can assign another 20 tasks to the list which comes up if you longpress SELECT.
Tip: If you create an AutoPebble App task with a "Key filter: 0" you can start Canvas (or anything) on a button press in PebbleTasker while the task is being executed on your phone.
Outro:
This guide only covers the very basics of these awesome apps, but if you grasp these concepts you can do pretty much anything Tasker can do without taking out your phone and make app switching on your Pebble more dynamic.
I hope you appreciate my guide and find it useful. :fingers-crossed:
Not so bright... I have the calendar on Pebble but can't do anything with it. This step:
d) press the button on your Pebble (Canvas' button's are 200 and values are CL_S1 for UP, CL_S2 for SELECT and CL_S3 for DOWN)
WHICH button on my Pebble?
@rogerperk:
The one you want to use to start calendar. It can be any one of the UP, SELECT, DOWN.
This step's reason is to see what commands the buttons in different watchapps send to the phone (or to check if they send any).
Erovia said:
@rogerperk:
The one you want to use to start calendar. It can be any one of the UP, SELECT, DOWN.
This step's reason is to see what commands the buttons in different watchapps send to the phone (or to check if they send any).
Click to expand...
Click to collapse
Yeah, that's what I thought. Can't seem to get it to work though. Let me try again... Can't get it to pull up though. I lose it at setp 4 - Create Another State.
@rogerperk: I've just realised I've made a few mistakes and corrected them.
Erovia said:
@rogerperk: I've just realised I've made a few mistakes and corrected them.
Click to expand...
Click to collapse
Well I must be doing something wrong because I get to step 3 (check buttons) and it doesn't work.
You have Canvas and Calendar in AutoPebble's "Manage Other Pebble Apps" list?
Are they enabled?
Is "Log other Apps" turned on?
Is there any info in the "Log listing"?
erovia said:
you have canvas and calendar in autopebble's "manage other pebble apps" list?
are they enabled?
is "log other apps" turned on?
is there any info in the "log listing"?
Click to expand...
Click to collapse
yes
yes
yes
yes. A bunch of in app licence success notifications.
@rogerperk: You have to be in Canvas to catch its button values.
Erovia said:
@rogerperk: You have to be in Canvas to catch its button values.
Click to expand...
Click to collapse
Maybe I"m missing something. I now have calendar and weather on my up and down buttons. But I thought they would open those programs from my main watchface, which is a Canvas face. Instead I have to go into PebbleTasker, through the menu, on my watch and activate them. Is that right??
PebbleTasker simply starts Tasker tasks on your phone. To be able to use the buttons we have to use AutoPebble.
Also, Canvas have to be installed as a watchapp, because watchfaces can't send commands to your phone.

[APP] 'Custom Navigation Bar' - add additional icons to your N8 Nav Bar

I found this Custom Navigation Bar app developed by paphonb on a different XDA thread - but it works perfectly on the Note 8. The app can be downloaded from the Play Store here
Using this app you can add up to 2 additional icons to the Navigation bar (one on the far left and the other on the far right) each with a tap or double-tap action that can launch apps or a tasker event. It works fantastically on my N8 with no lag whatsoever, and I now have 4 actions that I can easily access from any screen.
{
"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"
}
Features
- Add custom buttons to your navigation bar
- Customizable navbar layout
- Tasker integration for contextual navbar
- Easy to setup
- No root or xposed required
Compatibility
- May not work on Touchwiz launcher. (I use Lightning Launcher and it works fine)
I set mine up as follows:
Left
- Single tap: launch a dictionary
- Double tap: mute sound
Right side
- Single tap: toggle screen auto-rotate
- Double tap: kill current app
Tutorials
There are tutorials on how to set up the icons scattered throughout the 58 pages of the original thread. I have summarized them all here in one place
[Credit to Mishaal Rahman and dariomrk for writing these]
Requirements for launching Tasker Events
- Tasker ($2.99)
- AutoInput Beta (v2.0.5b.bf) (~$1.70)
1. Instructions for triggering a Tasker event
1. Configure a custom button as you would, but this time, set button type to "Tasker event" instead of "Keycode".
2. Open tasker and press add in profiles tab
3. Select "Event"
4. Select Plugin -> Custom Navigation Bar
5. Click on pencil icon to edit event
6. Select the profile you have the button set up. If you set up the button you want in "Navigation bar" section of the app, select "None"
7. Select the button that you have set up. If the option is greyed out, check if you done step 1 correctly
8. Save the event and add an action for that tasker profile.
Note:
When pressing the button first time, if a dialog pops up, select "Custom Navigation Bar" and press "Always"
2. Instructions to change the buttons to keyboard cursors whenever the keyboard is displayed
https://www.xda-developers.com/how-...ard-cursors-to-the-nav-bar-during-text-input/
** I find this one really useful as do not normally have these showing on my Swiftkey keyboard.
3. Instructions to change the buttons to media playback controls when playing Music
https://www.xda-developers.com/how-to-add-media-playback-controls-to-the-nav-bar-when-playing-music/
4. Detailed Instructions for setting up the Custom Navigation Bar
Firstly you will need:
- A PC with adb and fastboot installed; (Refer to this thread: https://forum.xda-developers.com/showthread.php?t=2588979 for how to install these);
After you have adb set up, open up a CMD window and type:
Code:
cd "Program Files(x86)\adb"
adb shell
pm grant xyz.paphonb.systemuituner android.permission.WRITE_SECURE_SETTINGS
Important: Replace "Program Files(x86)\adb" with the location where you installed adb
For more details see: https://www.xda-developers.com/nav-...ck-nougat-all-along-and-it-never-needed-root/
Found another great app Home Button Launcher that lets you remap the long press on the Note 8 Home key so it doesn't launch Google Assistant (which I never use).
It can either automatically launch a different app or a shortcut - or show a popup panel of apps/shortcuts:
I used to use All in one Gestures to do this - but that does not work on soft keys.
~
@kiwiguy99 Thanks for the posts!
What app are you using for the 'Quick Settings' style pull up bar at the bottom of your screen? Well I am assuming that is what it is lol.
chippyuk said:
What app are you using for the 'Quick Settings' style pull up bar at the bottom of your screen? Well I am assuming that is what it is lol.
Click to expand...
Click to collapse
If you mean the white circle with the dots at the bottom , that is just my App drawer icon. (I am using lightning launcher)
kiwiguy99 said:
If you mean the white circle with the dots at the bottom , that is just my App drawer icon. (I am using lightning launcher)
Click to expand...
Click to collapse
Actually, from the first post, the photo of the nav-bar, the long transparent bar along the bottom of the screen. Apologies if it is not your screen grab...
chippyuk said:
Actually, from the first post, the photo of the nav-bar, the long transparent bar along the bottom of the screen. Apologies if it is not your screen grab...
Click to expand...
Click to collapse
lol - that is Samsung pay!
kiwiguy99 said:
lol - that is Samsung pay!
Click to expand...
Click to collapse
Oh Hahahaha! Never used it!
That is one huge button to activate it though.
Thanks!
Nice find and directions! I use both Tasker and Lightning Launcher as well. Installation went quickly and I like the options to double-tap for more. Thank you!
How do I launch Google Search as in Typing with Keyboard to go to a URL or Google Search.
I download the adb tools from here : https://www.xda-developers.com/google-releases-separate-adb-and-fastboot-binary-downloads/
I have the adb tools in c:\androidtools
adb debugging is checked on the phone.
I can go into adb shell
I can list devices
But when I run the adb shell pm ..... command I get and error. /system/bin/sh: adb: not found
any clues?
Thanks in advance,
Matt
sudermatt said:
I download the adb tools from here : https://www.xda-developers.com/google-releases-separate-adb-and-fastboot-binary-downloads/
I have the adb tools in c:\androidtools
adb debugging is checked on the phone.
I can go into adb shell
I can list devices
But when I run the adb shell pm ..... command I get and error. /system/bin/sh: adb: not found
any clues?
Thanks in advance,
Matt
Click to expand...
Click to collapse
Do not run ADB SHELL by itself before running that command.
There's no need for 2 adb shell commands. Easier to just do the adb shell pm grant **** in one line.
kiwiguy99 said:
...
3. Instructions to change the buttons to media playback controls when playing Music
https://www.xda-developers.com/how-t...playing-music/
Click to expand...
Click to collapse
Thanks for collecting these tutorials in one thread ?
Btw. The link in #3 isn't working.
Btw. The link in #3 isn't working.
Click to expand...
Click to collapse
Thanks for letting me know! Have updated OP and fixed the URL.
I can not for the life of me get ADB to see my device as ONLINE. I've tried everything I can think of (restarting device, adb server, toggling USB debugging on & off, different USB ports, etc). I really hope one of ya'll has an idea I haven't tried or maybe has ran through this already. What am I missing?
Rooted snap dragon here could not get this working. Any ideas?
shdwphnx said:
Do not run ADB SHELL by itself before running that command.
Click to expand...
Click to collapse
when i do that it says "not recognized as an internal or external command,
operable program or batch file."
ckuhner said:
when i do that it says "not recognized as an internal or external command, operable program or batch file."
Click to expand...
Click to collapse
I suppose I may have been a little too cryptic in my previous response. Here's some clarification:
The original instructions basically said to open a command prompt then run...
Code:
cd "Program Files(x86)\adb"
adb shell
adb shell pm grant xyz.paphonb.systemuituner android.permission.WRITE_SECURE_SETTINGS
You would of course need to replace [highlight]"Program Files (x86)\adb"[/highlight] with the location where you installed ADB, if it is different.
The [highlight]adb shell[/highlight] line is unnecessary and will in fact cause the next line to fail. That is the piece I was hinting to skip to in my previous post.
Alternatively, this sequence will also work...
Code:
cd "Program Files(x86)\adb"
adb shell
pm grant xyz.paphonb.systemuituner android.permission.WRITE_SECURE_SETTINGS
Thanks Shadowpheonix! OP updated to reflect your better instructions.
So my navnar buttons are now out of alignment... tried uninstalling the app, but nothing happened even after reboot... how do I get the buttons to their original place? I'm really annoyed. I tried the options in the app to switch positions but they just mess them up even more...
Please help...

[ROOT] Remap Bixby Button with simple, double and long press

The ultimate solution for assigning an action or application to the Bixby button
I found a trick to assign the Bixby button to an action, application and more... Support a single click, double-click and hold (also works the screen off)
Here are the functions you can assign to the Bixby button
Navigates: back, home, recent apps...
Controls: sleep/wake up, show power menu, shutdown, reboot, expand notifications panel...
Rotation control.
Media controls: play/pause, next, previous, stop...
Fast scroll: scroll to top/ bottom.
Edit: copy, paste...
Universal copy, one tap copy text every where.
Settings: auto brightness, rotation, wifi, mobile data...
Start app/shortcut/activity, finish activity, previous app/next app, kill app...
Freezer: freeze/thraw app.
Input gesture, key event, text...
Shortcut panel, app drawer, freezer drawer, side bar...
Floating widget.
Swipe adjust: swipe on the edge to adjust brightness, screen filter, volume...
Gesture pointer, extends your finger.
Notification, speech, toast.
Screen filter, torch.
Conditional: if screen on, keyguard on, wifi connected/disconnected, battery level, time period, wifi connected to, app focused...
Multi action, saved multi action.
...
Disclaimer:
I AM NOT RESPONSIBLE FOR ANY DAMAGE DONE TO YOUR DEVICE IF YOU DECIDE TO USE THIS GUIDE. IT'S PRETTY SAFE THOUGH BECAUSE I HAVE HEAVILY TESTED EVERYTHING THAT I WROTE.
Required
All Samsung rom custom Android 8.0, 8.1.x
A root access (preferably MAGISK)
Step 1
Remap Bixby Button
As in the article :
1. Go with any root Explorer (I'm using Solid Explorer) to /system/usr/keylayout
2. Rename the Generic.kl to Generic.txt
3. Open this file with an text editor
4. Search for 703 to get following entry: # input_fw Intelligent Key for Dream key 703 WINK
5. Change it to whatever you want. I simply tried following: # input_fw Intelligent Key for Dream key 703 ASSIST
6. Rename it back to Generic.kl (otherwise you won't be able to press any hardware button after reboot)
7. Check permissions
8. Restart your device
For now, Bixby is used Google Assitant with item display on the screen
Other order :
HOME - Homebutton
POWER - Powermenu
MUSIC - Starts your favorite music player
MEDIA_PLAY_PAUSE - Play pause media
VOLUME_UP - Sets volume up
VOLUME_DOWN - Sets volume down
VOLUME_MUTE - Volume media (set default media volume in phone setting)
CAMERA - Starts camera app
APP_SWITCH - Recent apps button
ASSIST - Google Assistant (with item display on the screen)
VOICE_ASSIST - Google Assistant (fast)
QPANEL_ON_OFF - Notification area
EXPLORER - Favorite internet browser
SYSRQ - Screenshot
PAGE_UP
PAGE_DOWN
CALCULATOR
CALENDAR
CONTACTS
CALL
If you want to be able to use more features such as double-clicking, long-clicking, launching an application, adjusting the vibrator or other, leave "ASSIST" and continue the steps.
Picture with the SEARCH function :
{
"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"
}
Source : https://forum.xda-developers.com/galaxy-s8+/how-to/root-remap-bixby-button-o-app-t3601061
Step 2
Install Xposed
Flash zip Xposed with Magisk, TWRP or FlashFire.
If your phone is rooting with Magisk (best method) :
Launch Magisk Manager to search, download and install the "Xposed Framework (SDK 26)" for Android 8.0 and SDK27 is Android 8.1.
or
How-to flash with TWRP :
1. Transfer the zip and apk to your phone.
2. Now boot into TWRP by pressing bixby+volume up+power on while phone is turned off
3. Go to "Install" menu of TWRP select the zip and flash the zip.
4. Restart the phone and Install the apk and run the application to verify that everything is green
or
How-to flash with FlashFire :
1. Transfer the zip and apk to your phone.
2. Install FlashFire
3. Start the application and press "+"
4. Choose "Flash ZIP or OTA" and select the zip
5. Select "Auto-Mount" and "Mount / system read / write" and validate
6. Press "Flash" and "ok" then wait until the phone restarts
7. Install the apk and run the application to verify that everything is green
The link for the ZIP to flash (xposed) for 8.0
https://dl-xda.xposed.info/framework/sdk26/arm64/xposed-v90-sdk26-arm64-beta3.zip
The link for the ZIP to flash (xposed) for 8.1
https://dl-xda.xposed.info/framework/sdk27/arm64/xposed-v90-sdk27-arm64-beta3.zip
The link for the "Xposed Installer apk"
https://forum.xda-developers.com/attachment.php?attachmentid=4393082&d=1516301692
A link to uninstall Xposed in case of problem (zip to flash with TWRP):
https://dl-xda.xposed.info/framework/uninstaller/xposed-uninstaller-20180117-arm64.zip
Source Xposed Nougat :
https://forum.xda-developers.com/showthread.php?t=3034811
Step 3
Customize the Bixby Button
This module provides you Gesture control, Key control and other smart triggers. to trigger actions you want.
Next, download "Xposed edge" or "Xposed edge pro" from the Play Store and activate the "Xposed edge" module in "Xposed Installer" and then restart the phone.
1. Launch the Xposed Edge module and activate "Keys" and access it
2. Press Add and click on the Bixby button
3. Activate the newly assigned Bixby button (KEYCODE_ASSIST)
4. And with the arrow on the side assign an action for a single click, double-click and hold down
Do not forget to activate key control and the button assign
And now it will work
Bonus
Gesture for navigation with Xposed Edge:
https://www.youtube.com/watch?v=DkAGCtbJr-U&feature=youtu.be
You have the possibility to choose a side of the screen, and to assign an action with a slide in the desired direction.
The sources that allowed me to realize this guide
Links to threads here:
https://forum.xda-developers.com/showthread.php?t=3034811 rovo89
https://forum.xda-developers.com/galaxy-s8+/how-to/root-remap-bixby-button-o-app-t3601061 redplate
Sorry for mistakes, I speak french
Not trying to shill here, but bxactions still works flawlessly without the need for root.
Worked fine on s960FD
Thanks a lot
How to change it to Immersive mode?
obedmaleka said:
The ultimate solution for assigning an action or application...
Click to expand...
Click to collapse
I've been looking how to apply theses steps o a Samsung Galaxy with Lineage OS.
You can follow the steps as described in the post, but you won't find button 703 on the "Generic.kl" file. You have to search for a file named "gpio_keys.kl" on the same folder:
/root/system/usr/keylayout/
Click to expand...
Click to collapse
Also, I've found other commands to try if you wish:
APP_SWITCH - Recent apps button
ASSIST - Google Assistant (with item display on the screen)
CALCULATOR - Open default calculator app
CALENDAR - Open default calendar
CALL - Open default call app
CAMERA - Open camera
CONTACTS - Open default contacts app
EXPLORER - Favorite internet browser
HOME - Homebutton
MEDIA_PLAY_PAUSE - Play pause media
MESSAGE - Default messenger
MUSIC - starts your favorite music player
POWER - Power menu
QPANEL_ON_OFF - Notification area
SYSRQ - Take a screenshot
VOICE_ASSIST - Google Assistant
VOLUME_DOWN - Sets volume down
VOLUME_MUTE - Volume media (set default media volume in phone setting)
VOLUME_UP - Sets volume up
All the steps described above have worked for me on a Galaxy S8 and a Galaxy S9+, with Lineage OS 15.1 and Lineage OS 16.
adrian0541 said:
I've been looking how to apply theses steps o a Samsung Galaxy with Lineage OS.
You can follow the steps as described in the post, but you won't find button 703 on the "Generic.kl" file. You have to search for a file named "gpio_keys.kl" on the same folder:
Also, I've found other commands to try if you wish:
APP_SWITCH - Recent apps button
ASSIST - Google Assistant (with item display on the screen)
CALCULATOR - Open default calculator app
CALENDAR - Open default calendar
CALL - Open default call app
CAMERA - Open camera
CONTACTS - Open default contacts app
EXPLORER - Favorite internet browser
HOME - Homebutton
MEDIA_PLAY_PAUSE - Play pause media
MESSAGE - Default messenger
MUSIC - starts your favorite music player
POWER - Power menu
QPANEL_ON_OFF - Notification area
SYSRQ - Take a screenshot
VOICE_ASSIST - Google Assistant
VOLUME_DOWN - Sets volume down
VOLUME_MUTE - Volume media (set default media volume in phone setting)
VOLUME_UP - Sets volume up
All the steps described above have worked for me on a Galaxy S8 and a Galaxy S9+, with Lineage OS 15.1 and Lineage OS 16.
Click to expand...
Click to collapse
How to set immersive mode.
On Samsung Galaxy S9 under Lineage OS 17 this button described in gpio_keys.kl
Switched it to Camera - and now camera (OpenCamera) took photos on button press, but don't launch when button is pressed.
Also no need to rename files and so on - just use ADB, remount / in RW mode and edit files in nano (it built-in in Lineage OS)
Install Xposed edge from PlayStore. Works well on S9+ with Lineageos 17.1 and Edxposed.
Got a Note 8 and flashed the Project Sakura ROM. This has disabled that bixby button (dont know how) Even bxactions does not show it. Will this xposed module give me back access to that button?
Does anyone know what the code is for the flashlight?
So, I've been able to work out everything but everytime i press my bixby button for its single double and long press functions, assistant pops up. The functions work flawlessly but assistant also launches. Is there any way to avoid it ? Like use another code in "gpio_keys.kl" and get xposed to work ?
I'm using Galaxy S8 exynos with Lineage OS 19.1

Categories

Resources