cmparts: Profiles settings

 * So many people have worked on this, I've lost count.
 * This patch rolls it all up and moves it into CMParts.
 * Also brought in required Settings infrastructure to support
   fragment navigation.

Change-Id: I58da5f7bca2d571865afcf4fafbaff881311fe16
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 01e9548..ff39f43 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -32,6 +32,7 @@
     <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" />
     <uses-permission android:name="android.permission.DEVICE_POWER" />
     <uses-permission android:name="android.permission.CHANGE_CONFIGURATION" />
+    <uses-permission android:name="android.permission.BIND_DEVICE_ADMIN" />
 
     <uses-permission android:name="cyanogenmod.permission.BIND_CORE_SERVICE" />
 
@@ -96,5 +97,23 @@
                 android:resource="@drawable/ic_settings_buttons" />
         </activity-alias>
 
+        <!-- Profiles settings (dashboard) -->
+        <activity-alias
+            android:name=".profiles.ProfilesSettings"
+            android:label="@string/profiles_settings_title"
+            android:targetActivity="PartsActivity">
+            <intent-filter>
+                <action android:name="com.android.settings.action.EXTRA_SETTINGS" />
+                <action android:name="org.cyanogenmod.cmparts.PROFILES_SETTINGS" />
+                <category android:name="android.intent.category.DEFAULT" />
+            </intent-filter>
+            <meta-data
+                android:name="com.android.settings.category"
+                android:value="com.android.settings.category.personal" />
+            <meta-data
+                android:name="com.android.settings.icon"
+                android:resource="@drawable/ic_settings_profiles" />
+        </activity-alias>
+
     </application>
 </manifest>