mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
51 lines
2.2 KiB
Java
51 lines
2.2 KiB
Java
#filter substitution
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
package org.mozilla.gecko.sync;
|
|
|
|
/**
|
|
* Preprocessed class for storing preprocessed values.
|
|
*/
|
|
public class GlobalConstants {
|
|
public static final String PRODUCT_NAME = "@MOZ_APP_DISPLAYNAME@";
|
|
public static final String SYNC_VERSION_STRING = "1.@MOZ_APP_VERSION@.0";
|
|
|
|
public static final String USER_AGENT = "Firefox AndroidSync " + SYNC_VERSION_STRING +
|
|
" (" + PRODUCT_NAME + ")";
|
|
public static final String BROWSER_INTENT_PACKAGE = "@ANDROID_PACKAGE_NAME@";
|
|
public static final String BROWSER_INTENT_CLASS = BROWSER_INTENT_PACKAGE + ".App";
|
|
|
|
public static final String ACCOUNTTYPE_SYNC = "@MOZ_ANDROID_SHARED_ACCOUNT_TYPE@";
|
|
|
|
/**
|
|
* Bug 790931: this signing-level permission protects broadcast intents that
|
|
* should be received only by Firefox versions sharing the same Android
|
|
* Account type.
|
|
*/
|
|
public static final String PER_ACCOUNT_TYPE_PERMISSION = "@MOZ_ANDROID_SHARED_ACCOUNT_TYPE@.permission.PER_ACCOUNT_TYPE";
|
|
|
|
/**
|
|
* Bug 790931: this action is broadcast when an Android Account is deleted.
|
|
* This allows each installed Firefox to delete any pickle file and to (try
|
|
* to) wipe its client record from the server.
|
|
* <p>
|
|
* It is protected by signing-level permission PER_ACCOUNT_TYPE_PERMISSION and
|
|
* can be received only by Firefox versions sharing the same Android Account
|
|
* type.
|
|
* <p>
|
|
* See {@link SyncAccounts#makeSyncAccountDeletedIntent(android.content.Context, android.accounts.AccountManager, android.accounts.Account)}
|
|
* for contents of the intent.
|
|
*/
|
|
public static final String SYNC_ACCOUNT_DELETED_ACTION = "@MOZ_ANDROID_SHARED_ACCOUNT_TYPE@.accounts.SYNC_ACCOUNT_DELETED_ACTION";
|
|
|
|
/**
|
|
* Bug 790931: version number of contents of SYNC_ACCOUNT_DELETED_ACTION intent.
|
|
* <p>
|
|
* See {@link SyncAccounts#makeSyncAccountDeletedIntent(android.content.Context, android.accounts.AccountManager, android.accounts.Account)}
|
|
* for contents of the intent.
|
|
*/
|
|
public static final long SYNC_ACCOUNT_DELETED_INTENT_VERSION = 1;
|
|
}
|