简体   繁体   English

如何将自定义启动器设置为 ANDROID AOSP 源代码中的默认启动器

[英]How to set custom launcher as default launcher into ANDROID AOSP source code

I am creating a custom launcher in my embedded android development board.How to set custom launcher as default launcher into ANDROID AOSP source code.我正在我的嵌入式 android 开发板中创建一个自定义启动器。如何将自定义启动器设置为ANDROID AOSP源代码中的默认启动器。

Please help me.请帮帮我。

Thanks.**谢谢。**

I think a simple solution could be to remove any other launchers from the system, I've listed a couple of ways you could achieve this below.我认为一个简单的解决方案可能是从系统中删除任何其他启动器,我在下面列出了几种可以实现此目的的方法。

  • A simple way to achieve your goal would be to remove any other launchers from your AOSP source and Android should load up whatever launcher you added.实现目标的一种简单方法是从 AOSP 源中删除任何其他启动器,Android 应加载您添加的任何启动器。 Information on removing apps from AOSP 有关从 AOSP 中删除应用程序的信息
  • If you already have the system deployed you can delete the original launcher(s), I've added some sample adb commands which should get you where you want to be(You might have to change the name of the launcher depending on what launcher you're trying to remove)如果您已经部署了系统,您可以删除原始启动器,我添加了一些示例 adb 命令,它们应该可以让您到达您想要的位置(您可能需要根据您使用的启动器更改启动器的名称'正在尝试删除)

adb root
adb remount
adb shell "rm -r /system/app/Launcher3"

In Android.mk of your application, you need to override all default Launcher applications of AOSP.在您的应用程序的Android.mk中,您需要覆盖 AOSP 的所有默认启动器应用程序。 Like that:像这样:

LOCAL_OVERRIDES_PACKAGES += Home Launcher2 Launcher3 Launcher3QuickStep CarLauncher

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM