androidandroid-sourceandroid-launcher

Change launcher in AOSP 11


I am building AOSP 11 for emulator x86_64 and trying to change Default Launcher with third party launcher.

I am using raspberry pi's launcher downloaded from here

when I manually compile this launcher and install using adb It works, like it gives prompt to choose launcher.

but I need to add in source code.

I have found that I need to override default launcher.

So I have modified raspberry pi's launcher's Android.bp file

Added package name "RpLauncher" in build/target/product/handheld_system_ext.mk where default launcher(Launcher3QuickStep) package added.

PRODUCT_PACKAGES += \
Launcher3QuickStep \
Provision \
Settings \
StorageManager \
SystemUI \
WallpaperCropper \
RpLauncher \

After this when start the emulator only bootanimation appears and it never ends. Anyone have any idea about this ?


Solution

  • Here , Problem could be Device not booting as You are adding this app as privileged app

    privileged: true,

    So, You should whitelist the privileged permission requested by app

    Like this https://cs.android.com/android/platform/superproject/+/master:packages/apps/Launcher3/Android.bp;l=170?q=Launcher3QuickStep&ss=android%2Fplatform%2Fsuperproject