Change behavior of double-press power button? - OnePlus Nord N10 5G Questions & Answers

I know there's a setting, but there are only two options offered: Nothing or Open Camera
I'd love to be able to toggle the flashlight with the power button. Anybody know where the system file is that controls that? Would it be in build.prop?

Now, I know what I'm going to say it's not the solution that you're looking for BUT, I remember that OnePlus X had a default behavior for when you draw a V (I assume it reassembles a light coming our from a flashlight), so I used the same on OP N10. This option is available at Settings > Buttons & Gestures > Quick Gestures > Draw V

You can change this in framework-res.apk and its affiliates, change the integer text and remove impeding files. Cheers

Related

Menu button hack for multitasking

Hello,
I know this question was asked elsewhere, but I did not find any solution to this.
Is it possible to make the capacitive Menu button function like a multitasking button in Galaxy S2?
If there is one thing I hate, it is having to long press Home to get to the multitasking menu.
I would really love to replace the menu key to do multitasking.
This is not unlike what HTC did with One X where did the opposite and gave an option to make the multitasking key a menu key.
I think by now, most of the applications in play store do have menu option within the app interface following android guidelines.
So, lack of a dedicated menu button should not be an issue.
If anyone knows any custom ROM or any other hack to achieve this, please do let me know.
Cheers.
CM10 -> Settings -> System -> Hardware keys -> Menu key or Menu key (long press) -> Recent apps switcher.
If you select Menu key (short press), I guess you'll ahve to enable the Show action overflow below to have the 3 dots as menu key in apps.
Maybe CM9 does have this too, and maybe AOKP (although I never saw this on ICS AOKP or JB AOKP).

[Q] On Screen and Capacitive Button Tweaks

I have been tweaking my phone (not on TW) for a while to get it the way I wanted it. I was successfully able to modify files so I have on-screen navigation and disable the back and menu buttons. There's two last things that I want to get fixed and am wondering if I can change any config files for these tweaks:
- Turning off the capacitive button lights. They still light up despite disabling the buttons. I don't see an option to change that in Settings.
- Haptic feedback on the on-screen buttons. I tried Settings > Sound > Vibrate on touch, but only the task switcher vibrates (not home nor back)

[Xposed]XButton – remap phone keys – built for Gnote – works on Gs4

This is not my creation. I am just reporting that an Xposed module developed for Galaxy Note works on my Galaxy S4
Here is the module
http://forum.xda-developers.com/showthread.php?t=2490029:
I installed it on my S4 and successfully remapped the following key-strokes to lauch specific apps:
long-press home
long-press menu
long-press back
double-tap menu (a small glitch – it launches the custom app but also pulls up the menu of whatever or launcher is open at the time I double tap)
I realize there are loads of gesture launchers to get to things quickly, but some of these key remappings could be valuable to me also. In particular sometimes I find myself outside in bright sunlight with auto brightness disabled and can’t even see my phone to get brightness adjusted. Now I have mapped long-press menu to launch a Tasker-created app that turns brightness to max (and turns off autobrightness so I am guaranteed the phone will stay on max brightness after I press this button).
I also have Wanam installed. It didn't seem to work in changing button behavior. It does demand a setting for long-press home. I wondered if there might be a conflict. In Wanam I set long-press home to do “nothing” and in Xbutton I set a custom app… it followed the Xbutton instructions just fine.
There are some other features available also, but I haven’t tried them.
Sometimes the Xbutton App itself crashes when I am adjusting the settings of it. But it hasn’t caused any problems once it is set up.
Some people complained in the linked thread that after defining a button behavior (in particular long-press home), they couldn't set it back to default behavior. I think I saw that with long-press also. But I actually don't use the built-in behavior of long-press home myself (I have created a swype-pad action to pull up recent apps)
Thanks to the author of linked thread ( xperiacle ) who extracted this functional from Gravity Box and adapted it to work on Galaxy Note (and also GS4)

[Q] Swap Home/Back buttons

Anyone know if it is possible to swap the mapping of the home/back buttons? I use the back button more often than the home button and find the location of the home button easier to reach in general. I realize I can't change the actual hardware icon ... looking for a software fix.
seattlecard said:
Anyone know if it is possible to swap the mapping of the home/back buttons? I use the back button more often than the home button and find the location of the home button easier to reach in general. I realize I can't change the actual hardware icon ... looking for a software fix.
Click to expand...
Click to collapse
You can try the "Xposed Additions" module that remaps hardware keys but not positive if it will work, never used it on this phone.
seattlecard said:
Anyone know if it is possible to swap the mapping of the home/back buttons? I use the back button more often than the home button and find the location of the home button easier to reach in general. I realize I can't change the actual hardware icon ... looking for a software fix.
Click to expand...
Click to collapse
There are some options that can help with this in the ViperMAX ROM:
1. In tweaks you can set custom mappings for short press, double press, long press and swipe action for the home hardware key. The same can be done for the back key (except for the swipe action, if I'm not mistaken).
2. You can enable PIE, which basically allows you to slide your finger from the side of the screen to pop-up customizable software buttons on the screen. I use this for the same reason you describe (to make my most common actions easily accessible with my right thumb). In-fact I use PIE to pop-up software buttons to do things like "back", "pull down notifications" and "home"...
If you take advantage of those tweaks, it is easily enough to suite your needs and more.
seattlecard said:
Anyone know if it is possible to swap the mapping of the home/back buttons? I use the back button more often than the home button and find the location of the home button easier to reach in general. I realize I can't change the actual hardware icon ... looking for a software fix.
Click to expand...
Click to collapse
Yes, it possible software wise. I'll pm how to. File explorer needed with root access.
It can be done with Sence or Aosp, stock or custom ROMs. I edit this ever device I have to suit my needs. I like running full screen, no status bar nor navigation bar. One reason I like my Max. Full 5.9 viewing area.
jerrycycle said:
Yes, it possible software wise. I'll pm how to. File explorer needed with root access.
It can be done with Sence or Aosp, stock or custom ROMs. I edit this ever device I have to suit my needs. I like running full screen, no status bar nor navigation bar. One reason I like my Max. Full 5.9 viewing area.
Click to expand...
Click to collapse
Could you PM me with your solution? Thanks.

Question OnePlus gestures on Pixel

Hi, i have already tried LSPosed and AOSP Mods but i didn't find the same gestures of oneplus. Expecially the possibility to lock device by double tapping on a blank portion of the screen or "write" some letters when the screen is off ( for example: V to turn on flashlight or <, > to control audio, etc). Is there another module i can try to make those things?
Hey there, long time OP user here too, missing the gestures and alert-slider.
Im using button mapper app for music control with volume buttons and double click up volume button for flashlight which can replace the OP features. Pixel also has double tap back for camera in settings.

Categories

Resources