[Android Apps and Games] milojoseph:
So, i remember you telling me to do these commands and remember global device would return to null. Well here it is, it doesn't anymore as I have used doze editor to switch. I think it still works a little. I have attached a log as well.

adb shell settings get global device_idle_constants

inactive_to=600000,sensing_to=0,locating_to=0,location_accuracy=20.0,motion_inactive_to=0,idle_after_inactive_to=0,idle_pending_to=120000,max_idle_pending_to=120000,idle_pending_factor=2.0,idle_to=1800000,max_idle_to=21600000,idle_factor=2,min_time_to_alarm=3600000,max_temp_app_whitelist_duration=300000,mms_temp_app_whitelist_duration=60000,sms_temp_app_whitelist_duration=20000

adb shell dumpsys deviceidle

Settings:
light_after_inactive_to=+5m0s0ms
light_pre_idle_to=+10m0s0ms
light_idle_to=+5m0s0ms
light_idle_factor=2.0
light_max_idle_to=+15m0s0ms
light_idle_maintenance_min_budget=+1m0s0ms
light_idle_maintenance_max_budget=+5m0s0ms
min_light_maintenance_time=+5s0ms
min_deep_maintenance_time=+30s0ms
inactive_to=+10m0s0ms
sensing_to=+1s0ms
locating_to=+1s0ms
location_accuracy=20.0m
motion_inactive_to=+1s0ms
idle_after_inactive_to=+1s0ms
idle_pending_to=+2m0s0ms
max_idle_pending_to=+2m0s0ms
idle_pending_factor=2.0
idle_to=+30m0s0ms
max_idle_to=+6h0m0s0ms
idle_factor=2.0
min_time_to_alarm=+1h0m0s0ms
max_temp_app_whitelist_duration=+5m0s0ms
mms_temp_app_whitelist_duration=+1m0s0ms
sms_temp_app_whitelist_duration=+20s0ms
notification_whitelist_duration=+30s0ms
Idling history:
normal: -1d2h8m0s22ms
light-idle: -1d0h10m4s986ms
light-maint: -1d0h4m55s108ms
light-idle: -1d0h4m49s657ms
light-maint: -23h54m4s299ms
light-idle: -23h53m58s273ms
light-maint: -23h38m40s498ms
light-idle: -23h38m34s49ms
light-maint: -23h23m32s628ms
light-idle: -23h23m27s145ms
deep-idle: -23h14m12s104ms
normal: -23h13m46s817ms
light-idle: -22h59m59s124ms
light-maint: -22h54m57s475ms
light-idle: -22h54m51s988ms
light-maint: -22h44m10s672ms
light-idle: -22h44m4s725ms
light-maint: -22h29m3s591ms
light-idle: -22h28m58s99ms
light-maint: -22h13m58s27ms
light-idle: -22h13m52s497ms
normal: -22h4m31s873ms
light-idle: -20h35m20s636ms
normal: -20h31m50s848ms
light-idle: -20h10m6s32ms
light-maint: -20h3m16s78ms
light-idle: -20h3m10s608ms
light-maint: -19h52m51s718ms
light-idle: -19h52m46s98ms
light-maint: -19h34m53s789ms
light-idle: -19h34m48s188ms
light-maint: -19h19m40s37ms
light-idle: -19h19m34s590ms
deep-idle: -19h13m39s564ms
deep-maint: -18h27m25s447ms
deep-idle: -18h26m50s833ms
normal: -17h39m3s87ms
light-idle: -16h50m39s643ms
light-maint: -16h44m21s454ms
light-idle: -16h44m15s732ms
light-maint: -16h34m2s417ms
light-idle: -16h33m56s637ms
normal: -16h26m24s52ms
light-idle: -13h52m38s576ms
light-maint: -13h45m38s224ms
light-idle: -13h45m32s677ms
normal: -13h42m18s82ms
light-idle: -12h36m40s50ms
normal: -12h35m5s973ms
light-idle: -12h1m39s590ms
light-maint: -11h56m15s271ms
light-idle: -11h56m9s580ms
normal: -11h54m37s857ms
light-idle: -11h47m51s364ms
normal: -11h44m29s793ms
light-idle: -11h6m52s909ms
light-maint: -11h1m6s68ms
light-idle: -11h1m0s416ms
light-maint: -10h47m51s110ms
light-idle: -10h47m45s488ms
normal: -10h41m48s89ms
light-idle: -5h22m29s360ms
light-maint: -5h17m28s491ms
light-idle: -5h17m22s894ms
deep-idle: -5h17m16s566ms
deep-maint: -4h51m30s763ms
deep-idle: -4h50m58s26ms
deep-maint: -4h4m30s350ms
deep-idle: -4h3m59s239ms
deep-maint: -2h9m47s544ms
deep-idle: -2h9m15s162ms
normal: -30m0s578ms
Whitelist (except idle) system apps:
com.samsung.android.app.aodservice
com.osp.app.signin
com.android.providers.downloads
com.samsung.android.email.provider
com.sec.android.daemonapp
com.sec.ims
com.android.vending
com.samsung.klmsagent
com.sec.imsservice
com.samsung.android.weather
com.sec.android.fido.uaf.client
com.google.android.gms
com.sec.spp.push
com.samsung.android.authfw
com.sec.android.fido.uaf.asm
com.samsung.android.spay
com.enhance.gameservice
com.sec.enterprise.knox.cloudmdm.smdms
com.sec.android.app.applinker
Whitelist system apps:
com.samsung.android.app.aodservice
com.android.providers.downloads
com.samsung.android.email.provider
com.sec.ims
com.samsung.klmsagent
com.sec.imsservice
com.google.android.gms
com.sec.spp.push
com.sec.enterprise.knox.cloudmdm.smdms
Whitelist user apps:
com.reactle.ringandnotificationvolumesync
com.suyashsrijan.forcedoze
com.samsung.accessory
Whitelist (except idle) all app ids:
1000
1001
1201
10015
10020
10028
10037
10045
10047
10051
10055
10056
10089
10113
10119
10166
10173
10174
10289
10315
10731
10759
Whitelist user app ids:
10315
10731
10759
Whitelist all app ids:
1000
1001
10020
10028
10045
10055
10056
10166
10289
10315
10731
10759
Temp whitelist schedule:
UID=10192: +1s34ms - from:u0a20
Temp whitelist app ids:
10192
mLightEnabled=true mDeepEnabled=true
mSubEnabled=true
mForceIdle=false
mMotionSensor={Sensor name="Significant Motion Detector", vendor="Samsung Electronics", version=2, type=17, maxRange=1.0, resolution=1.0, power=0.069992065, minDelay=-1}
mCurDisplay=Display id 0: DisplayInfo{"Built-in Screen", uniqueId "local:0", app 1440 x 2560, real 1440 x 2560, largest app 2560 x 2478, smallest app 1440 x 1358, mode 1, defaultMode 1, modes [{id=1, width=1440, height=2560, fps=60.000004}, {id=2, width=1080, height=1920, fps=60.000004}, {id=3, width=720, height=1280, fps=60.000004}], colorTransformId 1, defaultColorTransformId 1, supportedColorTransforms [{id=1, colorTransform=0}], hdrCapabilities android.view.Display$HdrCapabilities@da818c3, rotation 0, density 548 (537.882 x 532.983) dpi, layerStack 0, appVsyncOff 0, presDeadline 17666666, type BUILT_IN, state ON, FLAG_SECURE, FLAG_SUPPORTS_PROTECTED_BUFFERS}, DisplayMetrics{density=3.425, width=1440, height=2560, scaledDensity=3.425, xdpi=537.882, ydpi=532.983}, isValid=true
mScreenOn=true
mNetworkConnected=true
mCharging=true
mMotionActive=false
mNotMoving=true
mLocating=false mHasGps=true mHasNetwork=false mLocated=false
mState=ACTIVE mLightState=ACTIVE
mInactiveTimeout=+10m0s0ms