To build Paranoid Doze you have to build the package in your device tree.
# Doze
PRODUCT_PACKAGES += \
ParanoidDoze
In order to have the proper options showing up you have to define the device related sensors in your build properties
- Set this to the name of 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 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.value
- Set this to "true" if the device uses the proximity sensor to check for pocket and handwave gestures.
ro.sensor.proximity
These 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.pickup=android.sensor.tilt_detector
ro.sensor.value=0
Xiaomi devices
ro.sensor.pickup=xiaomi.sensor.pickup
ro.sensor.pickup.lower.value=2
ro.sensor.proximity=true