Browse Source

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

20241218TB223FC(测试jar包)
wangwanlei 2 months ago
parent
commit
265e3268ed
1 changed files with 2 additions and 0 deletions
  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 View File

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(

Loading…
Cancel
Save