cm: Introduce profiles feature xml.

TICKET: CYNGNOS-2288
Change-Id: I7ebc085732bc09e2c2737d2acfa090a74e40c9fb
diff --git a/config/cmsdk_common.mk b/config/cmsdk_common.mk
index c20e8d1..36c3604 100644
--- a/config/cmsdk_common.mk
+++ b/config/cmsdk_common.mk
@@ -2,7 +2,8 @@
 PRODUCT_COPY_FILES += \
     vendor/cm/config/permissions/org.cyanogenmod.theme.xml:system/etc/permissions/org.cyanogenmod.theme.xml \
     vendor/cm/config/permissions/org.cyanogenmod.livelockscreen.xml:system/etc/permissions/org.cyanogenmod.livelockscreen.xml \
-    vendor/cm/config/permissions/org.cyanogenmod.statusbar.xml:system/etc/permissions/org.cyanogenmod.statusbar.xml
+    vendor/cm/config/permissions/org.cyanogenmod.statusbar.xml:system/etc/permissions/org.cyanogenmod.statusbar.xml \
+    vendor/cm/config/permissions/org.cyanogenmod.profiles.xml:system/etc/permissions/org.cyanogenmod.profiles.xml
 
 # CM Platform Library
 PRODUCT_PACKAGES += \
diff --git a/config/permissions/org.cyanogenmod.profiles.xml b/config/permissions/org.cyanogenmod.profiles.xml
new file mode 100644
index 0000000..6a45526
--- /dev/null
+++ b/config/permissions/org.cyanogenmod.profiles.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2016 The CyanogenMod 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.
+-->
+
+<permissions>
+    <!-- The feature listed here coincides with the ProfileManagerService declared as
+         part of the external cm service init in SystemServer. If this xml isn't present
+         on the device, the service will not be published as a binder service!
+     -->
+    <feature name="org.cyanogenmod.profiles" />
+</permissions>