This setting applies to all Android phones, including u8800.
* First, the mobile phone must have the root permission. We will not talk about how to obtain the root permission. Generally, install a root software.
Install an R. e Manager (root Explorer), run r. E Software, click the read-only and rewrite button above, change the current mode to rewrite, then go to the/system/usr/keylayout directory, and press qwerty on the touch screen. open the KL file by selecting the text editor in the pop-up menu. edit the file content to change the function of each button on the mobile phone. For example:
Modify the "Search" key to lock the screen, that is, the black screen function equivalent to the power key. You can modify it:
Key 217 search
Changed:
Key 217 power
Of course, you can also modify it to the following:
Key 217 power wake_dropped
You can change it to the following:
Key 217 power wake
Here we will talk about the differences between Wake and wake_dropped:
Wake indicates to wake up (activate the screen) and send a request
Wake_dropped indicates waking (activating the screen) without sending a request
For your convenience, I will give an example:
Key 102 home (the home key can be pressed only when the screen is unlocked; otherwise, no response is received)
Key 102 home wake)
Key 102 home wake_dropped)
The number after the key represents the physical encoding of the key, and the English behind it represents the key function name in the Android system. Therefore, we only need to modify the physical encoding of the key and the English name of the corresponding key function, you can. For example, if you change the Home key function to the photo button, you can modify key 102 home to key 102 camera.
The common key encoding function keys are as follows by default:
Key 102 Home Return primary desktop key (House icon that key) key 139 menu key 158 back return/Return key 217 search key 107 endcall end key 116 Power key 212 Camera photo key
The content of the qwerty. KL file is as follows:
Key 399 grave
Key 2 1
Key 3 2
Key 4 3
Key 5 4
Key 6 5
Key 7 6
Key 8 7
Key 9 8
Key 10 9
Key 11 0
Key 158 back
Key 230 soft_right
Key 60 soft_right
Key 107 endcall wake_dropped
Key 62 endcall wake_dropped
Key 229 menu
Key 139 menu
Key 59 menu
Key 127 search
Key 217 search
Key 228 pound
Key 227 star
Key 231 call wake_dropped
Key 61 call wake_dropped
Key 232 dpad_center wake_dropped
Key 108 dpad_down wake_dropped
Key 103 dpad_up wake_dropped
Key 102 home
Key 105 dpad_left wake_dropped
Key 106 dpad_right wake_dropped
Key 115 volume_up wake
Key 114 volume_down wake
Key 116 power wake
Key 212 camera
KEY 16 Q
Key 17 W
Key 18 E
Key 19 R
Key 20 t
Key 21 y
Key 22 U
Key 23 I
Key 24 O
Key 25 p
Key 26 left_bracket
Key 27 right_bracket
Key 43 backslash
Key 30
Key 31 s
Key 32 d
Key 33 F
Key 34g
Key 35 h
Key 36 J
Key 37 k
Key 38 L
Key 39 semicolon
Key 40 apostrophe
Key 14 del
Key 44 Z
Key 45 x
Key 46 C
Key 47 v
Key 48 B
Key 49 n
Key 50 m
Key 51 comma
Key 52 Period
Key 53 slash
Key 28 enter
Key 56 alt_left
Key 100 alt_right
Key 42 shift_left
Key 54 shift_right
Key 15 Tab
Key 57 Space
Key 150 Explorer
Key 155 envelope
Key 12 minus
Key 13 equals
The key 215
# On An at keyboard: ESC, F10
Key 1 back
Key 68 menu
Key 113 mute
Key 163 media_next
Key 164 media_play_pause
Key 165 media_previous
Key 226 headsethook wake
Key 231 call wake_dropped