1.4.0320 修复yxpd1 不删除默认桌面,默认写入sn为激活码,默认启动九学王服务

This commit is contained in:
2024-03-21 10:16:32 +08:00
parent 124696a9dd
commit ba91b973e7
11 changed files with 101 additions and 24 deletions

View File

@@ -1024,7 +1024,7 @@ public class ApkUtils {
@Override
public void onNext(String s) {
Log.e("UninstallAPP", "onNext " + Thread.currentThread().getName());
Log.e("UninstallAPP", "onNext" + Thread.currentThread().getName());
Log.e("UninstallAPP", "onNext: " + s);
}

View File

@@ -117,6 +117,13 @@ import static android.app.ActivityManager.RECENT_IGNORE_UNAVAILABLE;
public class JGYUtils {
private static final String TAG = JGYUtils.class.getSimpleName();
/*九学王*/
public static final String JXW_LAUNCHER_PACKAGE_NAME = "com.jxw.launcher";
/*注册服务*/
public static final String JXW_LAUNCHER_CLASS_NAME = "com.jht.engine.platsign.PlatformService";
/*学习资源*/
public static final String JXW_LAUNCHER_UPDATE_CLASS_NAME = "com.jxw.engine.platsign.UpdateActivity";
@SuppressLint("StaticFieldLeak")
private static JGYUtils sInstance;
private MMKV mMMKV = MMKV.mmkvWithID(CommonConfig.MMKV_ID, MMKV.MULTI_PROCESS_MODE);
@@ -1242,13 +1249,18 @@ public class JGYUtils {
pkgSet.addAll(ApkUtils.desktopAPP);
pkgSet.addAll(ApkUtils.aoleyunAPP);
pkgSet.addAll(ApkUtils.jxwApp);
if ("AS001".equals(Build.MODEL))
if ("AS001".equals(Build.MODEL)) {
pkgSet.addAll(ApkUtils.aihuaApp);
if ("D1".equals(Build.MODEL))
}
if ("D1".equals(Build.MODEL)) {
pkgSet.addAll(ApkUtils.dongwa);
if ("G23".equals(Build.MODEL))
}
if ("G23".equals(Build.MODEL)) {
pkgSet.addAll(ApkUtils.zhengwu);
}
if (JGYUtils.getInstance().checkAppPlatform()==JGYUtils.YXPD1Platform){
pkgSet.add("com.tencent.wemeet.app");
}
pkgSet.removeIf(TextUtils::isEmpty);
if (JGYUtils.C2Tag.equalsIgnoreCase(JGYUtils.getInstance().getAppPlatform())) {
pkgSet.remove("com.tencent.mm");
@@ -1271,12 +1283,18 @@ public class JGYUtils {
pkgSet.addAll(ApkUtils.desktopAPP);
pkgSet.addAll(ApkUtils.aoleyunAPP);
pkgSet.addAll(ApkUtils.jxwApp);
if ("AS001".equals(Build.MODEL))
if ("AS001".equals(Build.MODEL)) {
pkgSet.addAll(ApkUtils.aihuaApp);
if ("D1".equals(Build.MODEL))
}
if ("D1".equals(Build.MODEL)) {
pkgSet.addAll(ApkUtils.dongwa);
if ("G23".equals(Build.MODEL))
}
if ("G23".equals(Build.MODEL)) {
pkgSet.addAll(ApkUtils.zhengwu);
}
if (JGYUtils.getInstance().checkAppPlatform()==JGYUtils.YXPD1Platform){
pkgSet.add("com.tencent.wemeet.app");
}
if (JGYUtils.C2Tag.equalsIgnoreCase(JGYUtils.getInstance().getAppPlatform())) {
pkgSet.remove("com.tencent.mm");
}

View File

@@ -899,7 +899,10 @@ public class SysSettingUtils {
Settings.Global.putInt(context.getContentResolver(), CommonConfig.AOLEYUN_APPSTORE_INSTALL, 1);
setUsb(context, 0);
setBluetooth(context, 0);
JGYUtils.getInstance().setDeveloperOptions(1);
int status = Settings.System.getInt(context.getContentResolver(), CommonConfig.AOLE_ACTION_DEVELOPER_OPTIONS, 1);
if (status != 0) {
JGYUtils.getInstance().setDeveloperOptions(1);
}
setCanReset(context, 0);
setActionBar(context, 0);
setNavigationBar(context, 0);