Skip to content

Instantly share code, notes, and snippets.

View ThEMarD's full-sized avatar

Marc Bourgoin ThEMarD

  • Alberta, Canada eh?
View GitHub Profile
@ThEMarD
ThEMarD / ASUS_I001_1-18.0210.2201.215-kernel-src_best_tag.txt
Last active May 22, 2022 15:30
ASUS_I001_1-18.0210.2201.215-kernel-src best tag
themard@ubuntu:/media/themard/SSHD/Downloads/ASUS_I001_1-18.0210.2201.215-kernel-src/msm-4.14$ git init && git add --all && git commit -m "Initial Commit"
themard@ubuntu:/media/themard/SSHD/Downloads/ASUS_I001_1-18.0210.2201.215-kernel-src/msm-4.14$ git remote add caf https://git.codelinaro.org/clo/la/kernel/msm-4.14 && git fetch caf
themard@ubuntu:/media/themard/SSHD/Downloads/ASUS_I001_1-18.0210.2201.215-kernel-src/msm-4.14$ git remote add msm https://source.codeaurora.org/quic/la/kernel/msm-4.14 && git fetch msm
themard@ubuntu:/media/themard/SSHD/Downloads/ASUS_I001_1-18.0210.2201.215-kernel-src/msm-4.14$ ./best-caf-kernel.py "L*" | tee ~/Desktop/best_caf_tag1.txt
number of tags to check: 845
LA.AU.0.0.1-03620-sa8155_gvmq.0 has 1064447 lines changed
LA.AU.0.0.1-03620-sa8155_gvmq.0 is the new best match with 1064447 lines changed
LA.AU.0.0.1-04220-sa8155_gvmq.0 has 897635 lines changed
LA.AU.0.0.1-04220-sa8155_gvmq.0 is the new best match with 897635 lines changed
LA.AU.0.0.1-04920-sa8155_gvmq.0 has 852989
@ThEMarD
ThEMarD / ASUS_I01WD-18.0610.2106.156-kernel-src_best_tag
Last active May 22, 2022 15:26
ASUS_I01WD-18.0610.2106.156-kernel-src best kernel tag
themard@ubuntu:/media/themard/SSHD/Downloads/ASUS_I01WD-18.0610.2106.156-kernel-src/kernel/msm-4.14$ git init && git add --all && git commit -m "Initial Commit"
themard@ubuntu:/media/themard/SSHD/Downloads/ASUS_I01WD-18.0610.2106.156-kernel-src/kernel/msm-4.14$ git remote add caf https://git.codelinaro.org/clo/la/kernel/msm-4.14 && git fetch caf
themard@ubuntu:/media/themard/SSHD/Downloads/ASUS_I01WD-18.0610.2106.156-kernel-src/kernel/msm-4.14$ git remote add msm https://source.codeaurora.org/quic/la/kernel/msm-4.14 && git fetch msm
themard@ubuntu:/media/themard/SSHD/Downloads/ASUS_I01WD-18.0610.2106.156-kernel-src/kernel/msm-4.14$ ./best-caf-kernel.py "L*"| tee ~/Desktop/best_caf_tag2.txt
number of tags to check: 845
LA.AU.0.0.1-03620-sa8155_gvmq.0 has 1075249 lines changed
LA.AU.0.0.1-03620-sa8155_gvmq.0 is the new best match with 1075249 lines changed
LA.AU.0.0.1-04220-sa8155_gvmq.0 has 907479 lines changed
LA.AU.0.0.1-04220-sa8155_gvmq.0 is the new best match with 907479 lines changed
LA.AU.0.0.1-04920-sa
@ThEMarD
ThEMarD / gist:c207ea963bf70099be0adf9a74d0d3b9
Created November 24, 2021 20:38
LA.UM.7.9.r1-06100-sm6150.0 build error on LOS 18.1
../../../../../../kernel/lenovo/sm6150/arch/arm64/kernel/vdso/note.S:26:1: warning: DWARF2 only supports one section per compilation unit
.pushsection .note.Linux, "a",@note ; .balign 4 ; .long 2f - 1f ; .long 4484f - 3f ; .long 0 ; 1:.asciz "Linux" ; 2:.balign 4 ; 3:
^
VDSOL arch/arm64/kernel/vdso/vdso.so.dbg
clang-11: error: unable to execute command: Executable "ld" doesn't exist!
clang-11: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [/media/themard/SSHD/android/lineage-18.1/kernel/lenovo/sm6150/arch/arm64/kernel/vdso/Makefile:50: arch/arm64/kernel/vdso/vdso.so.dbg] Error 1
make[1]: *** [arch/arm64/Makefile:241: vdso_prepare] Error 2
make[1]: Leaving directory '/media/themard/SSHD/android/lineage-18.1/out/target/product/jd20/obj/KERNEL_OBJ'
make: *** [Makefile:146: sub-make] Error 2
@ThEMarD
ThEMarD / bestcaftag_l78121.txt
Created November 2, 2021 19:18
Best CAF Tag Lenovo Z6 (L78121)
./best-caf-kernel.py "*sm6150.0" | tee ~/Desktop/bestcaftag_l78121.txt
number of tags to check: 21
LA.UM.7.9.r1-06100-sm6150.0 has 199583 lines changed
LA.UM.7.9.r1-06100-sm6150.0 is the new best match with 199583 lines changed
LA.UM.7.9.r1-06500-sm6150.0 has 202783 lines changed
LA.UM.7.9.r1-07300-sm6150.0 has 313916 lines changed
LA.UM.7.9.r1-07500-sm6150.0 has 314731 lines changed
LA.UM.7.9.r1-07600-sm6150.0 has 314744 lines changed
LA.UM.7.9.r1-07800-sm6150.0 has 317465 lines changed
LA.UM.7.9.r1-08000-sm6150.0 has 317591 lines changed
@ThEMarD
ThEMarD / proprietary-files.txt
Created September 2, 2021 23:35
Proprietary Files for TWRP on zippo's ZUI 12.5.363
# system/bin
vendor/bin/hw/android.hardware.gatekeeper@1.0-service-qti:system/bin/android.hardware.gatekeeper@1.0-service-qti
vendor/bin/hw/android.hardware.keymaster@4.0-service-qti:system/bin/android.hardware.keymaster@4.0-service-qti
vendor/bin/qseecomd:system/bin/qseecomd
vendor/bin/hw/vendor.qti.hardware.vibrator.service:system/bin/vendor.qti.hardware.vibrator.service
# system/etc/init
#system/etc/init/ashmemd.rc
# system/etc/vintif
@ThEMarD
ThEMarD / flash-all.sh
Created January 13, 2021 09:08
flash all script for payton pie
#!/bin/sh
# Copyright 2012 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@ThEMarD
ThEMarD / results
Created December 3, 2020 08:36
Z01R Kernel Source Q 110 best CAF tag
./best-caf-kernel.py "LA.UM.8.3*"
number of tags to check: 12
LA.UM.8.3.r1-05800-sdm845.0 has 587827 lines changed
LA.UM.8.3.r1-05800-sdm845.0 is the new best match with 587827 lines changed
LA.UM.8.3.r1-06100-sdm845.0 has 586714 lines changed
LA.UM.8.3.r1-06100-sdm845.0 is the new best match with 586714 lines changed
LA.UM.8.3.r1-06300-sdm845.0 has 585850 lines changed
LA.UM.8.3.r1-06300-sdm845.0 is the new best match with 585850 lines changed
LA.UM.8.3.r1-06600-sdm845.0 has 600610 lines changed
LA.UM.8.3.r1-06900-sdm845.0 has 603662 lines changed
@ThEMarD
ThEMarD / log.txt
Created November 26, 2020 19:20
Payton nfc logcat for firmware
11-26 12:15:43.282 929 929 W NxpFwDnld: firmware type not found. Taking default value: 1
11-26 12:15:43.283 929 929 D NxpFwDnld: @@@/vendor/lib/libpn553_fw.so
11-26 12:15:43.283 929 929 E NxpFwDnld: NULL handler : unable to load the library file, specify correct path
11-26 12:15:43.283 929 929 D NxpFwDnld: FW Image Length - ImageInfoLen 0
11-26 12:15:43.283 929 929 D NxpFwDnld: FW Image Info Pointer - pImageInfo 0x0
11-26 12:15:43.283 929 929 E NxpFwDnld: Image extraction Failed - invalid imginfo or imginfolen!!
11-26 12:15:43.283 929 929 E NxpFwDnld: Error loading libpn54x_fw !!
11-26 12:15:43.283 929 929 D NxpHal : FW version for FW file = 0x0
11-26 12:15:43.283 929 929 D NxpHal : FW version from device = 0x110114
11-26 12:15:43.283 929 929 E NxpHal : Wrong FW Version >>> Firmware download not allowed
@ThEMarD
ThEMarD / Payton persist ls -l.txt
Created November 13, 2020 06:13
Payton persist ls -l
payton:/ # ls -l /mnt/vendor/persist/
total 276
drwxrwx--- 2 system system 4096 1969-12-31 17:01 alarm
drwxr-xr-x 2 vendor_mot_pwric vendor_mot_pwric 4096 2020-11-08 19:39 batt_health
drwxrwx--- 2 bluetooth bluetooth 4096 2020-11-08 19:39 bluetooth
drwx------ 2 root system 4096 1969-12-31 17:01 bms
drwxr-xr-x 2 vendor_mot_tcmd bluetooth 4096 1969-12-31 17:01 bt
drwxrwx--- 3 root root 4096 2020-11-08 19:39 cache
drwxr-xr-x 7 vendor_mot_tcmd vendor_mot_tcmd 4096 2020-11-08 19:39 camera
-rwxrwx--- 1 root root 12 1969-12-31 17:00 captouch_basedata.bin
payton:/ # ls -l /mnt/vendor/persist
total 260
drwxrwx--- 2 system system 4096 1969-12-31 17:01 alarm
drwxr-xr-x 2 vendor_mot_pwric vendor_mot_pwric 4096 2018-11-06 17:53 batt_health
drwxrwx--- 2 bluetooth bluetooth 4096 1969-12-31 17:01 bluetooth
drwx------ 2 root system 4096 1969-12-31 17:01 bms
drwxr-xr-x 2 vendor_mot_tcmd bluetooth 4096 1969-12-31 17:01 bt
drwxrwx--- 3 root root 4096 2019-11-02 10:25 cache
drwxr-xr-x 7 vendor_mot_tcmd vendor_mot_tcmd 4096 1969-12-31 19:09 camera
-rw-r--r-- 1 9004 9004 12 1969-12-31 17:00 captouch_basedata.bin