overlay: Move managed profiles overlay to frameworks/base
The ManagedProvisioning xml's were moved in Pie.
Also added missing managed_device and managed_user xml's.
This fixes 'Android for Work'.
REF: https://github.com/LineageOS/android_packages_apps_ManagedProvisioning/commit/ebe73b6e94e65fc82fde2c482844a05deb84e806
https://github.com/LineageOS/android_frameworks_base/commit/b6a9f94d6718894fdd382708a9d87696f055e71e
Change-Id: If911b4ee1890600e47af73c7fe0fcca4dc73eb26
diff --git a/overlay/common/frameworks/base/core/res/res/values/vendor_required_apps_managed_device.xml b/overlay/common/frameworks/base/core/res/res/values/vendor_required_apps_managed_device.xml
new file mode 100644
index 0000000..37c5f13
--- /dev/null
+++ b/overlay/common/frameworks/base/core/res/res/values/vendor_required_apps_managed_device.xml
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/**
+ * Copyright (C) 2017 The Android Open Source Project
+ * 2019 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+-->
+<resources>
+ <!-- A list of apps to be retained on the managed device by a particular vendor.
+ Takes precedence over the disallowed apps lists. -->
+ <string-array translatable="false" name="vendor_required_apps_managed_device">
+ <item>com.android.vending</item> <!-- Google Play -->
+ <item>com.google.android.gms</item> <!-- Required by Play -->
+ <item>com.google.android.contacts</item> <!-- Google Contacts -->
+ <item>com.android.contacts</item> <!-- AOSP Contacts -->
+ <item>com.google.android.googlequicksearchbox</item> <!-- Google Launcher -->
+ <item>com.google.android.launcher</item> <!-- Google Launcher -->
+ <item>com.android.launcher3</item> <!-- AOSP Launcher -->
+ <item>com.google.android.dialer</item> <!-- Google dialer to enable making phone calls -->
+ <item>com.android.dialer</item> <!-- AOSP dialer -->
+ <item>com.google.android.apps.messaging</item> <!-- Google messaging to enable text messaging -->
+ <item>com.android.messaging</item> <!-- AOSP messaging -->
+ <item>com.google.android.setupwizard</item> <!-- Google SetupWizard -->
+ <item>org.lineageos.setupwizard</item> <!-- LineageOS SetupWizard -->
+ </string-array>
+</resources>
diff --git a/overlay/common/packages/apps/ManagedProvisioning/res/values/vendor_required_apps_managed_profile.xml b/overlay/common/frameworks/base/core/res/res/values/vendor_required_apps_managed_profile.xml
old mode 100755
new mode 100644
similarity index 79%
rename from overlay/common/packages/apps/ManagedProvisioning/res/values/vendor_required_apps_managed_profile.xml
rename to overlay/common/frameworks/base/core/res/res/values/vendor_required_apps_managed_profile.xml
index 212b5c9..a27d4bf
--- a/overlay/common/packages/apps/ManagedProvisioning/res/values/vendor_required_apps_managed_profile.xml
+++ b/overlay/common/frameworks/base/core/res/res/values/vendor_required_apps_managed_profile.xml
@@ -1,7 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/**
- * Copyright (C) 2014 The Android Open Source Project
+ * Copyright (C) 2017 The Android Open Source Project
+ * 2019 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.
@@ -19,9 +20,10 @@
<resources>
<!-- A list of apps to be retained in the managed profile by a particular vendor.
Takes precedence over the disallowed apps lists. -->
- <string-array name="vendor_required_apps_managed_profile">
+ <string-array translatable="false" name="vendor_required_apps_managed_profile">
<item>com.android.vending</item> <!-- Google Play -->
<item>com.google.android.gms</item> <!-- Required by Play -->
+ <item>com.google.android.contacts</item> <!-- Google Contacts -->
<item>com.android.contacts</item> <!-- AOSP Contacts -->
</string-array>
</resources>
diff --git a/overlay/common/frameworks/base/core/res/res/values/vendor_required_apps_managed_user.xml b/overlay/common/frameworks/base/core/res/res/values/vendor_required_apps_managed_user.xml
new file mode 100644
index 0000000..0099c83
--- /dev/null
+++ b/overlay/common/frameworks/base/core/res/res/values/vendor_required_apps_managed_user.xml
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/**
+ * Copyright (C) 2017 The Android Open Source Project
+ * 2019 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+-->
+<resources>
+ <!-- A list of apps to be retained on the managed user by a particular vendor.
+ Takes precedence over the disallowed apps lists. -->
+ <string-array translatable="false" name="vendor_required_apps_managed_user">
+ <item>com.android.vending</item> <!-- Google Play -->
+ <item>com.google.android.gms</item> <!-- Required by Play -->
+ <item>com.google.android.contacts</item> <!-- Google Contacts -->
+ <item>com.android.contacts</item> <!-- AOSP Contacts -->
+ <item>com.google.android.googlequicksearchbox</item> <!-- Google Launcher -->
+ <item>com.google.android.launcher</item> <!-- Google Launcher -->
+ <item>com.android.launcher3</item> <!-- AOSP Launcher -->
+ <item>com.google.android.dialer</item> <!-- Google dialer to enable making phone calls -->
+ <item>com.android.dialer</item> <!-- AOSP dialer -->
+ <item>com.google.android.apps.messaging</item> <!-- Google messaging to enable text messaging -->
+ <item>com.android.messaging</item> <!-- AOSP messaging -->
+ </string-array>
+</resources>