2014-10-06 16:06:46 +01:00
|
|
|
package com.android.launcher3;
|
|
|
|
|
|
|
|
|
|
import java.util.Arrays;
|
|
|
|
|
import java.util.Collections;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Central list of files the Launcher writes to the application data directory.
|
|
|
|
|
*
|
|
|
|
|
* To add a new Launcher file, create a String constant referring to the filename, and add it to
|
|
|
|
|
* ALL_FILES, as shown below.
|
|
|
|
|
*/
|
|
|
|
|
public class LauncherFiles {
|
|
|
|
|
|
2014-10-09 17:04:09 +01:00
|
|
|
private static final String XML = ".xml";
|
|
|
|
|
|
2014-10-06 16:06:46 +01:00
|
|
|
public static final String LAUNCHER_DB = "launcher.db";
|
2021-03-25 10:41:54 -04:00
|
|
|
public static final String LAUNCHER_4_BY_5_DB = "launcher_4_by_5.db";
|
2020-01-27 13:44:06 -08:00
|
|
|
public static final String LAUNCHER_4_BY_4_DB = "launcher_4_by_4.db";
|
|
|
|
|
public static final String LAUNCHER_3_BY_3_DB = "launcher_3_by_3.db";
|
|
|
|
|
public static final String LAUNCHER_2_BY_2_DB = "launcher_2_by_2.db";
|
|
|
|
|
public static final String BACKUP_DB = "backup.db";
|
2014-10-09 17:04:09 +01:00
|
|
|
public static final String SHARED_PREFERENCES_KEY = "com.android.launcher3.prefs";
|
2020-01-27 13:44:06 -08:00
|
|
|
public static final String MANAGED_USER_PREFERENCES_KEY =
|
|
|
|
|
"com.android.launcher3.managedusers.prefs";
|
2016-07-08 08:32:44 -07:00
|
|
|
// This preference file is not backed up to cloud.
|
|
|
|
|
public static final String DEVICE_PREFERENCES_KEY = "com.android.launcher3.device.prefs";
|
2015-03-20 17:26:30 -07:00
|
|
|
|
2014-10-06 16:06:46 +01:00
|
|
|
public static final String WIDGET_PREVIEWS_DB = "widgetpreviews.db";
|
2015-02-18 16:46:50 -08:00
|
|
|
public static final String APP_ICONS_DB = "app_icons.db";
|
2014-10-06 16:06:46 +01:00
|
|
|
|
|
|
|
|
public static final List<String> ALL_FILES = Collections.unmodifiableList(Arrays.asList(
|
|
|
|
|
LAUNCHER_DB,
|
2021-03-25 10:41:54 -04:00
|
|
|
LAUNCHER_4_BY_5_DB,
|
2020-01-27 13:44:06 -08:00
|
|
|
LAUNCHER_4_BY_4_DB,
|
|
|
|
|
LAUNCHER_3_BY_3_DB,
|
|
|
|
|
LAUNCHER_2_BY_2_DB,
|
|
|
|
|
BACKUP_DB,
|
2014-10-09 17:04:09 +01:00
|
|
|
SHARED_PREFERENCES_KEY + XML,
|
2015-02-18 16:46:50 -08:00
|
|
|
WIDGET_PREVIEWS_DB,
|
2016-03-23 10:47:15 -07:00
|
|
|
MANAGED_USER_PREFERENCES_KEY + XML,
|
2016-07-08 08:32:44 -07:00
|
|
|
DEVICE_PREFERENCES_KEY + XML,
|
2015-06-11 16:18:39 -07:00
|
|
|
APP_ICONS_DB));
|
2014-10-06 16:06:46 +01:00
|
|
|
}
|