Add manifest_check tool
Add a tool that can check that the <uses-library> tags in an
AndroidManifest.xml file match a list provided by the build.
Bug: 132357300
Test: manifest_check_test
Change-Id: If15abf792282bef677469595e80f19923b87ab62
diff --git a/scripts/Android.bp b/scripts/Android.bp
index 35b5771..31f5922 100644
--- a/scripts/Android.bp
+++ b/scripts/Android.bp
@@ -3,6 +3,7 @@
main: "manifest_fixer.py",
srcs: [
"manifest_fixer.py",
+ "manifest.py",
],
version: {
py2: {
@@ -20,6 +21,43 @@
srcs: [
"manifest_fixer_test.py",
"manifest_fixer.py",
+ "manifest.py",
+ ],
+ version: {
+ py2: {
+ enabled: true,
+ },
+ py3: {
+ enabled: false,
+ },
+ },
+ test_suites: ["general-tests"],
+}
+
+python_binary_host {
+ name: "manifest_check",
+ main: "manifest_check.py",
+ srcs: [
+ "manifest_check.py",
+ "manifest.py",
+ ],
+ version: {
+ py2: {
+ enabled: true,
+ },
+ py3: {
+ enabled: false,
+ },
+ },
+}
+
+python_test_host {
+ name: "manifest_check_test",
+ main: "manifest_check_test.py",
+ srcs: [
+ "manifest_check_test.py",
+ "manifest_check.py",
+ "manifest.py",
],
version: {
py2: {