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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值