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_tools for additonal sync and flash scripts.
This product is currently being tested against UP1A.231105.003 (android-14.0.0_r14)
See Android tags for other build ids and branches
cd $AOSP_HOME(this is a placeholder for your workdir)repo init --depth=1 -u https://android.googlesource.com/platform/manifest -b android-14.0.0_r14repo sync -c --no-tags --no-clone-bundle -j$(nproc --all)
- 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
Clone this repository to $AOSP_HOME/device/alexanderwolz/whaleshark
cd $AOSP_HOMEgit clone https://github.com/alexanderwolz/android_device_whaleshark.git device/alexanderwolz/whaleshark
This follows the normal AOSP build approach, e.g.
cd $AOSP_HOMEsource build/envsetup.shlunch whaleshark-userdebugmake clobber(optionally, cleans target folder)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)
Currently, there is an issue with vendor partition, so it needs to be adb synced manually, but these are the steps:
- Flash device with official firmware matching the build id first
- Disable OEM lock (see settings app)
- Copy or rsync the
$ANDROID_PRODUCT_OUTfolder to localhost, if built remotely - Check that
$ANDROID_PRODUCT_OUTis set and export otherwise adb reboot bootloaderfastboot flashing unlockfastboot flash bootloader $ANDROID_PRODUCT_OUT/bootloader.img(could be skipped)fastboot reboot bootloaderfastboot -w flashalladb rootadb remount(eventually you need toadb shell vdc checkpoint commitChanges)adb synch vendoradb reboot
Otherwise 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 - Screen rotation is upside-down. Should be fixed by overlay but it is not applied yet. Can be temporarily changed with
adb shell settings put system user_rotation 3