/system/keymaster/soft_keymaster_device.cpp
1:
- SoftKeymasterDevice::SoftKeymasterDevice()
- : wrapped_km0_device_(nullptr), wrapped_km1_device_(nullptr),
- context_(newSoftKeymasterContext),
- impl_(newAndroidKeymaster(context_, kOperationTableSize)){
- static_assert(std::is_standard_layout<SoftKeymasterDevice>::value,
- "SoftKeymasterDevice must be standard layout");
- static_assert(offsetof(SoftKeymasterDevice, device_)==0,
- "device_ must be the first member of SoftKeymasterDevice");
- static_assert(offsetof(SoftKeymasterDevice, device_.common)==0,
- "common must be the first member of keymaster_device");
- LOG_I("Creating device",0);
- LOG_D("Device address: %p",this);
- initialize_device_struct();
- }
修改为
- initialize_device_struct();修改为---->