sailfishos-sony-tama / main

Documentation, releases, and issues
MIT License
38 stars 7 forks source link

keymaster@3.0 crashes #104

Closed rinigus closed 3 years ago

rinigus commented 3 years ago

Logcat:

02-21 16:06:08.889  3609  3609 W ServiceManagement: Waited one second for android.hardware.keymaster@3.0::IKeymasterDevice/default
02-21 16:06:08.890  3609  3609 I ServiceManagement: getService: Trying again for android.hardware.keymaster@3.0::IKeymasterDevice/default...

dmesg

[ 1797.866609] droid-hal-init: starting service 'vendor.keymaster-3-0'...
[ 1797.944959] droid-hal-init: Received control message 'interface_start' for 'android.hardware.keymaster@3.0::IKeymasterDevice/default' from pid: 3053 (/system/bin/hwservicemanager)
[ 1797.945071] droid-hal-init: Could not find 'android.hardware.keymaster@3.0::IKeymasterDevice/default' for ctl.interface_start                                                                                                                          
[ 1797.983511] droid-hal-init: Service 'vendor.keymaster-3-0' (pid 26585) received signal 6
[ 1797.983551] droid-hal-init: Sending signal 9 to service 'vendor.keymaster-3-0' (pid 26585) process group... HYBRIS: killing PID instead of process group.
[ 1797.983615] droid-hal-init: updatable process 'vendor.keymaster-3-0' exited 4 times in 4 minutes
[ 1797.983876] droid-hal-init: Init cannot set 'ro.init.updatable_crashing_process_name' to 'vendor.keymaster-3-0': Read-only property was already set                                                                                                    
[ 1797.984142] droid-hal-init: Init cannot set 'ro.init.updatable_crashing' to '1': Read-only property was already set
rinigus commented 3 years ago
02-21 20:40:21.964  6507  6507 E crash_dump64: unable to connect to activity manager: No such file or directory
02-21 20:40:21.964  3579  3579 E /system/bin/tombstoned: Tombstone written to: /data/tombstones/tombstone_08
02-21 20:40:22.879  3610  3610 W ServiceManagement: Waited one second for android.hardware.keymaster@3.0::IKeymasterDevice/default
02-21 20:40:22.881  3610  3610 I ServiceManagement: getService: Trying again for android.hardware.keymaster@3.0::IKeymasterDevice/default...
02-21 20:40:23.882  3610  3610 W ServiceManagement: Waited one second for android.hardware.keymaster@3.0::IKeymasterDevice/default
02-21 20:40:23.883  3610  3610 I ServiceManagement: getService: Trying again for android.hardware.keymaster@3.0::IKeymasterDevice/default...
02-21 20:40:24.887  3610  3610 W ServiceManagement: Waited one second for android.hardware.keymaster@3.0::IKeymasterDevice/default
02-21 20:40:24.888  3610  3610 I ServiceManagement: getService: Trying again for android.hardware.keymaster@3.0::IKeymasterDevice/default...
02-21 20:40:25.892  3610  3610 W ServiceManagement: Waited one second for android.hardware.keymaster@3.0::IKeymasterDevice/default
02-21 20:40:25.894  3610  3610 I ServiceManagement: getService: Trying again for android.hardware.keymaster@3.0::IKeymasterDevice/default...
02-21 20:40:26.894  3610  3610 W ServiceManagement: Waited one second for android.hardware.keymaster@3.0::IKeymasterDevice/default
02-21 20:40:26.895  3610  3610 I ServiceManagement: getService: Trying again for android.hardware.keymaster@3.0::IKeymasterDevice/default...
02-21 20:40:26.895  6516  6516 D QSEECOMAPI: QSEECom_get_handle sb_length = 0xa000
02-21 20:40:26.895  6516  6516 D QSEECOMAPI: App is already loaded QSEE and app id = 1
02-21 20:40:26.895  6516  6516 E ion     : ioctl c0044901 failed with code -1: Not a typewriter
02-21 20:40:26.899  6516  6516 E KeymasterUtils: TA API Major Version: 3
02-21 20:40:26.900  6516  6516 E KeymasterUtils: TA API Minor Version: 0
02-21 20:40:26.900  6516  6516 E KeymasterUtils: TA Major Version: 3
02-21 20:40:26.900  6516  6516 E KeymasterUtils: TA Minor Version: 132
02-21 20:40:26.904  6516  6516 E KeyMasterHalDevice: configure
02-21 20:40:26.904  6516  6516 E KeyMasterHalDevice: ret: 0
02-21 20:40:26.904  6516  6516 E KeyMasterHalDevice: resp->status: -38
02-21 20:40:26.905  6516  6516 F android.hardware.keymaster@3.0-impl: Configure failed
02-21 20:40:26.905  6516  6516 F libc    : Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 6516 (android.hardwar), pid 6516 (android.hardwar)
02-21 20:40:26.924  6521  6521 I crash_dump64: obtaining output fd from tombstoned, type: kDebuggerdTombstone
02-21 20:40:26.925  3579  3579 I /system/bin/tombstoned: received crash request for pid 6516
02-21 20:40:26.925  6521  6521 I crash_dump64: performing dump of process 6516 (target tid = 6516)
02-21 20:40:26.926  6521  6521 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
02-21 20:40:26.926  6521  6521 F DEBUG   : Build fingerprint: 'Sony/aosp_h8324/apollo:10/QQ3A.200805.001/eng.rinigu.20210220.122943:user/test-keys'
02-21 20:40:26.926  6521  6521 F DEBUG   : Revision: '0'
02-21 20:40:26.926  6521  6521 F DEBUG   : ABI: 'arm64'
02-21 20:40:26.926  6521  6521 F DEBUG   : Timestamp: 2021-02-21 20:40:26+0000
02-21 20:40:26.927  6521  6521 F DEBUG   : pid: 6516, tid: 6516, name: android.hardwar  >>> /vendor/bin/hw/android.hardware.keymaster@3.0-service <<<
02-21 20:40:26.927  6521  6521 F DEBUG   : uid: 9999
02-21 20:40:26.927  6521  6521 F DEBUG   : signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
02-21 20:40:26.927  6521  6521 F DEBUG   : Abort message: 'Configure failed'
02-21 20:40:26.927  6521  6521 F DEBUG   :     x0  0000000000000000  x1  0000000000001974  x2  0000000000000006  x3  0000007ffd939290
02-21 20:40:26.927  6521  6521 F DEBUG   :     x4  2e6761772e000000  x5  2e6761772e000000  x6  2e6761772e000000  x7  000000ffffffffff
02-21 20:40:26.927  6521  6521 F DEBUG   :     x8  00000000000000f0  x9  000000744658a4e0  x10 0000000000000000  x11 0000000000000001
02-21 20:40:26.927  6521  6521 F DEBUG   :     x12 0000007ffd939420  x13 ffffffffffffffff  x14 0000000000000004  x15 ffffffffffffffff
02-21 20:40:26.927  6521  6521 F DEBUG   :     x16 00000074466568c0  x17 0000007446633b60  x18 000000744748e000  x19 00000000000000ac
02-21 20:40:26.927  6521  6521 F DEBUG   :     x20 0000000000001974  x21 00000000000000b2  x22 0000000000001974  x23 00000000ffffffff
02-21 20:40:26.927  6521  6521 F DEBUG   :     x24 0000007446d0b020  x25 0000007445c0d380  x26 0000000000003a3a  x27 0000007445c0d398
02-21 20:40:26.927  6521  6521 F DEBUG   :     x28 0000007445c0d380  x29 0000007ffd939340
02-21 20:40:26.927  6521  6521 F DEBUG   :     sp  0000007ffd939270  lr  00000074465e7dc0  pc  00000074465e7df0
02-21 20:40:26.938  6521  6521 F DEBUG   : 
02-21 20:40:26.938  6521  6521 F DEBUG   : backtrace:
02-21 20:40:26.938  6521  6521 F DEBUG   :       #00 pc 0000000000081df0  /apex/com.android.runtime/lib64/bionic/libc.so (abort+176) (BuildId: ba90d2e88ecdca12ae023767232c2c2a)
02-21 20:40:26.938  6521  6521 F DEBUG   :       #01 pc 0000000000008a6c  /system/lib64/liblog.so (__android_log_assert+324) (BuildId: 8d6c6a7a3405f1ed780869912e95c54b)
02-21 20:40:26.938  6521  6521 F DEBUG   :       #02 pc 000000000000654c  /odm/lib64/hw/android.hardware.keymaster@3.0-impl-qti.so (android::hardware::keymaster::V3_0::implementation::KeymasterDevice::KeymasterDevice()+308) (BuildId: 35cb71b62e5c3092055ebed7d453b706)
02-21 20:40:26.938  6521  6521 F DEBUG   :       #03 pc 0000000000009ed0  /odm/lib64/hw/android.hardware.keymaster@3.0-impl-qti.so (HIDL_FETCH_IKeymasterDevice+24) (BuildId: 35cb71b62e5c3092055ebed7d453b706)
02-21 20:40:26.938  6521  6521 F DEBUG   :       #04 pc 0000000000051330  /system/lib64/vndk-sp-29/libhidlbase.so (_ZZN7android8hardware25PassthroughServiceManager3getERKNS0_11hidl_stringES4_ENKUlPvRKNSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEESE_E_clES5_SE_SE_+96) (BuildId: e1fad2c7771478d74d99e369bf11b5d7)
02-21 20:40:26.938  6521  6521 F DEBUG   :       #05 pc 000000000004d380  /system/lib64/vndk-sp-29/libhidlbase.so (android::hardware::PassthroughServiceManager::openLibs(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::function<bool (void*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&)> const&)+1224) (BuildId: e1fad2c7771478d74d99e369bf11b5d7)
02-21 20:40:26.938  6521  6521 F DEBUG   :       #06 pc 000000000004fab4  /system/lib64/vndk-sp-29/libhidlbase.so (android::hardware::PassthroughServiceManager::get(android::hardware::hidl_string const&, android::hardware::hidl_string const&)+92) (BuildId: e1fad2c7771478d74d99e369bf11b5d7)
02-21 20:40:26.938  6521  6521 F DEBUG   :       #07 pc 000000000004e25c  /system/lib64/vndk-sp-29/libhidlbase.so (android::hardware::details::getRawServiceInternal(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, bool, bool)+1364) (BuildId: e1fad2c7771478d74d99e369bf11b5d7)
02-21 20:40:26.938  6521  6521 F DEBUG   :       #08 pc 000000000001747c  /system/lib64/vndk-29/android.hardware.keymaster@3.0.so (_ZN7android8hardware7details18getServiceInternalINS0_9keymaster4V3_019BpHwKeymasterDeviceENS4_16IKeymasterDeviceEvvEENS_2spIT0_EERKNSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEbb+204) (BuildId: e629ae11176abc2c519c43d6409a2b7a)
02-21 20:40:26.938  6521  6521 F DEBUG   :       #09 pc 0000000000001130  /vendor/bin/hw/android.hardware.keymaster@3.0-service (BuildId: 4ba721b2f54478cbe632127b061c5d34)
02-21 20:40:26.938  6521  6521 F DEBUG   :       #10 pc 00000000000010a8  /vendor/bin/hw/android.hardware.keymaster@3.0-service (main+88) (BuildId: 4ba721b2f54478cbe632127b061c5d34)
02-21 20:40:26.938  6521  6521 F DEBUG   :       #11 pc 000000000007d4dc  /apex/com.android.runtime/lib64/bionic/libc.so (__libc_init+108) (BuildId: ba90d2e88ecdca12ae023767232c2c2a)
rinigus commented 3 years ago

Similar messages for few others:

[   10.023712] droid-hal-init: Could not find 'android.hardware.sensors@1.0::ISensors/default' for ctl.interface_start
[   10.028082] droid-hal-init: Could not find 'android.hardware.radio@1.0::IRadio/slot1' for ctl.interface_start
[   10.038813] droid-hal-init: Could not find 'android.hardware.radio@1.0::IRadio/slot2' for ctl.interface_start
[   11.020478] droid-hal-init: Could not find 'android.hardware.sensors@1.0::ISensors/default' for ctl.interface_start
[   12.003772] droid-hal-init: Could not find 'android.hardware.radio@1.0::IRadio/slot1' for ctl.interface_start
[   12.004321] droid-hal-init: Could not find 'android.hardware.radio@1.0::IRadio/slot2' for ctl.interface_start
[   12.020705] droid-hal-init: Could not find 'android.hardware.sensors@1.0::ISensors/default' for ctl.interface_start
[   13.021559] droid-hal-init: Could not find 'android.hardware.sensors@1.0::ISensors/default' for ctl.interface_start
[   14.003574] droid-hal-init: Could not find 'android.hardware.radio@1.0::IRadio/slot1' for ctl.interface_start
[   14.004707] droid-hal-init: Could not find 'android.hardware.radio@1.0::IRadio/slot2' for ctl.interface_start
[   14.021936] droid-hal-init: Could not find 'android.hardware.sensors@1.0::ISensors/default' for ctl.interface_start
[   15.022675] droid-hal-init: Could not find 'android.hardware.sensors@1.0::ISensors/default' for ctl.interface_start
[   15.814316] droid-hal-init: Could not find 'com.qualcomm.qti.dpm.api@1.0::IdpmQmi/dpmQmiService' for ctl.interface_start
[   15.821418] droid-hal-init: Could not find 'com.qualcomm.qti.dpm.api@1.0::IdpmQmi/dpmQmiService' for ctl.interface_start
[   16.029807] droid-hal-init: Could not find 'android.hardware.radio@1.0::IRadio/slot1' for ctl.interface_start
[   16.030545] droid-hal-init: Could not find 'android.hardware.radio@1.0::IRadio/slot2' for ctl.interface_start
[   16.073349] droid-hal-init: Could not find 'android.hardware.keymaster@3.0::IKeymasterDevice/default' for ctl.interface_start
[   16.073649] droid-hal-init: Could not find 'android.hardware.keymaster@3.0::IKeymasterDevice/default' for ctl.interface_start
[   17.076926] droid-hal-init: Could not find 'android.hardware.keymaster@3.0::IKeymasterDevice/default' for ctl.interface_start
[   18.003374] droid-hal-init: Could not find 'android.hardware.radio@1.0::IRadio/slot1' for ctl.interface_start
[   18.006453] droid-hal-init: Could not find 'android.hardware.radio@1.0::IRadio/slot2' for ctl.interface_start
[   18.077688] droid-hal-init: Could not find 'android.hardware.keymaster@3.0::IKeymasterDevice/default' for ctl.interface_start
[   19.076634] droid-hal-init: Could not find 'android.hardware.keymaster@3.0::IKeymasterDevice/default' for ctl.interface_start
[   20.012713] droid-hal-init: Could not find 'android.hardware.radio.deprecated@1.0::IOemHook/slot1' for ctl.interface_start
[   20.025106] droid-hal-init: Could not find 'android.hardware.radio.deprecated@1.0::IOemHook/slot2' for ctl.interface_start
rinigus commented 3 years ago

submodule in config repo has to be updated. will continue from there

rinigus commented 3 years ago

Resoleved by setting correct OS version and patch level in droid-hal-img-boot-sony-tama-pie/rpm/droid-hal-akari-img-boot.spec (and same for other devices).

https://github.com/sailfishos-sony-tama/droid-hal-img-boot-sony-tama-pie/commit/4712b68c2f7387b5c342d4a3fe492d78a568bf50