Skip to content

Instantly share code, notes, and snippets.

[RTC] get_frequency_meter: input=0xD, ouput=783
[RTC] get_frequency_meter: input=0xE, ouput=797
[RTC] EOSC cali val = 0xDE4E
[RTC] RTC_SPAR0=0x0
[RTC] XO_XMODE_M = 1 , XO_EN32K_M = 1
[RTC] 32k-less mode
[RTC] rtc_2sec_reboot_check 0x2020, without 2sec reboot, type 0x0
[RTC] rtc 2sec reboot is not enabled
[RTC] rtc_lpd_init RTC_CON=0x486
[PMIC] pmic_init_setting end. v180413
Pll init start...
INFRA_BUS_DCM_CTRL 5F7FE0
mtcmos Start..
before: WDT_SWSYSRST = 0x8000
after: WDT_SWSYSRST = 0x9000
P[PWRAP] si_en_sel = 0, si_ck_sel = 0, si_sample_ctrl = 0, rdata = 96A9
[PWRAP] si_en_sel = 0, si_ck_sel = 1, si_sample_ctrl = 20, rdata = 5AA5, Pass
[PWRAP] InitSiStrobe (6, 6, DA65) Data Boundary Is Found !!
[PWRAP] SI Strobe Calibration For PMIC 0 Done, (40, 6)
[PWRAP] Read Test pass, return_value=0x0

fastboot oem key

[457333] [fastboot: command buf]-[oem key 00000000000000000000000000000000]-[len=40] [457334] [fastboot]-[download_base:0x56900000]-[download_size:0x0] [457335] [Cmd process]-[buf:oem key 00000000000000000000000000000000]-[lenBuf: 00000000000000000000000000000000]

fastboot oem keystore

[648252] [fastboot: command buf]-[oem keystore 000000000000000000000000000]-[len=40] [648253] [fastboot]-[download_base:0x56900000]-[download_size:0x0] [648254] [Cmd process]-[buf:oem keystore 000000000000000000000000000]-[lenBuf:store 000000000000000000000000000]

HWANE:/ # getprop
[bastet.service.enable]: [true]
[bg_fsck.pgid]: [342]
[bt.dpbap.enable]: [1]
[bt.max.hfpclient.connections]: [2]
[build.hisi_perf_opt]: [true]
[camera.dis.flag]: [2]
[camera.drop.buffer]: [1]
[camera.ignore.chat.facebeauty]: [1]
[config.disable_consumerir]: [true]
#ねとらじの情報を配列に突っ込む
import matplotlib.pyplot as plt
import requests
import re
#イコール削除
def de(txt):
txt=re.sub(r".*=","" , txt)
return(txt)
data = requests.get('http://yp.ladio.net/stats/list.v2.dat')
@mouseos
mouseos / cquam.dsp
Created August 3, 2022 07:55
c-quam modulator written in faust
import("stdfaust.lib");
pilot=os.oscsin(25)/4;
freq=50000;
cquam (l,r)=((l+r+1)*(os.oscsin(freq))/4)+(l-r)*(((os.osccos(freq))/4));
process=cquam;
//Modulate c-quam at 50KHz. This program cannot use for radio broadcast.
debug.atrace.tags.enableflags
debug.atrace.app_number
debug.atrace.app_%d
debug.atrace.tags.enableflags
debug.hwui.render_dirty_regions=false
debug.egl.force_msaa
debug.egl.trace
debug.force_rtl
debug.hwui.overdraw
debug.hwui.profile
This file has been truncated, but you can view the full file.
[+] Version string: Linux version 4.14.87+ (user@PC-20190507A056) (gcc version 6.3.1 20170109 (Linaro GCC 6.3-2017.02)) #1 SMP PREEMPT Wed Nov 4 09:09:54 JST 2020
[+] Guessed architecture: aarch64 successfully in 2.20 seconds
[+] Found kallsyms_token_table at file offset 0x00e500c0
[+] Found kallsyms_token_index at file offset 0x00e504c0
[+] Found kallsyms_markers at file offset 0x00e4f9c0
[+] Found kallsyms_names at file offset 0x00da62c0
[+] Found kallsyms_num_syms at file offset 0x00da61c0
[i] Negative offsets overall: 0 %
[i] Null addresses overall: 0 %
[+] Found kallsyms_offsets at file offset 0x00d71fc0
This file has been truncated, but you can view the full file.
[+] Version string: Linux version 5.10.43-android12-9-00007-g9771767708df-ab8009062 (build-user@build-host) (Android (7284624, based on r416183b) clang version 12.0.5 (https://android.googlesource.com/toolchain/llvm-project c935d99d7cf2016289302412d708641d52d2f7ee), LLD 12.0.5 (/buildbot/src/android/llvm-toolchain/out/llvm-project/lld c935d99d7cf2016289302412d708641d52d2f7ee)) #1 SMP PREEMPT Thu Dec 16 04:22:18 UTC 2021
[+] Guessed architecture: aarch64 successfully in 31.93 seconds
[+] Found kallsyms_token_table at file offset 0x02205b20
[+] Found kallsyms_token_index at file offset 0x02205ed0
[+] Found kallsyms_markers at file offset 0x022052e0
[+] Found kallsyms_names at file offset 0x0202d638
[+] Found kallsyms_num_syms at file offset 0x0202d630
[i] Negative offsets overall: 0 %
[i] Null addresses overall: 0 %
[+] Found kallsyms_offsets at file offset 0x01fa97e8
@mouseos
mouseos / Generate mtk unlock code.c
Last active October 23, 2022 18:06
Mediatek端末のアンロックコードを計算しようとしているところ。(動作しないと思う。)
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#define SERIALNO_LEN 32
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
static char udc_chr[32] = {"ABCDEFGHIJKLMNOPQRSTUVWSYZ456789"};
int get_serial(uint64_t hwkey, uint32_t chipid, char ser[SERIALNO_LEN])
{
uint16_t hashkey[4];
int idx, ser_idx;