package com.lody.virtual.client.stub; import java.util.Locale; /** * @author Lody */ public class StubManifest { public static final String STUB_DEF_AUTHORITY = "virtual_stub_"; public static final boolean ENABLE_GMS = false; public static String STUB_ACTIVITY = StubActivity.class.getName(); public static String STUB_DIALOG = StubDialog.class.getName(); public static String STUB_CP = StubContentProvider.class.getName(); public static String STUB_JOB = StubJob.class.getName(); public static String RESOLVER_ACTIVITY = ResolverActivity.class.getName(); public static String STUB_CP_AUTHORITY = "virtual_stub_"; public static int STUB_COUNT = 50; /** * If enable, * App run in VA will allowed to create shortcut on your Desktop. * */ public static boolean ENABLE_INNER_SHORTCUT = true; /** * If enable, * For example: * when app access '/data/data/{Package Name}' or '/data/user/0/{Package Name}', * we redirect it to '/data/data/{Your Host Package Name}/virtual/user/0/{Package Name}'. */ public static boolean ENABLE_IO_REDIRECT = true; public static String getStubActivityName(int index) { return String.format(Locale.ENGLISH, "%s$C%d", STUB_ACTIVITY, index); } public static String getStubDialogName(int index) { return String.format(Locale.ENGLISH, "%s$C%d", STUB_DIALOG, index); } public static String getStubCP(int index) { return String.format(Locale.ENGLISH, "%s$C%d", STUB_CP, index); } public static String getStubAuthority(int index) { return String.format(Locale.ENGLISH, "%s%d", STUB_CP_AUTHORITY, index); } }