Soft Navigation buttons - Lenovo A6000/Plus Questions & Answers

Anyone know how to add soft navigation buttons in lenovo a6000 like the one in ResurrectionRemix v5.6.5 by @mshoaib7

Search for "Simple Control" on Google Play. You'll get the softkeys in any ROM.

Just go to
/System.
Open the build.prop file using a text editor.
In the last line, include
qemu.hw.mainkeys=0
Hope that helps. and you do need root access firstly..

Related

Trying to change menu button to app switcher (Hyperdrive)q

I'm running the hyperdrive rom and would like to change the menu button to the recent apps button, and the longpress home to google now like S5. I found an xposed module that does this but only for the note 3. Anyone have a solution for this?
Jaydawgx7 said:
I'm running the hyperdrive rom and would like to change the menu button to the recent apps button, and the longpress home to google now like S5. I found an xposed module that does this but only for the note 3. Anyone have a solution for this?
Click to expand...
Click to collapse
I can change the menu key to recent apps but not sure about longpress home.
Using a root File Explorer open generic.kl in system/user/keylayout with a text editor.
Go to key 139 and replace 'MENU' with 'APP_SWITCH'. Reboot and you're done.
For google now it should just be a matter of finding the appropriate key.
marxses said:
I can change the menu key to recent apps but not sure about longpress home.
Using a root File Explorer open generic.kl in system/user/keylayout with a text editor.
Go to key 139 and replace 'MENU' with 'APP_SWITCH'. Reboot and you're done.
For google now it should just be a matter of finding the appropriate key.
Click to expand...
Click to collapse
Thanks for getting me in the right direction here. However, when I alter the generic.kl file at all, both capacitive buttons quit working after a reboot. I tried replacing the altered file with a backup i made, rebooted, and they still don't work. The only way to restore function of the buttons is to reflash the rom. Any idea as to why? This seemed like an easy change.... (also tried editing the file via notepad++ on the pc with the same result)
Jaydawgx7 said:
Thanks for getting me in the right direction here. However, when I alter the generic.kl file at all, both capacitive buttons quit working after a reboot. I tried replacing the altered file with a backup i made, rebooted, and they still don't work. The only way to restore function of the buttons is to reflash the rom. Any idea as to why? This seemed like an easy change.... (also tried editing the file via notepad++ on the pc with the same result)
Click to expand...
Click to collapse
What file explorer are you using? ES explorer?
After editing and especially if you're pasting in a back up you need to make sure the files permissions are set to rw-r--r--
I personally used the text editor from Rom Tool Box Lite . Make sure there aren't any extra spaces and there should be no # in front of the key.
I just remapped and put them back to normal a few times and I'm not having any problems.
Let me know how you get on.
marxses said:
What file explorer are you using? ES explorer?
After editing and especially if you're pasting in a back up you need to make sure the files permissions are set to rw-r--r--
I personally used the text editor from Rom Tool Box Lite . Make sure there aren't any extra spaces and there should be no # in front of the key.
I just remapped and put them back to normal a few times and I'm not having any problems.
Let me know how you get on.
Click to expand...
Click to collapse
Thanks! I was using ES file Explorer... I don't know what happened amongst text editors, but the rom tool box text editor did the trick... I appreciate your time and patience. Now it's time to figure out how to change long press home to Google now... Thanks again
Jaydawgx7 said:
Thanks! I was using ES file Explorer... I don't know what happened amongst text editors, but the rom tool box text editor did the trick... I appreciate your time and patience. Now it's time to figure out how to change long press home to Google now... Thanks again
Click to expand...
Click to collapse
All good, glad you got it sorted.
Another option is home2shortcut it uses double tap instead of long press, just tried it for kicks and it works really well, quite snappy

[GUIDE][ROOT] Swap Menu and Back capacitive keys

I post this little guide to help those who - like me - prefer a "Nexus-like" experience while keep using the capacitive buttons.
- 1 - Turn off capacitive buttons backlight
1a) using your preferred root file manager go to /sys/class/leds/button-backlight/brightness
1b) edit the file "brightness" and set the text to "0", save and exit
1c) edit the file "max_brightness" and set the text to "0", save and exit
- 2 - Swap buttons functions
2a) using your preferred root file manager go to /system/usr/keylayout
2b) open for editing the file "Generic.kl"
2c) find the string "key 139 MENU" and replace with "key 139 BACK"
2d) find the string "key 158 BACK" and replace with "key 158 MENU", save and exit
2e) reboot
Credits:
This page turning off the backlight.
This page for swapping keys funcions.
Added to OnePlus One index thread:
[INDEX] OnePlus One Resources Compilation Roll-Up
Transmitted via Bacon
Thank you sure makes it easier on us lefties
64 pieces of bacon yummy?
If you turn off capacitive buttons backlight, wouldn't be difficult to press them since they are quite small?
i do this since i changed my n4 for an OPO and preferred to stick on the nexus keys layout
the drawback is that if you remove the capacitive menu key you don't have access to menu on chrome and other apps that don't show overflow (3 dots) menu buttons
here is the thread where i asked about infos but nobody helped so far
http://forum.xda-developers.com/oneplus-one/help/force-app-overflow-3-dots-menu-to-appear-t3003731
and here below there's 3 flashable zip files for CM12 with the following setup:
nexus-like keys (back-home-recents)
inverted keys (back-home-menu)
stock keys (menu-home-back)
if you use CM12, my advise is to use the "inverted" one and remap "menu" to "recents" from Cyanogenmod button settings, so you can also set up "menu" option if longpress or double tap
AH thanks alot OP really needed this
etoy said:
i do this since i changed my n4 for an OPO and preferred to stick on the nexus keys layout
the drawback is that if you remove the capacitive menu key you don't have access to menu on chrome and other apps that don't show overflow (3 dots) menu buttons
here is the thread where i asked about infos but nobody helped so far
http://forum.xda-developers.com/oneplus-one/help/force-app-overflow-3-dots-menu-to-appear-t3003731
and here below there's 3 flashable zip files with the following setup:
nexus-like keys (back-home-recents)
inverted keys (back-home-menu)
stock keys (menu-home-back)
Click to expand...
Click to collapse
I flashed the nexus- like keys zip inside of TWRP recovery, and now NONE of my capacitive or physical buttons are working. How do I fix it?
Kevlang said:
I flashed the nexus- like keys zip inside of TWRP recovery, and now NONE of my capacitive or physical buttons are working. How do I fix it?
Click to expand...
Click to collapse
what ROM are you using? the ones i posted are for CM12
here's attached a "revert to stock" zip for CM11S
etoy said:
what ROM are you using? the ones i posted are for CM12
here's attached a "revert to stock" zip for CM11S
Click to expand...
Click to collapse
Thanks, i was running 11s. Not to worry though, I decided that was an opportune time to flash CM12, and problem solved.
To clarify, those original 3 zips should be safe to use now that I'm running CM12?
Do i just flash using TWRP?
Kevlang said:
Thanks, i was running 11s. Not to worry though, I decided that was an opportune time to flash CM12, and problem solved.
To clarify, those original 3 zips should be safe to use now that I'm running CM12?
Do i just flash using TWRP?
Click to expand...
Click to collapse
i personally use CM12 and flash the "inverted" one myself with TWRP 2.8.4.1 everyday when i update nightlies.
just compared my Generic.kl stock file with the one on latest 0121 nightly and they're identical so yes, i guarantee it's safe to flash them
Giocarro said:
- 1 - Turn off capacitive buttons backlight
1a) using your preferred root file manager go to /sys/class/leds/button-backlight/brightness
1b) edit the file "brightness" and set the text to "0", save and exit
1c) edit the file "max_brightness" and set the text to "0", save and exit
.
Click to expand...
Click to collapse
There is the option under settings / buttons on CM12
etoy said:
i do this since i changed my n4 for an OPO and preferred to stick on the nexus keys layout
the drawback is that if you remove the capacitive menu key you don't have access to menu on chrome and other apps that don't show overflow (3 dots) menu buttons
here is the thread where i asked about infos but nobody helped so far
http://forum.xda-developers.com/oneplus-one/help/force-app-overflow-3-dots-menu-to-appear-t3003731
and here below there's 3 flashable zip files for CM12 with the following setup:
nexus-like keys (back-home-recents)
inverted keys (back-home-menu)
stock keys (menu-home-back)
if you use CM12, my advise is to use the "inverted" one and remap "menu" to "recents" from Cyanogenmod button settings, so you can also set up "menu" option if longpress or double tap
Click to expand...
Click to collapse
Can I apply one of your zip to oxygenos?
Paninno12 said:
Can I apply one of your zip to oxygenos?
Click to expand...
Click to collapse
to be honest, i don't know if the origin file is the same.
you should compare the file from my "revert" zip and yours, it's located in
/system/usr/keylayout/Generic.kl
if they are identical, then you can proceed.
if not, you can send it to me and i'll prepare a zip for O²
Paninno12 said:
Can I apply one of your zip to oxygenos?
Click to expand...
Click to collapse
i compared the Generic.kl files between O² and CM12, they're identical so you can flash my zip without any worries
etoy said:
i compared the Generic.kl files between O² and CM12, they're identical so you can flash my zip without any worries
Click to expand...
Click to collapse
Working perfectly! Thanks
Works on marshmallow as well, in case anyone wondered.
etoy said:
i do this since i changed my n4 for an OPO and preferred to stick on the nexus keys layout
the drawback is that if you remove the capacitive menu key you don't have access to menu on chrome and other apps that don't show overflow (3 dots) menu buttons
here is the thread where i asked about infos but nobody helped so far
http://forum.xda-developers.com/oneplus-one/help/force-app-overflow-3-dots-menu-to-appear-t3003731
and here below there's 3 flashable zip files for CM12 with the following setup:
nexus-like keys (back-home-recents)
inverted keys (back-home-menu)
stock keys (menu-home-back)
if you use CM12, my advise is to use the "inverted" one and remap "menu" to "recents" from Cyanogenmod button settings, so you can also set up "menu" option if longpress or double tap
Click to expand...
Click to collapse
Thanks, Inverted working great on Bliss Pop.
Suppose to : long press [Home] key, open recent menu...
So how I can change it to long press [Menu] key to open recent menu?!
Thanks, one of the experiences I'm missing from Nexus devices
Hi,
can anyone tell me how it is to be done on Oneplus X with CM 12.1.
I am able to configure Menu and Home buttons via settings, but I cannot swap location or configure Back button.
Editing Generic.kl did not work, I think it might be overridden by the cyanogen mod settings?
thanks
freaksworth

enabling navigation bar keys on stock grand 1 rom 4.2.2

this thread is moved to that
http://forum.xda-developers.com/gal...bling-soft-navigation-bar-keys-stock-t3427028
open previous link as it is updated thread untill I update that one
friends
if you still using stock rom 4.2.2 ,great news you can now enable soft keys on your phone
all what we need is
1-moded system ui flashable zip
2-xperai/AOSP navabar buttons apk
3-rooted device with exposed installed
4-root explorer or other root browser
at first flash the systemuu.zip file I provided through recovery(this is themed system ui to look like S5 thx to vadakkeveetil who provide it
http://forum.xda-developers.com/showthread.php?t=2760990
by then I moded the system ui to show navigation bar
after glashing the system ui open your root explorer and gi to system>build prop ,right click on it and choose open with text editor and paste that line and save
qemu.hw.mainkeys=0
install xperia /Aosp navabar button apk and allow it to work through exposed then restart your phone
after you reboot ,open xperia /aosp navabar button and un tick menu and search and arrange button as you like,change button hight to about 60% or what you like
now enjoy your navigation bar on stock rom
another thing>in my phone I changed dpi to 235 instead of 240 you can do that through editing build prop and change
ro.sf.lcd_density=235
all the work I made by my self and it took mr too much time to mod it ,if you liked my work please hit thanks
now download files
moded system ui zip
https://www.dropbox.com/s/e4uh2rc88t9qt2h/s5 SystemUI v5 Normalmoded navig v2.zip?dl=0
xperia/aosp navabar button
http://repo.xposed.info/module/com.gzplanet.xposed.xperianavbarbuttons
if you liked my work just press thank buttonfriends
if you still using stock rom 4.2.2 ,great news you can now enable soft keys on your phone
all what we need is
1-moded system ui flashable zip
2-xperai/AOSP navabar buttons apk
3-rooted device with exposed installed
4-root explorer or other root browser
at first flash the systemuu.zip file I provided through recovery(this is themed system ui to look like S5 thx to vadakkeveetil who provide it
http://forum.xda-developers.com/showthread.php?t=2760990
by then I moded the system ui to show navigation bar
after glashing the system ui open your root explorer and gi to system

[GUIDE] [ROOT] How to make your headset buttons be recognized by the Operating System

This guide will show you how to make a custom keyboard layout file so your OS will correctly recognize your headset buttons. Other guides have focused on modifying the generic.kl file, but this guide will show you how to make the keyboard layout file specific for your headset device.
You will need to be rooted to use all of the tools and install the file.
For background information, please google "android keyboard layout file" The first hit should be an android developer page about keyboard layout files. (I'm not able to post links)
I'm using a Xiaomi Mi Max and a Xiaomi headset with three buttons, but the guide should work for any combination of phone or headset.
1. Download keytest.apk (you'll need to google it or look for it on github)
Open the app, plugin your headset and press the buttons. The most important information given is the scanCode. Write down the scanCode for each button.
These are the numbers I had:
Top Button = 257
Middle Button = 226
Bottom Button = 258​2. Download Kernal Adiutor from the play store.
Open Kernal Adiutor and go to the input tab. At the bottom of the list of input devices you should see something related to your sound card and hopefully see a Button Jack and Headset Jack.
I saw this device listed: msm8976-tashalite-snd-card Button Jack
Your device will probably have a different name.​3. Create the .kl file.
a. Naming of the file.
The naming of the file is very crucial and must be exactly as listed in the Kernal Adiutor. Mine was: msm8976-tashalite-snd-card_Button_Jack.kl
Spaces should be replaced with underscores and it does appear to be case sensitive.
b. Contents of the file.
The file only needs to have 3 lines:
Code:
key 257 MEDIA_PREVIOUS
key 226 HEADSETHOOK
key 258 MEDIA_NEXT
4. Install the file.
The file needs to be installed at /system/usr/keylayout using a root explorer. For example: ES Explorer, Total Commander. ​
5. Reboot
6. Download Jays Headset Control or Headset Button Controller or any of the other headset controller apps from the Play Store. The app will recognize the MEDIA_PREVIOUS and MEDIA_NEXT and you can give the button presses additional functions, even beyond the functions found in MiUI.
Edit: If you don't want to use a third party app, you can create the file so the top and bottom button control the volume directly.
Code:
key 257 VOLUME_UP
key 226 HEADSETHOOK
key 258 VOLUME_DOWN
scurrvy2020 said:
4. Install the file.
The file needs to be installed at /system/usr/keylayout using a root explorer. For example: ES Explorer, Total Commander. ​
Click to expand...
Click to collapse
and don't forget to check permissions on your .kl file they must be -rw-r--r-- and o root g root
Thank you so much! I searched for hours for a solution to my problem that my Xiaomi headset control buttons do not function properly on my Mi Max device running Lineage OS until I found this. This really rescued me out of great disappointment as I use the headset alot and Lineage OS is really nice that apart from the problem mentioned above that really upsets me . I don't know it is the OS or my headset that is the problem but it is fixed now. Btw the the second post about setting the permissions is crucial as well, I tried 2 times not realizing that I had to do that, and of course it didn't work. Thank you so much guys. I wish you a nice day! :good:
Hi.. I follow your steps but still I failed to recognize my headset button on my Mi Max running RR rom N.
And I would like to ask you about your 2nd post
"and don't forget to check permissions on your .kl file they must be -rw-r--r-- and o root g root"
Can you please explain this on an easy way. Thanks
enzy29 said:
Hi.. I follow your steps but still I failed to recognize my headset button on my Mi Max running RR rom N.
And I would like to ask you about your 2nd post
"and don't forget to check permissions on your .kl file they must be -rw-r--r-- and o root g root"
Can you please explain this on an easy way. Thanks
Click to expand...
Click to collapse
Ok i used for this ES File Explorer
i.imgur.com/3POnumx.png (can't post image now)
I'm Mi Max 2 user and tried to use this method on it. I tried with HavocOS 2.4 and HavocOS 2.9 unofficial. It doesn't work. Keytest recognizes vol up and down buttons when I press them (code for vol up and down is 114 and 115 respectively), but after creating file nothing happens. Permissions for file are correct. File created in Solid Explorer. What can be the solution? What I'm doing wrong?

Camera tutorial for LineageOS and other AOSP based roms.

Hello,
As the google camera on ASOP and LineageOS is pretty bad, then our community has found a good temporal fix. (Thanks core720 for making your thread )
The one and mighty HTC Camera
Altough, there is one problem...... my perfectly rounded icons...... they are gone!!
If you like it the way it is you can only install the HTC Camera(Found by a google search),
if not continue.
So i have found an easy solution to fix that problem.
1) First, you are going to need the APK Editor by SteelWorks (Found at GooglePlay)
2) Download the pixel launcher icons apk (Give it a little google search )
3) Now download the HTC Camera (Found by a google search)
4) Open the APK Editor and press "Select an apk file"
5) Open the download folder and press on the Pixel Launcher icons apk, we are going to do a simple edit so press on that.
6) Now press "res" then "mipmap-xxxhdpi-v4" and press the save icon next to "ic_camera" and save it somewhere where you can find it.
7) Now you close this apk from the bottom of the screen and you can select a new one, select the HTC Camera apk and press "images" at the top of the screen.
8) Scroll down until you find "icon_launcher_camera.png", press the little pencil button next to it.
9) Find your saved Google Camera icon and press on it.
10) Press save at the bottom of the screen and then press install.
11) You are done !
Yay, hopefully you have now got your perfectly rounded icons back. and good luck to you on XDA Community.

Categories

Resources