新增功能键
./mt6573/mediatek/custom/ckt73_gb/kernel/dct/dct/codegen.dws
\mt6573\mediatek\source\dct\DrvGen.exe
./mt6573/mediatek/config/ckt73_gb/mt6573-kpd.kl
1 key 237 BUTTON_LOCK
./mt6573/frameworks/base/include/ui/KeycodeLabels.h
1 static const KeycodeLabel KEYCODES[] = {
2 ....
3 { "BUTTON_LOCK", 111 },
4
5 // NOTE: If you add a new keycode here you must also add it to several other files.
6 // Refer to frameworks/base/core/java/android/view/KeyEvent.java for the full list.
7
8 { NULL, 0 }
9 };
./mt6573/frameworks/base/native/include/android/keycodes.h
1 /*
2 * Key codes.
3 */
4 enum {
5 ...
6 AKEYCODE_BUTTON_LOCK = 111,
7 // NOTE: If you add a new keycode here you must also add it to several other files.
8 // Refer to frameworks/base/core/java/android/view/KeyEvent.java for the full list.
9 };
./mt6573/frameworks/base/core/java/android/view/KeyEvent.java
1 public class KeyEvent extends InputEvent implements Parcelable {
2 ...
3 public static final int KEYCODE_BUTTON_LOCK = 111;
4 ...
5 }
./mt6573/frameworks/base/core/res/res/values/attrs.xml
1 <attr name="keycode">
2 <enum name="KEYCODE_BUTTON_LOCK" value="111" />
3 </attr>
编译SDK
1 make ckt73_gb sdk
APP & Framework 使用
把./mt6573/out/host/linux-x86/sdk/android-sdk_eng.ckt_linux-x86/platforms下的android-2.3.5文件夹复制到android-sdk-windows/platforms目录下。
新建AVD使用。