Giter Club home page Giter Club logo

acdb_extract's Introduction

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.

acdb_extract's People

Contributors

luca020400 avatar vince2678 avatar zwliew avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.