浏览代码

1.解除管控后,禁止切换启动器。

20241218TB223FC(测试jar包)
wangwanlei 5 个月前
父节点
当前提交
265e3268ed
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2
    0
      app/src/main/java/com/xhly/manageapp/utils/StrategyUtils.kt

+ 2
- 0
app/src/main/java/com/xhly/manageapp/utils/StrategyUtils.kt 查看文件

421
                   //505f的桌面名称
421
                   //505f的桌面名称
422
                   ManageApplication.setCustomLauncher("com.tblenovo.launcher","com.android.iotlauncher.IotLauncher")
422
                   ManageApplication.setCustomLauncher("com.tblenovo.launcher","com.android.iotlauncher.IotLauncher")
423
                   try {
423
                   try {
424
+                      //解除管控后,禁止切换启动器
425
+                      ManageApplication.disallowSwitchLauncher_v3(true)
424
                       val launchIntent = Intent()
426
                       val launchIntent = Intent()
425
                       launchIntent.setComponent(
427
                       launchIntent.setComponent(
426
                           ComponentName(
428
                           ComponentName(

正在加载...
取消
保存