对360通讯录的反编译分析

来源:互联网 发布:linux c 定时器 编辑:程序博客网 时间:2024/06/05 09:51

用到的一些类:

android.content.pm.PackageInfo;

android.os.Build:  在开发中 我们有时候会需要获取当前手机的系统版本来进行判断,或者需要获取一些当前手机的硬件信息。

android.app.service:A Service is an application component representing either an application's desire to perform a longer-running operation while not interacting with the user or to supply functionality for other applications to use. Each service class must have a corresponding <service> declaration in its package'sAndroidManifest.xml. Services can be started with Context.startService() andContext.bindService().

android.os.HandlerThread:  Handy class for starting a new thread that has a looper. The looper can then be used to create handler classes. Note that start() must still be called.

其中com.qihoo360.contacts.service包中是定义自定义的Service类,主要用来处理短信。


android.telephony.ServiceState:


用到的Intent的Action:

android.intent.action.BOOT_COMPLETED:  Broadcast Action: This is broadcast once, after the system has finished booting. It can be used to perform application-specific initialization, such as installing alarms. You must hold theRECEIVE_BOOT_COMPLETED permission in order to receive this broadcast.

android.provider.Telephony.GSM_SMS_RECEIVED:

android.provider.Telephony.SMS_RECEIVED_2:

android.provider.Telephony.WAP_PUSH_RECEIVED:

com.android.mms.transaction.SEND_MESSAGE:

android.intent.action.SERVICE_STATE:

android.view.WindowManager: The interface that apps use to talk to the window manager.

android.text.Selection: Utility class for manipulating cursors and selections in CharSequences. A cursor is a selection where the start and end are at the same offset.



原创粉丝点击