armani: Add compatibility with cm

This is merged commit of
https://github.com/armani-dev/android_hardware_qcom_display-caf-legacy/commit/dd596db5cfedc47c804baeba66083b7b8d6915c1
https://github.com/armani-dev/android_hardware_qcom_display-caf-legacy/commit/c700957c8411f7a30471de92154a0d4442c8bd40
https://github.com/armani-dev/android_hardware_qcom_display-caf-legacy/commit/9ab3ddfca8092105c86907cace9b883e995d6cd8
Thanks for Kra1o5