[G2 Developer Discussion [Developers Only]] zg85:
CAF

Hello :) I'm wondering if I could bake PAC MAN ROM with CAF sources and

working

sensors (rotation).

Actually I have replaced original device/lge/g2-common + kernel/ + vendor/lge with dr87 ones :

git clone -b cleanaosp https://github.com/dr87/SimpleKernel.git
git clone https://github.com/dr87/4.4_g2-vendor
git clone https://github.com/dr87/4.4_g2-common.git

And modified hardware/qcom/display-caf/libhwcomposer/hwc_vsync.cpp with 5e80f34f57b5f9c2eb807d0e5ed1a0b28cccd3bd commit.

Compiled successfully but.. Starting up takes much longer than using CM sources and

rotation is not working

with any modem. Am I missing something or CAF wont work in PAC?

Is there a simple solution to repair that broken rotation?

Sources for hardware comes from CM - that could be the problem? Which sources should I use?

<project path="frameworks/wilhelm" name="android_frameworks_wilhelm" remote="cm" />
<project path="hardware/akm" name="android_hardware_akm" groups="pdk" remote="cm" />
<project path="hardware/broadcom/libbt" name="android_hardware_broadcom_libbt" groups="pdk" remote="cm" />
<project path="hardware/broadcom/wlan" name="android_hardware_broadcom_wlan" groups="broadcom_wlan" remote="cm" />
<project path="hardware/cm" name="android_hardware_cm" remote="cm" />
<project path="hardware/invensense" name="android_hardware_invensense" groups="invensense" remote="cm" />
<project path="hardware/libhardware" name="android_hardware_libhardware" groups="pdk" remote="cm" />
<project path="hardware/libhardware_legacy" name="android_hardware_libhardware_legacy" groups="pdk" remote="cm" />
<project path="hardware/qcom/audio" name="android_hardware_qcom_audio" groups="qcom" remote="cm" />
<project path="hardware/qcom/audio-caf" name="android_hardware_qcom_audio-caf" groups="caf" remote="cm" />
<project path="hardware/qcom/bt" name="android_hardware_qcom_bt" groups="qcom" remote="cm" />
<project path="hardware/qcom/camera" name="android_hardware_qcom_camera" groups="qcom" remote="cm" />
<project path="hardware/qcom/display" name="android_hardware_qcom_display" groups="qcom" remote="cm" />
<project path="hardware/qcom/display-caf" name="android_hardware_qcom_display-caf" groups="caf" remote="cm" />
<project path="hardware/qcom/gps" name="android_hardware_qcom_gps" groups="qcom" remote="cm" />
<project path="hardware/qcom/keymaster" name="android_hardware_qcom_keymaster" groups="qcom" remote="cm" />
<project path="hardware/qcom/media" name="android_hardware_qcom_media" groups="qcom" remote="cm" />
<project path="hardware/qcom/media-caf" name="android_hardware_qcom_media-caf" groups="caf" remote="cm" />
<project path="hardware/qcom/msm8960" name="android_hardware_qcom_msm8960" groups="qcom_msm8960" remote="cm" />
<project path="hardware/qcom/msm8x74" name="android_hardware_qcom_msm8x74" groups="qcom_msm8x74" remote="cm" />
<project path="hardware/qcom/power" name="android_hardware_qcom_power" remote="cm" />
<project path="hardware/qcom/sensors" name="android_hardware_qcom_sensors" remote="cm" />
<project path="hardware/qcom/wlan" name="android_hardware_qcom_wlan" remote="cm" />
<project path="hardware/ril" name="android_hardware_ril" groups="pdk" remote="cm" />
<project path="hardware/samsung_slsi/exynos5" name="android_hardware_samsung_slsi_exynos5" remote="cm" />
<project path="hardware/ti/omap3" name="android_hardware_ti_omap3" remote="cm" />
<project path="hardware/ti/omap4xxx" name="android_hardware_ti_omap4xxx" remote="cm" />
<project path="hardware/ti/wlan" name="android_hardware_ti_wlan" remote="cm" />
<project path="hardware/ti/wpan" name="android_hardware_ti_wpan" remote="cm" />

Please help :)

Best wishes !