libhardware-legacy: QCOM's revenge

Based on CAF kk_2.7_rb1.9

Change-Id: Idf38b96619fe09a7a8f7baaaf0871fd9f76b79e9
Merge "libhardware-legacy: QCOM's revenge" into android-4.4