Skip to content

Instantly share code, notes, and snippets.

View mauronofrio's full-sized avatar

mauronofrio matarrese mauronofrio

View GitHub Profile
@mauronofrio
mauronofrio / twrp_fajita.patch
Last active October 1, 2021 15:04
Patch to make decryption works on OnePlus fajita
# To Compile Fajita TWRP and make decryption working
--- hardware/interfaces/keymaster/4.0/support/Keymaster.cpp
+++ hardware/interfaces/keymaster/4.0/support/Keymaster.cpp
@@ -111,11 +111,10 @@
CHECK(serviceManager) << "Could not retrieve ServiceManager";
auto km4s = enumerateDevices<Keymaster4>(serviceManager);
- auto km3s = enumerateDevices<Keymaster3>(serviceManager);
01-01 22:12:51.988 598 3468 I QCamera : <HAL><INFO> int qcamera::QCamera2Factory::cameraDeviceOpen(int, hw_device_t**): 395: Open camera id 2 API version 256
01-01 22:12:51.988 598 3468 D NUBIA_ARCSOFT: [NSNUBIAEFFECT::ArcsoftImageEffect::ArcsoftImageEffect()] - E.
01-01 22:12:51.988 598 3468 D NUBIA_ARCSOFT: [NSNUBIAEFFECT::ArcsoftVideoEffect::ArcsoftVideoEffect()] - E.
01-01 22:12:51.992 598 3468 I QCamera : <HAL><INFO> int qcamera::QCamera2HardwareInterface::openCamera(hw_device_t**): 2051: [KPI Perf]: E PROFILE_OPEN_CAMERA camera id 2
01-01 22:12:51.992 3100 3107 E ANDR-PERF-MPCTL: Invalid profile no. 0, total profiles 0 only
01-01 22:12:51.992 598 3468 E QCamera2HWI: <ALTEK_LOG><LOG> int qcamera::QCamera2HardwareInterface::openCamera(): 2088: 0
01-01 22:12:51.992 598 3468 I CameraService: onTorchStatusChangedLocked: Torch status changed for cameraId=5, newStatus=1
01-01 22:12:51.992 598 3468 E CameraService: onTorchStatusChangedLocked: cannot get torch status of camera 5: No such f
mauronofrio@mauronofrio-VirtualBox:~/l13$ make bacon -j12
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=6.0.1
LINEAGE_VERSION=13.0-20180630-UNOFFICIAL-NX551J
TARGET_PRODUCT=lineage_NX551J
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm64
--------- beginning of main
--------- beginning of system
03-25 10:06:06.302 537 537 E QSEECOMD: : Listener: index = 0, hierarchy = 0
03-25 10:06:06.306 537 537 E DrmLibRpmb: rpmb_init succeeded! with ret = 0
03-25 10:06:06.306 537 537 E QSEECOMD: : Listener: index = 1, hierarchy = 0
03-25 10:06:06.308 537 537 E SSD : ssd_init_service succeeded!
03-25 10:06:06.308 537 537 E QSEECOMD: : Listener: index = 2, hierarchy = 0
03-25 10:06:06.339 574 574 E adsprpc : vendor/qcom/proprietary/adsprpc/src/adsprpcd.c:26:adsp daemon starting
03-25 10:06:06.343 601 601 E QSEECOMD: : Listener: index = 0, hierarchy = 1
03-25 10:06:06.345 601 601 E QSEECOMD: : Listener: index = 1, hierarchy = 1
--------- beginning of main
03-25 09:36:39.188 445 445 W auditd : type=2000 audit(0.0:1): initialized
--------- beginning of system
03-25 09:36:41.590 452 452 I vold : Vold 3.0 (the awakening) firing up
03-25 09:36:41.591 452 452 V vold : Detected support for: exfat ext4 ntfs vfat
03-25 09:36:41.748 457 457 I /system/bin/tzdatacheck: tzdata file /data/misc/zoneinfo/current/tzdata does not exist. No action required.
03-25 09:36:41.752 452 456 V vold : /system/bin/sgdisk
03-25 09:36:41.752 452 456 V vold : --android-dump
03-25 09:36:41.752 452 456 V vold : /dev/block/vold/disk:179_64
03-25 09:36:41.774 452 456 V vold : DISK mbr
--------- beginning of main
03-25 09:24:14.168 444 444 W auditd : type=2000 audit(0.0:1): initialized
--------- beginning of system
03-25 09:24:16.605 450 450 I vold : Vold 3.0 (the awakening) firing up
03-25 09:24:16.605 450 450 V vold : Detected support for: exfat ext4 ntfs vfat
03-25 09:24:16.764 454 454 I /system/bin/tzdatacheck: tzdata file /data/misc/zoneinfo/current/tzdata does not exist. No action required.
03-25 09:24:16.768 450 453 V vold : /system/bin/sgdisk
03-25 09:24:16.768 450 453 V vold : --android-dump
03-25 09:24:16.768 450 453 V vold : /dev/block/vold/disk:179_64
03-25 09:24:16.789 450 453 V vold : DISK mbr