Content Providers let you set readPermission and writePermission attributes to offer a more granular control over read/write access:Enforcing Permissions when Broadcasting IntentsIn addition to requiring permissions for Intents to be received by your Broadcast Receivers, you can attach a permission requirement to each Intent you broadcast. This is good practice when broadcasting Intents that contain sensitive information, such as location updates that should only be used within your application.In such cases it’s best practice to require a signature permission to ensure that only applications signed with the same signature as the host application can receive the broadcast:When calling sendlntent, you can supply the permission string required for a Broadcast Receivers to receive the Intent.
đang được dịch, vui lòng đợi..
