Browse Source

1.默认关闭安全模式。

20241218TB223FC(测试jar包)
wangwanlei 5 months ago
parent
commit
5ba35ae3f0
1 changed files with 16 additions and 0 deletions
  1. 16
    0
      app/src/main/java/com/xhly/manageapp/ManageApplication.kt

+ 16
- 0
app/src/main/java/com/xhly/manageapp/ManageApplication.kt View File

684
             }
684
             }
685
         }
685
         }
686
 
686
 
687
+        /**
688
+         * true:设置设备禁用安全模式
689
+         * false:设置设备启用安全模式
690
+         */
691
+
692
+        fun  setSafeModeDisabled(boolean: Boolean=true){
693
+           try {
694
+               if (ModelNameUtils.IS_LianxX505f() || ModelNameUtils.IS_LianxX6e6f()) {
695
+                   csdkManager?.setSafeModeDisabled(boolean)
696
+               }
697
+           }catch (e:Exception){
698
+               Log.d("问题==","禁用安全模式,"+e.toString())
699
+           }
700
+        }
701
+
687
 
702
 
688
         /**
703
         /**
689
          * 清除应用数据
704
          * 清除应用数据
830
                 setDefaultInputMethod()
845
                 setDefaultInputMethod()
831
                 setRuntimePermissions(true)
846
                 setRuntimePermissions(true)
832
                 enableAllUnkownsourcesV3(true)
847
                 enableAllUnkownsourcesV3(true)
848
+                setSafeModeDisabled()
833
             }
849
             }
834
             //如果解除管控为真,则不在执行以下代码
850
             //如果解除管控为真,则不在执行以下代码
835
             try {
851
             try {

Loading…
Cancel
Save