#!/usr/bin/env bash
set -euo pipefail

out_adevtool_deps/host/linux-x86/bin/bpmodify -w -m pixel-thermal-ext -parameter frozen -set-bool false hardware/google/interfaces/thermal/Android.bp
mkdir -p hardware/google/interfaces/thermal/aidl_api/pixel-thermal-ext/current
rsync --recursive --update --delete-before out_adevtool_deps/soong/.intermediates/hardware/google/interfaces/thermal/pixel-thermal-ext_interface/dump/* hardware/google/interfaces/thermal/aidl_api/pixel-thermal-ext/current
out_adevtool_deps/host/linux-x86/bin/bpmodify -w -m pixel-thermal-ext -parameter versions -remove-property hardware/google/interfaces/thermal/Android.bp
