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_r14
repo 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/feixiao/whaleshark
cd $AOSP_HOME
git clone https://github.com/feixiao/android_device_whaleshark.git device/alexanderwolz/whaleshark
This follows the normal AOSP build approach, e.g.
cd $AOSP_HOME
source build/envsetup.sh
lunch whaleshark-userdebug
make 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_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
adb root
adb remount
(eventually you need toadb shell vdc checkpoint commitChanges
)adb synch vendor
adb 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