摘要: sm8150平台,在recovery enable adb 需要mount system。 参考recovery程序的prompt_and_wait()函数,添加如下代码到recovery main函数: // For a system image built with the root direc 阅读全文
posted @ 2020-12-05 21:41 bobfly1984 阅读(374) 评论(0) 推荐(0) 编辑
摘要: keywords:init、recovery服务、bootloader、bootloader_message、BCB(bootloader control block) 0:备注 重启进入recovery模式方式 1,misc分区BCB结构 2,PMIC寄存器 3, 组合键 在init里自定义命令, 阅读全文
posted @ 2020-12-05 21:37 bobfly1984 阅读(2336) 评论(0) 推荐(0) 编辑
摘要: 1:恢复出厂设置 *#432279#恢复出厂设置 设置菜单选择恢复出厂设置 双清(进入Recovery手动清除Data+Cache) 2:Recovery进入 VolumeUp + Power进入Recovery VolumeDown + Power进入BootMenu(fastboot模式), 选 阅读全文
posted @ 2020-12-05 17:06 bobfly1984 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 概要 recovery.img=recovery_ramdisk.img+kernel。recovery模式有自己的根文件系统,与normal根文件系统不同。相应的有自己的 init.rc以及fstab文件。 recovery模块功能:恢复出厂设置和升级。 recovery升级方式有两种如下所示,不 阅读全文
posted @ 2020-12-05 17:05 bobfly1984 阅读(1091) 评论(0) 推荐(0) 编辑
摘要: /system/etc/init/atrace.rc /system/bin/atrace mount debugfs atrace --list /sys/kernel/debug/tracing 1:抓取atrace之前需要根据内存大小修改trace buffer size adb shell 阅读全文
posted @ 2020-12-05 16:39 bobfly1984 阅读(1677) 评论(0) 推荐(0) 编辑
摘要: 参考文档 https://www.jianshu.com/p/11ba656aee11 https://blog.csdn.net/xiaohua0877/article/details/78597450 http://gityuan.com/2016/01/17/systrace/ https:/ 阅读全文
posted @ 2020-12-05 16:38 bobfly1984 阅读(365) 评论(0) 推荐(0) 编辑
摘要: system server重启导致vold重启,vold挂载sdcardfs失败,导致app无法访问内置存储。 原因是selinux权限问题:type=1400 audit(0.0:130): avc: denied for path="/mnt/runtime/default/emulated" 阅读全文
posted @ 2020-12-05 16:26 bobfly1984 阅读(703) 评论(0) 推荐(0) 编辑
摘要: -->首次开机流程 01-15 03:26:04.882 587 587 I vold : Vold 3.0 (the awakening) firing up 01-15 03:26:04.884 587 587 V vold : Detected support for: ext4 f2fs v 阅读全文
posted @ 2020-12-05 16:24 bobfly1984 阅读(481) 评论(0) 推荐(0) 编辑
摘要: 设置锁屏密码后开机的日志如下: 07-11 10:33:58.367 966 1338 I ActivityManager: Force stopping com.android.providers.media appid=10019 user=-1: vold reset // vold rese 阅读全文
posted @ 2020-12-05 16:21 bobfly1984 阅读(755) 评论(0) 推荐(0) 编辑
摘要: 总结 根据/data/unencrypted/key和/data/misc/vold/user_keys/de/0/路径是否存在判断首次开机还是非首次开机 system DE存储空间和user DE存储空间使用keymasterkey加解密,密钥元素secret和token为空 不设置锁屏密码,us 阅读全文
posted @ 2020-12-05 16:19 bobfly1984 阅读(2082) 评论(0) 推荐(0) 编辑
摘要: 参考文档 80-pn330-9_a_linux_android_userdata_encryption.pdf 80-nu861-1_j_qualcomm_android_security_features.pdf https://source.android.google.cn/security/ 阅读全文
posted @ 2020-12-05 16:10 bobfly1984 阅读(403) 评论(0) 推荐(0) 编辑
摘要: 方法1:使用hidl-gen ./out/host/linux-x86/bin/hidl-gen -L hash -r vendor.nubia:hardware/interfaces -r android.hardware:hardware/interfaces -r android.hidl:s 阅读全文
posted @ 2020-12-05 11:07 bobfly1984 阅读(1222) 评论(0) 推荐(0) 编辑