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!
forked from lbdroid/BD37033Controller
-
Notifications
You must be signed in to change notification settings - Fork 0
Dev and testing service for manipulating bd37033 sound chip on jerking car radio with intel sofia SoC
License
shanetrainST/BD37033Controller
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
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 0
No packages published
Languages
- Java 100.0%