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

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