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

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