How do I set the default launcher in an AOSP build?
android aosp tutorial
android build system
I am modifying the AOSP source code because my app needs to run in a kiosk environment.
I want Android to boot directly into the app. I've excluded launcher2 from
generic_no_telephony.mk, and added the app there. Now Android prompts me all the time to choose default launcher.
The two choices that are available on the pop-up:
- Home Sample
- My app.
How can I exclude the Android Home Sample Launcher? Or is there another way to set the default launcher in an AOSP build?
Instead of modifying the AOSP make files (which is annoying because then you need to track your changes) it is easier to add a LOCAL_OVERRIDES_PACKAGES line to your app's make file.
LOCAL_OVERRIDES_PACKAGES := Launcher2 Launcher3
added to your Android.mk file will ensure that those packages are not added to any build where this package is added.
Following that, you should do a
and then start your build the same way you always make your build. The make installclean is important to remove the packages that are left behind by the previous build.
I also just found a nice answer to how to do this in another question, see: How would I make an embedded Android OS with just one app?
How to set custom launcher as default launcher into , I am creating a custom launcher in my embedded android development board. Possible duplicate of How do I set the default launcher in an AOSP build? Instead of modifying the AOSP make files (which is annoying because then you need to track your changes) it is easier to add a LOCAL_OVERRIDES_PACKAGES line to your app's make file. For instance: LOCAL_OVERRIDES_PACKAGES := Launcher2 Launcher3
The above answer is correct. LOCAL_OVERRIDES_PACKAGES works. But to address one of the comments; I had to do LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3
Home is the sample Home app which serves as Launcher if Lancher2 is also not available.
Only after removing these 3 stock launchers; was I able to see my custom launcher launch by default without any dialog box asking user to choose.
(my test OS is Android N, ymmv)
How do I set the default launcher in an AOSP build?, I am modifying the AOSP source code because my app needs to run in a kiosk environment. I want Android to boot directly into the app. I've excluded launcher2 After build, the browser activity will be set as default. Limitations and Caveats. There are some limitations to the above mentioned process. They are as follows: Upon build time, we would need to know the main activity for ALL the applications which are addressing the particular intent-filters.
Unless you do the following steps, you will be prompted for selecting which home launcher you would like to choose.
If you would like to have your home launcher truly overwrite the others without having to delete the others from your build, follow these steps.
Add an override for all other home launchers on your device, to your custom home launcher's Android.mk: (You may have others to override, but here's what were included in mine)
`LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3`
Add your custom home launcher application module to the list of product packages. There are multiple files that add modules to the list of product packages. They are located in...
The file I chose to edit and add my module to was "Core.mk".
Add your module to the product packages list:
PRODUCT_PACKAGES += \ BasicDreams \ Browser \ Calendar \ . . . MmsService \ YourModuleHere
Call this to clean out your out directory of any old modules/images(doesn't delete all of out directory):
Call your build script
How to set custom launcher as default launcher , I am creating a custom launcher in banana pi m3 board.How to set custom launcher as default launcher into ANDROID AOSP source code. Launcher3 is the name that the default AOSP launcher uses. If you compile AOSP from sources directly, that is what you will get. My GitHub project is called Launcher3 because I forked from AOSP and did not change the name.
Using a custom launcher with the Android Open Source Project , I am building the Android Open Source Project (AOSP) from source for the Pine 64 board One of the things I needed to do was remove the GoogleHome launcher from the build. .repo/local_manifests/default.xml (Pie) build · Setting the device owner in an AOSP build for Android 9 (Pie) · Multi-Process Changing the default launcher in Android KitKat. Go into the Settings app; Scroll down, and under the "Device" header you'll see "Home" Go into that and you'll be able to change your home launcher
[Q] Changing Default Launcher in CM7 source, I am trying to change the default launcher in CM7 to something such as Launcher7 source in /packages/apps but CM7 during build seems to Shell scripts copied to the build that are executed on the init.rc and then set the actual Android environment variables/configurations. Manually executed commands during build (like for compiling HALs) Provide a pre built tar file with the root file system to be copied over the final build
How to set home launcher in Android 7.0 Nougat and 8.0 Oreo , I am modifying the AOSP source code because my app needs to run in a kiosk en How to change the home screen launcher on Android Opting for a custom launcher is one of the fastest and easiest ways to customize your Android experience.
- I added LOCAL_OVERRIDES_PACKAGES := Launcher2 Launcher3. My application is installed. But it always installs Launcher2 as well. After boot i get a prompt to choose my launcher. When i delete Launcher2 in generic_no_telephony.mk, Launcher2 will not be installed, but i get a prompt to choose between my launcher and home sample
- This answer is not working for me either. Despite overriding Home Launcher2 Launcher3 I am still being shown a menu on startup with Home and MyApp.... any ideas?