add QCOM_HARDWARE ifdef