How do I give Android apps access to the Hexagon DSP

875 Views Asked by At

I'm trying to run some Android apps of mine on the Hexagon DSP on a Google Pixel. However, access to the DSP is being restricted. Using the AOSP source is it possible to modify the policy of whether Android programs can run on the Hexagon DSP? Using, e.g., SEL policies? The Android docs state that some OEMs (in particular for the Pixel) restrict access to the Hexagon DSP. Is this something decided in the proprietary binaries or in some configurations in AOSP?

2

There are 2 best solutions below

0
2600hz On BEST ANSWER

you should try this https://github.com/geohot/freethedsp if your still interested. It should let you bypass the signature checks, Definitely read the source for more info, you'll have to edit the addresses in the code for the patch to work on your specific phone, but it should work. also thank you to geohot!

forgot to mention, i think i read somewhere that selinux policys on the newer versions of android only let certain apps access dsp remote procedure calls but you can fix that if your root or using AOSP.

0
Manik Mahajan On

If the application is signed by device manufacturer, only then this can be accessed on a production device. You may change AOSP code and bypass the same but if your intention is to distribute the application, it might not be a good idea.