To build Paranoid Doze you have to build the package in your device tree.
# Paranoid 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 "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.
ro.sensor.pickup
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.
OnePlus
ro.sensor.pickup=oneplus.sensor.pickup
Xiaomi
ro.sensor.proximity=true
ro.sensor.pickup=xiaomi.sensor.pickup