Rockie's Android(安卓)Porting Guide(5)——Change your location and add the screenlock
Rockie's Android Porting Guide(5)——Change your location and add the screenlock
Rockie Cheng
Today ,I just solved two small questions.
One is changing the system location to CHINA, the other one likes a gift more ,
--a screen lock--and I do not know how to get it.
(I) Change the system location
simple and simple
at the end of build/target/product/idea6410.mk
add this:
CUSTOM_LOCALES := zh_CN
Of coures, you have many choises:
ldpi /
hdpi /
mdpi /
en_US /
en_GB /
en_CA /
en_AU /
en_NZ /
en_SG /
ja_JP /
fr_FR /
fr_BE /
fr_CA /
fr_CH /
it_IT /
it_CH /
es_ES /
de_DE /
de_AT /
de_CH /
de_LI /
nl_NL /
nl_BE /
cs_CZ /
pl_PL /
zh_CN /
zh_TW /
ru_RU /
ko_KR
(II) Add the screenlock
I have wasted the whole morning online to serch a way to add the screenlock, but no answer.
Then ,I find that build/target/product/sdk.mk has more apps than generic.mk,so I decide to put them in my idea6410.mk.
Luckly,the Screenlock appears and the keyboard(lock & unclok) is working well.
That must be one of the apks ,who can tell one which one?
SoftKeyboard/LiveWallpapersPicker or Fallback?
sdk.mk
AccountAndSyncSettings /
AlarmClock /
Camera /
Calculator /
Development /
DrmProvider /
Email /
Fallback /
GPSEnable /
Launcher /
Music /
Mms /
Settings /
SdkSetup /
CustomLocale /
gpstest /
sqlite3 /
LatinIME /
PinyinIME /
OpenWnn /
libWnnEngDic /
libWnnJpnDic /
libwnndict /
CertInstaller /
LiveWallpapersPicker /
ApiDemos /
GestureBuilder /
SoftKeyboard
generic.mk
AccountAndSyncSettings /
AlarmClock /
AlarmProvider /
Bluetooth /
Calculator /
Calendar /
Camera /
CertInstaller /
DrmProvider /
Email /
Gallery /
LatinIME /
Mms /
Music /
Settings /
Sync /
Updater /
CalendarProvider /
SyncProvider
BTW: Fix a bug about KCM files
W/KeyCharacterMap( 401): Can't open keycharmap file
W/KeyCharacterMap( 401): Error loading keycharmap file '/system/usr/keychars/gpio-keys.kcm.bin'. hw.keyboards.0.devname='gpio-keys'
W/KeyCharacterMap( 401): Can't open keycharmap file
E/KeyCharacterMap( 401): Can't find any keycharmaps (also tried /system/usr/keychars/qwerty.kcm.bin)
I/DEBUG ( 414): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG ( 414): Build fingerprint: 'idea6410/idea6410/idea6410/:Eclair/ECLAIR/eng.kyon.20091226.183935:eng/test-keys'
I/DEBUG ( 414): pid: 401, tid: 401 >>> android.process.acore <<<
I/DEBUG ( 414): signal 11 (SIGSEGV), fault addr 00000004
I rebuild the whole codes for more than ten times and finally find that keypoint "No Read Right"
Solution:
add this to your init.rc
chmod 777 system/usr/keychars/gpio-keys.kcm.bin
Rockie Cheng
更多相关文章
- 代码中设置drawableleft
- android 3.0 隐藏 系统标题栏
- Android开发中activity切换动画的实现
- Android(安卓)学习 笔记_05. 文件下载
- Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
- 技术博客汇总
- android 2.3 wifi (一)
- AndRoid Notification的清空和修改
- Android中的Chronometer