bugfixes:增加应用禁用和卸载监听
This commit is contained in:
2025-05-27 16:34:33 +08:00
parent 7599d14897
commit 0e9f0e8394
15 changed files with 168 additions and 200 deletions

View File

@@ -84,6 +84,7 @@ public class SysSettingUtils {
setUSBstate(context, 1);
if (JgyUtils.getInstance().getAppPlatform().equals(JgyUtils.YXPD1TAG)
|| JgyUtils.getInstance().getAppPlatform().equals(JgyUtils.C2Tag)
|| JgyUtils.getInstance().getAppPlatform().equals(JgyUtils.ZR6016Tag)
) {
setBluetooth(context, 0);
} else {
@@ -297,7 +298,7 @@ public class SysSettingUtils {
* @param context
* @param state 1关闭 0打开
*/
private static void setBluetooth(Context context, int state) {
public static void setBluetooth(Context context, int state) {
Log.e(TAG, "setBluetooth: state = " + state);
MMKV mmkv = MMKV.mmkvWithID(CommonConfig.MMKV_ID, MMKV.MULTI_PROCESS_MODE);