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.
如果进程在被杀死之前没有释放,它会自动释放吗?
如果进程被杀死,唤醒锁将被释放。您可以通过以下方法检查
获取唤醒锁,然后运行
adb shell dumpsys power
从ddms杀死进程。再次运行 dumpsys power
您可以看到 mlocks.size 回到 0。