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 DEFAULT_WALLPAPER_THUMBNAIL = "default_thumb2.jpg";
18     public static final String DEFAULT_WALLPAPER_THUMBNAIL_OLD = "default_thumb.jpg";
19     public static final String LAUNCHER_DB = "launcher.db";
20     public static final String SHARED_PREFERENCES_KEY = "com.android.launcher3.prefs";
21     public static final String WALLPAPER_CROP_PREFERENCES_KEY =
22             "com.android.launcher3.WallpaperCropActivity";
23     public static final String MANAGED_USER_PREFERENCES_KEY = "com.android.launcher3.managedusers.prefs";
24 
25     public static final String WALLPAPER_IMAGES_DB = "saved_wallpaper_images.db";
26     public static final String WIDGET_PREVIEWS_DB = "widgetpreviews.db";
27     public static final String APP_ICONS_DB = "app_icons.db";
28 
29     public static final List<String> ALL_FILES = Collections.unmodifiableList(Arrays.asList(
30             DEFAULT_WALLPAPER_THUMBNAIL,
31             DEFAULT_WALLPAPER_THUMBNAIL_OLD,
32             LAUNCHER_DB,
33             SHARED_PREFERENCES_KEY + XML,
34             WALLPAPER_CROP_PREFERENCES_KEY + XML,
35             WALLPAPER_IMAGES_DB,
36             WIDGET_PREVIEWS_DB,
37             MANAGED_USER_PREFERENCES_KEY + XML,
38             APP_ICONS_DB));
39 
40     // TODO: Delete these files on upgrade
41     public static final List<String> OBSOLETE_FILES = Collections.unmodifiableList(Arrays.asList(
42             "launches.log",
43             "stats.log",
44             "launcher.preferences",
45             "com.android.launcher3.compat.PackageInstallerCompatV16.queue"));
46 }
47