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

更多相关文章

  1. 代码中设置drawableleft
  2. android 3.0 隐藏 系统标题栏
  3. Android开发中activity切换动画的实现
  4. Android(安卓)学习 笔记_05. 文件下载
  5. Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
  6. 技术博客汇总
  7. android 2.3 wifi (一)
  8. AndRoid Notification的清空和修改
  9. Android中的Chronometer

随机推荐

  1. android 程序退出解决方案
  2. Android O 指纹识别解析
  3. Android(安卓)Drawable 对象复制、拷贝
  4. Retrofit+RxJava实战日志(1)-在Android(
  5. Android的MVC框架
  6. android+spring boot 选择,上传,下载文件
  7. Android(安卓)删除文件夹(文件夹以及文件
  8. Android 里子线程真的不能刷新UI吗?
  9. Android(安卓)APP中跳转至微信,分享图文给
  10. 【Android】1.6版本所有权限