• Intent安全测试


    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

     

  • 相关阅读:
    利用定时器实时显示<input type="range"/>的值
    javascript日常总结
    SpringCloud如何上传大文件
    SpringBoot如何上传大文件
    SpringMVC如何上传大文件
    CSharp如何上传大文件
    C#如何上传大文件
    C#.NET如何上传大文件
    .NET如何上传大文件
    word文档的图片怎么保存到动易CMS上
  • 原文地址:https://www.cnblogs.com/cqufengchao/p/8550617.html
Copyright © 2020-2023  润新知