Create a new GTS test for logcat dialog content validation
Create a test app to trigger the logcat dialog (per-use prompt). The
GTS test uses UiAutomator to fetch the title and body, then compares
against reference strings in SystemUI resources.
Bug: 244173032
Test: atest GtsReadLogStringTest
Change-Id: I1ca1777dc2640dbab7b089b0795b44e3d1b3d6ee
diff --git a/packages/SystemUI/Android.bp b/packages/SystemUI/Android.bp
index 71ad886..eb58703 100644
--- a/packages/SystemUI/Android.bp
+++ b/packages/SystemUI/Android.bp
@@ -66,6 +66,24 @@
],
}
+//Create a library to expose SystemUI's resources to other modules.
+android_library {
+ name: "SystemUI-res",
+ resource_dirs: [
+ "res-product",
+ "res-keyguard",
+ "res",
+ ],
+ static_libs: [
+ "SystemUISharedLib",
+ "SettingsLib",
+ "androidx.leanback_leanback",
+ "androidx.slice_slice-core",
+ "androidx.slice_slice-view",
+ ],
+ manifest: "AndroidManifest-res.xml",
+}
+
android_library {
name: "SystemUI-core",
srcs: [
diff --git a/packages/SystemUI/AndroidManifest-res.xml b/packages/SystemUI/AndroidManifest-res.xml
new file mode 100644
index 0000000..58e9dc6
--- /dev/null
+++ b/packages/SystemUI/AndroidManifest-res.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ * Copyright (C) 2022 Google Inc.
+ *
+ * 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 package= "com.android.systemui.res">
+ <application/>
+</manifest>
\ No newline at end of file