• 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

     

  • 相关阅读:
    web服务器12 中间件函数
    web11 路由
    web服务器15 jsonp格式接口
    web服务器14 cors跨域资源共享 报错及解决方案
    小程序弹窗(模态框)遮罩层 弹窗右上角按钮关闭
    数据库1 mysq数据库的安装全套
    MySQL数据库3 的 where语句 and 和 or运算符
    MySQL数据库2 增删改查
    MySQL分组排序取每组第一条
    IDEA频繁闪退解决
  • 原文地址:https://www.cnblogs.com/cqufengchao/p/8550617.html
Copyright © 2020-2023  润新知