Git Product home page Git Product logo

bd37033controller's Introduction

BD37033 Sound Controller for Jerking UxyyyN[D?][2] car radios

Currently a work in progress, but tested AND WORKING.

This will require library /system/lib/libjni_i2c.so to be renamed to /system/lib/libjni_i2c_moved.so in order to block sofia server from accessing it.
This will also require the permissions to be changed on /dev/i2c-4 so that our process is allowed to access it.
i.e., chmod 666 /dev/i2c-4
Yeah, I know that 666 is not ideal.
I'm going to look into what is the best way to automatically make the permission change, since it requires root access (adb shell, su)

THIS IS HOW:
Create a file at /system/bin/install-recovery.sh with permissions 755
Contents:
#!/system/bin/sh
/system/bin/chmod 666 /dev/i2c-4

Right now implements a service launched by a launcher icon. The service provides buttons to vol+, vol-, enable/disable mixing, and swich between phone and AMFM radio mode (click the notification itself).

DOES NOT respond to volume buttons on SWI. That functionality will be added when I take over control of the MCU.

Not sure what it will do with a "D" radio. Probably work fine, but if they are rerouting through another audio chip, then who knows. Note that whether it is a "D" or not, it still have the BD37033, since it is built in to the SoM (on the bottom side).

To fool the jerking sofia server into thinking that it still has control of the sound chip, you need also to build libjni_i2c.so from this repository: https://github.com/lbdroid/sofia_fake_libs ... secondary benefit to this fake library is that it dumps everything that sofia server sends to it to the logcat!

bd37033controller's People

Contributors

lbdroid avatar

Stargazers

 avatar  avatar  avatar

Watchers

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