This device configuration is intented to be run on a Google Pixel Tablet (tangorpro)
See also aosp-docker for a Docker-based tool chain and android-build-tools for additonal sync and flash scripts.
See here for setup of AOSP repository and dependencies.
- Download binaries for tangorpro from here according to branch and build id
- Extract with
tar -xvf google_devices-tangorpro-*.tgz
- Copy extract-google_devices-tangorpro.sh to $AOSP_HOME
- Execute with
bash extract-google_devices-tangorpro.sh
- Drivers will be extracted to
vendor/google_devices/tangorpro
- Clean up with
rm extract-google_devices-tangorpro.sh
This follows the normal AOSP build approach, e.g.
cd $AOSP_HOME
source build/envsetup.sh
lunch whaleshark_tangorpro-trunk_staging-userdebug
m -j$(nproc --all)
m -j$(nproc --all) android.hardware.automotive.vehicle@2.0-default-service
- See compiled files at
$ANDROID_PRODUCT_OUT
(should beout/target/product/tangorpro
)
Info: With Android 15, release flags have been introduced. See also aconfigs in ${AOSP_HOME}/build/release
- Copy or rsync the
$ANDROID_PRODUCT_OUT
folder to localhost, if built remotely - Check that
$ANDROID_PRODUCT_OUT
is set and export otherwise adb reboot bootloader
fastboot flashing unlock
fastboot flash bootloader $ANDROID_PRODUCT_OUT/bootloader.img
(could be skipped)fastboot reboot bootloader
fastboot -w flashall
- You should see the device booting up, but being stuck at a black screen due to missing vendor sync
Currently, there is an issue with vendor partition, so it needs to be adb synced manually, but these are the steps:
- Set
$ANDROID_PRODUCT_OUT
to the folder containing thevendor
folder adb root
adb remount
(eventually you need toadb shell vdc checkpoint commitChanges
)adb reboot
adb root && adb remount
adb synch vendor && adb reboot
- The device should now be fully functional and welcoming you with the Dashboard window.
See also this article as a reference for Nexus and Pixel devices. Additionally you can use my script collection here for an automated sync and device flash.
- Android Automotive service is not build automatically even though it is set in the product-package definition.
- While building the firmware, some vendor files are missing in the image, they must be pushed manually via
adb sync vendor