summaryrefslogtreecommitdiffstats
path: root/AndroidManifest.xml
diff options
context:
space:
mode:
authorJake Hamby <jhamby@google.com>2012-04-17 18:26:46 -0700
committerJake Hamby <jhamby@google.com>2012-04-26 19:16:25 -0700
commitda5c415f6d0999131e93384b5fb90422ada8e4da (patch)
tree7d939a1fc4b0bd41c38f76ef449b5da12a1f6453 /AndroidManifest.xml
parent0b92192b658da076c501a71803d172c5af4cf384 (diff)
downloadandroid_packages_apps_CellBroadcastReceiver-da5c415f6d0999131e93384b5fb90422ada8e4da.tar.gz
android_packages_apps_CellBroadcastReceiver-da5c415f6d0999131e93384b5fb90422ada8e4da.tar.bz2
android_packages_apps_CellBroadcastReceiver-da5c415f6d0999131e93384b5fb90422ada8e4da.zip
Add ContentProvider for received cell broadcasts.
Enable apps with android.permission.READ_CELL_BROADCASTS to access the database of received cell broadcasts via a ContentProvider at URI "content://cellbroadcasts/". The ContentProvider is read-only, but provides internal methods for the app to insert and delete broadcasts, and to mark broadcasts as read. These methods are not exposed to other applications. Other changes: * Added static log() methods for simpler debug logging. * Moved CellBroadcastDatabase.DatabaseHelper to new top-level CellBroadcastDatabaseHelper class after refactoring the original CellBroadcastDatabase class out of existence. * Removed the "Delete" dialog title per Android UI guidelines, and changed from a custom view to a built-in dialog type. Bug: 5752924 Change-Id: I1ad6a4d5248f851c53a638c2cb7e85a57ba6b811
Diffstat (limited to 'AndroidManifest.xml')
-rw-r--r--AndroidManifest.xml5
1 files changed, 3 insertions, 2 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index e9c91587..7afa87c1 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -42,8 +42,9 @@
<service android:name="CellBroadcastConfigService"
android:exported="false" />
- <service android:name="CellBroadcastDatabaseService"
- android:exported="false" />
+ <provider android:name="CellBroadcastContentProvider"
+ android:authorities="cellbroadcasts"
+ android:readPermission="android.permission.READ_CELL_BROADCASTS" />
<activity android:name="CellBroadcastListActivity"
android:label="@string/app_label"