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.

Rockie's Android Porting Guide(5)——Change your location and add the screenlock

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

你可能感兴趣的:(location)