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 / thermal-engine-hiphi-game-perf.conf
Created August 18, 2026 19:57
hiphi game perf thermal engine config from RETAIL A14 stock ROM
[FRONT_TEMP]
algo_type virtual
trip_sensor msm-therm
thresholds -18000
thresholds_clr -20000
sensors chg-therm conn-therm
weights 55 45
offsets 0 0
sampling 5000
math 0
@ThEMarD
ThEMarD / Z01R_partitions.txt
Created August 10, 2026 15:53
Z01R partitions (Asus Zenfone 5z)
ASUS_Z01R_1:/ # cat /proc/partitions
major minor #blocks name
1 0 8192 ram0
1 1 8192 ram1
1 2 8192 ram2
1 3 8192 ram3
1 4 8192 ram4
1 5 8192 ram5
1 6 8192 ram6
@ThEMarD
ThEMarD / build.log
Created August 4, 2026 02:00
lenovo sm8150 kernel for LineageOS 24.0 build error
stderr:
/home/themard/android/lineage-24.0/kernel/lenovo/sm8150/net/Makefile:24: CC cannot link executables. Skipping bpfilter.
../../../../../../kernel/lenovo/sm8150/techpack/audio/asoc/codecs/wcd_cpe_services.c:998:31: error: implicit conversion from enumeration type 'enum cpe_svc_result' to different enumeration type 'enum cpe_process_result' [-Werror,-Wimplicit-enum-enum-cast]
998 | enum cpe_process_result rc = CPE_SVC_FAILED;
| ~~ ^~~~~~~~~~~~~~
../../../../../../kernel/lenovo/sm8150/techpack/audio/asoc/codecs/wcd_cpe_services.c:2003:10: error: implicit conversion from enumeration type 'enum cpe_svc_result' to different enumeration type 'enum cmi_api_result' [-Werror,-Wimplicit-enum-enum-cast]
2003 | return CPE_SVC_NO_MEMORY;
| ~~~~~~ ^~~~~~~~~~~~~~~~~
../../../../../../kernel/lenovo/sm8150/techpack/audio/asoc/codecs/wcd_cpe_services.c:2018:10: error: implicit conversion from enumeration type 'enum cpe_svc_result' to
@ThEMarD
ThEMarD / Z01R_build.log
Created May 3, 2026 02:27
Z01R 4.9 kernel bpf commits error
cherry-picked from:
https://github.com/kaderbava/android_kernel_realme_sdm710/tree/16-bpf
../../../../../../kernel/asus/sdm845/kernel/bpf/core.c:1692:75: error: use of undeclared identifier 'tmp'
1692 | ptr = bpf_load_pointer((struct sk_buff *) (unsigned long) CTX, off, 4, &tmp);
| ^
../../../../../../kernel/asus/sdm845/kernel/bpf/core.c:1702:75: error: use of undeclared identifier 'tmp'
1702 | ptr = bpf_load_pointer((struct sk_buff *) (unsigned long) CTX, off, 2, &tmp);
| ^
../../../../../../kernel/asus/sdm845/kernel/bpf/core.c:1712:75: error: use of undeclared identifier 'tmp'
@ThEMarD
ThEMarD / frp_oemunlock.txt
Created January 23, 2026 23:28
FRP Oemunlock Motorola
#note Hardware way to full repair flashing_locked couldn't boot
Note:
Blankflash does not work with flashing_locked. Blankflash is just a moto official tool used to restore EDL mode to fastboot mode. Since the built-in firehose programmer of blankflash has very low permissions, you cannot use it to read and write any partition except the Bootloader partition. Motorola is not Xiaomi.
Prerequisites:
You must have phone disassembly skills.
You must have BGA level soldering skills.
@ThEMarD
ThEMarD / libQnnSaver_error_build.log
Created January 21, 2026 22:41
lineage-23.2 libQnnSaver build error for dubai, tundra, xpeng
FAILED: out/soong/build.lineage_dubai.ninja
cd "$(dirname "out/host/linux-x86/bin/soong_build")" && BUILDER="$PWD/$(basename "out/host/linux-x86/bin/soong_build")" && cd / && env -i "$BUILDER" --top "$TOP" --soong_out "out/soong" --out "out" --soong_variables out/soong/soong.lineage_dubai.variables -o out/soong/build.lineage_dubai.ninja --kati_suffix -lineage_dubai --kati_enabled -l out/.module_paths/Android.bp.list --available_env out/soong/soong.environment.available --used_env out/soong/soong.environment.used.lineage_dubai.build Android.bp
internal error: panic in VisitDirectDeps(module "libQnnSaver" variant "android_vendor_arm64_armv8-2a-dotprod", android/soong/android.(*bottomUpMutatorContext).visitDirectDepsWithTag.(*baseModuleContext).visitDirectDepsWithTag.func1) for dependency <nil> in bottom up mutator "prebuilt_select" for module "libQnnSaver" variant "android_vendor_arm64_armv8-2a-dotprod"
interface conversion: android.Module is *etc.PrebuiltEtc, not *cc.Module
goroutine 163076 [r
@ThEMarD
ThEMarD / rtwo_build.log
Created January 15, 2026 21:03
lineage-23.2 rtwo build error
FAILED: out/soong/build.lineage_rtwo.ninja
cd "$(dirname "out/host/linux-x86/bin/soong_build")" && BUILDER="$PWD/$(basename "out/host/linux-x86/bin/soong_build")" && cd / && env -i "$BUILDER" --top "$TOP" --soong_out "out/soong" --out "out" --soong_variables out/soong/soong.lineage_rtwo.variables -o out/soong/build.lineage_rtwo.ninja --kati_suffix -lineage_rtwo --kati_enabled -l out/.module_paths/Android.bp.list --available_env out/soong/soong.environment.available --used_env out/soong/soong.environment.used.lineage_rtwo.build Android.bp
internal error: Device makefile includes redundant artifact path requirement allowed list entries in build/make/target/product/generic_ramdisk.mk.
If the modules are defined in Android.mk, They might be missing from the verification. Define the modules in Android.bp instead.
Otherwise, remove the redundant allowed entries.
Offending entries:
system/%/libfuse-lite.so
system/%/libntfs-3g.so
system/%/libzstd.so
@ThEMarD
ThEMarD / Subtree_kernel_sm8550_devicetrees.txt
Last active December 15, 2025 14:32
Subtree kernel moto sm8550 devicetrees
git remote add moto-kernel-devicetree git@github.com:MotorolaMobilityLLC/kernel-devicetree.git
git fetch moto-kernel-devicetree MMI-V1TR35H.60-33
git merge FETCH_HEAD --log=999999
git remote add moto-kernel-audio-devicetree git@github.com:MotorolaMobilityLLC/kernel-audio-devicetree.git
git fetch moto-kernel-audio-devicetree MMI-V1TR35H.60-33
@ThEMarD
ThEMarD / Subtree_kernel_sm8550-modules.txt
Last active December 15, 2025 14:31
Subtree kernel Motorola sm8550-modules
git remote add moto-kernel-camera git@github.com:MotorolaMobilityLLC/vendor-qcom-opensource-camera-kernel.git
git fetch moto-kernel-camera MMI-V1TR35H.60-33
git merge -X subtree=qcom/opensource/camera-kernel FETCH_HEAD --log=999999
git remote add moto-kernel-audio git@github.com:MotorolaMobilityLLC/vendor-qcom-opensource-audio-kernel.git
@ThEMarD
ThEMarD / picks.log
Created December 3, 2025 02:05
los 23.1 luk rootdir with nolen picks errors
usage: ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-B bind_interface] [-b bind_address]
[-c cipher_spec] [-D [bind_address:]port] [-E log_file]
[-e escape_char] [-F configfile] [-I pkcs11] [-i identity_file]
[-J destination] [-L address] [-l login_name] [-m mac_spec]
[-O ctl_cmd] [-o option] [-P tag] [-p port] [-R address]
[-S ctl_path] [-W host:port] [-w local_tun[:remote_tun]]
destination [command [argument ...]]
ssh [-Q query_option]
Traceback (most recent call last):
File "/home/themard/android/lineage-23/vendor/lineage/build/tools/repopick.py", line 757, in <module>