1.4.0103 更换图标,G10P 标签MTK11改为G104,G10P标签为G10P
This commit is contained in:
@@ -111,6 +111,28 @@ public class ApkUtils {
|
||||
return false;
|
||||
}
|
||||
|
||||
public static boolean openPackage(Context context, String packageName, String className) {
|
||||
if (TextUtils.isEmpty(className)) {
|
||||
return openPackage(context, packageName);
|
||||
}
|
||||
ComponentName cn = new ComponentName(packageName, className);
|
||||
Intent intent = new Intent();
|
||||
intent.setComponent(cn);
|
||||
intent.addCategory(Intent.CATEGORY_LAUNCHER);
|
||||
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
if (context != null) {
|
||||
try {
|
||||
context.startActivity(intent);
|
||||
return true;
|
||||
} catch (Exception e) {
|
||||
Log.e(TAG, "openPackage: " + e.getMessage());
|
||||
ToastUtil.show("打开失败");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public static Context getPackageContext(Context context, String packageName) {
|
||||
Context pkgContext = null;
|
||||
if (context.getPackageName().equals(packageName)) {
|
||||
@@ -766,6 +788,12 @@ public class ApkUtils {
|
||||
this.add("com.gl.dwlauncher");
|
||||
this.add("com.qunyu.dividedroad");
|
||||
this.add("com.ygyb.yischool");
|
||||
this.add("com.uiui.floatwindow");
|
||||
this.add("com.uiuipad.find");
|
||||
this.add("com.uiuipad.appstore");
|
||||
this.add("com.uiuipad.os");
|
||||
this.add("com.uiuipad.zyinfo");
|
||||
this.add("com.yixuepai.os");
|
||||
}};
|
||||
|
||||
//出厂自带的app
|
||||
@@ -997,8 +1025,12 @@ public class ApkUtils {
|
||||
|
||||
this.add("com.tencent.wework");
|
||||
this.add("com.tencent.mm");
|
||||
this.add("cn.wps.moffice_eng");
|
||||
this.add("com.baidu.BaiduMap");
|
||||
|
||||
this.add("com.jxw.singsound");
|
||||
this.add("com.qunyu.dividedroad");
|
||||
this.add("com.gl.dwlauncher");
|
||||
this.add("com.gl.dongwa");
|
||||
}};
|
||||
|
||||
public static Set<String> jxwApp = new HashSet<String>() {{
|
||||
@@ -1054,6 +1086,27 @@ public class ApkUtils {
|
||||
this.add("com.teclast.zy");
|
||||
}};
|
||||
|
||||
public static final Set<String> systemApps = new HashSet<String>() {{
|
||||
this.add("com.android.deskclock");
|
||||
this.add("com.android.music");
|
||||
this.add("com.android.documentsui");
|
||||
this.add("com.mediatek.camera");
|
||||
this.add("com.android.calendar");
|
||||
this.add("com.android.calculator2");
|
||||
this.add("com.android.gallery3d");
|
||||
this.add("com.android.soundrecorder");
|
||||
this.add("com.android.settings");
|
||||
this.add("org.chromium.chrome");
|
||||
this.add("com.softwinner.music");
|
||||
this.add("com.softwinner.miracastReceiver");
|
||||
this.add("com.softwinner.camera");
|
||||
this.add("org.chromium.webview_shell");
|
||||
// this.add("com.uiuipad.find");
|
||||
// this.add("com.uiuipad.os");
|
||||
this.add("com.softwinner.videoplayer");
|
||||
this.add("com.sohu.inputmethod.sogou");
|
||||
this.add("com.tencent.mtt");
|
||||
}};
|
||||
|
||||
public static void showAllAPP(Context context) {
|
||||
PackageManager pm = context.getPackageManager();
|
||||
|
||||
Reference in New Issue
Block a user