diff options
| author | Dario Freni <dariofreni@google.com> | 2018-12-19 12:43:32 +0000 |
|---|---|---|
| committer | Dario Freni <dariofreni@google.com> | 2018-12-27 15:12:19 +0000 |
| commit | 4fb840ee2b2a7d9a55f68affe0bb6f554a3a6025 (patch) | |
| tree | 8ae49a6c23a285b28abb35a8abbc5f30435a6337 | |
| parent | 1e7023ee312e0fb7005bc401debd3beeae4d7a25 (diff) | |
| download | platform_packages_modules_ModuleMetadata-4fb840ee2b2a7d9a55f68affe0bb6f554a3a6025.tar.gz platform_packages_modules_ModuleMetadata-4fb840ee2b2a7d9a55f68affe0bb6f554a3a6025.tar.bz2 platform_packages_modules_ModuleMetadata-4fb840ee2b2a7d9a55f68affe0bb6f554a3a6025.zip | |
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
| -rw-r--r-- | Android.bp | 21 | ||||
| -rw-r--r-- | AndroidManifest.xml | 23 | ||||
| -rw-r--r-- | res/values/strings.xml | 6 | ||||
| -rw-r--r-- | res/xml/module_metadata.xml | 2 |
4 files changed, 52 insertions, 0 deletions
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 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- 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. +--> +<manifest xmlns:android="http://schemas.android.com/apk/res/android" + package="com.android.modulemetadata"> + <application android:name=".ModuleMetadataApplication" + android:label="@string/app_name"> + <meta-data android:name="android.content.pm.MODULE_METADATA" + android:resource="@xml/module_metadata" /> + </application> +</manifest> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> + <string name="app_name">Module Metadata</string> + + <!-- Module names go here --> +</resources> 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 @@ +<module-metadata xmlns:android="https://schemas.android.com/apk/res/android"> +</module-metadata> |
