Browse Source

1.暂时禁用导致LianxTB223FC机型崩溃的方法。

20241218TB223FC(测试jar包)
wangwanlei 1 week ago
parent
commit
f0a83a86ca
1 changed files with 14 additions and 14 deletions
  1. 14
    14
      app/src/main/java/com/xhly/manageapp/ManageApplication.kt

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

@@ -285,7 +285,7 @@ class ManageApplication : MultiDexApplication() {
285 285
          */
286 286
         fun setCustomOTG(enableFlag: Boolean) {
287 287
             if (ModelNameUtils.IS_LianxX505f() || ModelNameUtils.IS_LianxX6e6f()) {
288
-                csdkManager?.customOTG = enableFlag
288
+               // csdkManager?.customOTG = enableFlag
289 289
             }
290 290
         }
291 291
 
@@ -634,8 +634,8 @@ class ManageApplication : MultiDexApplication() {
634 634
                 ClearIpHostRules()
635 635
                 list.add(Const.BASEURL)
636 636
                 list.addAll(Const.whiteList)
637
-                csdkManager?.urlWhiteListWrite(list)
638
-                csdkManager?.urlBlackListWrite(arrayListOf("*"))
637
+               /* csdkManager?.urlWhiteListWrite(list)*/
638
+               /* csdkManager?.urlBlackListWrite(arrayListOf("*"))*/
639 639
             }
640 640
         }
641 641
 
@@ -652,8 +652,8 @@ class ManageApplication : MultiDexApplication() {
652 652
                 list.addAll(urlWhiteListRead)
653 653
                 list.add(Const.BASEURL)
654 654
                 list.addAll(Const.whiteList)
655
-                csdkManager?.urlWhiteListWrite(list)
656
-                csdkManager?.urlBlackListWrite(arrayListOf("*"))
655
+               /* csdkManager?.urlWhiteListWrite(list)*/
656
+               /* csdkManager?.urlBlackListWrite(arrayListOf("*"))*/
657 657
             }
658 658
         }
659 659
 
@@ -662,7 +662,7 @@ class ManageApplication : MultiDexApplication() {
662 662
          */
663 663
         fun setUrlWhiteListEnable(enableFlag: Boolean) {
664 664
             if (ModelNameUtils.IS_LianxX505f() || ModelNameUtils.IS_LianxX6e6f()) {
665
-                csdkManager?.SetEnable(enableFlag)
665
+                //csdkManager?.SetEnable(enableFlag)
666 666
             }
667 667
         }
668 668
 
@@ -671,10 +671,10 @@ class ManageApplication : MultiDexApplication() {
671 671
          */
672 672
         fun ClearIpHostRules(): Boolean {
673 673
             if (ModelNameUtils.IS_LianxX505f() || ModelNameUtils.IS_LianxX6e6f()) {
674
-                val clearIpHostRules = csdkManager?.ClearIpHostRules()
674
+               /* val clearIpHostRules = csdkManager?.ClearIpHostRules()
675 675
                 clearIpHostRules?.let {
676 676
                     return it
677
-                }
677
+                }*/
678 678
             }
679 679
             return false
680 680
         }
@@ -728,7 +728,7 @@ class ManageApplication : MultiDexApplication() {
728 728
             }
729 729
             if (ModelNameUtils.IS_LianxX505f() || ModelNameUtils.IS_LianxX6e6f()) {
730 730
                 pkgList.forEach {
731
-                    csdkManager?.AddAppWhiteRule(it)
731
+                   // csdkManager?.AddAppWhiteRule(it)
732 732
                 }
733 733
             }
734 734
         }
@@ -738,11 +738,11 @@ class ManageApplication : MultiDexApplication() {
738 738
          */
739 739
         fun clearAppWhiteRule() {
740 740
             if (ModelNameUtils.IS_LianxX505f() || ModelNameUtils.IS_LianxX6e6f()) {
741
-                csdkManager?.ClearAppRules()
741
+              /*  csdkManager?.ClearAppRules()
742 742
                 //不移除自己和商店
743 743
                 csdkManager?.AddAppWhiteRule(Const.CURRENTAPPPKG)
744 744
                 csdkManager?.AddAppWhiteRule(Const.STOREAPPPKG)
745
-                csdkManager?.AddAppWhiteRule("com.lenovo.mia.setupwizard")
745
+                csdkManager?.AddAppWhiteRule("com.lenovo.mia.setupwizard")*/
746 746
             }
747 747
         }
748 748
 
@@ -777,9 +777,9 @@ class ManageApplication : MultiDexApplication() {
777 777
          */
778 778
         fun urlWhiteListRead(): List<String> {
779 779
             if (ModelNameUtils.IS_LianxX505f() || ModelNameUtils.IS_LianxX6e6f()) {
780
-                csdkManager?.urlWhiteListRead()?.let {
780
+               /* csdkManager?.urlWhiteListRead()?.let {
781 781
                     return it
782
-                }
782
+                }*/
783 783
             }
784 784
             return arrayListOf()
785 785
         }
@@ -811,7 +811,7 @@ class ManageApplication : MultiDexApplication() {
811 811
             if (ModelNameUtils.IS_LianxX505f()) {
812 812
                 csdkManager?.setEnabledEyeMode(enableFlag)
813 813
             }else if (ModelNameUtils.IS_LianxX6e6f()){
814
-                csdkManager?.setEnabledEyeMode(enableFlag)
814
+                //csdkManager?.setEnabledEyeMode(enableFlag)
815 815
             }
816 816
         }
817 817
 

Loading…
Cancel
Save