有没有一种方法可以在AOSP中设置默认的启动器应用程序,而不排除其他启动器



我知道LOCAL_OVERRIDES_PACKAGES,但我想将Launcher3设置为我的默认启动器,而不覆盖我安装的另一个应用程序。

因此,我希望该应用程序存在于系统中,但不要设置为默认值,LOCAL_OVERRIDES_PACKAGES不允许我这样做。

您可以设置意向过滤器的优先级。此优先级应高于0,低于Provision的优先级。https://developer.android.com/guide/topics/manifest/intent-filter-element#priority

<intent-filter android:priority="1">
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.HOME" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>

设置(或设置向导(应具有最高优先级。它将在第一次启动时启动。一旦完成,它将被禁用。然后将启动正常的发射器。

因此,您可以设置优先级以覆盖Launcher3。

最新更新