[MIUI 9 on Mi 5]Home button: long press action - tap or push? - Xiaomi Mi 5 Themes, Apps, and Mods

Hi fellow Mi5 users,
as most of you know, or at least ones who are (still) using MIUI, there is an option called "Tap Home button to go back to home screen", which if toggled turns your Home button into capacitive one, so you don't have to physically push the button in order to go to home screen, but only to tap fingerprint sensor.
The problem is, this applies ONLY to short press action and going to home screen. But what about long press action (or double press action, if it cared enought to exist as a feature in MIUI)? If I set "Launch Google Assistant", or "Turn off the screen" to long press action, I still need to physically push and hold the button, instead of just tapping and holding, which is just inconsistent and throws me off. Why would I want to push the button for long action if I'm tapping it for short one?
Lineage OS handles this well and as it always should've been in MIUI: by only choosing whether I want to use Home button as capacitive or not, but as a whole, not only for going to Home screen. This is both more sensible and semantically cleaner. God knows how many times I have entered the Settings menu just to copy this option's full sentence when I'm ranting about it. I mean what makes more sense: "Home button style: Physical / Capacitive" (or "Capacitive home button: On / Off"), which is both cleaner and makes more sense (both functional and semantical), or "Tap Home button to go back to home screen: On / Off", which is both unnecessarily long and also doesn't take into consideration all use cases (such as long press and double press).
My question is: Is there a way to modify this inside the ROM itself by making some modifications to it, or is there some file we can just simply change from 0 to 1, similar to enable_wakeup file and always awake fingerprint sensor? Or is there some flashable zip or Magisk module which solves this?
Thanks in advance

Related

[APP] AE Button Plus to reassign EVERY physical button

Hello everyone, I'm sure many people will be interested to know that AE Button Plus is working perfectly with LEO and support english, french (which I use), spanish, deutsch and ten other languages. BTW, this is my first post, so every comments are welcome
The HD2 may be a touch device, it still has 7 buttons and I use them for variaty of functions, including switching on/off BLUETOOTH, WIFI or TORCH. You can even assign any button to run an application. The program is VERY stable and VERY convenient.
This exceptional app has the ability to reassign function to (almost) every physical button of your device, including the volume button. Moreover, it has the ability to assign different functions whether you press the button ONCE, TWICE or LONG PRESS. It very simple to use and work wonderfully with my HTC HD2 (as wall as many other Windows Mobile Device). I've used it for more than a week and I can't report any bug, even though I installed many other apps, tweak and so on.
I'm using the evaluation version (you have pay 7.99$) by the fact that it shows a splash screen when device starts up. But you can believe I will pay the damn Russian guy who created the app, many even donate more!!!
I wanted to share my experience with using this app, since it's not very known in this (great) HD2 forum. Also, I want to show you the way I've been remapping the buttons, to show how useful it can get. Feel free to comment!!! Once you install the program, softreset and assign the AEBPlus to a shortcut and you're ready to rock! By the way, the icon is quite ugly, but that's just a minor issue .
THIS IS THE WAY I REMAPPED HD2 BUTTONS (in brackets, the way AEPlus "calls" the button)
Volume up.
Single press: volume up
Long press Backlight up
Volume down.
Single press: volume down
Long press Backlight down
Hang up (green phone button)
Single press: switch vibration mode on/off (and shut down the volume)
Double press: switch torch on/off (run application "TorchButton v2.3")
Home button (button #00ED), added manually
Single press: unchanged, impossible to remap ??
Double press: switch bluetooth on/off (impossible to make it different than the "Home button"...)
Long press: impossible to remap ??
Windows button (windows key)
Single press: ok/close (close the window, but not the program still runs)
Double press: windows file explorer (you can choose to run another explorer, for example Total Commander)
Long press: close active application ("really" close the application)
Return button (also button #00ED, added manually, see ISSUE below)
Single press: unchanged (actually I chose no action, but the original function remains)
Double press: switch bluetooth on/off
Long press: switch wifi on/off
Power button (red phone button)
Single press: unchanged (shuts down backlight)
Double press: unchanged
Long press: unchanged (actually, I use it with "Touch X LEO Power 12 icons actionscreen v1.1")
KNOWN ISSUES AND SOLUTIONS
- Absolutely no bug !
- Bluetooth. The function included with this program doesn't work (apparently because HD2 uses Widcomm bluetooth, unlike its predecessors). To solve this, I simply assign the desired button with the application "ToggleBTh.exe" (credit to Dextrosan http://forum.xda-developers.com/showthread.php?t=587493). I copied the file to the folder "Program Files" and created a shortcut in the "windows/start menu/programs" to be able to make it appear in the program list.
- Backlight level. To adjust the backlight, you have to access the settings of the program. Click options -> backlight settings (scroll down !). There you can adjust the darkest level you wish (0 = minimum backlight) and the brightest level (10 = 100% = maximum backlight , less if you want to save battery life) and backlight step (2 = 20% is fine with me). Beware, when you assign a button with function backlight level, you have to choose in the subsequent menu if you want "backlight down", "backlight up" or even "backlight level" 0, 2 (= 20%), 4 (= 40%) and so on.
- Manually add Home button. Home button is not listed in the program, so you have to add it manually. Choose "File -> Add button" and follow instructions. Actually, there's a trick... If you press the Home button, it will close the window and go back to your home page. You'll have to go back in the program using the task manager.
- Home and Return button cannot be remapped individual. For some reason, when you manually add Home button, it's called #00ED and when you assign actions, these actions also work with the Return button... Actually, these actions even work BETTER on Return button than Home button. Single press and Long press actions will not work with Home button, but they work with Return button. Weird, huh? Even if you manually add Home button (then called #405C) and assign actions for the button, it won't work at all, and the Return will still execute actions listed with the button #00ED. All in all, it's a minor issue. Just remember that I can't remap single or long press for teh Home Button.
EDIT: Dec, 20 I also use the function "control volume directly" so that the volume buttons control SYSTEM volume directly and not the ring volume. Also, this nice function disable the ugly pop-up volume window that appears and have the annoying tendency to change ring volume first !!! This function is located in the menu "Options -> Other options -> Control volume directly". You can check or uncheck it.
That all folks, hope this little work will be useful for many.
Much help is appreciated to try to solve the Home/Return button issue.
SIGNATURE
- Device: HTC HD2 codemane "Leo"
- Rom: 1.48.406.1 (7 1294) FRE
- Manila: 2.5.192 116 19.0
- Radio: 2.05.51.05_2
INSTALLED SOFTWARES & TWEAKS
- Net 3.7 Compact Framework
- AE Button Plus 2.6.6.1
- BsB Tweaks v1.5
- TorchButton v2.3 (use your flashlight as torch, SOS etc...)
- Total Commander 2.51
- WMLongLife-0.60.205 (fine connexion manager)
- Touch X LEO Power 12 icons actionscreen v1.1
is their a way to config the take picture on screen button a hardware button
DAMIEN123_666 said:
is their a way to config the take picture on screen button a hardware button
Click to expand...
Click to collapse
Of course, as long as you find an exe which does that automatically whenever invoked. You can do pretty much anything as long as you can associate it with a specific utility. I use the program with my ipaq 210 and am very pleased with it, with a resistive screen it's even more useful.
Now, if only I wasn't dead-dumb enough to let slip from my hands this leo for 430EU on ebay... who knows how long will I have to wait to find another one at that price.
theemed said:
Of course, as long as you find an exe which does that automatically whenever invoked. You can do pretty much anything as long as you can associate it with a specific utility. I use the program with my ipaq 210 and am very pleased with it, with a resistive screen it's even more useful.
Now, if only I wasn't dead-dumb enough to let slip from my hands this leo for 430EU on ebay... who knows how long will I have to wait to find another one at that price.
Click to expand...
Click to collapse
ok ive can boot the camera app but cant take picture, any ideas
I'm using this program also for a while.
I'm used to use the power/hangup red button to go back to the today screen but can't find a way to get that working.
It takes me a while to figure out the working posibilities but it's useful anyway.
Great post! Thanks for sharing with us.
Disable the volume window !
I also use the function "control volume directly" so that the volume buttons control SYSTEM volume directly and not the ring volume. Also, this nice function disable the ugly pop-up volume window that appears and have the annoying tendency to change ring volume first !!! This function is located in the menu "Options -> Other options -> Control volume directly". You can check or uncheck it.
Thx for all.
It works very well
DAMIEN123_666 said:
ok ive can boot the camera app but cant take picture, any ideas
Click to expand...
Click to collapse
uhm, sorry no idea you still need to associate that hardware buttom combo through AE with an executable file which takes the shot, it's up to you to find a exe trigger for that
rzasharp said:
Hello everyone, I'm sure many people will be interested to know that AE Button Plus is working perfectly with LEO and support english, french (which I use), spanish, deutsch and ten other languages. BTW, this is my first post, so every comments are welcome
...
Click to expand...
Click to collapse
can you share you aebutton config file? i don't install it, i just copy it from my old device (eten) but there not enough default buttons
rzasharp said:
Hello everyone, I'm sure many people will be interested to know that AE Button Plus is working perfectly with LEO and support english, french (which I use), spanish, deutsch and ten other languages. BTW, this is my first post, so every comments are welcome
...
Click to expand...
Click to collapse
your first post is excellent. this realy helped me.
i've almost forgot about aebutton on my used blackstone. hd has no true hard keys. now i have a leo and aebutton came back with me. i can confirm that aebutton works perfectly on my leo. even more than i need.
rzasharp said:
...
- Bluetooth. The function included with this program doesn't work (apparently because HD2 uses Widcomm bluetooth, unlike its predecessors). To solve this, I simply assign the desired button with the application "ToggleBTh.exe" (credit to Dextrosan http://forum.xda-developers.com/showthread.php?t=587493). I copied the file to the folder "Program Files" and created a shortcut in the "windows/start menu/programs" to be able to make it appear in the program list.
...
Click to expand...
Click to collapse
if you already have Touch X LEO Power 12 icons actionscreen then no need for you to use togglebth. touch x leo power 12 icons have wifi and bluetooth toggles working well on leo.
rzasharp said:
- Home and Return button cannot be remapped individual. For some reason, when you manually add Home button, it's called #00ED and when you assign actions, these actions also work with the Return button... Actually, these actions even work BETTER on Return button than Home button. Single press and Long press actions will not work with Home button, but they work with Return button. Weird, huh? Even if you manually add Home button (then called #405C) and assign actions for the button, it won't work at all, and the Return will still execute actions listed with the button #00ED. All in all, it's a minor issue. Just remember that I can't remap single or long press for teh Home Button.
...
Much help is appreciated to try to solve the Home/Return button issue.[/B]
...
Click to expand...
Click to collapse
ok. so we have something special on our leos.
- htc sense.
- green button - send key.
- red button - end key.
- home button. this key is stucked with htc sense.
- back button.
1. green button.
i can do any thing with this key. but i leave long press unchanged beacause my vangrieg_incall_lock_ita had added long_send.lnk that link to phone on my \windows and i don't want to interfere into it. now long press on send key = phone. this is a vital function, right? so let it be.
2. red button.
i can't do any thing, but "Touch X LEO Power 12 icons actionscreen" can.
so for me end key has single press as normal and long press by "Touch X LEO Power 12 icons actionscreen". that is more than enough. power off is a vital function also.
3. home button.
as said, this key is stucked with htc sense. so you can not change single press anyway. you can do somethings with double, triple and even long press but firstly it takes you to home screen then do your commands. for long press see next item.
4. back button.
this is exactly "ok key" on aebutton. you even don't need to add it manually. you can do everything with this key except long press. long press works only when you are on a certain program interface. this does not work when you are on htc sence interface. to get this long press work on anything, anywhere and anytime you have to assign the same action you want to do to HOME KEY LONG PRESS. and voilà !!! this works 4u.
Thanks for your appreciation of my thread.
Still, If you are really "hardcore hardware fan" you can use AEBPlus to assign even the double tap and triple tap of the keys
To oainot. About the bluetooth toggle, If find it quicker and simpler, to double tap on one button, turn on my headphones and get going out in the snow. I use it literally everytime If get out of my apartment. Just think: would you prefer to switch the light off your apartment with a long-click (+ click in a menu) or with a simple double-click? Just a matter of taste I guess. The best is to have to choice!
To satoo. Here's my configuration file. I should tell you that my system is in french. I managed to put "english" as language in the program, but you can still get some french word (calculatrice = calculator i think; Explorateur de fichiers = file explorer; ). See attached file.
Merry Christmas!
oainot said:
if you already have Touch X LEO Power 12 icons actionscreen then no need for you to use togglebth. touch x leo power 12 icons have wifi and bluetooth toggles working well on leo.
Click to expand...
Click to collapse
I am in entire agreement with you.
one key like hold red key ,we can switcher wifi on/off, bt on/off.
So,in an identical manner,
I set one key (ex:hold vol up) to active phoneweaver ,with which i set some usefull profiles :
mute mode: switch vibration mode
day mode: loudly volume
night mode: max or min backlight level as you like
.......
each mode we can define (backlight level,vol lvl,differents rings,wifi on/off,bt on off)
here is phoneweaver 2.0 with XXXX,sorry for my english
oainot said:
your first post is excellent. this realy helped me.
Click to expand...
Click to collapse
same from me
oainot said:
2. red button.
i can't do any thing, but "Touch X LEO Power 12 icons actionscreen" can.
so for me end key has single press as normal and long press by "Touch X LEO Power 12 icons actionscreen". that is more than enough. power off is a vital function also.
Click to expand...
Click to collapse
i would like to switch the action of the red button the other way round.
i would like long press red button to lock the phone and turn off backlight and single press red button to launch the Touch X Power 12 icons actionscreen. I cant seem to achieve this does anyone have any ideas?
rzasharp said:
Thanks for your appreciation of my thread.
Still, If you are really "hardcore hardware fan" you can use AEBPlus to assign even the double tap and triple tap of the keys
To oainot. About the bluetooth toggle, If find it quicker and simpler, to double tap on one button, turn on my headphones and get going out in the snow. I use it literally everytime If get out of my apartment. Just think: would you prefer to switch the light off your apartment with a long-click (+ click in a menu) or with a simple double-click? Just a matter of taste I guess. The best is to have to choice!
...
Merry Christmas!
Click to expand...
Click to collapse
ok. i've get it. you are absolutely right.
Audio Oblivion said:
same from me
i would like to switch the action of the red button the other way round.
i would like long press red button to lock the phone and turn off backlight and single press red button to launch the Touch X Power 12 icons actionscreen. I cant seem to achieve this does anyone have any ideas?
Click to expand...
Click to collapse
i'm afraid it is not possible.
single press of red key may controled by basic input output system, not the operating system (windows mobile), not the htc sense or not any other resident program.
may be this should be that for power on the phone by single press while operating system is still not running.
may be someone could hack the key someway. i dunno. if aebutton had a button assume called "power key", it could be possible to try.
Assign Softkeys Functions
I changed the setting to reassign functions of softkeys. AE Button shows the setting properly, but it does not work.
any suggestion?
thanks
msrox said:
I changed the setting to reassign functions of softkeys. AE Button shows the setting properly, but it does not work.
any suggestion?
thanks
Click to expand...
Click to collapse
yeah.
i forgot softkeys is not controled by aebutton.
I want to remap left softkey (single click) to HTC Message.
But when I do it the left softkey is still "phone" and the caption is not changed!
msrox said:
I want to remap left softkey (single click) to HTC Message.
But when I do it the left softkey is still "phone" and the caption is not changed!
Click to expand...
Click to collapse
Yes, I noticed that the left softkey cannot be remapped by AEB. You'll have to use the newer BsBTweak which works just fine with the left softkey. Find it here
msrox said:
I want to remap left softkey (single click) to HTC Message.
But when I do it the left softkey is still "phone" and the caption is not changed!
Click to expand...
Click to collapse
this feature is for devices with physical soft keys. Leo doesn't have them. search the forums for softkey remapper (Today and/or Manila).

[Q] Change Functions Of Home Button?

I have a 9505G rooted, and I'd like to change the funcitons of the home button. Specificaly, there are two changes I'd like to make.
1. Disable the home button while the phone is locked. While the phone is locked and asleep, I can use either the power button or the home button to wake the phone. I want to disable the home button here, so that only the power button can wake the phone. I find that while my phone is in my pocket, it often wakes up "on its own", presumably because I'm accidnetally pressing the home button against my hip, chair, whatever...
2. Launch the recently-used apps list by holding the home button. On previous devices I've used (such as the Galaxy Nexus), holding down the home button would bring up the list of recently-used apps. With the S4GE, the long-press brings up Google Now, and a double-click is required for the recently-used apps list. I'd like to change this behavior so that a long-press brings up the recent app list, and double-click does nothing.
Can this be done, and if so, how? Thanks for your help.

Home button hold duration

I've seen few threads about this here but none of them had a conclusive answer. Is there a way to change the home button hold duration, holding it for 2 seconds to open the recent apps is really annoying. I've seen some ROMs have this as a setting, so there's probably a way to do it on stock Android, or not?
bump!! There must be a way somehow
Don't know about home button delay setting, but I prefer Xposed Addition. So you can tap and hold menu key for recent apps compared using physical home button

[Q] Switch hold home button and menu button functions

Hi
I bought galaxy s4 last month but I am not happy with functionality of the home and sensor buttons. In my opinion switch application (the list of all previously opened apps) is very important button and I am not happy to wait whole second holding down home button to get simple alt+tab feature. At all this big hardware button does not fit in the whole picture and its the biggest mistake of this phone. Now I cannot remove it but at least I want to use it as much as little I can. So I want to switch menu button and "hold home" buttons. Its far more sensible to make separate sensor button for switching app than use it for menu functionality. I didn't root my phone and I don't want to root it but if its needed to get rid of this stupidness I will make it. So is there any way to switch menu button and "hold home" button?
thx

Double tap action on HOME button = lag?

Anyone has programmed a "Double tap action" on the HOME button ?
Don't you notice some "lag" when touching only one time the HOME button?
I know it has to wait to seek if a second tap is coming but I think it waits too much time!
Disabling "Double tap action" on the HOME button makes HOME button very fast as expected!
I also facing this issue
Yeah, I noticed this issue, too.
I've disabled the double tap action because of that.
we decide didn't use it until this issue has been solved
It's because of the method double tap works. Everytime you press the home button, phone is waiting on second response. This same thing has happened on cyanogemod/lineage for as long as I can remember across all my devices...
MrWilsonxD said:
It's because of the method double tap works. Everytime you press the home button, phone is waiting on second response. This same thing has happened on cyanogemod/lineage for as long as I can remember across all my devices...
Click to expand...
Click to collapse
On my previous 3T I did not noticed it!
jvidia said:
On my previous 3T I did not noticed it!
Click to expand...
Click to collapse
I'm willing to bet it was there lol.
Can't do the test ... sold it
3t user here..
I can confirm exact the same behaviour if you set an action for double tap....home button is not so responsive on single tap .
That delay has to be there, it's by design.
If you assign a double tap action to any button, after the first tap, there's a delay that results from the system waiting for the second tap, if this second tap is recognized, it performs the assigned action, if not, it performs the regular single tap action.
It there wasn't that delay in there, every single double tap action would be immediately preceded by the single tap action, which would be very very much annoying.
For example, home button - single tap is return to home. If we assigned a double tap to, let's say, turn on the flashlight, without the delay, the process would go like this:
- You're inside an app and want to turn on the flashlight,
- Double tap the home button
- Because there's no delay, you would immediately be taken to the home screen (single tap action) and only then the flashlight would turn on (double tap action).
That's NOT how it should behave at all.
So, in conclusion, you either have to live with a short delay when assigning double tap actions to buttons or disable the double tap action and have no delay.
Note: this delay is present not only for double tap actions on the HOME button but also for the RECENTS and BACK button.
Note 2: this delay is present in EVERY single ROM that has this ability to assign double tap actions to physical buttons (not just OOS).
Personally, I just turn off the double tap action and use longpress instead, there's no delay that way.
Double Tap Options all off!
Case closed.
But but why there is no delay when you press the multitasking button? . That has also a default double tap for quick switch (alt tab) to previous app!
.. but as soon as you customize the double tap of this button you get a delay!
It must have something to do with the finger print scanner function on the home button too.
But the delay is present on all 3 capacitive buttons if you put a custom double tap action.. so i don't think it has anything to do with fingerprint sensor, more of a deliberately action of an increased timeout.
Well.. hope they will decrease the timeout or at least make it customizable
Do you notice it on the back button? I tested and it seems no different.
Yes i notice it on back button too. Just retested.
No double tap - instant. Custum double tap - delay
Yup! I also confirm know.
I was using double tap on home / back to turn off the screen.
Just changed to long press.
No lag now and same objective done!
isnt there a prob setting or so to adjust the delay ?

Categories

Resources