我指的是“Android crypto implementation”文件。 w.r.t Android 4.3源码。
在第2点,它说The framework starts up, and sees that vold.decrypt is set to "1"
但是我无法找到执行第2点中提到的事情的代码。有人能够找到它吗?它是否与BackupRestoreConfirmation类相关?
答案 0 :(得分:0)
只需一个简单的git grep就可以得到对这个属性的所有引用:
cmds/bootanimation/BootAnimation.cpp:276: property_get("vold.decrypt", decrypt, "");
services/java/com/android/server/DevicePolicyManagerService.java:1869: String state = SystemProperties.get("vold.decrypt");
services/java/com/android/server/SystemServer.java:239: String cryptState = SystemProperties.get("vold.decrypt");
services/java/com/android/server/usb/UsbDeviceManager.java:173: boolean dataEncrypted = "1".equals(SystemProperties.get("vold.decrypt"));
我认为您需要的是DevicePolicyManagerService.java或SystemServer.java