Ooh interesting, can you share how to access the android battery optimization activity for reference? Which activity name is that, is it under the settings app? And TIL about Doze-Whitelist
edit:Found it, com.android.settings$HighPowerApplicationsActivity