Skip to content

Instantly share code, notes, and snippets.

gsiリスト取得

curl -H "User-Agent: Dalvik/2.1.0 (Linux; U; Android 13; motorola edge 20 pro Build/T1RAS33.55-15-16-5)" -H "Host: dl.google.com" --compressed "https://dl.google.com/developers/android/gsi/gsi-src.json"
curl -H "User-Agent: Dalvik/2.1.0 (Linux; U; Android 13; motorola edge 20 pro Build/T1RAS33.55-15-16-5)" -H "Host: dl.google.com" --compressed "https://dl.google.com/developers/android/rvc/images/gsi/gsi-dsc.json"

スマホ側でパケットキャプチャして実験

端末の追加(初期設定)

デフォルトの日本設定の場合

この場合naverサーバーにclient_idが存在せず失敗する

request

curl -H "Content-Type: application/json" \
prefectures = {
'北海道': '札幌市',
'青森県': '青森市',
'岩手県': '盛岡市',
'宮城県': '仙台市',
'秋田県': '秋田市',
'山形県': '山形市',
'福島県': '福島市',
'茨城県': '水戸市',
'栃木県': '宇都宮市',
@mouseos
mouseos / build.prop
Created February 12, 2024 15:10
tab-a02-sdのprop
# begin build properties
# autogenerated by buildinfo.sh
ro.build.id=01.01.000
ro.build.display.id=01.01.000 release-keys
ro.build.version.incremental=01.01.000.20170619.171523
ro.build.version.sdk=22
ro.build.version.codename=REL
ro.build.version.all_codenames=REL
ro.build.version.release=5.1
fastboot getvar all
(bootloader) battery-soc-ok:yes
(bootloader) battery-voltage:4259
(bootloader) off-mode-charge:0
(bootloader) is-userspace:yes
(bootloader) partition-size:OP_a:0x5DC00000
(bootloader) partition-size:OP_b:0x5DC00000
(bootloader) partition-size:ssd:0x2000
(bootloader) partition-size:misc:0x100000
(bootloader) partition-size:sdc:0x800000

oem sha1sum oem enable-charger-screen oem disable-charger-screen oem off-mode-charge oem select-display-panel oem device-info

...
(bootloader) Verity mode: true
(bootloader) Device unlocked: true
@mouseos
mouseos / lg-wing-kallsyms.log
Created March 6, 2024 12:03
LG_Wing_twrp_test_5_beta.imgから取得
This file has been truncated, but you can view the full file.
[+] Version string: Linux version 4.19.81-perf (lgmobile@MCSBS9R24) (clang version 8.0.12 for Android NDK) #1 SMP PREEMPT Tue Jan 19 13:11:01 KST 2021
[+] Guessed architecture: aarch64 successfully in 4.39 seconds
[+] Found relocations table at file offset 0x2267cf0 (count=99102)
[+] Found kernel text candidate: 0xffffff8008080000
[+] Successfully applied 99093 relocations.
[+] Found kallsyms_token_table at file offset 0x01cdaf00
[+] Found kallsyms_token_index at file offset 0x01cdb300
[+] Found kallsyms_markers at file offset 0x01cd9e00
[+] Found kallsyms_names at file offset 0x01b07600
[+] Found kallsyms_num_syms at file offset 0x01b07500
@mouseos
mouseos / fastboot-oem-commands.txt
Last active March 14, 2024 14:44
rog phone 7 ultimate oem commands
oem check-nrfuse
oem get-pmic-reg_
oem reset-b_unbootable_count
oem check-avb
oem gen-random
oem auth-hash
oem slot_b_enable
oem disable-charger-screen
oem get-skuid
oem get-featureid
oem enable-charger-screen
oem disable-charger-screen
oem off-mode-charge
oem select-display-panel
oem device-info
oem display-cmdline