I have recently bought a Lenovo Tab3 710F tablet (product page) and I'm trying to control the music playback externally with a small electronic circuit.
The idea is to reproduce the same behavior as the buttons that one can find on a external headset which plugs into the mini-jack port.
There is a page in the Android documentation which specifies this interface: 3.5 mm Headset: Accessory Specification. In brief, each button should be connected in series with a resistor of a given value with allows the android device to detect which button was pressed and trigger the corresponding action.
The problem is that my tablet doesn't really respond according to that specification (ex button B triggers next song, instead of vol+). Also, the wiring on this tablet seems inverted between GND and MIC. I have tried opening the tablet to find the audio or headset detection IC model, but to no luck as everything is sealed.
Thus, I was thinking that maybe I could get some info from "software": how can I know which driver is handling button actions?
The idea would then to look at the source code (available on Lenovo website), to find the various capabilities coded in the driver, and maybe even an IC reference that would help me locate the IC datasheet for further information.