mobile/android/base/sync/SyncConstants.java.in

Wed, 31 Dec 2014 07:22:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:22:50 +0100
branch
TOR_BUG_3246
changeset 4
fc2d59ddac77
permissions
-rw-r--r--

Correct previous dual key logic pending first delivery installment.

     1 #filter substitution
     2 /* This Source Code Form is subject to the terms of the Mozilla Public
     3  * License, v. 2.0. If a copy of the MPL was not distributed with this
     4  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     6 package org.mozilla.gecko.sync;
     8 import org.mozilla.gecko.background.common.GlobalConstants;
    10 /**
    11  * Preprocessed class for storing preprocessed values specific to Android Sync.
    12  */
    13 public class SyncConstants {
    14   public static final String GLOBAL_LOG_TAG = "FxSync";
    15   public static final String SYNC_MAJOR_VERSION  = "1";
    16   public static final String SYNC_MINOR_VERSION  = "0";
    17   public static final String SYNC_VERSION_STRING = SYNC_MAJOR_VERSION + "." +
    18                                                    GlobalConstants.MOZ_APP_VERSION + "." +
    19                                                    SYNC_MINOR_VERSION;
    21   public static final String USER_AGENT = "Firefox AndroidSync " +
    22                                           SYNC_VERSION_STRING + " (" +
    23                                           GlobalConstants.MOZ_APP_DISPLAYNAME + ")";
    25   public static final String ACCOUNTTYPE_SYNC = "@MOZ_ANDROID_SHARED_ACCOUNT_TYPE@";
    27   /**
    28    * Bug 790931: this action is broadcast when an Android Sync Account is
    29    * deleted.  This allows each installed Firefox to delete any Sync Account
    30    * pickle file and to (try to) wipe its client record from the Sync server.
    31    * <p>
    32    * It is protected by signing-level permission PER_ACCOUNT_TYPE_PERMISSION and
    33    * can be received only by Firefox versions sharing the same Android Sync
    34    * Account type.
    35    * <p>
    36    * See {@link org.mozilla.gecko.sync.setup.SyncAccounts#makeSyncAccountDeletedIntent(android.content.Context, android.accounts.AccountManager, android.accounts.Account)}
    37    * for contents of the intent.
    38    */
    39   public static final String SYNC_ACCOUNT_DELETED_ACTION = "@MOZ_ANDROID_SHARED_ACCOUNT_TYPE@.accounts.SYNC_ACCOUNT_DELETED_ACTION";
    41   /**
    42    * Bug 790931: version number of contents of SYNC_ACCOUNT_DELETED_ACTION
    43    * intent.
    44    * <p>
    45    * See {@link org.mozilla.gecko.sync.setup.SyncAccounts#makeSyncAccountDeletedIntent(android.content.Context, android.accounts.AccountManager, android.accounts.Account)}
    46    * for contents of the intent.
    47    */
    48   public static final long SYNC_ACCOUNT_DELETED_INTENT_VERSION = 1;
    50   /**
    51    * Bug 790931: this signing-level permission protects broadcast intents that
    52    * should be received only by Firefox versions sharing the same Android Sync
    53    * Account type.
    54    */
    55   public static final String PER_ACCOUNT_TYPE_PERMISSION = "@MOZ_ANDROID_SHARED_ACCOUNT_TYPE@.permission.PER_ACCOUNT_TYPE";
    57   public static final String DEFAULT_AUTH_SERVER = "https://auth.services.mozilla.com/";
    59   // Used for BackoffHandler storage for Sync 1.1's SyncAdapter.
    60   public static final String BACKOFF_PREF_SUFFIX_11 = "sync";
    61 }

mercurial