Audio file titles are now localizable
Audio files are now able to have localizable titles. Localizable titles are
identified through the following URI pattern:
Scheme: ContentResolver.SCHEME_ANDROID_RESOURCE
Authority: Package Name of ringtone title provider
First Path Segment: Type of resource (must be "string")
Second Path Segment: Resource ID of title
If an audio file has a title which conforms to this pattern, then the title
will be automatically translated to the correct language by retrieving
the provided string resource from the provided package.
Bug: 30483714
Test: cts-tradefed run cts -m CtsMediaTestCases -t \
android.media.cts.MediaScannerTest
Change-Id: I3a7d54090c4362542d1749841e2d1b351bf779a8
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index b4c9e64..a7f9200 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -3,7 +3,7 @@
package="com.android.providers.media"
android:sharedUserId="android.media"
android:sharedUserLabel="@string/uid_label"
- android:versionCode="800">
+ android:versionCode="900">
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
@@ -52,6 +52,7 @@
<receiver android:name="MediaScannerReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
+ <action android:name="android.intent.action.LOCALE_CHANGED" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.MEDIA_MOUNTED" />