code: package com.lody.virtual.client.stub;
  
  import java.util.Locale;
  
  /**
   * @author Lody
   */
  
  public class VASettings {
      public static final String STUB_DEF_AUTHORITY = "virtual_stub_";
      public static final String ACTION_BADGER_CHANGE = "com.lody.virtual.BADGER_CHANGE";
      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;
      public static String[] PRIVILEGE_APPS = new String[]{
              "com.google.android.gms"
      };
  
      /**
       * 是否禁止插件应用直接调用返回桌面的 intent
       * <p>
       * Intent home = new Intent(Intent.ACTION_MAIN);
       * home.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
       * home.addCategory(Intent.CATEGORY_HOME);
       * startActivity(home);
       */
      public static boolean INTERCEPT_BACK_HOME = true;
  
      /**
       * 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);
      }
  
      public static class Wifi {
          public static boolean FAKE_WIFI_STATE = false;
          public static String DEFAULT_BSSID = "66:55:44:33:22:11";
          public static String DEFAULT_MAC = "11:22:33:44:55:66";
          public static String DEFAULT_SSID = "VirtualApp";
  
          public static String BSSID = DEFAULT_BSSID;
          public static String MAC = DEFAULT_MAC;
          public static String SSID = DEFAULT_SSID;
      }
  
  }
  