It is no longer a surprise for anyone to see Xiaomi shipping the same
device with different displays and different displays usually mean
different touchscreen drivers.
The current double tap handling in the power HAL only takes into
account one specific node, meant to be set in the device tree.
However, if the touchscreen was registered as a different input device
it would cause the feature to be broken. Address the issue by iterating
through the input devices in order to find one supported touchscreen
input to be used.
Co-authored-by: LuK1337 <priv.luk@gmail.com>
Change-Id: I2f7fb4a8b0c9cd1a16d6c2b93602d285a191f170
The charger daemon has been moved to /system/bin, so mimic that change
but keep using the nice deamon. Also the service label got changed to charger
and daemon is now labeled as charger_exec, therefore update it accordingly.
Change-Id: I93a88aef41f52837fd0be691e414a5319b689208
Moving from the default implementation to a binderized service with no
wrapping.
Now using 1.2 implementation of the IPower interface.
Change-Id: Ibefd916544f51545e6889684a051b2ecc5867fe2
Instead of bind mounting /dev/null over the vendor binaries,
force the services to be stopped right whenever those are running.
This also reverts commit 1501593 and workarounds the neverallows,
because system init can't bind mount vendor exec files.
Change-Id: Ia5e723b837e547b9e2cebe47accdaa2356e1d694
* On TREBLE devices, most coredomains should not access vendor_files.
For this reason, vendor.display.color@1.0.so must be present in /system
so that libsdm-disp-apis.so can dlopen it.
Change-Id: I850b123ea23dd3e7cc74ee9708e781748561df06
* Now defined in the latest builds, remove duplicate property contexts
in order to allow devices to boot.
This reverts commit 683242f174.
Change-Id: I76d7381721abf28c283acc1b54f17f586fa908b0
These services are pretty useless for production builds. Moreover,
cnss_diag was running in the background and continuously writing logs
to sdcard/wlan_logs, so disable them.
Change-Id: I4a9dea38179f39ca939174b60a132f1cbbc1fa44
* Some apps rely on this and won't work properly if they
can't read this property. See ~ Snapchat.
Change-Id: I737e28f038941e6d18b96ff512f29dbe0ad7b7e4
* Several mount points got updated for treble compliance,
so keep fstab up-to-date and also remove contexts accordingly.
Change-Id: I3dc7e08e9b64b759b03f1a93c85f161a5c1a554f
* The lib responsible for audio postprocessing (libvolumelistener)
from Xiaomi causes stuttering distorted audio. Replace with a working
copy from enchilada.
Change-Id: I27d631e5fea0dbd338c18a529b26d1ef700affd7
* The purpose is to apply the same BT A2DP fix that used to be
applied in the individual device trees.
Change-Id: I500948b5e1e11ee11097ee2e115b0c23dd808a12
* It's cool, and more importantly... it actually works!
Oh look, it even displays battery level. Wow. :-P
Change-Id: I6351e2eac6df89aa1b6b98e4e6b2815fa5c37794