FullBackup.java revision 4a627c71ff53a4fca1f961f4b1dcc0461df18a06
1/*
2 * Copyright (C) 2011 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package android.app.backup;
18
19/**
20 * Global constant definitions et cetera related to the full-backup-to-fd
21 * binary format.
22 *
23 * @hide
24 */
25public class FullBackup {
26    public static String APK_TREE_TOKEN = "a";
27    public static String OBB_TREE_TOKEN = "obb";
28    public static String ROOT_TREE_TOKEN = "r";
29    public static String DATA_TREE_TOKEN = "f";
30    public static String DATABASE_TREE_TOKEN = "db";
31    public static String SHAREDPREFS_TREE_TOKEN = "sp";
32    public static String CACHE_TREE_TOKEN = "c";
33
34    public static String FULL_BACKUP_INTENT_ACTION = "fullback";
35    public static String FULL_RESTORE_INTENT_ACTION = "fullrest";
36    public static String CONF_TOKEN_INTENT_EXTRA = "conftoken";
37
38    static public native int backupToTar(String packageName, String domain,
39            String linkdomain, String rootpath, String path, BackupDataOutput output);
40}
41