|
@@ -418,20 +418,33 @@ object StrategyUtils {
|
418
|
418
|
AppSocket.onDestroy()
|
419
|
419
|
|
420
|
420
|
//设置默认启动器
|
421
|
|
- if (ModelNameUtils.IS_LianxX505f()||ModelNameUtils.IS_LianxX6e6f()){
|
|
421
|
+ if (ModelNameUtils.IS_LianxX505f()||ModelNameUtils.IS_LianxX6e6f()||ModelNameUtils.IS_LianxTB223FC()){
|
422
|
422
|
ManageApplication.setPackageEnabled("com.tblenovo.launcher",true)
|
423
|
423
|
//505f的桌面名称
|
424
|
|
- ManageApplication.setCustomLauncher("com.tblenovo.launcher","com.android.iotlauncher.IotLauncher")
|
|
424
|
+ if (ModelNameUtils.IS_LianxTB223FC()){
|
|
425
|
+ ManageApplication.setCustomLauncher("com.tblenovo.launcher","com.android.searchlauncher.SearchLauncher")
|
|
426
|
+ }else{
|
|
427
|
+ ManageApplication.setCustomLauncher("com.tblenovo.launcher","com.android.iotlauncher.IotLauncher")
|
|
428
|
+ }
|
425
|
429
|
try {
|
426
|
430
|
//解除管控后,禁止切换启动器
|
427
|
431
|
ManageApplication.disallowSwitchLauncher_v3(true)
|
428
|
432
|
val launchIntent = Intent()
|
429
|
|
- launchIntent.setComponent(
|
430
|
|
- ComponentName(
|
431
|
|
- "com.tblenovo.launcher",
|
432
|
|
- "com.android.iotlauncher.IotLauncher"
|
|
433
|
+ if (ModelNameUtils.IS_LianxTB223FC()){
|
|
434
|
+ launchIntent.setComponent(
|
|
435
|
+ ComponentName(
|
|
436
|
+ "com.tblenovo.launcher",
|
|
437
|
+ "com.android.searchlauncher.SearchLauncher"
|
|
438
|
+ )
|
|
439
|
+ )
|
|
440
|
+ }else{
|
|
441
|
+ launchIntent.setComponent(
|
|
442
|
+ ComponentName(
|
|
443
|
+ "com.tblenovo.launcher",
|
|
444
|
+ "com.android.iotlauncher.IotLauncher"
|
|
445
|
+ )
|
433
|
446
|
)
|
434
|
|
- )
|
|
447
|
+ }
|
435
|
448
|
launchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
|
436
|
449
|
context.startActivity(launchIntent)
|
437
|
450
|
exitProcess(0)
|
|
@@ -439,6 +452,7 @@ object StrategyUtils {
|
439
|
452
|
Toaster.showLong("失败原因"+e.toString())
|
440
|
453
|
}
|
441
|
454
|
}
|
|
455
|
+
|
442
|
456
|
}catch (e:Exception){
|
443
|
457
|
|
444
|
458
|
}
|