To build Paranoid Doze you have to build the package in your device tree.
# Paranoid Doze
PRODUCT_PACKAGES += \
ParanoidDozeIn order to have the proper options showing up you have to define the device related sensors in your build properties
- Set this to "true" if the device uses the proximity sensor to check for pocket & handwave gestures.
ro.sensor.proximity- The device specific pickup sensor to enable pickup gesture, if present.
ro.sensor.pickup- Set this to the value which the pickup sensor reports when the device is picked up (lifted), if it is different from the default value (1).
ro.sensor.pickup.value- Set this to the value which the pickup sensor reports when the device is put back down (lowered) after pickup, if supported.
ro.sensor.pickup.lower.valueThese properties are not representative of all OnePlus/Xiaomi devices and serve as an example, you'll need to reconfirm which ones your device uses.
Oplus devices
ro.sensor.value=0
ro.sensor.pickup=android.sensor.tilt_detectorXiaomi
ro.sensor.proximity=true
ro.sensor.pickup=xiaomi.sensor.pickup
ro.sensor.pickup.lower.value=2