Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Account Required Syncability Feature

I was looking at the code for JumpNotes and there was one thing I just could not figure out. JumpNotes: AccountList.java

public static final String[] GOOGLE_ACCOUNT_REQUIRED_SYNCABILITY_FEATURES =
        new String[]{ "service_ah" };

This is used to get google accounts like so:

mAccountManager.getAccountsByTypeAndFeatures(SyncAdapter.GOOGLE_ACCOUNT_TYPE,
            SyncAdapter.GOOGLE_ACCOUNT_REQUIRED_SYNCABILITY_FEATURES,

What is this feature "service_ah"? What does it mean? Is there any way I can get the source for the authenticator service for google accounts on Android?

like image 424
rahul Avatar asked Nov 05 '22 11:11

rahul


1 Answers

From Android Documentation:

Account features are authenticator-specific string tokens identifying boolean account properties. For example, features are used to tell whether Google accounts have a particular service (such as Google Calendar or Google Talk) enabled. The feature names and their meanings are published somewhere associated with the authenticator in question.

I didn't found any official documentation, but it seems that each feature is of the form service_code where code stands for a Google service.

From this (outdated) list of services, "ah" stands apparently for "Google Mashups Editor & Google App Engine"

like image 101
Baptiste Wicht Avatar answered Nov 13 '22 23:11

Baptiste Wicht