Google对Intent的相关函数定义:
https://developer.android.com/reference/android/content/Context.html
Activity:
startActivity()
startActivityForResult()
startActivities(Intent[] intents, Bundle options) -- Launch multiple new activities.
startIntentSender(IntentSender intent, Intent fillInIntent, int flagsMask, int flagsValues, int extraFlags, Bundle options)
Like startActivity(Intent, Bundle), but taking a IntentSender to start.
Service:
startService()
bindService()
Broadcast:
sendBroadcast()
sendOrderedBroadcast()
sendStickyBroadcast()
sendStickyOrderedBroadcast
Intent()
Intent(Intent o)
Intent(String action)
Intent(String action, Uri uri)
Intent(Context packageContext, Class> cls)
Intent(String action, Uri uri, Context packageContext, Class> cls)
====================================================================
startActivityForResult(Intent intent, int requestCode)
bindService(Intent service, ServiceConnection conn, int flags)
startService(Intent service)
startActivities(Intent[] intents, Bundle options)
startActivities(Intent[] intents)
startActivity(Intent intent)
startActivity(Intent intent, Bundle options)
startIntentSender(IntentSender intent, Intent fillInIntent, int flagsMask, int flagsValues, int extraFlags, Bundle options)
startIntentSender(IntentSender intent, Intent fillInIntent, int flagsMask, int flagsValues, int extraFlags)
registerReceiver(BroadcastReceiver receiver, IntentFilter filter)
registerReceiver(BroadcastReceiver receiver, IntentFilter filter, String broadcastPermission, Handler scheduler)
sendBroadcast(Intent intent, String receiverPermission)
sendBroadcast(Intent intent)
sendBroadcastAsUser(Intent intent, UserHandle user)
sendBroadcastAsUser(Intent intent, UserHandle user, String receiverPermission)
sendOrderedBroadcast(Intent intent, String receiverPermission, BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, String initialData, Bundle initialExtras)
sendOrderedBroadcast(Intent intent, String receiverPermission)
sendOrderedBroadcastAsUser(Intent intent, UserHandle user, String receiverPermission, BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, String initialData, Bundle initialExtras)
sendStickyBroadcast(Intent intent)
sendStickyBroadcastAsUser(Intent intent, UserHandle user)
sendStickyOrderedBroadcast(Intent intent, BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, String initialData, Bundle initialExtras)
sendStickyOrderedBroadcastAsUser(Intent intent, UserHandle user, BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, String initialData, Bundle initialExtras)
一、Intent接收安全
Intent接收安全分为这几类:拒绝服务漏洞、静态组件安全、动态组件安全、Fragment安全、Intent返回值安全。
二、Intent发送安全
Activity |
startActivity |
startActivities |
|
startIntentSender |
|
Service |
startService |
bindService |
|
Broadcast |
sendBroadcast |
sendOrderedBroadcast |
|
sendStickyBroadcast |
|
sendStickyOrderedBroadcast |
|
PendingIntent |
PendingIntent |