readme.md
1# Car test apps
2
3This repository is only for car test applications.
4
5## Building
6
7If you are not contributing to the repo, you can clone the repo via `git clone sso://googleplex-android/platform/packages/apps/Car/tests --branch pi-car-dev --single-branch`. Otherwise, see [workstation setup](#workstation-setup).
8
9Install [Android Studio](go/install-android-studio). Then import the `tests` Gradle project into Android Studio.
10
11### TestMediaApp
12
13TestMediaApp should be one of the run configurations. The green Run button should build and install the app on your phone.
14
15To see TestMediaApp in Android Auto Projected:
16
171. Open Android Auto on phone
182. Click hamburger icon at top left -> Settings
193. Scroll to Version at bottom and tap ~10 times to unlock Developer Mode
204. Click kebab icon at top right -> Developer settings
215. Scroll to bottom and enable "Unknown sources"
226. Exit and re-open Android Auto
237. TestMediaApp should now be visible (click headphones icon in phone app to see app picker)
24
25## Contributing
26
27### Workstation setup
28
29Install [repo](https://source.android.com/setup/build/downloading#installing-repo) command line tool. Then run:
30
31```
32sudo apt-get install gitk
33sudo apt-get install git-gui
34mkdir WORKING_DIRECTORY_FOR_GIT_REPO
35cd WORKING_DIRECTORY_FOR_GIT_REPO
36repo init -u persistent-https://googleplex-android.git.corp.google.com/platform/manifest -b pi-car-dev -g name:platform/tools/repohooks,name:platform/packages/apps/Car/tests --depth=1
37repo sync
38```
39
40### Making a change
41
42```
43repo start BRANCH_NAME .
44# Make some changes
45git gui &
46# Use GUI to create a CL. Check amend box to update a work-in-progress CL
47repo upload .
48```
49
50