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

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

235
     const val ANDROIDCAMERA = "org.codeaurora.snapcam"
235
     const val ANDROIDCAMERA = "org.codeaurora.snapcam"
236
 
236
 
237
     /**
237
     /**
238
-     * 联想相册
238
+     * 联想相册505f
239
      */
239
      */
240
     const val ANDROIDGALLERY = "org.codeaurora.gallery"
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
         ANDROIDCALENDAR,
252
         ANDROIDCALENDAR,
249
         ANDROIDDESKCLOCK,
253
         ANDROIDDESKCLOCK,
250
         ANDROIDCAMERA,
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
             val systemModel: String = SystemUtil.getSystemModel()
6
             val systemModel: String = SystemUtil.getSystemModel()
7
             return "Lenovo TB-X505F" == systemModel
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