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

mkdir -p hardware/interfaces/bluetooth/gatt/aidl/aidl_api/android.hardware.bluetooth.gatt/current
rsync --recursive --update --delete-before out_adevtool_deps/soong/.intermediates/hardware/interfaces/bluetooth/gatt/aidl/android.hardware.bluetooth.gatt_interface/dump/* hardware/interfaces/bluetooth/gatt/aidl/aidl_api/android.hardware.bluetooth.gatt/current
out_adevtool_deps/host/linux-x86/bin/bpmodify -w -m android.hardware.bluetooth.gatt -parameter versions -remove-property hardware/interfaces/bluetooth/gatt/aidl/Android.bp
