|
@@ -568,6 +568,22 @@ class ManageApplication : MultiDexApplication() {
|
568
|
568
|
//先清除再添加
|
569
|
569
|
ClearIpHostRules()
|
570
|
570
|
list.add(Const.BASEURL)
|
|
571
|
+ list.addAll(Const.whiteList)
|
|
572
|
+ csdkManager?.urlWhiteListWrite(list)
|
|
573
|
+ csdkManager?.urlBlackListWrite(arrayListOf("*"))
|
|
574
|
+ }
|
|
575
|
+ }
|
|
576
|
+
|
|
577
|
+
|
|
578
|
+ /**
|
|
579
|
+ * 添加默认网络白名单
|
|
580
|
+ */
|
|
581
|
+ fun setDefaultUrlWhiteListWrite(list: ArrayList<String>) {
|
|
582
|
+ if (ModelNameUtils.IS_LianxX505f() || ModelNameUtils.IS_LianxX6e6f()) {
|
|
583
|
+ setUrlWhiteListEnable(true)
|
|
584
|
+ //不清除直接添加
|
|
585
|
+ list.add(Const.BASEURL)
|
|
586
|
+ list.addAll(Const.whiteList)
|
571
|
587
|
csdkManager?.urlWhiteListWrite(list)
|
572
|
588
|
csdkManager?.urlBlackListWrite(arrayListOf("*"))
|
573
|
589
|
}
|
|
@@ -638,6 +654,7 @@ class ManageApplication : MultiDexApplication() {
|
638
|
654
|
//不移除自己和商店
|
639
|
655
|
csdkManager?.AddAppWhiteRule(Const.CURRENTAPPPKG)
|
640
|
656
|
csdkManager?.AddAppWhiteRule(Const.STOREAPPPKG)
|
|
657
|
+ csdkManager?.AddAppWhiteRule("com.lenovo.mia.setupwizard")
|
641
|
658
|
}
|
642
|
659
|
}
|
643
|
660
|
|