Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MartinX3 opened this issue Jun 13, 2020 · 4 comments
Open

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

MartinX3 opened this issue Jun 13, 2020 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@MartinX3
Copy link
Member

MartinX3 commented Jun 13, 2020

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

Description
TWRP XZ3 decryption broken (keymaster 4.0)

Symptoms
[email protected]: 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]: []

@MartinX3 MartinX3 added the bug Something isn't working label Jun 13, 2020
@MartinX3 MartinX3 self-assigned this Jun 13, 2020
@MartinX3
Copy link
Member Author

MartinX3 commented Jun 14, 2020

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?

@MartinX3 MartinX3 reopened this Jun 20, 2020
@MartinX3
Copy link
Member Author

Probably fixed by switching to the real TWRP 10.0.

@MartinX3
Copy link
Member Author

MartinX3 commented Dec 13, 2020

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

@MartinX3
Copy link
Member Author

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/[email protected] 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 [email protected] to [email protected].
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: [email protected]::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
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant