App update installer, to simply use
- Three ways of silent install app:
Root,AccessibilityServiceandAuto, to chose these way by enum Mode of Installer
Installer.getInstance().install(getActivity(), Installer.MODE.AUTO, APK_DOWNLOAD_URL);- Get the Installer instance
Installer installer = Installer.getInstance();- Use install two params, the first parameter is install apk way :
ROOT_ONLY,ACCESSIBILITY_ONLYandAUTO. the second parameter is file path :file pathorhttp url.
//file path
installer.install(getActivity(), Installer.MODE.AUTO, file);
//http url
installer.install(getActivity(), Installer.MODE.AUTO, APK_DOWNLOAD_URL);- Android Stuido 2.2 preview 6
- build SDK version: 24
