Convert TestMediaApp to Android.bp

See build/soong/ for more information.

Fixes: 144290484
Test: m TestMediaApp
Change-Id: I5db1b352395b50a7820dcef552adf16e09eacd60
Merged-In: I5db1b352395b50a7820dcef552adf16e09eacd60
Exempt-From-Owner-Approval: cherry-pick
(cherry picked from commit 613f410a13c76bd0e3bd4b1146ddfdba858b0c5e)
2 files changed
tree: 039cfea8cfc1515f4cdef94b09da1387b555dd73
  1. .gitignore
  2. TestMediaApp/
  3. build.gradle
  4. gradle/
  5. gradlew
  7. settings.gradle

Car test apps

This repository is only for car test applications.


If 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.

Install Android Studio. Then import the tests Gradle project into Android Studio.


TestMediaApp should be one of the run configurations. The green Run button should build and install the app on your phone.

To see TestMediaApp in Android Auto Projected:

  1. Open Android Auto on phone
  2. Click hamburger icon at top left -> Settings
  3. Scroll to Version at bottom and tap ~10 times to unlock Developer Mode
  4. Click kebab icon at top right -> Developer settings
  5. Scroll to bottom and enable “Unknown sources”
  6. Exit and re-open Android Auto
  7. TestMediaApp should now be visible (click headphones icon in phone app to see app picker)


Workstation setup

Install repo command line tool. Then run:

sudo apt-get install gitk
sudo apt-get install git-gui
repo init -u persistent- -b pi-car-dev -g name:platform/tools/repohooks,name:platform/packages/apps/Car/tests --depth=1
repo sync

Making a change

repo start BRANCH_NAME .
# Make some changes
git gui &
# Use GUI to create a CL. Check amend box to update a work-in-progress CL
repo upload .