Android security --android: exported attribute

1, property

  • android: exported: the current component can be invoked to interact with it or other application components. Its tail when the true value can be called or said interaction is false only the same application components or applications with the same user ID to start or bind the service.
  • Activity, Service, Content Provider, Broadcast Receiver has four major components android: exported attribute.

2、activity

  • to true : The current may be activated Activity Application another component
  • false : Current Activity Another Application components can not be started
  • ** no intent filter **: default false
  • At least one filter the Intent : Default true
  • It can also be used to limit the external entities permission wake of the current Activity

3、service

  • to true : whether components of other applications can wake up service or interact with this service
  • false : only a single application component or application has the same user ID can start this service or bind this service
  • No filter the Intent : Default false
  • At least one filter the Intent : Default true
  • It can also be used to limit the external entities permission wake of the current service

3、Content Provider

  • to true : any application can use the Provider by URI to get it, can also be used by the appropriate authority Provider
  • false : current provider can not be use by other applications. Only with Provider application you can get the same user ID of the current application
  • Android sdk version is greater than 16 : Default false
  • ** Android sdk version is less than equal to 16 **: default true
  • By Android: limiting exported = "fasle" and whether the current application permission Provider will be for additional applications.

4、Broadcast Receiver

  • to true : The current broadcast Receiver Receiver message can be obtained from the current external application
  • false : current broadcast Receiver can receive the same application or applications have the same user ID issued broadcasting
  • ** no intent filter **: default false
  • At least one filter the Intent : Default true
  • It can also be used to limit external application permission to send him a message
Published 41 original articles · won praise 8 · views 20000 +

Guess you like

Origin blog.csdn.net/huma8848888/article/details/95065825