Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7488735
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T15:01:20+00:00 2026-05-29T15:01:20+00:00

There are usually two services involved with implementing an Android authenticator – the Authentication

  • 0

There are usually two services involved with implementing an Android authenticator – the Authentication service to return an authenticator, and the Sync service which provides a sync adapter. This question is specifically about the Authentication service, although in most examples both services are given the android:exported="true" attribute in the AndroidManifest.xml, eg:

<service
    android:name=".authenticator.AuthenticationService"
    android:exported="true">
    <intent-filter>
        <action
            android:name="android.accounts.AccountAuthenticator" />
    </intent-filter>
    <meta-data
        android:name="android.accounts.AccountAuthenticator"
        android:resource="@xml/authenticator" />
</service>

Removing the attribute from the Authentication service seems to have no effect (tested Froyo, Gingerbread) – the auth code continues to work just fine – so is the flag actually necessary?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T15:01:21+00:00Added an answer on May 29, 2026 at 3:01 pm

    Ok, to answer this myself by reading the docs, the documentation for the exported attribute says:

    The default value depends on whether the service contains intent
    filters. The absence of any filters means that it can be invoked only
    by specifying its exact class name. This implies that the service is
    intended only for application-internal use (since others would not
    know the class name). So in this case, the default value is “false”.
    On the other hand, the presence of at least one filter implies that
    the service is intended for external use, so the default value is
    “true”.

    All Authentication services have an intent filter – the docs for AbstractAccountAuthenticator say:

    In order to be an authenticator one must … write a service that
    returns the result of getIBinder() in the service’s
    onBind(android.content.Intent) when invoked with an intent with action
    ACTION_AUTHENTICATOR_INTENT.

    This requires an intent filter, consequently the default value of exported for the service is true. So the answer to this question is “No, the attribute is not necessary – because it’s true by default”.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In visual studio or any other IDE, usually there are two build configurations, Debug
my Controllers usually consume one or two Services. In turn, I inject a same
In methods of controllers, there are usually many checks for doing the right thing.
My application server needs to notify users about some events via email. Usually there
Design patterns are usually related to object oriented design. Are there design patterns for
When we deploy applications, there is usually a separate machine for production and development.
I have a problem with socket send (or write) function on android. There is
Because my time is limited I can usually only focus on one or two
need to make a bunch (20+) of services (usually single purpose services - such
I want to create a website which will serve more like a web-application. There

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.