FlashlightAccessibilityService
I provide here this basic app to toggle flashlight from vol up + vol down and/or power + vol up.
It uses a new feature introduced with Android 12 to toggle accessibility services from these key combos.
How to use:
Install the app.
Go to Settings app, then Accessibility, and Advanced settings.
Select your key combo, then go down and select Activate flashlight.
Enjoy!
Requirements:
Since it is an Android 12 exclusive feature, this will only work on One UI 4.
To get a proper cohesion between this app and the quick setting flashlight tile.
You should consider, but it is not mandatory, to give WRITE_SECURE_SETTINGS permission to this app.
Here it is only used to read secure settings but we need the permission as well.
To do that, two choices:
Using ADB :adb shell pm grant com.android.flashlightaccessibilityservice android.permission.WRITE_SECURE_SETTINGSUsing terminal app (as Termux) :pm grant com.android.flashlightaccessibilityservice android.permission.WRITE_SECURE_SETTINGS
Changelog:
v1: Initial release
v1.1 : Drastic size reduction (removed unneeded dependencies + build optimisation)
v1.2 : Proper handling between the key combination and the quick setting torch tile
Love it mate. I used Key Mapper before to remap volume up long press to flashlight but this breaks holding vol up to raise volume and I had to tap it to raise volume. This works quite a lot better.
Shame it still doesn't work screen off tho but I guess that's impossible without root and I wanna keep my Knox + bootloader lock intact due to some software from work needing it.
Imprezzion said:
Love it mate. I used Key Mapper before to remap volume up long press to flashlight but this breaks holding vol up to raise volume and I had to tap it to raise volume. This works quite a lot better.
Shame it still doesn't work screen off tho but I guess that's impossible without root and I wanna keep my Knox + bootloader lock intact due to some software from work needing it.
Click to expand...
Click to collapse
Thanks!
Same here I leave Key Mapper since it doesn't recognize power button. Thanks Google for this accessibility feature.
Yep as well shame for screen on only. This is not in my hands btw.
In android 12 this can be done without any additional applications. It is enough to enter advanced functions, side key, double-press, open applications, select a flashlight
Sdaro said:
In android 12 this can be done without any additional applications. It is enough to enter advanced functions, side key, double-press, open applications, select a flashlight
Click to expand...
Click to collapse
That worked in 11 as well but me at least wants to keep camera on double press side key. How else should we open the camera quickly lol.
Sdaro said:
In android 12 this can be done without any additional applications. It is enough to enter advanced functions, side key, double-press, open applications, select a flashlight
Click to expand...
Click to collapse
For sure
But this way you can use anything else with double press
I'm with @Sdaro on this. I double tap my power key to turn the flashlight on/off. No external apps needed. Did it on Android 11 and still with 12.
Settings -> Advanced Features -> Side Key -> Turn on Double Press, select Open app then choose an app.
DrRyder said:
I'm with @Sdaro on this. I double tap my power key to turn the flashlight on/off. No external apps needed. Did it on Android 11 and still with 12.
Settings -> Advanced Features -> Side Key -> Turn on Double Press, select Open app then choose an app.
Click to expand...
Click to collapse
Again no doubt about that.
But this way you can use flashlight and a second quick launch like camera. Even a third one with the other accessibility key combo.
Thanks for sharing.
Related
Disclaimer: I have fixed the infamous power button several times successfully, but now it's no longer possible so let's not go into that any more. For anyone who really wish to altogether replace the button, the following article is a good read, especially the comments on experiences. https://protyposis.net/blog/replacing-the-nexus-5-power-button/ TL;DR: it's tough.
So, my power button finally died permanently, and I'm now trying to figure out how to manage using a phone without a power button. The following things are doable and absolutely fine:
Turning on the phone: requires a PC with Fastboot, and attached USB cable. Press volume down and attach cable, phone will enter fastboot. Then do "fastboot reboot". This is quite problematic if you're not near a PC, but only really is an issue if the battery runs out.
Shutting down the phone: I use third party app like TWRP manager. Requires root I presume. Can be done with ADB as well e.g. by issuing "svc power shutdown" as root. Anyway a non-issue.
Rebooting: No problem, works basically similarly as shutting down.
My main concern is turning on the display. Currently I'm using CM13 CAF and I've set the volume buttons to turn on the display. It's fine, BUT - there is a long lasting bug where sometimes after phone call the display goes dark, and suddenly the volume buttons do not turn on the display. Only way to use the phone then is to find a computer to reboot it. Even attaching a USB cable does not turn on the display if this bug occurs. Not fun!!! I'm not completely sure about AOSP CM13 if the bug exists there, might have to test.
What are the good options for turning on the display other than CM13 / volume button? Are there some Xposed modules to specifically help with using the phone without power button? Any other tips / ideas?
Would you actually use the phone if your power button really died for good?
Edit: Here are some great suggestions given by you so far:
Gravity Screen - Additional service to unlock screen when necessary using proximity sensor. Has some battery usage concerns though.
Another non-CM13(CAF) ROM that do not perhaps have the "blank screen after phone call" issue, and hope that you won't actually need the power button by any incident
Setting up Xposed and using a module e.g. Xposed Additons to mimic power button behavior on volume button(s)
Use an external Pressy-like gadget to have a ROM-independent way to mimic the power button
Use a kernel that supports DT2W (double tap to wake) feature to turn on the screen. Also has some battery usage concerns.
Modify key mapping (gpio-keys.kl) to assign power button function to a volume button (see below)
So there certainly are options! And stuff like Pressy was even new to me. Can you think of more workarounds?
Gravity Screen.
Hi
I used Chroma which is working very good with volume buttons unlock. Now using my build from AOSP also with volume button wake and navigation button for locking.
Using terminal for reeboting/recovery/bootloader/shutdown.
Thanks for the suggestion, I will check them as well.
I'm testing currently Xposed Additions which allows remap any button to perform actions. I've set the volume key down to wake the phone, and long press volume down to lock it. This way I can still enjoy screen off music controls (at least next track by volume up).
Unfortunately this would not mimic the long pressing of power button for hard reboot. So in case display would just not turn on, the phone is still useless until you can get to a computer. But let's see.
Fihlvein said:
Thanks for the suggestion, I will check them as well.
I'm testing currently Xposed Additions which allows remap any button to perform actions. I've set the volume key down to wake the phone, and long press volume down to lock it. This way I can still enjoy screen off music controls (at least next track by volume up).
Unfortunately this would not mimic the long pressing of power button for hard reboot. So in case display would just not turn on, the phone is still useless until you can get to a computer. But let's see.
Click to expand...
Click to collapse
Not a big fan of Xposed and i dont listen to music on my N5 so a bit easier for me.
su | reboot
su | reboot recovery
su | reboot bootloader
su | reboot -p /power off/
I did not found a way for turning it on but connecting via fastboot and than reboot.
I have the exact same setup, but as backup, I use one of those cheap chinese Pressy clones. I use Headset Button Controller to unlock the screen on click, and it usually works when the download buttons refuse to. The only problem with this is not being able to use hedphones, and having the extra service running "just in case".
Use a ROM/kernel that supports Double Tap 2 Wake?
there is 2 options its a bit risky 1 try running normal CM13 and install ElementalX kernel it supports double tap 2 unlock the second option is just get on ebay buy new button and just replace it had this problem thought that i bricked the phone thanks for good information how to get it back up
I've updated the suggestions so far to the OP, thanks a lot!
By the way, do you know if the "10sec long press power button to force hard reboot" feature is mapped somehow physically to power button only? I'm guessing so as it works independently from where you are, in bootloader, recovery, ROM, etc. I was trying to mimic it using volume button (which is mapped to work as power button), and while the regular power button presses work within ROM, the 10sec long-pressing won't work. That would have be too cool to be possible.
Fihlvein said:
I've updated the suggestions so far to the OP, thanks a lot!
By the way, do you know if the "10sec long press power button to force hard reboot" feature is mapped somehow physically to power button only? I'm guessing so as it works independently from where you are, in bootloader, recovery, ROM, etc. I was trying to mimic it using volume button (which is mapped to work as power button), and while the regular power button presses work within ROM, the 10sec long-pressing won't work. That would have be too cool to be possible.
Click to expand...
Click to collapse
it is a qboot thing(one of the bootloaders from qualcomm, that loads before fastboot mode)
Okay I don't know how I didn't realize this earlier but mapping the power key to a volume button is by far the simplest way for me, if one has root. No extra apps needed. Here's how:
Option 1: on existing ROM:
- Boot into TWRP
- Mount /systen
- Modify e.g. with vim /system/usr/keylayout/gpio-keys.kl (I had to use Linux as Windows adb messed up the characters totally while editing)
Original:
key 115 VOLUME_UP
key 114 VOLUME_DOWN
New (volume down as power):
key 115 VOLUME_UP
key 114 POWER- Save & reboot, and enjoy volume down functioning as a power button (minus 10s long press, that won't work sadly)
Option 2: directly to source when building ROM by yourself:
- Go to your synced source tree root location and locate your device tree (in this example I'm using CM13-CAF)
cd ./devices/lge/hammerheadcaf/- Create a new local Git branch:
git checkout -b newbranchname- Modify the button layout file
nano ./gpio-keys.kl
Original:
key 115 VOLUME_UP
key 114 VOLUME_DOWN
New (volume down as power):
key 115 VOLUME_UP
key 114 POWER- Commit the change:
git commit -am "change button layout"- Build & enjoy volume down acting as a power button!
I've tried this, along with other methods such as installing apps with root access. nothing seems to be working. I'm on the pixel experience rom (android 9.0). any help would be appreciated.
nigelrodrigues95 said:
I've tried this, along with other methods such as installing apps with root access. nothing seems to be working. I'm on the pixel experience rom (android 9.0). any help would be appreciated.
Click to expand...
Click to collapse
Although my power button currently works, the case I have makes it really hard to use (and I prefer not to anyway):
"WaveUp" app from F-droid to wake the screen with the proximity sensor.
Double-tap the status bar in lineage-16 to shut off the screen.
For any kind of rebooting, I just open a terminal and type the commands.
With bxActions you can remap your Bixby and Volume buttons to any action or app you like!
Use the Bixby button launch your camera, silence the phone, take a screenshot or launch any app you like!
Skip tracks with the volume buttons even when the screen is off!
Or use your phone as a Flashlight and start it with a doubletap.
Remap as you like!
FEATURES:
Double and Long press support!
Remap the Bixby button to any action!
Remap the Volume buttons to any action!
Skip tracks with the volume buttons
Different actions when phone is locked or unlocked
High performance! No lags!
No annoying ads
ACTIONS:
Switch mute - sound profiles
Take a screenshot
Google Assistant
Fullscreen Immersive mode
Launch camera or any other app
Toggle flashlight
Switch to last app
Disable Bixby button
30+ actions in total
DOWNLOAD:
Forum download:
does it need root?
edit: nevermind
No root needed.
There are many apps that do the same. However, I guess even this one has the same problem as all others:
When the phone is in sleep mode the buttons won't work, hence, the flashlight won't shine...
As stated you need to run aod to use buttons at screen off.
I just love this app.
Will it work on other phone, besides Samsung also? Oneplus 6 in particular...It would be option I will miss the most if it wouldn't work:/ Ofcourse there is no bixby button, but can you remap volume buttons on other android devices also?
Hey,
What's up with the accessibility permissions?? Why would the app need to know what apps I am using and what I type??
n01z said:
Hey,
What's up with the accessibility permissions?? Why would the app need to know what apps I am using and what I type??
Click to expand...
Click to collapse
How else do you imagine the app can work without root?
With bxActions you can completely remap the Bixby button on S10 to any action or app you like!
Use the Bixby button to mute your phone, take a screenshot, turn on flashlight or launch any app you like!
Also works on lockscreen or when the screen is completely off!
You can also disable the Bixby button if you like.
Optionally you can remap the volume buttons and Skip tracks with the volume buttons even when the screen is off!
NEW: Per app remapping! Use the Bixby button to take pictures in camera apps, take screenshots in browser and start flashlight when the screen is off!
FEATURES:
No root needed!
Zero battery consumption!
Double and Long press support!
Remap the Bixby button on S10 to any action!
Remap the Volume buttons to any action!
Skip tracks with the volume buttons
Different actions when phone is locked or unlocked
High performance! No lags!
No annoying ads
ACTIONS:
Switch mute - sound profiles
Take a screenshot
Google Assistant
Fullscreen Immersive mode
Launch camera or any other app
Toggle flashlight
Switch to last app
Disable Bixby button
30+ actions in total
BETA RELEASE GROUP:
https://www.facebook.com/groups/986579694884619/
DOWNLOAD:
Forum download:
But ONLY single press works, unless paid version...
You have the choice to upgrade if you feel so and contribute to development.
Can't you remap bixby button now in factory software?
Sent from my Pixel 3 XL using Tapatalk
oneandroidnut said:
Can't you remap bixby button now in factory software?
Click to expand...
Click to collapse
Yes but very limited, with bxActions you can remap single, double, long press and more and also launch actions from lockscreen.
Like toggle flashlight when the screen is off with a double tap..
Had a great experience on it with my Note 9 so I immediately installed it on my SGS10+. It's working great.
Thanks for the feedback, working also fine here on S10
Is there no option to map bixby on long press? I am using Google Assistant on tap but I'd like to be able to use bixby on long press.
Bixby starts on long press by default, or what do you mean?
Jawomo said:
Yes but very limited, with bxActions you can remap single, double, long press and more and also launch actions from lockscreen.
Like toggle flashlight when the screen is off with a double tap..
Click to expand...
Click to collapse
Awesome i will install when i get my s10 plus thanks!
Screenshot its buddy. It will go back once before taking the screen
That can happen on some apps if you use standard remapping on single press. You could take screenshot on long press, or unlock remapping over a PC and that problem will be solved.
Is it also possible to set Google assistant to it? This is not possible in stock remapping settings
MisterEvo said:
Is it also possible to set Google assistant to it? This is not possible in stock remapping settings
Click to expand...
Click to collapse
Sure thats possible
Uploaded bxActions 5.23 beta #1
Enjoy!
Uploaded bxActions 5.23 beta #2
Enjoy!
Which bixby system apps can I safely remove without losing bxActions
Is there a way to have the physical button press launch one app- say the camera for example and then when on the home screen and you swipe to the bixby home panel- have that be something different such as Google Now?
Bought the paid version and did the PC unlock. This could be very useful for testing and executing scripts on the fly. Love the app!
ultimatdan said:
Is there a way to have the physical button press launch one app- say the camera for example and then when on the home screen and you swipe to the bixby home panel- have that be something different such as Google Now?
Click to expand...
Click to collapse
Homescreen cant be modified with bxActions. Id use another launcher for this.
Hello there!
Key Mapper is an open source key mapping application, which aims to remap any combination of your keys/buttons and provide unique features.
It is currently in beta and any feedback (positive or negative) would be greatly appreciated. Please post your thoughts in the thread or send me an email.
First things first...
Downloads!
XDA Labs: https://labs.xda-developers.com/store/app/io.github.sds100.keymapper
Google Play: https://play.google.com/store/apps/details?id=io.github.sds100.keymapper
F-Droid: https://f-droid.org/en/packages/io.github.sds100.keymapper/
GitHub: https://github.com/sds100/KeyMapper/releases
Source code
https://github.com/sds100/KeyMapper
Donations
Ko-Fi: https://ko-fi.com/sethschroeder
What can be remapped?
There is NO GUARANTEE any of these buttons will work and this app isn't designed to control games. Your device's OEM/vendor can prevent them from being remapped.
ONLY HARDWARE buttons can be remapped.
• Volume buttons.
• Navigation buttons.
• Bluetooth/wired keyboards and mice connected to your device.
• Buttons on other connected devices should also work but there is no guarantee.
You can combine multiple keys to form a "trigger" and have as many triggers as you want for each action. You can make a key map only work on a long press and to vibrate as well.
What can’t be remapped?
• Pixel Active Edge
• OnePlus Alert Slider
• Power button
• Bixby button
Your key maps don't work if the screen is OFF.
What can I remap my keys to do?
Some actions will only work on rooted devices and specific Android versions.
• Open an app
• Open an app shortcut. This feature is very useful since you can tell another app to do something Key Mapper can’t. E.g If your launcher has a shortcut to open the app drawer, you can select that shortcut in this app and make any button open the app drawer.
• Go back
• Go home
• Open recents
• Open menu
• Expand notification drawer
• Expand quick settings
• Collapse status bar
• Toggle/enable/disable WiFi
• Toggle/enable/disable Bluetooth
• Toggle/enable/disable mobile data (ROOT only)
• Toggle/enable/disable NFC (ROOT only)
• Toggle Play/pause media
• Pause/play media
• Next/previous track
• Fast forward/rewind
• Volume up/down
• Increase/decrease a specific volume stream
• Cycle through and change the ringer mode
• Show the volume dialog
• Mute/unmute/toggle mute (Android 6.0+)
• Toggle/enable/disable auto-rotate
• Force portrait/landscape mode
• Switch between portrait and landscape mode
• Toggle/enable/disable auto-brightness
• Increase/decrease brightness
• Toggle/enable/disable flashlight (Android 6.0+)
• Take a screenshot (Android 9.0+)
• Open the Google Assistant
• Open camera
• Consume key event (Do nothing)
• Lock the device
• Move the cursor to the end
• Toggle/show/hide the keyboard
• Show the keyboard picker (ROOT only for Android 8.1+)
The Key Mapper input method needs to be selected for these to work and you can’t use a soft keyboard at the same time:
• Input a specific keycode
• Input a key
• Insert a block of text
More will be added. If you have any ideas, leave a comment or email the developer.
What other things can the app do?
• Option to show a persistent notification which can pause/resume your keymaps. It can also open the accessibility settings on the device to enable/disable the service. Rooted devices can start/stop the accessibility service without going into settings and just tap the notification.
• Automatically change the input method to the Key Mapper one and/or show the input method picker when a chosen Bluetooth device is connected and switch back to the old one when it is disconnected.
• Option to show a toast message whenever an action is performed.
• Option to log events and send them to the developer so it is easier to debug issues with the app.
Planned features
• Double tap to perform an action
• Remap media (i.e volume, headset) buttons when the screen is off. Android only allows apps to detect media buttons when the screen is off.
• Action to broadcast an intent with extras.
• Multiple profiles which can be activated and deactivated automatically when a Bluetooth device is connected or when you open an app.
• Integrate the AOSP keyboard into the Key Mapper input method so a soft keyboard can be used at the same time.
CHANGELOG
https://github.com/sds100/KeyMapper/blob/master/CHANGELOG.md
is it possible to remap the play / pause button of the bluetooth headset to start Assistant?where is the download?
dario2106 said:
is it possible to remap the play / pause button of the bluetooth headset to start Assistant?where is the download?
Click to expand...
Click to collapse
I haven't tried using buttons on a Bluetooth headset but I have tried using the buttons on a wired headset and it does work. Most buttons should work as long as they don't have a proprietary implementation in the Android skin you're using. E.g Bixby, Pixel Active Edge. XDA doesn't allow new members to put links in posts until they have posted 10 times for security reasons. Once I can, I will definitely put links in the description.
dario2106 said:
is it possible to remap the play / pause button of the bluetooth headset to start Assistant?where is the download?
Click to expand...
Click to collapse
https://forum.xda-developers.com/android/apps-games/app-keyboard-button-mapper-t3914005
Here is the link to the app on XDA labs
sds100 said:
I haven't tried using buttons on a Bluetooth headset but I have tried using the buttons on a wired headset and it does work. Most buttons should work as long as they don't have a proprietary implementation in the Android skin you're using. E.g Bixby, Pixel Active Edge. XDA doesn't allow new members to put links in posts until they have posted 10 times for security reasons. Once I can, I will definitely put links in the description.
Click to expand...
Click to collapse
Update: I can add links on mobile completely fine. :laugh:
Nice! Will map a button to a broadcast intent be implemented?
Droidphilev said:
Nice! Will map a button to a broadcast intent be implemented?
Click to expand...
Click to collapse
Yeah! Great idea. I've added it to the "issues" on the GitHub repo. I have exams coming up so it will probably be a couple months.
It would be great if you could add the possibility to force close the app in use! Thanks and keep up the work!
articuz said:
It would be great if you could add the possibility to force close the app in use! Thanks and keep up the work!
Click to expand...
Click to collapse
Thanks! That's now been added to the planned features. Would you say the app is stable enough to come out of beta?
New version!
1.1.0 Beta 1
Added
Setting to change the long-press delay.
Persistent notification which can pause/resume your remaps. It can also open the accessibility settings on the device to enable/disable the service. Rooted devices can start/stop the accessibility service without going into settings and just tap the notification.
Use Material Design 2 for homescreen.
Bugs Fixed
Persistent notifications wouldn't show on boot
The app would crash if using the "open google assistant" action if the Google app wasn't installed.
Prevent the accessibility service from stopping if there is a fatal exception and show a toast when it happens.
New version!
1.1.0 Beta 2
Won't immediately crash on KitKat anymore!
Bug Fixes
Persistent IME notification wouldn't automatically show when it is enabled.
App would crash if it couldn't find the device's accessibility settings page.
Feature request:
App currently conflicts if the same button is mapped twice
Example
Short press mute = play/pause
Long press mute= open notification drawer
Result:
Long press mute results in both actions being performed.
Expected result:
Long press mute key should not activate the short press mapping
Fixes:
1. Change short press so that it ONLY activates if the button is RELEASED before the long press kicks in (should be around 500ms)
(Long press delay meaning how long the key must be held before performing the function)
Long press actions should happen if the button is NOT released within that time.
2. Multi-triggers should have a flag for "in sequence" that makes them work in sequence instead simultaneously. In sequence enabled should also Grey out / disable the long press flag on the current trigger.
And you should be able to set the same trigger twice.
Example: vol up, vol up = quick settings
To do this, you'd have to make it so that short presses are only activated if the button is released before the long press delay AND there are no other key presses within 300ms of releasing it
Great app.
Thanks
Nah.uhh said:
Feature request:
App currently conflicts if the same button is mapped twice
Example
Short press mute = play/pause
Long press mute= open notification drawer
Result:
Long press mute results in both actions being performed.
Expected result:
Long press mute key should not activate the short press mapping
Fixes:
1. Change short press so that it ONLY activates if the button is RELEASED before the long press kicks in (should be around 500ms)
(Long press delay meaning how long the key must be held before performing the function)
Long press actions should happen if the button is NOT released within that time.
2. Multi-triggers should have a flag for "in sequence" that makes them work in sequence instead simultaneously. In sequence enabled should also Grey out / disable the long press flag on the current trigger.
And you should be able to set the same trigger twice.
Example: vol up, vol up = quick settings
To do this, you'd have to make it so that short presses are only activated if the button is released before the long press delay AND there are no other key presses within 300ms of releasing it
Great app.
Thanks
Click to expand...
Click to collapse
Thanks for the feedback! I'll try to implement/fix these problems. They should be relatively easy to fix (hopefully). ?
New version!
1.1.0 Beta 3
Reduced the repeat delay to 5ms
Force expand the menu on the homescreen
Made the cards on the homescreen slightly more compact
Added
Flag to vibrate and an option to force vibrate for all actions
Action which just consumes the keyevent and does nothing
Action to lock the device (ROOT only for now) and an option to lock the device securely (without root).
Bug fixes
The bottom app bar on the homescreen would overlap the list items
The app would potentially crash when trying to perform a flashlight action whilst the camera is in use in another app.
Short press actions with the same trigger as a long press action would be performed with the long press action
A keymap would still have the "Show volume dialog" flag if the action is changed to a non volume related action
The app would crash if trying to show the menu on the homescreen if it is already showing.
The accessibility service status on the homescreen wouldn't change when the service is started/stopped.
Hi,
it is possible to make it work with the Mi Box S controller? Especially with the Netflix and Live buttons, I tried the back button and it works, but not those two "special" buttons. I will be very grateful
Sent from my Lenovo TB-8704F using XDA Labs
Ja_som said:
Hi,
it is possible to make it work with the Mi Box S controller? Especially with the Netflix and Live buttons, I tried the back button and it works, but not those two "special" buttons. I will be very grateful
Sent from my Lenovo TB-8704F using XDA Labs
Click to expand...
Click to collapse
Do the other buttons also work? I'm guessing the Netflix and Live buttons don't send a standard KeyEvent which apps installed by the user can see. Xiaomi probably have some agreement with Netfix to have that button there to drive more people to Netflix which is why they don't want us changing it.
sds100 said:
Do the other buttons also work? I'm guessing the Netflix and Live buttons don't send a standard KeyEvent which apps installed by the user can see. Xiaomi probably have some agreement with Netfix to have that button there to drive more people to Netflix which is why they don't want us changing it.
Click to expand...
Click to collapse
Most buttons work, home, back, left, right, up and down are recognized propperly. OK and 'all apps' (not sure if it the right name of that button) have no name in triggers but they work. If I try to record trigger with vol. up or down, it is not recorded, it just changes the volume. The mic. button is recorded with no name, but when I try to use it to trigger the action it does nothing.
Sent from my Lenovo TB-8704F using XDA Labs
Ja_som said:
Most buttons work, home, back, left, right, up and down are recognized propperly. OK and 'all apps' (not sure if it the right name of that button) have no name in triggers but they work. If I try to record trigger with vol. up or down, it is not recorded, it just changes the volume. The mic. button is recorded with no name, but when I try to use it to trigger the action it does nothing.
Sent from my Lenovo TB-8704F using XDA Labs
Click to expand...
Click to collapse
Hmmm... I'll firstly add names to more buttons so they aren't blank. I'm sorry but I don't really know what to do. This behaviour sounds like the accessibility service is broken somehow and needs disabling and then enabling. This has happened to me before during development. But it is likely those buttons won't work. It's quite hit and miss when it comes to non-standard buttons/controllers unfortunately.
No success with Bixby button on S10
When I first got the magic UI 2.1 update I looked everywhere to find out how to enable this feature as it was a feature I was really looking for. But couldn't find it until today. It's really easy to enable.
Go to settings -> search and click on motion control -> click on hivoice -> enable it.
Here's how
Open Settings, go to Smart assistance > Shortcuts & gestures > Google Assistant, and enable Wake with Power button. Note: You can still power off your phone by pressing and holding the Power button for 3 seconds.