• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package com.android.launcher3;
2 
3 import java.util.Arrays;
4 import java.util.Collections;
5 import java.util.List;
6 
7 /**
8  * Central list of files the Launcher writes to the application data directory.
9  *
10  * To add a new Launcher file, create a String constant referring to the filename, and add it to
11  * ALL_FILES, as shown below.
12  */
13 public class LauncherFiles {
14 
15     private static final String XML = ".xml";
16 
17     public static final String LAUNCHER_DB = "launcher.db";
18     public static final String SHARED_PREFERENCES_KEY = "com.android.launcher3.prefs";
19     public static final String MANAGED_USER_PREFERENCES_KEY = "com.android.launcher3.managedusers.prefs";
20     // This preference file is not backed up to cloud.
21     public static final String DEVICE_PREFERENCES_KEY = "com.android.launcher3.device.prefs";
22 
23     public static final String WIDGET_PREVIEWS_DB = "widgetpreviews.db";
24     public static final String APP_ICONS_DB = "app_icons.db";
25 
26     public static final List<String> ALL_FILES = Collections.unmodifiableList(Arrays.asList(
27             LAUNCHER_DB,
28             SHARED_PREFERENCES_KEY + XML,
29             WIDGET_PREVIEWS_DB,
30             MANAGED_USER_PREFERENCES_KEY + XML,
31             DEVICE_PREFERENCES_KEY + XML,
32             APP_ICONS_DB));
33 }
34