Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
众所周知,Linux内核支持standby、suspend-to-ram、suspend-to-disk。但是,我发现 Android 不支持suspend-to-disk或hibernate,尽管它的内核是从 Linux 派生的。 现在,我想在 Android 上启用它,但不知道如何。我将基于Andorid 4.1和Linux 3.0.8完成我的工作。 您想提供任何有用的信息吗?以前有人做过吗?谢谢。
Android 在 try_to_freeze_tasks 时检查是否有人持有唤醒锁。当你想要休眠时,你可以忽略它。