1.4.0117 YX-T01不显示小程序二维码
This commit is contained in:
@@ -392,7 +392,8 @@ public class ApkUtils {
|
||||
}
|
||||
|
||||
public static boolean installApps(String apkPath) {
|
||||
ToastUtil.show("正在安装应用...");
|
||||
Log.e(TAG, "installApps: 正在安装应用 " + apkPath);
|
||||
ToastUtil.show("正在安装应用");
|
||||
Process process = null;
|
||||
BufferedReader successResult = null;
|
||||
BufferedReader errorResult = null;
|
||||
@@ -438,6 +439,7 @@ public class ApkUtils {
|
||||
@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
|
||||
public static void installAppatPie(Context context, String apkFilePath) {
|
||||
File file = new File(apkFilePath);
|
||||
Log.e(TAG, "installAppatPie: 正在安装应用 " + apkFilePath);
|
||||
PackageInstaller packageInstaller = context.getPackageManager().getPackageInstaller();
|
||||
PackageInstaller.SessionParams sessionParams = new PackageInstaller.SessionParams(PackageInstaller
|
||||
.SessionParams.MODE_FULL_INSTALL);
|
||||
@@ -514,7 +516,8 @@ public class ApkUtils {
|
||||
|
||||
|
||||
public static void installApkInSilence(String installPath, String packageName) {
|
||||
ToastUtil.show("正在安装应用...");
|
||||
Log.e(TAG, "installApps: 正在安装应用 " + installPath);
|
||||
ToastUtil.show("正在安装应用");
|
||||
|
||||
Class<?> pmService;
|
||||
Class<?> activityTherad;
|
||||
@@ -794,6 +797,7 @@ public class ApkUtils {
|
||||
this.add("com.uiuipad.os");
|
||||
this.add("com.uiuipad.zyinfo");
|
||||
this.add("com.yixuepai.os");
|
||||
this.add("com.tongyi.aistudent");
|
||||
}};
|
||||
|
||||
//出厂自带的app
|
||||
|
||||
Reference in New Issue
Block a user