You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Doze白名单与deviceidle.xml:咨询该文件的生成主体

About /data/system/deviceidle.xml's Managing Component

Hey there! Let me break this down clearly for you:

The file /data/system/deviceidle.xml is generated and maintained by the DeviceIdleController—a core system service in the Android framework that handles all logic tied to Doze mode and the app whitelist you're interacting with.

Here are some key details to keep in mind:

  • When you run the command adb shell dumpsys deviceidle whitelist +PACKAGE, you’re triggering an IPC call to the DeviceIdleController’s internal APIs. This service updates the whitelist entries and then persists the latest configuration directly to deviceidle.xml.
  • It’s not just adb commands that modify this file: if a user manually adjusts battery optimization settings (like adding an app to the "Don't optimize" list) or an app requests Doze exemption via the PowerManager API, the DeviceIdleController will also update this XML file to reflect those changes.
  • Important note: This is a system-exclusive configuration file. Regular apps don’t have direct write access to it—any changes must go through official system interfaces, otherwise your edits will either be overwritten by the system or won’t take effect at all.

内容的提问来源于stack exchange,提问作者david

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.20 12:18:47