Move BugReportApp to /packages/services/Car/tests/ and create default configs.
- Bucket name is in res/values/configs.xml
- JSON credentials in res/raw/gcs_credentials.json
These values are empty and should be overlayed.
Change-Id: Ic018c8b613259c1255d9f3a3c062aee0a2f7d796
Bug: 134191598
Test: on a hawk rig
diff --git a/tests/BugReportApp/AndroidManifest.xml b/tests/BugReportApp/AndroidManifest.xml
new file mode 100644
index 0000000..ac27207
--- /dev/null
+++ b/tests/BugReportApp/AndroidManifest.xml
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2019 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.google.android.car.bugreport"
+ android:versionCode="6"
+ android:versionName="1.5.0">
+
+ <uses-permission android:name="android.permission.INTERNET"/>
+ <uses-permission android:name="android.permission.READ_LOGS"/>
+ <uses-permission android:name="android.permission.READ_FRAME_BUFFER"/>
+ <uses-permission android:name="android.permission.RECORD_AUDIO"/>
+ <uses-permission android:name="android.permission.MANAGE_USERS"/>
+ <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS"/>
+ <uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
+ <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
+ <uses-permission android:name="android.permission.DUMP"/>
+
+ <application android:label="@string/app_name" android:icon="@drawable/ic_launcher">
+ <activity android:name=".BugReportInfoActivity"
+ android:theme="@android:style/Theme.DeviceDefault.NoActionBar"
+ android:exported="true">
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN"/>
+ <category android:name="android.intent.category.LAUNCHER"/>
+ <action android:name="android.intent.action.VIEW"/>
+ </intent-filter>
+ </activity>
+
+ <!-- singleInstance allows starting bugreport dialog when BugReportInfoActivity is open. -->
+ <activity android:name=".BugReportActivity"
+ android:theme="@android:style/Theme.DeviceDefault.Dialog"
+ android:exported="true"
+ android:launchMode="singleInstance">
+ </activity>
+
+ <service android:name=".BugReportService"
+ android:exported="false"/>
+
+ <service android:name="com.google.android.car.bugreport.UploadJob"
+ android:permission="android.permission.BIND_JOB_SERVICE"
+ android:exported="true"/>
+
+ <receiver android:name=".StartUpBootReceiver"
+ android:exported="true">
+ <intent-filter>
+ <action android:name="android.intent.action.BOOT_COMPLETED"/>
+ </intent-filter>
+ </receiver>
+
+ <provider android:name="com.google.android.car.bugreport.BugStorageProvider"
+ android:authorities="com.google.android.car.bugreport"
+ android:exported="false"
+ android:singleUser="true"
+ android:multiprocess="false">
+ </provider>
+ </application>
+</manifest>