Class FozaAppInstallerJ

java.lang.Object
lu.die.foza.SuperAPI.FozaAppInstallerJ

public class FozaAppInstallerJ extends Object
Version:
1.0
Author:
king@62v.net
  • Constructor Details

    • FozaAppInstallerJ

      public FozaAppInstallerJ()
  • Method Details

    • cloneApp

      public static int cloneApp(String packageName)
      Install an existing app which already been installed. Must be installed before, so this method also known as clone application.
      Parameters:
      packageName - package name like {@value "com.whatsapp"}
      Returns:
      install result, greater than 0 then success, otherwise you should convert it to see. FozaAppInstallerJ.cloneApp("com.whatsapp")
    • installAppByPath

      public static int installAppByPath(String path)
      Install apk from explorer etc. And you must give a direct path to install inside. Only support the standard apk file, please verify the file before you use this method.
      Parameters:
      path - a direct apk path
      Returns:
      install result FozaAppInstallerJ.installAppByPath("/sdcard/1.apk")
    • convertResultToString

      public static String convertResultToString(int installResult)
      Convert the install result to a readable string, mostly greater than 0 is success, otherwise you can use this api for debug purpose, and can be shown to users for comprehensive.
      Parameters:
      installResult - install result integer
      Returns:
      readable string