[Q] Huawei y210 kernel help - Android Q&A, Help & Troubleshooting

I compile a kernel for Huawey Y210 and has some bugs which I would like to know if you can solve
bugs:
rotation is reversed
brightness settings do not work
and the keys are poorly configured are:
Menu key = back
Home key = menu
Back key = home

Related

[[Q] How to remapping menu button?

Could someone tell me how to remap hard buttons to get:
menu (hold) = recent apps
back (hold) = home
in samsung stock rom

[TUT] Disable Capacitive touch buttons+Home key on Xperia 2011 MDPI

[Only for those who don't like Capacitive touch buttons+Home key]
1 First of all make sure you have on-screen
buttons enabled. If you don't have on-screen buttons then just go to this thread to find out how to enable them-
http://forum.xda-developers.com/showthread.php?t=1940842
2 Download a root explorer or any similar explorer like that.
3 Navigate to
system>usr>keylayout, and look for a file named as " cyttsp_key.kl ".
4 Select it and open it as text with Root explorer's text editor.
5 There you will find following lines-
#KEY_MENU, KEY_BACK
key 139 MENU VIRTUAL
key 158 BACK VIRTUAL
6 Now all you have to do put # before these lines as shown below-
#key 139 MENU VIRTUAL
#key 158 BACK VIRTUAL
And done.
Now if you want to disable home key also then-
7 Again navigate to
system>usr>keylayout, and look for a file named as " pm8058-keypad.kl ".
8 Select it and open it as text with Root explorer's text editor.
9 There you will find following lines-
# this corresponds to kernel/arch/arm/mach-msm/keypad-hallon.c
#
# defines for values are in frameworks/base/include/ui/KeycodeLabels.h
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
# KEY_HOME
key 102 HOME WAKE_DROPPED
# CAMERA Related Key
key 212 CAMERA
key 528 FOCUS
10 Now again all you have to do put # before the line " key 102 HOME WAKE_DROPPED" as shown below-
# this corresponds to kernel/arch/arm/mach-msm/keypad-hallon.c
#
# defines for values are in frameworks/base/include/ui/KeycodeLabels.h
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
# KEY_HOME
#key 102 HOME WAKE_DROPPED
# CAMERA Related Key
key 212 CAMERA
key 528 FOCUS
11 Now just reboot and DONE!
This tutorial should be applicable to Xperia Ray users also because it has same button like our devices.
Press thanks if you think this post is useful to you.
Nice guide, been searching for this while I'm using Paranoid Android ( 3 months ago )
via XDA for Timescape™
Diaz1999 said:
Nice guide, been searching for this while I'm using Paranoid Android ( 3 months ago )
via XDA for Timescape™
Click to expand...
Click to collapse
Mankotialovely said:
Click to expand...
Click to collapse
Are we can disable the "big & ugly" home key with adding "#" in front of HOME_KEY
via XDA for Timescape™
Diaz1999 said:
Are we can disable the "big & ugly" home key with adding "#" in front of HOME_KEY
via XDA for Timescape™
Click to expand...
Click to collapse
Yes my friend, sure.
Home key is also added in this tutorial.
Great but one question, after performing this will keys work in cwm or not ?
vivek856 said:
Great but one question, after performing this will keys work in cwm or not ?
Click to expand...
Click to collapse
Keys will definitely work in cwm.
Disable Home
Thanks for the idea, and it works,
But my Home key is nonfunctional , so i would like to change my home key action into my camera key . IS it possible, I mean when i press camera key i want to wake up my 4n
sesath said:
Thanks for the idea, and it works,
But my Home key is nonfunctional , so i would like to change my home key action into my camera key . IS it possible, I mean when i press camera key i want to wake up my 4n
Click to expand...
Click to collapse
Yes it is possible but before that can you provide me little info about your rom and phone ?
Hello. Can make longpressing the menu button to bring tasks list? (multistak app list). Tq!

[Q] Huawei U8350 Icy Tiramisu Keyboard

I am trying to fix the Physical keyboard to have full functionality (smiley and symbol keys). From what I can tell the issue lies in QWERTY.kl which is missing a few lines from the stock ROM
Code:
#key 11 0
key 11 SMILE
#/* < BU5D09842 weixinghai 20100513 begin */
key 163 MEDIA_NEXT WAKE
key 165 MEDIA_PREVIOUS WAKE
#/* BU5D09842 weixinghai 20100513 end> */
key 194 SYM
Now I've tried editing the qwerty.kl that comes with Icy Tiramisu with various text editors and when I reboot it's as though the keyboard is not being recognised at all. I've even just added 1 line (key 194 SYM) with the same result.
I've had a look at the fixed HuaweiIME.apk that zenaufa made for this ROM and it seems to contain all the correct elements for the smiley and symbol button to work and from what I can tell the changes to qwerty.kl should work. Can anyone give me any insight into what could be going wrong?

How to swap Menu and Back Key of RN3 (Snapdragon) in CM13

I am on official build (cm-13.0-20160820-SNAPSHOT-ZNH5YAO0J4-kenzo.zip), I want to swap the menu and back key, so I use root explorer to change the value of Menu key (from 139 to 158) and the value of Back key (from 158 to 139) of the 3 files located at /system/usr/keylayout (Atmel_maXTouch_Touchscreen.kl, Generic.kl & qwerty.kl), after that I reboot the phone and found that it was not successful, the menu key and the back key remain unchanged.
Is there any apps or methods can be easily assign the layout of the hardware touch buttons of RN3? Thanks.

Swapping home and menu in CM11

I have an Xperia Mini Pro with LegacyXperia CM11 on it and I'm trying to swap home and menu buttons but it's not working.
I have changed /system/usr/keylayout/Generic.kl to
Code:
key 139 HOME WAKE
key 172 MENU WAKE_DROPPED
and restarted but nothing happen. Do I have to do something else for it to reload the keylayout from the file?
Regards
/M

Categories

Resources