|
@@ -624,7 +624,11 @@ class ManageApplication : MultiDexApplication() {
|
624
|
624
|
val exitControlFlag = currentSpUtils.getParam(Const.EXIT_CONTROL, false) as Boolean
|
625
|
625
|
Toaster.init(this)
|
626
|
626
|
DialogX.init(this)
|
627
|
|
- csdkManager = CSDKManager(this)
|
|
627
|
+ if (ModelNameUtils.IS_LianxX505f()){
|
|
628
|
+ csdkManager = CSDKManager(this)
|
|
629
|
+ //允许运行时权限
|
|
630
|
+ setRuntimePermissions(true)
|
|
631
|
+ }
|
628
|
632
|
//如果解除管控为真,则不在执行以下代码
|
629
|
633
|
try {
|
630
|
634
|
val userBean = spUtils.getFromJson(
|
|
@@ -641,8 +645,6 @@ class ManageApplication : MultiDexApplication() {
|
641
|
645
|
}catch (e:Exception){
|
642
|
646
|
|
643
|
647
|
}
|
644
|
|
- //允许运行时权限
|
645
|
|
- setRuntimePermissions(true)
|
646
|
648
|
if (!exitControlFlag){
|
647
|
649
|
StrategyUtils.initControlStrategy()
|
648
|
650
|
}
|