|
@@ -7,6 +7,7 @@ import android.content.ComponentName
|
7
|
7
|
import android.content.Context
|
8
|
8
|
import android.content.pm.PackageManager
|
9
|
9
|
import android.os.Build
|
|
10
|
+import android.util.Log
|
10
|
11
|
import androidx.core.content.ContextCompat
|
11
|
12
|
import androidx.multidex.BuildConfig
|
12
|
13
|
import androidx.multidex.MultiDex
|
|
@@ -435,7 +436,7 @@ class ManageApplication : MultiDexApplication() {
|
435
|
436
|
*/
|
436
|
437
|
fun disallowSetAutoRotation(enable: Boolean) {
|
437
|
438
|
if (ModelNameUtils.IS_LianxX505f()) {
|
438
|
|
- //true:允许自动旋转屏幕
|
|
439
|
+ //true关闭 flase开启 6e6f可能不一样
|
439
|
440
|
csdkManager?.setAutoRotate(enable)
|
440
|
441
|
} else if (ModelNameUtils.IS_LianxX6e6f()) {
|
441
|
442
|
//csdkManager?.disallowSetAutoRotation(enable)
|
|
@@ -666,8 +667,10 @@ class ManageApplication : MultiDexApplication() {
|
666
|
667
|
/**
|
667
|
668
|
* 添加网络应用白名单
|
668
|
669
|
*/
|
669
|
|
- fun addAppWhiteRule(pkgList: ArrayList<String>) {
|
670
|
|
- clearAppWhiteRule()
|
|
670
|
+ fun addAppWhiteRule(pkgList: ArrayList<String>,removeFlag:Boolean=true) {
|
|
671
|
+ if (removeFlag){
|
|
672
|
+ clearAppWhiteRule()
|
|
673
|
+ }
|
671
|
674
|
if (ModelNameUtils.IS_LianxX505f() || ModelNameUtils.IS_LianxX6e6f()) {
|
672
|
675
|
pkgList.forEach {
|
673
|
676
|
csdkManager?.AddAppWhiteRule(it)
|