How to change buttons action manually? - Xiaomi Mi 5 Questions & Answers

I have found the perfect ROM with Nougat for Xiaomi Mi 5, it was in an online folder with many custom ROMs to be tried but no one talks about them, it is amazing, nice customisation, very good battery life and pleasant performance so I am testing many kernel for it to find the best one. The best ROM for Mi 5 should be based on Nougat because Oreo needs optimization for all what I have seen, and believe me I tested many ROMs . Actually with this ROM and kernel I get 170000 in Antutu.
But something needs to be changed like buttons functions.
A weird wrong thing is that if I press back button 4 times fast, it will open the drawer with installed apps, also it doesn't let me set the long press for central button but only double or long press for fingerprint. Also I have chosen that you can't use fingerprint to wake up screen, but if I put to sleep the phone, after one second fingerprint is still active so you can unlock the phone pressing it, instead after the phone is locked and sleep you should not be able to use fingerprint, but only physical buttons to turn on the screen.
So is there a way to manually change the actions for this buttons, editing text in system folders or other like that?

Related

[Q]Lock screen not working |rom miui

have Rom version of MIUI his last best
I press the lock key on the screen turns off and then I press the home key is returning to the menu instead of locking screen display
What should I do?
I have the kernel of GITCH
up...............
everything's working fine here with me. no probs at all with the lockscreen.
I actually left MIUI to give CM7 a go, but I'm back, and I found the same problem. The latest MIUI is pretty awesome by the way. Anywho, I played around and the Pattern lock seems to work, but the PIN and Password locks do not load. As sabag123 said you drag the clock bar and it goes straight back into the phone. I'm on MCGv6.13.1.

Is there a way to wake the device using the volume buttons?

I'm thinking of buying this device when it will become available but I have one think that bothers me. The position of the power button is not well enough and makes it annoying when one needs to wake the device. Since htc was "kind" enough to void the warranty on rooting the device, is there a way to wake the device using the volume keys without rooting?
I also found an app called "no lock" on the play store. Does this work with the one? Thanks in advance.
I'm not even sure what that app does exactly. Removes the lock screen?
It also says it doesn't work on certain phones so hopefully someone who owns the HTC One will test it for you.
there is an app i used to use for my sensation but drained battery widget locker i think
Use the smart screen off LITE free from play store it's work perfectly with flip cover, it's use proximity sensor, when you close flap it's off the screen and on when open but can't lock screen, I use screen off and lock app to secure lock the phone with just one click or confiigure using any gesture if you use apex launcher which much battery friendly and lots of customization option if you don't like blink feed
Sent from my HTC One using xda app-developers app
Απ: Is there a way to wake the device using the volume buttons?
onlinejobwork said:
Use the smart screen off LITE free from play store it's work perfectly with flip cover, it's use proximity sensor, when you close flap it's off the screen and on when open but can't lock screen, I use screen off and lock app to secure lock the phone with just one click or confiigure using any gesture if you use apex launcher which much battery friendly and lots of customization option if you don't like blink feed
Sent from my HTC One using xda app-developers app
Click to expand...
Click to collapse
I'll take my chances and not use a cover or case of any kind. Hopefully someone will try the app I mentioned.
I know OP is asking about a no-root, app solution for this, but is there anyway at all of mapping the volume keys to power on device, even if it requires root and/or flashing files?
Cm usually has it in settings
Sent from my Galaxy Nexus using xda premium
Απ: Is there a way to wake the device using the volume buttons?
moeahmad1995 said:
Cm usually has it in settings
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Cm is goodbye warranty. I intend to do that after at least a year.
bouss said:
Cm is goodbye warranty. I intend to do that after at least a year.
Click to expand...
Click to collapse
Oops, I forgot to quote the guy above me, he was wondering if it was even possible, even with root
Sent from my Galaxy Nexus using xda premium
Anyone got any other suggestions that dont involve root ???
App from market called Tap Tap.
Sent from my HTC Sensation 4G using Tapatalk 2
Wake on volume keys research
gustav30 said:
App from market called Tap Tap.
Sent from my HTC Sensation 4G using Tapatalk 2
Click to expand...
Click to collapse
Tried many of those apps using the proximity sensor to turn on the screen. I reall hate them because :
1- None of them would have a very high accuracy. Mostly due to the sensors on most of the phones beeing not very accurate to detect multiple wave in a short time frame. It's not their initial purpose anyway.
2- The sensor is at the far top left of the screen which does not help in any way to use turn on the screen with one hand.
3- The fact that you have to swipe 2 or 3 times in front of the sensors which are not very accurate makes it equal in time if not longer than using your 2nd hand to reach the power button.
I believe these apps are not that useful and would prefer something to wake the screen with volume keys or tactile keys at the button.
For the moment I use an app called Flip Flap which is working pretty well. You jsut have to do a quick shake like if you suddenly had to take a look at your wrist watch while holding your phone. It's a half second movement and it unlocks/locks your screen with a movement that you will not trigger by accident so it's kinda nice and quick.
But still, it's not as good as volume keys which are perfectly placed to turn on the thing.
So my phone is rooted now and I've looked into a few things.
I've read that the file handling the keymapping would be in there : /System/Usr/Keylayout and the file to be modified would be l0-keypad.kl
Unfortunately the file is simply not existing on my phone. (Maybe it's got something to do with the fact I do not use the original Android keyboard but Swiftkey instead ? Dunno.
So here is the full list of file I've got in this /System/Usr/Keylayout :
Sorry guys you'll have to enter the h before my links to see them as I don't have 10 posts and can't use external links yet
ttp://i.imgur.com/wkPts92s.png and ttp://i.imgur.com/Ab5sI3Rs.png
Unfortunately I can't find eaxctly which one is used by the phone to map the volume keys exactly.I tried to modify the Generic.kl file :
ttp://pastebin.com/0JdTHwsy
Lines 136 and 137 seems to be mapping the volume keys :
key 113 VOLUME_MUTE
key 114 VOLUME_DOWN
I have tried to add "WAKE" in the same way it is written for the POWER key : key 116 POWER WAKE
Saved the file, restarted the phone but then the file was reset to its intial value so I don't think we can modify this one.
Then I checked another folder : /sys/keyboard/
This one contains a file named vol_wakeup. Was pretty happy to find that one.
It only contains a single character : "0"
The most obvious thing was to try and replace that 0 by a 1 to enable the option but same thing as last time. After saving and restarting the phone this file was restored to its inital value with the 0 in it.
At this point I simply don't have the knowledge to go further. Blocking points :
- I don't know if physical keys like volume are mapped in a generic keyboard file or in a file specific to the virtual keyboard the user has chosen (Android default keyboard or Swiftkey or any other...). This would mean editing different files after identifying them.
- I don't know why the files I've tried to modify went back to their initial states. My phone is rooted, I used ES Explorer to get to the root folder and ES Notepad to edit them and save. I had no error message on saving so I don't think it's got anything to do with access rights.
Could use anyone's help
I was unable to find the app called flip flap. Are you sure that's it's name?
bouss said:
I was unable to find the app called flip flap. Are you sure that's it's name?
Click to expand...
Click to collapse
Nop sorry it's called Justflip :
https://play.google.com/store/apps/...MsIm5ldC5qdXN0bmljZS5hbmRyb2lkLkp1c3RGbGlwIl0.
And the review I posted about it :
"Works great on the new HTC ONE. The Roll is not very precise but the pitch trigger is very accurate. It is also easier on this phone to flip its top/bottom than rolling sideways so no trouble there. Settings for me are the following and I find it great that way : Roll tolerance 15% Pitch Tolerance 48% 500ms Would be the perfect app if it was allowign us to use volume keys (instead of the power key) to turn ON the phone screen."
iKoyy said:
Tried many of those apps using the proximity sensor to turn on the screen. I reall hate them because :
1- None of them would have a very high accuracy. Mostly due to the sensors on most of the phones beeing not very accurate to detect multiple wave in a short time frame. It's not their initial purpose anyway.
2- The sensor is at the far top left of the screen which does not help in any way to use turn on the screen with one hand.
3- The fact that you have to swipe 2 or 3 times in front of the sensors which are not very accurate makes it equal in time if not longer than using your 2nd hand to reach the power button.
I believe these apps are not that useful and would prefer something to wake the screen with volume keys or tactile keys at the button.
For the moment I use an app called Flip Flap which is working pretty well. You jsut have to do a quick shake like if you suddenly had to take a look at your wrist watch while holding your phone. It's a half second movement and it unlocks/locks your screen with a movement that you will not trigger by accident so it's kinda nice and quick.
But still, it's not as good as volume keys which are perfectly placed to turn on the thing.
So my phone is rooted now and I've looked into a few things.
I've read that the file handling the keymapping would be in there : /System/Usr/Keylayout and the file to be modified would be l0-keypad.kl
Unfortunately the file is simply not existing on my phone. (Maybe it's got something to do with the fact I do not use the original Android keyboard but Swiftkey instead ? Dunno.
So here is the full list of file I've got in this /System/Usr/Keylayout :
Sorry guys you'll have to enter the h before my links to see them as I don't have 10 posts and can't use external links yet
ttp://i.imgur.com/wkPts92s.png and ttp://i.imgur.com/Ab5sI3Rs.png
Unfortunately I can't find eaxctly which one is used by the phone to map the volume keys exactly.I tried to modify the Generic.kl file :
ttp://pastebin.com/0JdTHwsy
Lines 136 and 137 seems to be mapping the volume keys :
key 113 VOLUME_MUTE
key 114 VOLUME_DOWN
I have tried to add "WAKE" in the same way it is written for the POWER key : key 116 POWER WAKE
Saved the file, restarted the phone but then the file was reset to its intial value so I don't think we can modify this one.
Then I checked another folder : /sys/keyboard/
This one contains a file named vol_wakeup. Was pretty happy to find that one.
It only contains a single character : "0"
The most obvious thing was to try and replace that 0 by a 1 to enable the option but same thing as last time. After saving and restarting the phone this file was restored to its inital value with the 0 in it.
At this point I simply don't have the knowledge to go further. Blocking points :
- I don't know if physical keys like volume are mapped in a generic keyboard file or in a file specific to the virtual keyboard the user has chosen (Android default keyboard or Swiftkey or any other...). This would mean editing different files after identifying them.
- I don't know why the files I've tried to modify went back to their initial states. My phone is rooted, I used ES Explorer to get to the root folder and ES Notepad to edit them and save. I had no error message on saving so I don't think it's got anything to do with access rights.
Could use anyone's help
Click to expand...
Click to collapse
What you are doing is perfectly valid, but system is protected with the stock kernel and all changes to the /system partition are reverted on boot.
Yeah thanks for the update. I've learned a lot this week while looking a way to enable wake on vol.
Most of the ROMs developped for the One so far have it working, although it does not work when the phone goes to deep sleep. The HTC One source code was released by HTC yesterday so it's only a matter of time until we see many unprotected kernels popout.
The OrDroid ROM is the one with which I had the most successful experience so far : not a single problem, very close to stock ROM and wake on vol is working 9 times out of 10.
So I'd recommend everyone to check it out : http://forum.xda-developers.com/showthread.php?t=2191358

Back, Home and Recents buttons?

Hello,
after the sources for the Z2 Pro have been released and good Custom ROMs are possible, I would love to buy this beautiful device. I've read alot about this U-Touch thing, where you navigate only by using the Home Button... and I don't like it. So my question is: Does this phone also have the normal Back, Home and Recents hardware buttons?
Thanks!
Hi,
Yes, you can add on screen buttons in "Developer Options" menu. At least you can do it with z2 (non pro). I guess you will have this option too.
So there are no "real" hardware buttons to the left and the right of the home button?
On screen buttons are in developer options in both models, make sure you reboot to effect the changes.
Thanks for your answers. I know about the possiblity to show the On Screen Buttons, but that's not what I wanted to know.
I'm curious if the device also has dedicated hardware buttons (not on screen) for Back and Recents, or just the U-Touch button?
It only has 1 physical button on the front..
I'd love to see an app or even integration in a custom rom to be able to configure the behaviour of the front button. What are the chances this will become reality?
It already lets you configure what the button does. You can also preset actions to open specific apps.
Karly Johnston said:
It already lets you configure what the button does. You can also preset actions to open specific apps.
Click to expand...
Click to collapse
But that is in the ZUI ROM right? I'd like to see this in a separate app or built into custom ROM so it can also be used outside ZUI.
Now that the sources are available someone who knows what he is doing should be able to pull this off.
Is there a way to make swipe left on the u-touch button act like a back button? Maybe there would be a way to have it open an scripted action that acts as back button?
Edit: Just figured out that short tap is back, so my problem is solved!
Thanks, this helped me out!
I'm looking for a phone with this same exact button. I'm always super stunned how retarded iphones are compared to my $200 phone.

Do you use gestures or buttons?

Hi there!
I want to know if you prefer to use gestures or buttons on your daily use and why.
Personally I found buttons more easy to use, but now I'm using gestures and, with a bit of familiarity I can say they are better (and system is more beauty without the 3 buttons)
I agree : what the point of having a large full screen... if you still have a range of buttons at the bottom that "cut" the screen ? I'm now used to navigate with Miui gestures and do not want to come back to the older way by any means !
gestures for ever ! ;o))
I've tried both and I can't really pick one. I keep going back and forth.. I agree I feel like the buttons are really old in Android and gestures a much better for big full screen smartphones like the RN7 but I guess time will tell which I'll end up using daily.
From the moment I tried the MIUI gesture system, I don't want to go back to anything else, it's just too good. Thankfully, I can emulate them in like 95% on other ROMs thanks to Fluid N.G.
I still prefer buttons.
I'm a bit faster with them and i use the press and hold functions (torch etc.)
A clean fullscreen is more pretty, no doubt.
But on a 19.5:9 screen, i don't care if i lose that 1cm at the bottom.
I got used to the one button nav from my previous Moto g5 plus. So I enabled full screen gestures day one after getting the note 7. It's better than the soft buttons and easier to navigate around on this tall screen.
Gestures all the way, it really makes you feel better with 6.x screens, fluid and easy to learn
gestures exclusively. When I received a blackberry Z30 for my job in 2014, I really loved the gestures they implemented. It allowed for a smaller chin and more screen real estate. Ever since then I had to go "back" to regular buttons when they upgraded me to an android phone and when I switched to android privately, and it felt like a step back.
Now that we have those full body phones, using gestures feels great again.
I'm old and I don't like change anymore. Buttons for me.
I tried gestures, but it's hard to use gestures with a decent case. Not only that, some apps have native gesture stuff in them and somehow those override the MIUI gestures. I went back to the buttons after few hours.
soundofnight said:
I tried gestures, but it's hard to use gestures with a decent case. Not only that, some apps have native gesture stuff in them and somehow those override the MIUI gestures. I went back to the buttons after few hours.
Click to expand...
Click to collapse
+1. For example, telegram. I prefer buttons for now
smallmj said:
I'm old and I don't like change anymore. Buttons for me.
Click to expand...
Click to collapse
haha, same here.
However, I also have gestures, loads of them, using Gesture Control. I still like the phone buttons to be present, and Gesture Control over MIUI's own gestures which are just too elementary, too limited.
Tried gestures. Didn't like. Went back to buttons. Maybe Android 10 or MIUI will improve things, but I'm staying with buttons for now.
Gestures. More real estate and actually I find it easier to navigate with gestures.
I am using gestures for 3 months now,only thing buttons are better for me is double tap to go to previous app is faster and I find it easier to start multitasking by just holding one button and picking 2nd app, then swipe and hold,then press and hold and click again then choose 2nd app.

Home button single press not working sometimes

Since I recently switched to a Galaxy S10+, I donated my Mi A2 to my girlfriend. After I fully wiped my phone, she installed it like any other new phone and finished the wizard. All her apps got reinstalled nicely and everything looked nice.
But now the home button (3 button nav) sometimes just stops responding to a single press. When I hold the button I do get the Google Assistant as expected, but single press doesn't take me to the home screen. After a reboot everything is back to normal, but only for a while. The button does show the colored dots when I press it.
What could be wrong? It looks a bit like some process is blocking it to prevent exiting a wizard or something (I had it once on a Pixal tablet, which thought I had the setup wizard open), but the back button does work as expected and I can navigate using different methods.
amelsfort said:
Since I recently switched to a Galaxy S10+, I donated my Mi A2 to my girlfriend. After I fully wiped my phone, she installed it like any other new phone and finished the wizard. All her apps got reinstalled nicely and everything looked nice.
But now the home button (3 button nav) sometimes just stops responding to a single press. When I hold the button I do get the Google Assistant as expected, but single press doesn't take me to the home screen. After a reboot everything is back to normal, but only for a while. The button does show the colored dots when I press it.
What could be wrong? It looks a bit like some process is blocking it to prevent exiting a wizard or something (I had it once on a Pixal tablet, which thought I had the setup wizard open), but the back button does work as expected and I can navigate using different methods.
Click to expand...
Click to collapse
you need to.provide more info to get the right answer ..just use full screen navigation ...in settings try reassigning it different actions to see what happens ...but sounds like the delay between single press / long press for assistant is what is screwing you ...i disabled long press for assistant cos it kept giving me the assistant when i was trying to get home ....
but still.hard to say since you have 0 info about your problem here
The problem is that I don't have much more information as well. It's hard to reproduce the issue. We tried pinning and unpinning an app, opening different apps, changing the gestures, but nothing seems to trigger the issue.
I also tried gesture navigation, but that doesn't have a gesture for going directly back home. Also I think it's not possible to reassign the buttons on stock rom.
When I used the phone I never had this issue.
amelsfort said:
The problem is that I don't have much more information as well. It's hard to reproduce the issue. We tried pinning and unpinning an app, opening different apps, changing the gestures, but nothing seems to trigger the issue.
I also tried gesture navigation, but that doesn't have a gesture for going directly back home. Also I think it's not possible to reassign the buttons on stock rom.
When I used the phone I never had this issue.
Click to expand...
Click to collapse
on my phone if i swipe up from bottom i go straight home ... by more info i mean
1. device/rom/version/root status/ launcher/ ...stuff like that
2.relevant fixes you tried ...
3. short video of when it happens
anyway .. i don't understand because you can choose what actions you want to happen in relation to the gestures ..so if you wanna go home in one shot assign that action to a specific gesture
have you ACTUALLY tried my fix of disabling google assistant ..so you don't trigger assistant or freeze by holding home button too long ..
try assigning double tap on home to go home ..as a workaround
The phone has no customizations at all: stock rom (Android One), no root, default Xiaomi launcher.
Version: Android 10, march security update (up to date according to Xiaomi)
With the gestures I can choose between:
- navigation using gestures
- navigation using 2 buttons (this is selected)
- navigation using 3 buttons
I have tried the first option. Swiping up does indeed go to the home screen when I'm in an app. But not to my default screen. Like when I swiped right to a different home screen page, it doesn't return to the first one.
I will try disabling opening the Assistant using the home button.
amelsfort said:
The phone has no customizations at all: stock rom (Android One), no root, default Xiaomi launcher.
Version: Android 10, march security update (up to date according to Xiaomi)
With the gestures I can choose between:
- navigation using gestures
- navigation using 2 buttons (this is selected)
- navigation using 3 buttons
I have tried the first option. Swiping up does indeed go to the home screen when I'm in an app. But not to my default screen. Like when I swiped right to a different home screen page, it doesn't return to the first one.
I will try disabling opening the Assistant using the home button.
Click to expand...
Click to collapse
you should downgrade to pie because in 10 many people have lag , ui feezing and later on random reboots.. i think you will find in a month or two the UI will freeze up ..like what is happening now may be a "mini" freeze
pie is stable.. im on miui 12 official pie for wayne and wow am glad i dithed android1 and gave up my obsession of having 10 ..
I just upgraded because Xiaomi pushed the upgrade. And my girlfriend doesn't know how to downgrade.
Besides, I have been using the same phone with the same Android version for a few months without any issues. It's only since she started using it. That's why I was thinking about some wizard/setup preventing the use of the home button, which we had a few years ago on a tablet. But that was blocking more buttons then, so not exactly the same.
amelsfort said:
I just upgraded because Xiaomi pushed the upgrade. And my girlfriend doesn't know how to downgrade.
Besides, I have been using the same phone with the same Android version for a few months without any issues. It's only since she started using it. That's why I was thinking about some wizard/setup preventing the use of the home button, which we had a few years ago on a tablet. But that was blocking more buttons then, so not exactly the same.
Click to expand...
Click to collapse
ok no worries... maybe the work around will work ..have tried to plau around with lawnchair as launcher and using its own built in gestures to trigger home

Categories

Resources