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 / 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/[email protected]:system/bin/[email protected]
vendor/bin/hw/[email protected]:system/bin/[email protected]
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
@ThEMarD
ThEMarD / Kang blobs from a section of your proprietary-files on LineageOS 17.1.txt
Last active March 8, 2025 19:27
Kang blobs from a section of your proprietary-files on LineageOS 17.1
Make sure the device's and/or commonized device proprietary-files are updated with the same blobs that you want in your proprietary vendor repo.
Next, to use the kang and section mode we need the switches "-k -s". -k tells extract-files to only kang/pull updated blobs without deleting any blobs. -s tells it to only update ones from a commented section of your proprietary-files.
for example, if i have this in my proprietary-files
# ADSP - from oneplus3t - OnePlus/OnePlus3/OnePlus3T:9/PKQ1.181203.001/1911042108 - OOS 9.0.6
vendor/lib/libadsp_hvx_callback_skel.so
vendor/lib/libadsp_hvx_stub.so
@ThEMarD
ThEMarD / Update Ubuntu's platform-tools package manually.txt
Last active November 3, 2023 20:09
Update Ubuntu's platform-tools package manually
If you've installed adb and fastboot via apt install on Ubuntu and realize they're old versions, then here is how to manually update them.
wget https://dl.google.com/android/repository/platform-tools-latest-linux.zip
unzip \platform-tools-latest-linux.zip
sudo cp platform-tools/adb /usr/lib/android-sdk/platform-tools/
sudo cp platform-tools/fastboot /usr/lib/android-sdk/platform-tools/
check that it worked with:
adb --version
@ThEMarD
ThEMarD / Regen vendor blobs
Last active May 8, 2023 04:42
Regen vendor blobs
Make sure the device's and/or commonized device proprietary-files are updated with the same blobs that you want in your proprietary vendor repo.
In my example, I'll use the LeEco Le Max 2 (x2), so I would then copy the current LeEco msm8996-common and then x2 blobs (just to clarify, I mean the blobs themselves within the proprietary folder) to the desktop in a folder named vendorblobs
Then open terminal in the device tree and...
./extract-files.sh ~/Desktop/vendorblobs/ | tee ~/Desktop/extractor.log
Check extractor.log to ensure it worked ok and there was no errors / not found.
@ThEMarD
ThEMarD / build.prop
Created December 26, 2019 02:14
zl1 EUI ROM 30s
# begin build properties
# autogenerated by buildinfo.sh
ro.letv.release.branch=ruby_dev_leui
ro.letv.release.version=6.0.030S
ro.letv.release.version_date=5.8.001D_09093
ro.product.letv_model=
ro.product.letv_name=
ro.build.id=WAXCNFN6003009091S
ro.build.display.id=WAXCNFN6003009091S release-keys