|
@@ -35,10 +35,10 @@ object StrategyUtils {
|
35
|
35
|
}
|
36
|
36
|
}
|
37
|
37
|
//先移除再添加
|
38
|
|
- val wifiWhiteList = ManageApplication.getWifiWhiteList()
|
|
38
|
+ /* val wifiWhiteList = ManageApplication.getWifiWhiteList()
|
39
|
39
|
if (wifiWhiteList.isNotEmpty()){
|
40
|
40
|
ManageApplication.removeWifiWhiteList(wifiWhiteList)
|
41
|
|
- }
|
|
41
|
+ }*/
|
42
|
42
|
ManageApplication.addWifiWhiteList(list)
|
43
|
43
|
}
|
44
|
44
|
} else {
|
|
@@ -429,11 +429,15 @@ object StrategyUtils {
|
429
|
429
|
}
|
430
|
430
|
|
431
|
431
|
//初始化管控的默认规则
|
432
|
|
- public fun initControlStrategy(loginSucess:Boolean=false){
|
|
432
|
+ public fun initControlStrategy(loginSucess:Boolean=true){
|
433
|
433
|
if (ModelNameUtils.IS_LianxX505f()||ModelNameUtils.IS_LianxX6e6f()) {
|
434
|
434
|
//是505f则执行
|
435
|
|
- //启用网络白名单,需要处理,不能每次都清除之前的白名单所以默认只添加不移除,请求接口时才移除。
|
436
|
|
- ManageApplication.setDefaultUrlWhiteListWrite(arrayListOf())
|
|
435
|
+ //启用网络白名单,需要处理,不能每次都清除之前的白名单所以默认只添加不移除,请求接口时才移除。目前登录成功才控制
|
|
436
|
+ if (loginSucess){
|
|
437
|
+ ManageApplication.setDefaultUrlWhiteListWrite(arrayListOf())
|
|
438
|
+ }
|
|
439
|
+ val urlWhiteListRead = ManageApplication.urlWhiteListRead()
|
|
440
|
+ LogShow("之前的白名单有"+urlWhiteListRead.size)
|
437
|
441
|
//启用安装白名单
|
438
|
442
|
ManageApplication.addInstallPackageWhiteList(arrayListOf(Const.CURRENTAPPPKG, Const.STOREAPPPKG))
|
439
|
443
|
ManageApplication.setSleepTimeoutV3()
|