michael@0: #filter substitution michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: package org.mozilla.gecko.sync; michael@0: michael@0: import org.mozilla.gecko.background.common.GlobalConstants; michael@0: michael@0: /** michael@0: * Preprocessed class for storing preprocessed values specific to Android Sync. michael@0: */ michael@0: public class SyncConstants { michael@0: public static final String GLOBAL_LOG_TAG = "FxSync"; michael@0: public static final String SYNC_MAJOR_VERSION = "1"; michael@0: public static final String SYNC_MINOR_VERSION = "0"; michael@0: public static final String SYNC_VERSION_STRING = SYNC_MAJOR_VERSION + "." + michael@0: GlobalConstants.MOZ_APP_VERSION + "." + michael@0: SYNC_MINOR_VERSION; michael@0: michael@0: public static final String USER_AGENT = "Firefox AndroidSync " + michael@0: SYNC_VERSION_STRING + " (" + michael@0: GlobalConstants.MOZ_APP_DISPLAYNAME + ")"; michael@0: michael@0: public static final String ACCOUNTTYPE_SYNC = "@MOZ_ANDROID_SHARED_ACCOUNT_TYPE@"; michael@0: michael@0: /** michael@0: * Bug 790931: this action is broadcast when an Android Sync Account is michael@0: * deleted. This allows each installed Firefox to delete any Sync Account michael@0: * pickle file and to (try to) wipe its client record from the Sync server. michael@0: *
michael@0: * It is protected by signing-level permission PER_ACCOUNT_TYPE_PERMISSION and michael@0: * can be received only by Firefox versions sharing the same Android Sync michael@0: * Account type. michael@0: *
michael@0: * See {@link org.mozilla.gecko.sync.setup.SyncAccounts#makeSyncAccountDeletedIntent(android.content.Context, android.accounts.AccountManager, android.accounts.Account)} michael@0: * for contents of the intent. michael@0: */ michael@0: public static final String SYNC_ACCOUNT_DELETED_ACTION = "@MOZ_ANDROID_SHARED_ACCOUNT_TYPE@.accounts.SYNC_ACCOUNT_DELETED_ACTION"; michael@0: michael@0: /** michael@0: * Bug 790931: version number of contents of SYNC_ACCOUNT_DELETED_ACTION michael@0: * intent. michael@0: *
michael@0: * See {@link org.mozilla.gecko.sync.setup.SyncAccounts#makeSyncAccountDeletedIntent(android.content.Context, android.accounts.AccountManager, android.accounts.Account)} michael@0: * for contents of the intent. michael@0: */ michael@0: public static final long SYNC_ACCOUNT_DELETED_INTENT_VERSION = 1; michael@0: michael@0: /** michael@0: * Bug 790931: this signing-level permission protects broadcast intents that michael@0: * should be received only by Firefox versions sharing the same Android Sync michael@0: * Account type. michael@0: */ michael@0: public static final String PER_ACCOUNT_TYPE_PERMISSION = "@MOZ_ANDROID_SHARED_ACCOUNT_TYPE@.permission.PER_ACCOUNT_TYPE"; michael@0: michael@0: public static final String DEFAULT_AUTH_SERVER = "https://auth.services.mozilla.com/"; michael@0: michael@0: // Used for BackoffHandler storage for Sync 1.1's SyncAdapter. michael@0: public static final String BACKOFF_PREF_SUFFIX_11 = "sync"; michael@0: }