Skip to content

Dev and testing service for manipulating bd37033 sound chip on jerking car radio with intel sofia SoC

License

Notifications You must be signed in to change notification settings

shanetrainST/BD37033Controller

 
 

Repository files navigation

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!

About

Dev and testing service for manipulating bd37033 sound chip on jerking car radio with intel sofia SoC

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%