Fastboot是Android平台常用的刷机工具,也可用于刷写Trusty镜像到设备。以下是详细步骤:
fastboot flashing unlock
adb reboot bootloader
fastboot flash trusty trusty.img
fastboot getvar all
fastboot reboot
adb logcat -s TrustyService
adb shell dmesg | grep -i trusty
adb shell trusty_logcat
| 日志来源 | 命令 | 说明 |
|---|---|---|
| Trusty应用 | adb logcat -s TrustyService | 普通应用层日志 |
| Trusty内核 | adb shell dmesg | grep -i trusty | 内核驱动相关日志 |
| 安全世界 | adb shell trusty_logcat | 直接获取安全世界日志(需特殊权限) |
trusty.core.enable_jtag=1
fastboot oem fuse development
| 机制 | 描述 | 配置方法 |
|---|---|---|
| 调试认证 | 要求调试器提供有效证书 | trusty.core.debug_cert=path/to/cert |
| 调试超时 | 自动关闭长时间空闲的调试会话 | trusty.core.debug_timeout=300 |
| 内存保护 | 限制调试器访问敏感内存区域 | trusty.core.mem_protect=1 |