Set default Launcher in AOSP Source

115 Views Asked by At

I have added my launcher along with Launcher3 in AOSP build, On boot up device asks to select default Home app(launcher).

How can I set the my launcher as a default launcher from ASOP source code, so device not ask to select default Home app(launcher) on boot.

I'm aware about LOCAL_OVERRIDES_PACKAGES but I need both launcher in final build.

1

There are 1 best solutions below

0
On

In the AndroidManifest.xml of your home app, you can set the priority of the launcher intent filter to a higher value.

Official documentation: https://developer.android.com/guide/topics/manifest/intent-filter-element