← 输入框|github.com|刷新
Skip to content

[Bug] TWRP XZ3 decryption broken (keymaster 4.0) #35

Open

Description

@MartinX3

Platform: TAMA
Device: AKATSUKI
Kernel version: 4.9
Android version: 10.0 UK firmware

Description
TWRP XZ3 decryption broken (keymaster 4.0)

Symptoms
android.hardware.keymaster@4.0-impl: Platform patchlevel string does not match expected format. Using patchlevel 0

How to reproduce
Use TWRP

Additional context
Stock 52.1.A.2.1 getprop

twrp_logcat_-b_all.txt
twrp_getprop.txt
stock_52.1.A.2.1_getprop.txt

I set

[ro.build.version.release]: [10]
[ro.vendor.build.version.release]: [10]
[ro.build.version.security_patch]: [2020-05-01]
[ro.vendor.build.security_patch]: [2020-05-01]

Same result with [ro.vendor.build.security_patch]: [] and/or
[ro.vendor.build.version.release]: []

Activity

  1. added
    bug
    on Jun 13, 2020
  2. self-assigned this
    on Jun 13, 2020
  3. MartinX3 commented on Jun 14, 2020

    @MartinX3
    MemberAuthor

    A user with XZ3 and indian 52.1.A.2.1 firmware has a working decryption.
    A user with XZ3 and uk 52.1.A.2.1 firmware has no working decryption.

    A user using SODP has no working decryption?

  4. MartinX3 commented on Jun 20, 2020

    @MartinX3
    MemberAuthor

    Probably fixed by switching to the real TWRP 10.0.

  5. MartinX3 commented on Dec 13, 2020

    @MartinX3
    MemberAuthor

    Notes:

    replace the decryption files in twrp by the ones from A10 OEMv8 instead of A10 OEMv6.
    Test the XZ3 twrp for decryption.
    @Maxlitcher
    @churchner420
    
  6. MartinX3 commented on Dec 13, 2020

    @MartinX3
    MemberAuthor

    Notes:

    TWRP stock
    Decryption failed newest firmware ONLY IN FASTBOOT BOOT IF FASTBOOT STARTED VIA HARDWARE BUTTONS INSTEAD OF SOFTWARE, so try to put the very high patch level in fastboot boot, too.
    PKCS#7 signature not signed with a trusted key
    /sbin/hwservicemanager: Cannot open /system/manifest.xml
    03-17 17:34:39.753   584   584 D vndksupport: Loading /vendor/lib64/hw/android.hardware.keymaster@3.0-impl-qti.so from current namespace instead of sphal namespace.
    03-17 17:34:39.755   583   583 D QSEECOMAPI: QSEECom_get_handle sb_length = 0xa000
    03-17 17:34:39.755   584   584 D QSEECOMAPI: QSEECom_get_handle sb_length = 0xa000
    03-17 17:34:39.756   583   583 D QSEECOMAPI: App is already loaded QSEE and app id = 1
    03-17 17:34:39.756   584   584 D QSEECOMAPI: App is already loaded QSEE and app id = 1
    03-17 17:34:39.756   583   583 E ion     : ioctl c0044901 failed with code -1: Invalid argument
    03-17 17:34:39.756   584   584 E ion     : ioctl c0044901 failed with code -1: Invalid argument
    03-17 17:34:39.761   583   583 E KeymasterUtils: TA API Major Version: 3
    03-17 17:34:39.761   583   583 E KeymasterUtils: TA API Minor Version: 0
    03-17 17:34:39.761   583   583 E KeymasterUtils: TA Major Version: 3
    03-17 17:34:39.761   583   583 E KeymasterUtils: TA Minor Version: 132
    03-17 17:34:39.765   584   584 I ServiceManagement: Removing namespace from process name android.hardware.keymaster@3.0-service to keymaster@3.0-service.
    03-17 17:34:39.950   553   553 I /sbin/recovery: List of Keymaster HALs found:
    03-17 17:34:39.950   553   553 I /sbin/recovery: Keymaster HAL #1: Keymaster HAL: 3 from QTI SecurityLevel: TRUSTED_ENVIRONMENT HAL: android.hardware.keymaster@3.0::IKeymasterDevice/default
    03-17 17:34:39.954   584   584 E KeyMasterHalDevice: Begin send cmd failed
    03-17 17:34:39.954   584   584 E KeyMasterHalDevice: ret: 0
    03-17 17:34:39.954   584   584 E KeyMasterHalDevice: resp->status: -62
    03-17 17:34:39.964   584   584 E KeyMasterHalDevice: Upgrade key send cmd failed
    03-17 17:34:39.964   584   584 E KeyMasterHalDevice: ret: 0
    03-17 17:34:39.964   584   584 E KeyMasterHalDevice: resp->status: -38
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions