Skip to content

Instantly share code, notes, and snippets.

View LeviMarvin's full-sized avatar
:electron:
DONE

Levi Marvin LeviMarvin

:electron:
DONE
View GitHub Profile
@LeviMarvin
LeviMarvin / main.go
Created March 31, 2024 09:52
Test code.
package main
import (
"OFCA/util"
"crypto"
"crypto/rsa"
"crypto/sha256"
"crypto/x509"
"encoding/base64"
"fmt"
@LeviMarvin
LeviMarvin / vbmeta_info.txt
Created October 8, 2022 05:21
informations of the vbmeta image of MIUI 13.1.22.9.28.DEV for Xiaomi Redmi Note 9 5G China (cannon)
Minimum libavb version: 1.0
Header Block: 256 bytes
Authentication Block: 320 bytes
Auxiliary Block: 3392 bytes
Public key (sha1): b2a02f1e56e366d727a1a8e089762fe0b91bbc84
Algorithm: SHA256_RSA2048
Rollback Index: 0
Flags: 0
Rollback Index Location: 0
Release String: 'avbtool 1.2.0'
levimarvin@LevideiMac ~ % adb shell
dipper:/ $ su
dipper:/ # cat /sys/fs/pstore/dmesg-ramoops-0
Oops#1 Part1
<6>[ 0.429148] input: qpnp_pon as /devices/virtual/input/input0
<6>[ 0.429995] qcom,qpnp-power-on c440000.qcom,spmi:qcom,pm8005@4:qcom,power-on@800: No PON config. specified
<6>[ 0.430068] qcom,qpnp-power-on c440000.qcom,spmi:qcom,pm8005@4:qcom,power-on@800: PMIC@SID4 Power-on reason: Triggered from PON1 (secondary PMIC) and 'warm' boot
<6>[ 0.430089] qcom,qpnp-power-on c440000.qcom,spmi:qcom,pm8005@4:qcom,power-on@800: PMIC@SID4: Power-off reason: Triggered from GP1 (Keypad_Reset1)
<6>[ 0.430156] qcom,qpnp-power-on c440000.qcom,spmi:qcom,pmi8998@2:qcom,power-on@800: No PON config. specified
<6>[ 0.430199] qcom,qpnp-power-on c440000.qcom,spmi:qcom,pmi8998@2:qcom,power-on@800: PMIC@SID2 Power-on reason: Triggered from PON1 (secondary PMIC) and 'warm' boot
<14>[ 141.889805] init: Service 'exec 69 (/system/bin/flags_health_check UPDATABLE_CRASHING)' (pid 12997) exited with status 0 waiting took 0.036000 seconds
<14>[ 141.889845] init: Sending signal 9 to service 'exec 69 (/system/bin/flags_health_check UPDATABLE_CRASHING)' (pid 12997) process group...
<14>[ 141.890247] libprocessgroup: Successfully killed process cgroup uid 1000 pid 12997 in 0ms
<14>[ 143.056902] init: starting service 'glgps'...
<14>[ 143.058389] init: Created socket '/dev/socket/gps', mode 660, user 1021, group 1000
<6>[ 143.141639] binder: 13002:13002 ioctl 40046210 7fd8df7044 returned -22
<36>[ 143.142363] type=1400 audit(1661520716.036:334): avc: denied { search } for comm="glgps" name="data" dev="sda21" ino=2818049 scontext=u:r:glgps:s0 tcontext=u:object_r:system_data_file:s0:c512,c768 tclass=dir permissive=0
<36>[ 143.144101] type=1400 audit(1661520716.036:335): avc: denied { search } for comm="glgps" name="data" dev="sda21" ino=2818049 scontext=u:r:glgps:s0 tcontext=u:object_r:sy
<14>[ 53.950595] init: starting service 'lhd'...
<6>[ 53.962240] binder: 6128:6128 ioctl 40046210 7fdbb0e874 returned -22
<36>[ 53.966302] type=1400 audit(1661514123.206:106): avc: denied { search } for comm="lhd" name="data" dev="sda21" ino=2818049 scontext=u:r:lhd:s0 tcontext=u:object_r:system_data_file:s0:c512,c768 tclass=dir permissive=0
<3>[ 53.993498] [SSPBBD} bcm_4775_nstandby, buf is 0
<3>[ 53.993498]
<3>[ 54.015377] [SSPBBD} bcm_4775_nstandby, buf is 1
<3>[ 54.015377]
<6>[ 54.189496] binder: 6118:6118 ioctl 40046210 7fdc30f824 returned -22
<6>[ 54.271519] bbd_common_open++
<6>[ 54.271522] bbd_shmd
pid = 16477
12:12:13.738 I/lhd CUST: SetConfig: LogEnabled = true
12:12:13.740 D/lhd LhdConfig::SaveConfigState()
12:12:13.741 I/lhd LhdConfig::SetCfgValue(LogEnabled, true)
12:12:13.742 E/lhd checkForcedLogSetting: BRCM forced log directory detected. Enabling BRCM GPS log.
12:12:13.742 E/lhd OpenFirmwareFile: Fail to open /efs/sec_efs/sensorhub_urgent_fw.patch, errno 2
12:12:13.743 E/lhd getCustPatchVersion: Fail to parse patch /efs/sec_efs/sensorhub_urgent_fw.patch
12:12:13.743 E/lhd getCustPatchVersion: <CustomerVersion> not found
12:12:13.743 E/lhd EnableLhdKiller() lhd killer disabled
12:12:13.744 E/lhd EnableLhdKiller() /sys/bbd/lk_enable open failed(No such file or directory)
pid = 15488
12:09:07.306 D/gpsd **************************** XML Config BEGIN **************************************
<?xml version="1.0" encoding="utf-8"?>
<glgps xmlns="http://www.glpals.com/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.glpals.com/ glconfig.xsd" >
<!--HAL Confguration -->
<hal
PortName="lhd"
GpioDelayMs="130"
LogEnabled="true"
Log="FILE"
This file has been truncated, but you can view the full file.
--------- beginning of system
08-25 18:41:23.599 1651 4375 E ShortcutService: Non-dynamic shortcut found.
08-25 18:41:23.599 1651 4375 E ShortcutService: java.lang.RuntimeException: Stacktrace
08-25 18:41:23.599 1651 4375 E ShortcutService: at com.android.server.pm.ShortcutService.wtf(ShortcutService.java:5253)
08-25 18:41:23.599 1651 4375 E ShortcutService: at com.android.server.pm.ShortcutService.wtf(ShortcutService.java:5247)
08-25 18:41:23.599 1651 4375 E ShortcutService: at com.android.server.pm.ShortcutPackage.adjustRanks(ShortcutPackage.java:1584)
08-25 18:41:23.599 1651 4375 E ShortcutService: at com.android.server.pm.ShortcutService.lambda$pushDynamicShortcut$9$ShortcutService(ShortcutService.java:2244)
08-25 18:41:23.599 1651 4375 E ShortcutService: at com.android.server.pm.ShortcutService$$ExternalSyntheticLambda14.run(Unknown Source:10)
08-25 18:41:23.599 1651 4375 E ShortcutService: at com.android.server.pm.ShortcutService.injectPostToHandlerIfAppSearch(ShortcutService.java:
make[3]: Entering directory '/Volumes/OpenWrt/openwrt/package/libs/mbedtls'
rm -f /Volumes/OpenWrt/openwrt/build_dir/target-mipsel_24kc_musl/mbedtls-2.28.0/.built
touch /Volumes/OpenWrt/openwrt/build_dir/target-mipsel_24kc_musl/mbedtls-2.28.0/.built_check
MAKEFLAGS="" /Volumes/OpenWrt/openwrt/staging_dir/host/bin/ninja -v -j1 -C /Volumes/OpenWrt/openwrt/build_dir/target-mipsel_24kc_musl/mbedtls-2.28.0
ninja: Entering directory `/Volumes/OpenWrt/openwrt/build_dir/target-mipsel_24kc_musl/mbedtls-2.28.0'
[1/159] /Volumes/OpenWrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-11.2.0_musl/bin/mipsel-openwrt-linux-musl-gcc -I/Volumes/OpenWrt/openwrt/build_dir/target-mipsel_24kc_musl/mbedtls-2.28.0/programs/test/../../include -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -fmacro-prefix-map=/Volumes/OpenWrt/openwrt/build_dir/target-mipsel_24kc_musl/mbedtls-2.28.0=mbedtls-2.28.0 -Wformat -Werror=format-
panic(cpu 4 caller 0xffffff80077d0d53): Kernel trap at 0xffffff800776d572, type 14=page fault, registers:
CR0: 0x000000008001003b, CR2: 0xffffff9c0fbfffe8, CR3: 0x000000000e082000, CR4: 0x00000000003626e0
RAX: 0xffffff800fc00000, RBX: 0xffffff9c0fbfffc8, RCX: 0xffffff7f80000000, RDX: 0x00000000568bc300
RSP: 0xffffffb0898fb910, RBP: 0xffffffb0898fb940, RSI: 0xffffff9ba42a3aa0, RDI: 0x0000000000000000
R8: 0xffffff80077c5390, R9: 0xffffffa070816aa8, R10: 0x0000000000000028, R11: 0x0000000000003000
R12: 0xffffff800ea00000, R13: 0x0000000056f7e808, R14: 0x0000000035b4c000, R15: 0xffffff953dfa0200
RFL: 0x0000000000010282, RIP: 0xffffff800776d572, CS: 0x0000000000000008, SS: 0x0000000000000010
Fault CR2: 0xffffff9c0fbfffe8, Error code: 0x0000000000000000, Fault CPU: 0x4, PL: 1, VF: 5
Panicked task 0xffffff9ba3f53670: 116 threads: pid 0: kernel_task