LineageParts: Restrict activities to primary profile only
This avoids the "Choose Profile" popup every time these activities
are started when Android for Work is set up on the device or when using
apps like Shelter.
Change-Id: I4e9d74c6c4d16d3191908748c818eb72a16a2240
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 19bbbb8..5762dc3 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -2,7 +2,7 @@
<!--
/**
* Copyright 2016, The CyanogenMod Project
- * Copyright 2017-2022, The LineageOS Project
+ * Copyright 2017-2023, The LineageOS Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -123,6 +123,9 @@
android:name="com.android.settings.order"
android:value="-256" />
<meta-data
+ android:name="com.android.settings.profile"
+ android:value="primary_profile_only" />
+ <meta-data
android:name="com.android.settings.summary"
android:resource="@string/summary_empty" />
</activity-alias>
@@ -152,6 +155,9 @@
android:name="com.android.settings.order"
android:value="-255" />
<meta-data
+ android:name="com.android.settings.profile"
+ android:value="primary_profile_only" />
+ <meta-data
android:name="com.android.settings.summary"
android:resource="@string/summary_empty" />
</activity-alias>
@@ -179,6 +185,9 @@
android:name="com.android.settings.order"
android:value="-254" />
<meta-data
+ android:name="com.android.settings.profile"
+ android:value="primary_profile_only" />
+ <meta-data
android:name="com.android.settings.summary"
android:resource="@string/summary_empty" />
</activity-alias>
@@ -200,6 +209,9 @@
android:name="com.android.settings.order"
android:value="0" />
<meta-data
+ android:name="com.android.settings.profile"
+ android:value="primary_profile_only" />
+ <meta-data
android:name="com.android.settings.summary"
android:resource="@string/summary_empty" />
</activity-alias>
@@ -221,6 +233,9 @@
android:name="com.android.settings.order"
android:value="2" />
<meta-data
+ android:name="com.android.settings.profile"
+ android:value="primary_profile_only" />
+ <meta-data
android:name="com.android.settings.summary"
android:resource="@string/summary_empty" />
</activity-alias>