diepquynh / android_hardware_sprd

9 stars 38 forks source link

Doze support for cm 13.0 #14

Open enriquezmark36 opened 6 years ago

enriquezmark36 commented 6 years ago

Hello, I'm trying to build cm 13.0 for kanas (core 2, SM-G355H) using this source and from ih24n69's commits . I'm happy with the self-built rom until when 'modemd' decides to selfishly reboot the system at random times (I'll try to post another issue on sprd-common if I couldn't solve it. Pretty sure it was because of RILJ) . So, I was wondering how does one enable support for doze power saving. I used the check doze app from xda forums and got all reds in three categories:

screenshot_20180702-141302

I understand the second and third (since I haven't enabled the config installed gapps yet), but how come the sensor support is in red'? Doesn't the phone has a accelerometer for this.

diepquynh commented 6 years ago

These I haven't tested fully yet, but we have to add overlay configs for doze to have it working https://github.com/remilia15/android_device_samsung_scx35-common/blob/cm-14.1/overlay/frameworks/base/core/res/res/values/config.xml#L265

Also, you need to build SamsungDoze package fetched from android_device_samsung_qcom-common. That would make Doze work IMO

enriquezmark36 commented 6 years ago

Thanks, that was fast, I'll try that later.