From 4fb840ee2b2a7d9a55f68affe0bb6f554a3a6025 Mon Sep 17 00:00:00 2001 From: Dario Freni Date: Wed, 19 Dec 2018 12:43:32 +0000 Subject: Add a ModuleMetadata package. The package is used to allow the platform to infer what version of the Mainline modules is currently installed, and expose this information via APIs. Mainline modules release train should include up-to-date versions of this package, among others. Bug: 121187951 Change-Id: I0f169c7ab75c2061612fa0762be509c6426c6000 --- Android.bp | 21 +++++++++++++++++++++ AndroidManifest.xml | 23 +++++++++++++++++++++++ res/values/strings.xml | 6 ++++++ res/xml/module_metadata.xml | 2 ++ 4 files changed, 52 insertions(+) create mode 100644 Android.bp create mode 100644 AndroidManifest.xml create mode 100644 res/values/strings.xml create mode 100644 res/xml/module_metadata.xml diff --git a/Android.bp b/Android.bp new file mode 100644 index 0000000..4fef128 --- /dev/null +++ b/Android.bp @@ -0,0 +1,21 @@ +// +// Copyright (C) 2018 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. +// + +android_app { + name: "ModuleMetadata", + sdk_version: "28", + installable: false, +} \ No newline at end of file diff --git a/AndroidManifest.xml b/AndroidManifest.xml new file mode 100644 index 0000000..918fc63 --- /dev/null +++ b/AndroidManifest.xml @@ -0,0 +1,23 @@ + + + + + + + diff --git a/res/values/strings.xml b/res/values/strings.xml new file mode 100644 index 0000000..2bb349b --- /dev/null +++ b/res/values/strings.xml @@ -0,0 +1,6 @@ + + + Module Metadata + + + diff --git a/res/xml/module_metadata.xml b/res/xml/module_metadata.xml new file mode 100644 index 0000000..e066161 --- /dev/null +++ b/res/xml/module_metadata.xml @@ -0,0 +1,2 @@ + + -- cgit v1.2.3