拦截来电和回复短信
由于系统API并没有提供Itelephony这个电话管理服务类的接口使用,所以就得通过源码中的Itelephony.aidl来生成电话管理服务接口,这样就能够使用到系统操作电话的功能。
新建包com.android.internal.telephony,在包内新建Itelephony.aidl,内容为
interface ITelephony{ boolean endCall(); void answerRingingCall(); /** * Allow mobile data connections. */ boolean enableDataConnectivity(); /** * Disallow mobile data connections. */ boolean disableDataConnectivity(); /** * Report whether data connectivity is possible. */ boolean isDataConnectivityPossible(); }
计划还是把备忘写在网上
一些小的知识点太杂了,写个备忘,方便查看。
Android……