给什么平台,跳什么舞

移植“将短信复制到UIM卡”心得

packages/apps/Mms

frameworks/base/telephony/java/com/android/internal/telephony

frameworks/base/telephony/java/android/telephony

hardware/ril/libril

hardware/ril/reference-ril/

hardware/ril/include/telephony/ril.h

----------------------------------------------------------------------

for example:copy sms from phone to UIM card

get the message item(MessageItem), then send broadcast with a intent obtain the message item.

the broadcast receiver is defined at frameworks/.../telephony/, and she will call mCm.copyCdmaSmsToSM

which is defined at RIL.java

in this function, you will see RILRequest rr = RILRequest.obtain(...,RIL_REQUEST_CDMA_COPY_SMS,...);

now, you should be know, the RIL_REQUEST_CDMA_COPY_SMS is defined both at RILContants.java and hardware/ril/include/telephony/ril.h,

and with the same worth.

ok, the message item is be sent to ril layer, we will find a defined at ril/libril/ril_commands.h

{RIL_REQUEST_CDMA_COPY_SMS, dispatchCdmaSms, responseVoid},

and the "case RIL_REQUEST_CDMA_COPY_SMS" at ril/reference-ril/reference-cpb71.c

----------------------------------------------------------------

查看容量:menu_sim_capacity 

posted @ 2012-10-30 17:02  Jimwind  阅读(662)  评论(0)    收藏  举报
==============精通*学习*关注==============