summaryrefslogtreecommitdiff
path: root/legacy/AndroidManifest.xml
diff options
context:
space:
mode:
authorChen Xu <fionaxu@google.com>2020-05-12 14:10:04 -0700
committerChen Xu <fionaxu@google.com>2020-05-23 22:31:27 -0700
commitcef3d14815330f03ce9a9462e9e0b1fcb6b20b6d (patch)
treed9c43867b781247741d08b66605aa23111c9951d /legacy/AndroidManifest.xml
parent265330c3add614c7a77850e9c0a5e19cbfa0d89c (diff)
downloadCellBroadcastReceiver-cef3d14815330f03ce9a9462e9e0b1fcb6b20b6d.tar.gz
support data migration by default
As part of mainline effort, cellbroadcastreceiver package name has been renamed. Now its a completely new apk with different uid. That said all user data e.g, cellbroadcast history and user preference from legacy app com.android.cellbroadcastreceiver are gone. This change is to support preserve user data when devices upgrating to R and taking cellbroadcast mainline module. 1. create legacy cellbroadcast app with old pakcage name com.android.cellbroadcastreceiver. this app only surface the old data and should not contains any activities/services to handle emergecy apert 2. legacy cellbroadcast app will be included to the system image by default. OEMs are free to remove it if they don't care data loss or R data migration is done. leagcy app will not be part of com.android.cellbroadcast apex. 3. the real mainline module rename to com.android.cellbroadcast.module Bug: 155844209 Change-Id: I25beb1b76f3231691188de51977ce17f721dcdae
Diffstat (limited to 'legacy/AndroidManifest.xml')
-rw-r--r--legacy/AndroidManifest.xml37
1 files changed, 37 insertions, 0 deletions
diff --git a/legacy/AndroidManifest.xml b/legacy/AndroidManifest.xml
new file mode 100644
index 000000000..33a37444c
--- /dev/null
+++ b/legacy/AndroidManifest.xml
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+ * Copyright (C) 2020 The Android Open Source 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.
+ */
+-->
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="com.android.cellbroadcastreceiver"
+ android:versionCode="300000000"
+ android:versionName="R-initial">
+
+ <!-- This "legacy" instance is retained on the device to preserve the
+ database contents before cellbroadcast was migrated into a
+ Mainline module. -->
+ <application
+ android:forceQueryable="true"
+ android:defaultToDeviceProtectedStorage="true"
+ android:directBootAware="true">
+ <provider
+ android:name="LegacyCellBroadcastContentProvider"
+ android:authorities="cellbroadcast-legacy"
+ android:readPermission="android.permission.READ_CELL_BROADCASTS"
+ android:exported="true" />
+ </application>
+</manifest>