Androidmanifest in android:exported

Source: Internet
Author: User

assume that android:exported= "false" is declared in androidmanifest of service, etc.
The service is not available for cross-process use.
Permission denied!

Need to change to: Android:exported= "true"

android:exported
This property is used to indicate whether the service can be called by other application components or interact with it.

If set to true, it can be called or interacted, otherwise it cannot.

When set to False. Only the component of the same application or an application with the same user ID could start or bind the service.
Its default value depends on the filter that is included with the service. The absence of a filter means that the service can only be invoked by specifying a clear class name, which means that the service can only be used inside the application (since other external users will not know the class name of the service), so this is the case. The default value for this property is false. On the other hand, assuming that at least one filter is included, it means that the service can provide services to other external applications. Therefore, the default value is true.


This property is not the only way to limit the exposure of services to other applications.

You can also use permissions to restrict external entities that can interact with the service.

Androidmanifest in android:exported

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.