Platform: RK3368
OS: Android 6.0
Kernel: 3.10.0
在做OTA增量更新时遇到更新失败,recovery中显示"Package expects build fingerprint of xxx"的错误信息.后来查看日志发现是之前的完整包更新时recovery分区没有升级成功,导致后来的版本增量更新时recovery的sha1与增量升级包中的不一致.
在recovery模式中升级完OTA更新包后,系统重启logcat中发现有升级recover分区失败的信息:
recovery: Installing new recovery image: failed
同时有selinux的权限警告日志:
01-21 14:24:40.330 216 216 W applypatch: type=1400 audit(0.0:8): avc: denied { read } for name="rknand_recovery" dev="tmpfs" ino=5621 scontext=u:r:install_recovery:s0 tcontext=u:object_r:block_device:s0 tclass=blk_file permissive=0
01-21 14:24:41.360 218 218 W applypatch: type=1400 audit(0.0:9): avc: denied { read } for name="rknand_recovery" dev="tmpfs" ino=5621 scontext=u:r:install_recovery:s0 tcontext=u:object_r:block_device:s0 tclass=blk_file permissive=0
01-21 14:24:41