This repo has a patch to enable chromium to be ran on android automotive, along with scritps to help ease the build process.
cd ~/
git clone https://github.com/zunichky/chromium_aaos.git chromium
cd chromium
Follow the offical google chromium guide
During the "Setting up the build", run gn args out/Release_arm64
and copy the contents of Release_arm64.gn.
To build, you could continue to use the offical guide but these instructions going forward will use custom build scripts. It is helpful to still have the chromium guide pulled up while running through this readme.
The following folder structure exists
|$HOME
| |--chromium
| pull_latest.sh
| etc.
| |--src
| |--Android
| |--Sdk
| |--build-tools
| |--Documents
| |--KeyStore
| store.jks
Android build tools is needed for the signing of the aab. I used android studio to create my signing key, but I'm sure there is an terminal command to accomplish creating a .jks.
Run ./pull_latest.sh
. This will:
- Fetch the latest chromium code
- Apply a patch to make the app "AAOS compatible"
- runhooks
Run ./build_release.sh
. This proces will take hours to complete. This will:
- Setup parameters based on target architecture
- Find latest version file, and bump the major by 1
- Run build command to build an app bundle (.aab)
- Sign the .aab output file (needed to upload to Play Store) - Will ask to enter password
Output:$HOME/chromium/src/out/Release_arm64/apks/MonochromePublic6432.aab
TODO
./build_apk.sh
TODO
- Create dev account
- Go to Google Play Console
- Create a new app
- Add Automotive OS only form factor
- Publish app to internal testing
- Add privacy statement
- Add testers emails
- Go to the "Copy link" URL and install the app to your target device