Skip to content

Galaxy-MSM8916/acdb_extract

Repository files navigation

acdb_extract

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).

  1. Generate the acdb_data header -> ./generate_acdb_data.sh $stock_audio_hal.so
  2. Use make acdb_extract to make the binary.
  3. Run ./acdb_extract [path to audio hal] > acdb_table.txt to save the table in acdb_table.txt.
  4. Enjoy your acdb table

get_snd_dev_names

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.

  1. Generate the acdb_data header -> ./generate_acdb_data.sh $stock_audio_hal.so
  2. Clone the repo and use the android toolchain to make the binary.
  3. Run ./get_snd_dev_names [path to audio hal] > device_names.h to save the table in device_names.h.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published