Browse Source

1.添加6e6f的机型判断和相册包名

20241218TB223FC(测试jar包)
wangwanlei 8 months ago
parent
commit
2fe6e4b4da

+ 6
- 2
app/src/main/java/com/xhly/manageapp/utils/StrategyUtils.kt View File

@@ -238,7 +238,7 @@ object StrategyUtils {
238 238
     public fun setSchoolSetDevice(schoolDeviceSetBean: SchoolDeviceSetBean, appList: List<AppInfo>):ArrayList<AppInfo> {
239 239
         val dataList = arrayListOf<AppInfo>()
240 240
         appList.forEach { appinfo ->
241
-            if (ModelNameUtils.IS_LianxX505f()){
241
+            if (ModelNameUtils.IS_LianxX505f()||ModelNameUtils.IS_LianxX6e6f()){
242 242
                 //启用电话短信:1是0否
243 243
                 if (schoolDeviceSetBean.simcard == 0 && (appinfo.packageName.equals(Const.ANDROIDPHONE) || appinfo.packageName.equals(Const.ANDROIDMMS))) {
244 244
                     return@forEach
@@ -255,10 +255,14 @@ object StrategyUtils {
255 255
                 if (schoolDeviceSetBean.camera == 1 && appinfo.packageName.equals(Const.ANDROIDCAMERA)) {
256 256
                     return@forEach
257 257
                 }
258
-                //是否隐藏相册:1是0否
258
+                //是否隐藏相册:1是0否(505f)
259 259
                 if (schoolDeviceSetBean.gallery == 1 && appinfo.packageName.equals(Const.ANDROIDGALLERY)) {
260 260
                     return@forEach
261 261
                 }
262
+                //是否隐藏相册:1是0否(6e6f)
263
+                if (schoolDeviceSetBean.gallery == 1 && appinfo.packageName.equals(Const.ANDROIDGALLERY6)) {
264
+                    return@forEach
265
+                }
262 266
             }
263 267
             //是否隐藏一键加速:1是0否
264 268
             if (schoolDeviceSetBean.accelerate==1&&appinfo.packageName.equals(Const.CUSTOMSPEEDAPP)){

+ 7
- 2
corelib/src/main/java/com/xhly/corelib/Const.kt View File

@@ -235,9 +235,13 @@ object Const {
235 235
     const val ANDROIDCAMERA = "org.codeaurora.snapcam"
236 236
 
237 237
     /**
238
-     * 联想相册
238
+     * 联想相册505f
239 239
      */
240 240
     const val ANDROIDGALLERY = "org.codeaurora.gallery"
241
+    /**
242
+     * 联想相册6e6f
243
+     */
244
+    const val ANDROIDGALLERY6 = "com.android.gallery3d"
241 245
 
242 246
     /**
243 247
      * 这几个应用由学校设置接口处理
@@ -248,7 +252,8 @@ object Const {
248 252
         ANDROIDCALENDAR,
249 253
         ANDROIDDESKCLOCK,
250 254
         ANDROIDCAMERA,
251
-        ANDROIDGALLERY
255
+        ANDROIDGALLERY,
256
+        ANDROIDGALLERY6
252 257
     )
253 258
 
254 259
     /**

+ 5
- 0
corelib/src/main/java/com/xhly/corelib/utils/ModelNameUtils.kt View File

@@ -6,5 +6,10 @@ class ModelNameUtils {
6 6
             val systemModel: String = SystemUtil.getSystemModel()
7 7
             return "Lenovo TB-X505F" == systemModel
8 8
         }
9
+
10
+        fun IS_LianxX6e6f(): Boolean{
11
+            val systemModel: String = SystemUtil.getSystemModel()
12
+            return "Lenovo TB-X6E6F" == systemModel
13
+        }
9 14
     }
10 15
 }

Loading…
Cancel
Save