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 / zippo_a11_vbmeta.txt
Last active January 13, 2025 08:57
Zippo A11 vbmeta
./external/avb/avbtool.py info_image --image /media/themard/SSHD/blobs/zippo_r_dump/vbmeta.img
Minimum libavb version: 1.0
Header Block: 256 bytes
Authentication Block: 576 bytes
Auxiliary Block: 3264 bytes
Public key (sha1): 2597c218aae470a130f61162feaae70afd97f011
Algorithm: SHA256_RSA4096
Rollback Index: 0
Flags: 0
@ThEMarD
ThEMarD / vbmeta.img.txt
Last active November 26, 2024 07:05
rtwo avb info
./avbtool.py info_image --image /media/themard/SSHD/blobs/RTWO_RETAIL_14_U1TRS34.8-30-13-2-2-3_subsidy-DEFAULT_regulatory-DEFAULT_cid50_CFC.xml/vbmeta.img
Minimum libavb version: 1.0
Header Block: 256 bytes
Authentication Block: 320 bytes
Auxiliary Block: 5632 bytes
Public key (sha1): fd29248b78aa9d6427e8f569eda90be62b9fa0ee
Algorithm: SHA256_RSA2048
Rollback Index: 17
Flags: 0
Rollback Index Location: 0
@ThEMarD
ThEMarD / build.log
Created October 16, 2024 02:20
error lineage-21 sm8550
FAILED: out/target/product/rtwo/obj/SHARED_LIBRARIES/audio.primary.kalama_intermediates/audio_extn/AudioExtn.o
/bin/bash -c "PWD=/proc/self/cwd /usr/bin/ccache prebuilts/clang/host/linux-x86/clang-r510928/bin/clang++ -I hardware/qcom-caf/sm8550/audio/primary-hal/hal/inc -I system/media/audio_utils/include -I external/expat/lib -I system/media/audio_effects/include -I hardware/qcom-caf/sm8550/audio/primary-hal/hal -I out/target/product/rtwo/obj/SHARED_LIBRARIES/audio.primary.kalama_intermediates -I out/target/product/rtwo/gen/SHARED_LIBRARIES/audio.primary.kalama_intermediates -Isystem/libbase/include -Iexternal/fmtlib/include -Isystem/logging/liblog/include_vndk -Isystem/core/libcutils/include_outside_system -Isystem/core/libprocessgroup/include -Isystem/core/libcutils/include -Isystem/media/audio_utils/include -Isystem/media/audio/include -Isystem/core/libcutils/include_outside_system -Isystem/core/libutils/include -Isystem/libbase/include -Iexternal/fmtlib/include -Isystem/logging/liblog/include_vndk -Isys
@ThEMarD
ThEMarD / fail.txt
Created October 12, 2024 18:08
Kernel build fail on rebased los qcom sm8350 for motorola dubai A14 kernel sauce
https://github.com/ThEMarD/android_kernel_qcom_sm8350/tree/test2/lineage-21
ld.lld: error: undefined symbol: led_trigger_register
>>> referenced by core.c:206 (../../../../../../kernel/motorola/sm7325/net/rfkill/core.c:206)
>>> vmlinux.o:(rfkill_init)
>>> referenced by core.c:211 (../../../../../../kernel/motorola/sm7325/net/rfkill/core.c:211)
>>> vmlinux.o:(rfkill_init)
>>> referenced by core.c:162 (../../../../../../kernel/motorola/sm7325/net/rfkill/core.c:162)
>>> vmlinux.o:(rfkill_register)
@ThEMarD
ThEMarD / apktool d framework-res.apk
Created July 2, 2024 05:40
apktool if and d woes on rtwo A14 RETAIL
I: Using Apktool 2.9.3 on framework-res.apk
I: Loading resource table...
I: Sparsely packed resources detected.
W: Config flags size > 64. Size = 76. Exceeding bytes: 0x20000000000000000000000.
W: Invalid config flags detected. Dropping resources: dimen-ERR0
W: Config flags size > 64. Size = 76. Exceeding bytes: 0x30000000000000000000000.
W: Invalid config flags detected. Dropping resources: dimen-ERR1
W: Config flags size > 64. Size = 76. Exceeding bytes: 0x40000000000000000000000.
W: Invalid config flags detected. Dropping resources: dimen-ERR2
W: Config flags size > 64. Size = 76. Exceeding bytes: 0x20000000000000000000000.
@ThEMarD
ThEMarD / logat.log
Created May 22, 2024 03:58
payton using radio config 1.0 wrapper on LOS 21
This file has been truncated, but you can view the full file.
--------- beginning of events
12-30 12:54:45.668 695 695 I snet_event_log: [121035042,-1,]
12-30 12:54:45.707 695 695 I auditd : SELinux: Loaded service context from:
12-30 12:54:45.707 695 695 I auditd : /system/etc/selinux/plat_service_contexts
12-30 12:54:45.707 695 695 I auditd : /system_ext/etc/selinux/system_ext_service_contexts
12-30 12:54:45.707 695 695 I auditd : /product/etc/selinux/product_service_contexts
12-30 12:54:45.707 695 695 I auditd : /vendor/etc/selinux/vendor_service_contexts
12-31 17:00:00.660 693 693 I auditd : type=2000 audit(0.0:1): initialized
12-30 12:54:41.506 693 693 I auditd : type=1403 audit(0.0:2): policy loaded auid=4294967295 ses=4294967295
12-30 12:54:41.510 693 693 I auditd : type=1404 audit(0.0:3): enforcing=1 old_enforcing=0 auid=4294967295 ses=4294967295
../../../../../../kernel/motorola/sm8550/drivers/bus/mhi/host/misc.c:1305:8: error: arithmetic on a pointer to an incomplete type 'struct mhi_tre'
dev_rp--;
~~~~~~^
../../../../../../kernel/motorola/sm8550/drivers/bus/mhi/host/misc.c:1277:9: note: forward declaration of 'struct mhi_tre'
struct mhi_tre *dev_rp;
^
../../../../../../kernel/motorola/sm8550/drivers/bus/mhi/host/misc.c:1309:23: error: arithmetic on a pointer to an incomplete type 'struct mhi_tre'
ev_ring->wp = dev_rp - 1;
~~~~~~ ^
../../../../../../kernel/motorola/sm8550/drivers/bus/mhi/host/misc.c:1277:9: note: forward declaration of 'struct mhi_tre'
@ThEMarD
ThEMarD / build.log
Created March 20, 2024 21:56
qpr2 agm sm8550 build error
FAILED: out/target/product/rtwo/obj/SHARED_LIBRARIES/libagm_pcm_plugin_intermediates/src/agm_pcm_plugin.o
/bin/bash -c "PWD=/proc/self/cwd /usr/bin/ccache prebuilts/clang/host/linux-x86/clang-r498229b/bin/clang -I hardware/qcom-caf/sm8550/audio/agm/plugins/tinyalsa -I out/target/product/rtwo/obj/SHARED_LIBRARIES/libagm_pcm_plugin_intermediates -I out/target/product/rtwo/gen/SHARED_LIBRARIES/libagm_pcm_plugin_intermediates -I hardware/qcom-caf/sm8550/audio/agm/snd_parser/inc -Isystem/core/libutils/include -Isystem/libbase/include -Iexternal/fmtlib/include -Isystem/core/libcutils/include_outside_system -Isystem/logging/liblog/include_vndk -Isystem/core/libprocessgroup/include -Isystem/core/libsystem/include -Isystem/core/libutils/binder/include -Isystem/core/libcutils/include_outside_system -Isystem/core/libprocessgroup/include -Isystem/core/libcutils/include -Isystem/logging/liblog/include_vndk -Iexternal/tinyalsa/include -Iexternal/tinyalsa/include -Iexternal/libcxx/include -Iexternal/libcxxabi/include -isy
@ThEMarD
ThEMarD / repopicks.sh
Last active February 1, 2024 05:31
LOS 21 repopicks
source build/envsetup.sh
# https://review.lineageos.org/q/project:LineageOS/android_frameworks_base+branch:lineage-21.0+status:open
repopick 380058 377832 377833 377834 377842 377835 377836 377837 377838 377840 377841 377843
# https://review.lineageos.org/q/project:LineageOS/android_packages_apps_Settings+branch:lineage-21.0+status:open
repopick 380053 376855 376973 376974
# https://review.lineageos.org/q/project:LineageOS/android_hardware_interfaces+branch:lineage-21.0+status:open
repopick 378140
@ThEMarD
ThEMarD / moto_build_fingerprint.sh
Last active November 20, 2024 02:22
Get Motorola build fingerprint
#!/bin/bash
SOURCE=$1
PRODUCT_MANUFACTURER=$(cat $SOURCE/system/system/build.prop | grep ro.product.system.manufacturer= | cut -c 32-)
SYSTEM_NAME=$(cat $SOURCE/system/system/build.prop | grep ro.product.system.name= | cut -c 24-)
SYSTEM_DEVICE=$(cat $SOURCE/system/system/build.prop | grep ro.product.system.device= | cut -c 26-)
VERSION_RELEASE=$(cat $SOURCE/system/system/build.prop | grep ro.system.build.version.release= | cut -c 33-)
VENDOR_BUILD_ID=$(cat $SOURCE/vendor/build.prop | grep ro.vendor.build.id= | cut -c 20-)
VENDOR_VERSION_INCREMENTAL=$(cat $SOURCE/vendor/build.prop | grep ro.vendor.build.version.incremental= | cut -c 37-)