anton-arnold / xoverrideheadphonejackdetection

XPosed module that allows overriding headphone detection status in android devices
GNU General Public License v3.0
22 stars 1 forks source link

Can it be patched to custom rom to use it without installing xposed. #8

Open RANZN opened 3 years ago

RANZN commented 3 years ago

Hey is it possible to somehow add it to custom rom itself so without installing xposed it can be used.

anton-arnold commented 3 years ago

@Ranjanpr9 that should be possible without too much work if you already have and use the build environment of your custom rom. In the readme is a short description of the concept how this module interacts with the android internals via xposed: https://github.com/anton-arnold/xoverrideheadphonejackdetection#how-does-it-work-internally So all you'd have to do is to integrate the code that is injected via xposed from here

at the beginning of the destination function here

The xposed lib functions for logging can be removed or replaced with equivalents.