This program searches for and and dumps the acdb table from the audio HAL.
This program should be able to work with any audio HAL which uses the standard acdb
table format (i.e, first entry is always -1, values are ints, etc) whether the
hal lib has the platform_get_snd_device_acdb_id()
function or not since it does
not use that to extract the acdb table.
The program does not have to be built and pushed to an android device. It can be built and used on any system (in theory).
- Generate the acdb_data header -> ./generate_acdb_data.sh $stock_audio_hal.so
- Use
make acdb_extract
to make the binary. - Run
./acdb_extract [path to audio hal] > acdb_table.txt
to save the table inacdb_table.txt
. - Enjoy your acdb table
This program fetches the true sound device names from the audio HAL using dlopen()
and dlsym()
to
run platform_get_snd_device_name()
in the audio HAL.
This will have to be built using the android toolchain and pushed to an android device.
- Generate the acdb_data header -> ./generate_acdb_data.sh $stock_audio_hal.so
- Clone the repo and use the android toolchain to make the binary.
- Run
./get_snd_dev_names [path to audio hal] > device_names.h
to save the table indevice_names.h
.