Add an AndroidManifest.xml for API targeting
am: fda1ec70b5
Change-Id: Ib78065b5562e0a5d0ce8204a43012f4244003041
diff --git a/apex/Android.bp b/apex/Android.bp
index 076de0c..f1459a1 100644
--- a/apex/Android.bp
+++ b/apex/Android.bp
@@ -16,6 +16,9 @@
apex_defaults {
name: "com.android.tzdata-defaults",
+ // Use a custom AndroidManifest.xml used for API targeting.
+ androidManifest: ":com.android.tzdata-androidManifest",
+
// Explicit because the defaulting behavior only works for the real
// module.
file_contexts: "com.android.tzdata",
@@ -25,6 +28,11 @@
certificate: ":com.android.tzdata.certificate",
}
+filegroup {
+ name: "com.android.tzdata-androidManifest",
+ srcs: ["AndroidManifest.xml"],
+}
+
apex_key {
name: "apex.tzdata.key",
public_key: "com.android.tzdata.avbpubkey",
diff --git a/apex/AndroidManifest.xml b/apex/AndroidManifest.xml
new file mode 100644
index 0000000..980d723
--- /dev/null
+++ b/apex/AndroidManifest.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ * Copyright (C) 2017 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.tzdata">
+ <!-- APEX does not have classes.dex -->
+ <application android:hasCode="false" />
+ <!--
+ * The content of the time zone data module is tied to (among other things)
+ * the version of ICU being used on the device. Since that typically
+ * updates every dessert release, we lock the module to a single API level.
+ -->
+ <uses-sdk android:minSdkVersion="28" android:maxSdkVersion="28" />
+</manifest>