【K19】指紋開機工模讀取不到屬性值

Q:工模在開機後執行adb shell getprop persist.vendor.sys.fp.vendor,返回爲空。

A:工模中依據persist.vendor.sys.fp.vendor屬性來確認IC是哪家的。由於goodix會在開機openHal裏判斷這個屬性值,如果爲FPC家則起空服務。原則上是爲了VTS測試,但是引進了問題,該屬性重啓不置空,從而導致產線插過FPC家指紋的主板再插goodix家會出現異常。再HAL層置空即可。

該問題出現在userdebug版本,指紋可正常使用,但是工模讀取不到該屬性。抓取開機log,出現如下報錯:

12-03 20:48:53.494 29170 29170 W libc : Unable to set property "persist.vendor.sys.fp.vendor" to "": connection failed; errno=13 (Permission denied)

12-03 20:48:53.495 29170 29170 D [email protected]: Opening fingerprint hal library K19 ...

12-03 20:48:53.492 29170 29170 W android.hardwar: type=1400 audit(0.0:7781): avc: denied { write } for name="property_service" dev="tmpfs" ino=18747 scontext=u:r:hal_fingerprint_default:s0 tcontext=u:object_r:property_socket:s0 tclass=sock_file permissive=0

因此該問題爲SELinux權限問題添加權限即可。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章