cmparts: Make CMParts searchable

 * Implement a SearchIndexablesProvider to allow the Settings app
   to crawl our resources.
 * Add all missing metadata where necessary so resources can be
   indexed.

Change-Id: Ic8f304a7995b269f476eda6306d11b366621f4b0
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 0edd219..b1360d0 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -34,6 +34,7 @@
     <uses-permission android:name="android.permission.CHANGE_CONFIGURATION" />
     <uses-permission android:name="android.permission.BIND_DEVICE_ADMIN" />
     <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
+    <uses-permission android:name="android.permission.READ_SEARCH_INDEXABLES" />
 
     <uses-permission android:name="cyanogenmod.permission.BIND_CORE_SERVICE" />
 
@@ -60,6 +61,17 @@
             </intent-filter>
         </receiver>
 
+        <provider android:name=".search.CMPartsSearchIndexablesProvider"
+                  android:authorities="org.cyanogenmod.cmparts"
+                  android:multiprocess="false"
+                  android:grantUriPermissions="true"
+                  android:permission="android.permission.READ_SEARCH_INDEXABLES"
+                  android:exported="true">
+            <intent-filter>
+                <action android:name="android.content.action.SEARCH_INDEXABLES_PROVIDER" />
+            </intent-filter>
+        </provider>
+
         <!-- Privacy settings (dashboard) -->
         <activity-alias
             android:name="PrivacySettings"