1.4.0530 默认隐藏爱优读机型apk,首次开机打开爱优读
This commit is contained in:
@@ -62,6 +62,8 @@ import io.reactivex.rxjava3.disposables.Disposable;
|
||||
import io.reactivex.rxjava3.schedulers.Schedulers;
|
||||
|
||||
public class ApkUtils {
|
||||
private static final String TAG = ApkUtils.class.getSimpleName();
|
||||
|
||||
public static final Set<String> aoleyunAPP = new HashSet<String>() {{
|
||||
this.add(BuildConfig.APPLICATION_ID);
|
||||
this.add("com.aoleyun.appstore");
|
||||
@@ -412,7 +414,6 @@ public class ApkUtils {
|
||||
|
||||
this.add("com.ygyb.yischool");
|
||||
this.add("com.gaomuxuexi34");
|
||||
this.add("com.books.wisdom");
|
||||
}};
|
||||
|
||||
|
||||
@@ -499,7 +500,31 @@ public class ApkUtils {
|
||||
this.add("com.gl.dongwa");
|
||||
}};
|
||||
|
||||
private static String TAG = ApkUtils.class.getSimpleName();
|
||||
/*爱优读需要隐藏的图标*/
|
||||
private static final HashSet<String> AiudHideApp = new HashSet<String>() {{
|
||||
this.add("com.android.email");
|
||||
this.add("com.android.soundrecorder");
|
||||
this.add("com.android.documentsui");
|
||||
this.add("com.mediatek.camera");
|
||||
this.add("com.aoleyun.browser");
|
||||
this.add("com.android.music");
|
||||
this.add("com.android.fmradio");
|
||||
this.add("com.android.gallery3d");
|
||||
this.add("com.android.calendar");
|
||||
this.add("com.android.calculator2");
|
||||
this.add("com.android.deskclock");
|
||||
this.add("com.android.contacts");
|
||||
this.add("com.android.mms");
|
||||
this.add("com.android.dialer");
|
||||
this.add("com.android.stk");
|
||||
}};
|
||||
|
||||
public static void HideAiUDuApp() {
|
||||
Log.e(TAG, "HideAiUDuApp: ");
|
||||
for (String s : AiudHideApp) {
|
||||
JGYUtils.getInstance().hideApp(s);
|
||||
}
|
||||
}
|
||||
|
||||
public static synchronized boolean getRootAhth() {
|
||||
Process process = null;
|
||||
@@ -1156,8 +1181,7 @@ public class ApkUtils {
|
||||
List<PackageInfo> packages = pm.getInstalledPackages(PackageManager.COMPONENT_ENABLED_STATE_ENABLED | PackageManager.COMPONENT_ENABLED_STATE_DISABLED);
|
||||
for (PackageInfo packageInfo : packages) {
|
||||
String pkg = packageInfo.packageName;
|
||||
Log.i(TAG, "showAllApp: " + pkg);
|
||||
Log.e(TAG, "showAllApp: disable = " + (pm.getApplicationEnabledSetting(pkg) == PackageManager.COMPONENT_ENABLED_STATE_DISABLED));
|
||||
Log.e(TAG, "showAllApp: " + pkg + " disable = " + (pm.getApplicationEnabledSetting(pkg) == PackageManager.COMPONENT_ENABLED_STATE_DISABLED));
|
||||
if (canremove_systemapp.contains(pkg)
|
||||
&& !show_canremove_systemapp.contains(pkg)) {
|
||||
Log.e(TAG, "showAllApp: continue: " + pkg);
|
||||
|
||||
@@ -1286,6 +1286,7 @@ public class JGYUtils {
|
||||
this.add("com.alarmclock.uiui");
|
||||
this.add("com.uiui.videoplayer");
|
||||
this.add("com.ygyb.yischool");
|
||||
this.add("com.books.wisdom");
|
||||
}};
|
||||
|
||||
private Set<String> getWhitePkgList() {
|
||||
|
||||
Reference in New Issue
Block a user