一、獲取當(dāng)前設(shè)備使用的配置信息:
adb shell dumpsys activity com.android.launcher3.uioverrides.QuickstepLauncher |findstr DeviceProfile
由于不同 Launcher形態(tài)使用不同 ,上面部分需要替換
1. Launcher3: com.android.launcher3.Launcher
2. with QuickStep: com.android.launcher3.uioverrides.QuickstepLauncher
3. GMS非 GO: com.android.searchlauncher.SearchLauncher
二、選擇Launcher形態(tài)
選擇Launcher形態(tài)請(qǐng)?jiān)谝韵耺ake文件中修改:
vendor/sprd/generic/misc/launchercfg/LauncherPackages.mk
13 #####config launcher package begin#####
14 ifeq ($(strip $(USE_PLATFORM_LAUNCHER3)),true)
15 # config launcher package
16 ifeq ($(strip $(PRODUCT_GO_DEVICE)),true) // Go設(shè)備
17 ifeq ($(strip $(CHIPRAM_DDR_CUSTOMIZE_SIZE)),0x20000000)
18 $(warning "this is 512M Go devices, use the Launcher3GoIconRecents for launcher app")
19 LAUNCHER_PACKAGE_NAME := Launcher3GoIconRecents
20 else
21 # LAUNCHER_PACKAGE_NAME := Launcher3QuickStepGo
22 # In order to save memory, use Launcher3GoIconRecents for Go devices
23 LAUNCHER_PACKAGE_NAME := Launcher3GoIconRecents
24 endif
25 else // 非Go設(shè)備
26 ifeq ($(strip $(TARGET_BUILD_VERSION)),gms) // gms
27 LAUNCHER_PACKAGE_NAME := SearchLauncherQRef
28 else
29 LAUNCHER_PACKAGE_NAME := Launcher3QuickStep
30 endif
31 endif