Android10-Launcher3如何确定使用的版本和形态

2021-12-02  本文已影响0人  DD_Dog

一、获取当前设备使用的配置信息:

adb shell dumpsys activity com.android.launcher3.uioverrides.QuickstepLauncher |findstr DeviceProfile
    由于不同 Launcher形态使用不同 ,上面部分需要替换
1. Launcher3: com.android.launcher3.Launcher
2. with QuickStep: com.android.launcher3.uioverrides.QuickstepLauncher
3. GMS非 GO: com.android.searchlauncher.SearchLauncher

二、选择Launcher形态

选择Launcher形态请在以下make文件中修改:

   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设备
    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设备
    26         ifeq ($(strip $(TARGET_BUILD_VERSION)),gms)  // gms
    27             LAUNCHER_PACKAGE_NAME := SearchLauncherQRef
    28         else
    29             LAUNCHER_PACKAGE_NAME := Launcher3QuickStep
    30         endif
    31     endif
上一篇 下一篇

猜你喜欢

热点阅读