@Override
    public void run() {
      Intent intent = new Intent();
      if (this.mIntent.getExtras() != null) {
        intent.putExtras(this.mIntent.getExtras());
      }
      intent.putExtra(KEY_ACTIVITY, this.mActivityName);
      intent.putExtra(KEY_BUNDLE_PKG, this.mComponent.getPkgName());
      intent.setData(this.mIntent.getData());
      intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);

      intent.setClass(Globals.getApplication(), PlatformConfigure.BundleNotFoundActivity);
      Globals.getApplication().startActivity(intent);
    }
Exemple #2
0
 public static boolean isAtlasDexopted() {
   PackageInfo packageInfo = null;
   try {
     packageInfo =
         Globals.getApplication()
             .getPackageManager()
             .getPackageInfo(Globals.getApplication().getPackageName(), 0);
   } catch (Throwable e) {
     e.printStackTrace();
   }
   SharedPreferences sharedPreferences =
       Globals.getApplication().getSharedPreferences("atlas_configs", 0);
   if (packageInfo == null
       || !"dexopt".equals(sharedPreferences.getString(packageInfo.versionName, ""))) {
     return false;
   }
   return false;
 }