zoukankan      html  css  js  c++  java
  • 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

     

  • 相关阅读:
    页面模板
    HTML,CSS,JaveScript
    TCP三次握手
    BLDC无刷直流电机的原理及驱动基础
    调试日志——基于stm32的智能声光报警器(三)
    调试日志——基于stm32的智能声光报警器(二)
    调试日志——基于stm32的智能声光报警器(一)
    Jlink-10 pin 的定义(stm32使用)官方定义
    关于学习新知识的一点想法
    前端笔记-javaScript-3
  • 原文地址:https://www.cnblogs.com/cqufengchao/p/8550617.html
Copyright © 2011-2022 走看看