version:1.5.1216

bugfixes:
add:优化默认管控,修复高木id管控
This commit is contained in:
2026-01-29 10:12:20 +08:00
parent eea2af875b
commit 6797c7a6bd
7 changed files with 41 additions and 21 deletions

View File

@@ -29,8 +29,8 @@ android {
defaultConfig { defaultConfig {
applicationId "com.aoleyun.sn" applicationId "com.aoleyun.sn"
versionCode 197 versionCode 200
versionName "1.5.1018" versionName "1.5.1216"
//There are no CERT files because If the mini sdk version is 23+, the AGP will ignore the V1 scheme signature. //There are no CERT files because If the mini sdk version is 23+, the AGP will ignore the V1 scheme signature.
minSdkVersion 24 minSdkVersion 24
@@ -67,6 +67,12 @@ android {
targetCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8
} }
externalNativeBuild {
cmake {
path file('CMakeLists.txt')
}
}
sourceSets { sourceSets {
//测试版的图标 //测试版的图标
// beta.res.srcDirs = ['src/beta/res'] // beta.res.srcDirs = ['src/beta/res']
@@ -648,11 +654,6 @@ android {
} }
} }
externalNativeBuild {
cmake {
path file('CMakeLists.txt')
}
}
} }
dependencies { dependencies {

View File

@@ -249,6 +249,8 @@ public class MainActivity extends BaseMvvmActivity<MainViewModel, ActivityMainBi
mViewModel.setBindInfoPanel(); mViewModel.setBindInfoPanel();
mViewModel.getAppSettings(); mViewModel.getAppSettings();
mViewModel.getPushTags(); mViewModel.getPushTags();
} }
private void setObserve() { private void setObserve() {
@@ -374,6 +376,7 @@ public class MainActivity extends BaseMvvmActivity<MainViewModel, ActivityMainBi
public void onServiceConnected(ComponentName name, IBinder service) { public void onServiceConnected(ComponentName name, IBinder service) {
Log.e(TAG, "onServiceConnected: "); Log.e(TAG, "onServiceConnected: ");
mMainBinder = (MainService.MainBinder) service; mMainBinder = (MainService.MainBinder) service;
mMainBinder.getService().mPresenter.getLockedState();
} }
@Override @Override

View File

@@ -2017,15 +2017,26 @@ public class NetInterfaceManager {
@Override @Override
public void onNext(@NonNull BaseResponse<List<AppID>> baseResponse) { public void onNext(@NonNull BaseResponse<List<AppID>> baseResponse) {
Log.e("getAppIDControl", "onNext: " + baseResponse); Log.e("getAppIDControl", "onNext: " + baseResponse);
Settings.System.putString(mContext.getContentResolver(), CommonConfig.APP_VIEW_CLICK_DISABLED, "com.ttstd.utils:12345"); // TODO: 2025/11/21 高木g104不需要id管控
if ("G104".equals(Build.MODEL)) {
try {
Settings.System.putString(mContext.getContentResolver(), CommonConfig.APP_VIEW_CLICK_DISABLED, null);
CmdUtil.Result result = CmdUtil.execute(" settings delete system app_view_click_disabled");
Log.e(TAG, "getAppIDControl: " + result);
} catch (Exception e) {
e.printStackTrace();
}
} else {
Settings.System.putString(mContext.getContentResolver(), CommonConfig.APP_VIEW_CLICK_DISABLED, "com.arivoc.wordhd:2131624676,2131624689;com.ttstd.utils:12345");
}
if (baseResponse.code == OK) { if (baseResponse.code == OK) {
List<AppID> appIDList = baseResponse.data; List<AppID> appIDList = baseResponse.data;
cacheHelper.put(UrlAddress.GET_APPID, GsonUtils.toJSONString(appIDList)); cacheHelper.put(UrlAddress.GET_APPID, GsonUtils.toJSONString(appIDList));
// JgyUtils.getInstance().writeDeselectIDtoSystem(appIDList); JgyUtils.getInstance().writeDeselectIDtoSystem(appIDList);
} else { } else {
cacheHelper.put(UrlAddress.GET_APPID, ""); cacheHelper.put(UrlAddress.GET_APPID, "");
// JgyUtils.getInstance().writeDeselectIDtoSystem(null); JgyUtils.getInstance().writeDeselectIDtoSystem(null);
} }
} }

View File

@@ -492,7 +492,7 @@ public class MainService extends Service implements MainSContact.MainView, Netwo
TimeTask task = new TimeTask(); TimeTask task = new TimeTask();
task.execute("ntp.aliyun.com"); task.execute("ntp.aliyun.com");
boolean reboot = mMMKV.decodeBool(CommonConfig.DEVICES_REBOOT, false); boolean reboot = mMMKV.decodeBool(CommonConfig.DEVICES_REBOOT, true);
if (reboot) { if (reboot) {
mPresenter.getLockedState(); mPresenter.getLockedState();
mMMKV.encode(CommonConfig.DEVICES_REBOOT, false); mMMKV.encode(CommonConfig.DEVICES_REBOOT, false);
@@ -655,18 +655,15 @@ public class MainService extends Service implements MainSContact.MainView, Netwo
} }
private static final String CHANNEL_ID = "CHANNEL_ID"; private static final String CHANNEL_ID = "CHANNEL_ID";
private static final String channel_name = "系统通知"; private static final String CHANNEL_NAME = "系统通知";
private static final String channel_description = "我的设备系统通知"; private static final String CHANNEL_DESCRIPTION = "我的设备系统通知";
private void createNotificationChannel() { private void createNotificationChannel() {
// Create the NotificationChannel, but only on API 26+ because // Create the NotificationChannel, but only on API 26+ because
// the NotificationChannel class is new and not in the support library // the NotificationChannel class is new and not in the support library
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
CharSequence name = channel_name; NotificationChannel channel = new NotificationChannel(CHANNEL_ID, CHANNEL_NAME, NotificationManager.IMPORTANCE_DEFAULT);
String description = channel_description; channel.setDescription(CHANNEL_DESCRIPTION);
int importance = NotificationManager.IMPORTANCE_DEFAULT;
NotificationChannel channel = new NotificationChannel(CHANNEL_ID, name, importance);
channel.setDescription(description);
// Register the channel with the system; you can't change the importance // Register the channel with the system; you can't change the importance
// or other notification behaviors after this // or other notification behaviors after this
NotificationManager notificationManager = getSystemService(NotificationManager.class); NotificationManager notificationManager = getSystemService(NotificationManager.class);
@@ -678,7 +675,7 @@ public class MainService extends Service implements MainSContact.MainView, Netwo
private int NotificationID = 1; private int NotificationID = 1;
private void sendSimpleNotification() { private void sendSimpleNotification() {
NotificationCompat.Builder builder = new NotificationCompat.Builder(this, "CHANNEL_ID") NotificationCompat.Builder builder = new NotificationCompat.Builder(this, CHANNEL_ID)
.setSmallIcon(R.mipmap.ic_launcher) .setSmallIcon(R.mipmap.ic_launcher)
.setContentTitle("设备管控中") .setContentTitle("设备管控中")
// .setContentText("测试内容") // .setContentText("测试内容")

View File

@@ -836,6 +836,10 @@ public class JgyUtils {
this.add(BuildConfig.APPLICATION_ID); this.add(BuildConfig.APPLICATION_ID);
this.add("com.aoleyun.appstore"); this.add("com.aoleyun.appstore");
this.add("com.aoleyun.camera"); this.add("com.aoleyun.camera");
this.add("com.aoleyun.browser");
this.add("com.aoleyun.info");
this.add("com.aoleyun.os");
this.add("com.aoleyun.calculator"); this.add("com.aoleyun.calculator");
this.add("com.aoleyun.gallery3d"); this.add("com.aoleyun.gallery3d");
this.addAll(ApkUtils.mJxwApp); this.addAll(ApkUtils.mJxwApp);
@@ -1011,6 +1015,10 @@ public class JgyUtils {
} }
public void writeDeselectIDtoSystem(List<AppID> appIDList) { public void writeDeselectIDtoSystem(List<AppID> appIDList) {
if (!"Ebox201".equals(Build.MODEL)&&!"Ebox201W".equals(Build.MODEL)){
Log.e(TAG, "writeDeselectIDtoSystem: not match Ebox201 or Ebox201W" );
return;
}
if (appIDList == null || appIDList.isEmpty()) { if (appIDList == null || appIDList.isEmpty()) {
try { try {
Settings.System.putString(crv, CommonConfig.APP_VIEW_CLICK_DISABLED, null); Settings.System.putString(crv, CommonConfig.APP_VIEW_CLICK_DISABLED, null);

View File

@@ -83,7 +83,7 @@ public class SysSettingUtils {
Toaster.debugShow("关闭所有功能"); Toaster.debugShow("关闭所有功能");
Log.e("setDisableSetting", "Close all settings: "); Log.e("setDisableSetting", "Close all settings: ");
setPhoneList(context, 1); setPhoneList(context, 1);
setUsbStatus(context, 1); setUsbStatus(context, 0);
if (JgyUtils.getInstance().getAppPlatform().equals(JgyUtils.YXPD1TAG) if (JgyUtils.getInstance().getAppPlatform().equals(JgyUtils.YXPD1TAG)
|| JgyUtils.getInstance().getAppPlatform().equals(JgyUtils.C2Tag) || JgyUtils.getInstance().getAppPlatform().equals(JgyUtils.C2Tag)
|| JgyUtils.getInstance().getAppPlatform().equals(JgyUtils.ZR6016Tag) || JgyUtils.getInstance().getAppPlatform().equals(JgyUtils.ZR6016Tag)
@@ -95,7 +95,7 @@ public class SysSettingUtils {
setHotspot(context, 1); setHotspot(context, 1);
setBar(context, 1); setBar(context, 1);
setCamera(context, 1); setCamera(context, 1);
setTF(context, 1); setTF(context, 0);
setIcon(context, 0); setIcon(context, 0);
setWallpaper(context, 0); setWallpaper(context, 0);
setCanReset(context, 0); setCanReset(context, 0);

BIN
获取SN.docx Normal file

Binary file not shown.