Skip to content

Instantly share code, notes, and snippets.

@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

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
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
@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
prefectures = {
'北海道': '札幌市',
'青森県': '青森市',
'岩手県': '盛岡市',
'宮城県': '仙台市',
'秋田県': '秋田市',
'山形県': '山形市',
'福島県': '福島市',
'茨城県': '水戸市',
'栃木県': '宇都宮市',

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

端末の追加(初期設定)

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

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

request

curl -H "Content-Type: application/json" \

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"
@mouseos
mouseos / content.js
Created January 3, 2024 12:06
chrome拡張でMutationObserver使ってリアルタイムにconsoleにツイート表示するコード
// Mutation Observerの設定
const targetNode = document.body; // 監視対象の要素
const config = { childList: true, subtree: true };
// 新しいtweet要素が追加された時に行う処理
const tweetObserverCallback = function(mutationsList, observer) {
for(const mutation of mutationsList) {
if (mutation.type === 'childList') {
// [data-testid="tweet"]要素が追加された場合に実行する処理
const newTweets = document.querySelectorAll('[data-testid="tweet"]');
@mouseos
mouseos / manifest.json
Created January 3, 2024 02:29
chrome 拡張 manifest v3 でレスポンスヘッダーを書き換える。この場合twitter.comのiframe表示を許可している
{
"manifest_version": 3,
"name": "Twitterスパム通報",
"version": "1.0",
"permissions": [
"browsingData",
"declarativeNetRequest"
],
"description": "スパム自動通報Chrome拡張",
"background": {
@mouseos
mouseos / descriptions.json
Created December 22, 2023 10:04 — forked from stellasphere/descriptions.json
WMO weather interpretation code descriptions (& images)
{
"0":{
"day":{
"description":"Sunny",
"image":"http://openweathermap.org/img/wn/[email protected]"
},
"night":{
"description":"Clear",
"image":"http://openweathermap.org/img/wn/[email protected]"
}