m clobber # AP2A.240805.005 android-14.0.0_r55 Android14 Pixel 5a (5G), Pixel 7, Pixel 7 Pro, Pixel 7a, Pixel 8, Pixel 8 Pro, Pixel Fold, Pixel Tablet 2024-08-05 # Source: https://source.android.com/docs/setup/reference/build-numbers # Binaries: https://developers.google.com/android/drivers#tangorpro # Prepare ccache rm -rf /mnt/ccache mkdir /mnt/ccache mount --bind /root/.ccache /mnt/ccache REPO_ALLOW_SHALLOW=0 repo init -c -u https://android.googlesource.com/platform/manifest -b android-14.0.0_r55 --use-superproject --partial-clone --partial-clone-exclude=platform/frameworks/base --clone-filter=blob:limit=10M curl --output - https://dl.google.com/dl/android/aosp/google_devices-tangorpro-ap2a.240805.005-7e95f619.tgz | tar -xzvf - tail -n +315 extract-google_devices-tangorpro.sh | tar -zxvf - . build/envsetup.sh lunch aosp_tangorpro_car-ap2a-userdebug m m android.hardware.automotive.vehicle@2.0-default-service android.hardware.automotive.audiocontrol-service.example make dist tar -cf vendor.tar -C $OUT vendor # use vendor.tar # use out/dist/aosp_tangorpro_car-ota-root.zip # use $OUT/vendor_boot.img ### == Locally == # OEM Unlock adb reboot bootloader fastboot flashing unlock adb reboot fastboot fastboot flash vendor_boot vendor_boot.img fastboot reboot recovery # Select: - Apply update from ADB adb sideload aosp_tangorpro_car-ota-root.zip # Vendor Sync mkdir product && tar -xvf vendor.tar -C product export ANDROID_PRODUCT_OUT=product #Temporary disable the userdata checkpoint adb wait-for-device root; sleep 3; adb shell vdc checkpoint commitChanges; sleep 2 #Enable remount adb remount && sleep 2 && adb reboot && echo "rebooting the device" && adb wait-for-device root && sleep 5 && adb remount adb sync vendor && adb reboot # Brightness adb shell settings put system screen_brightness 255 # Boot when charging adb reboot bootloader fastboot oem off-mode-charge 1 fastboot reboot # Mock location adb unroot adb shell cmd location set-location-enabled true adb root adb shell appops set 0 android:mock_location allow adb shell cmd location providers add-test-provider gps adb shell cmd location providers set-test-provider-enabled gps true adb shell cmd location providers set-test-provider-location gps --location 39.971368,32.9318579 #To verify adb shell dumpsys location | grep "last location" # Alternatives haven't tested: # - android-15.0.0_r4 : https://dl.google.com/dl/android/aosp/google_devices-tangorpro-ap3a.241105.007-2bf56572.tgz # - android-13.0.0_r55 : https://dl.google.com/dl/android/aosp/google_devices-tangorpro-td2a.230203.028-d0eca6a8.tgz