As discussed many times in a lot of ROM threads, Android Doze power saving comes with Android Marshmallow. But only devices, which have a low power accelerometer can use this Doze mode. Developers can enable Doze in their device tree, but it won't work, because the system can't use the old accelerometer of our Note 2.
Doze requirements
During Doze:
by adding the following to: overlay/frameworks/base/core/res/res/values/config.xml
Trafalgar Square
Doze requirements
- Device implements the significant motion detector (SMD) APIs in the Sensor HAL. Devices that do not implement these APIs cannot support Doze. <--- Note 2 don't supports this
- Device has a cloud messaging service, such as Google Cloud Messaging (GCM). This enables the device to know when to wake from Doze. <--- Note 2 supports this
During Doze:
- Apps not allowed network access.
- App wakelocks ignored.
- Alarms deferred. Excludes alarm clock alarms and alarms set using setAndAllowWhileIdle() (limited to 1 per 15 minutes per app while in Doze). This exemption is intended for apps (such as Calendar) that must show event reminder notifications.
- Wi-Fi scans not performed.
- SyncAdapter syncs and JobScheduler jobs deferred until the next maintenance window.
- Apps receiving SMS and MMS messages are put on a temporary whitelist so they can complete their processing.
by adding the following to: overlay/frameworks/base/core/res/res/values/config.xml
- bool name="config_enableAutoPowerModes">true</bool>
- Note 2 can't use Doze
- There is no longer batterylife, if doze is enabled in configs
Trafalgar Square