Vylineドキュメント
ドキュメントメニュー
このページの内容なぜ辞書が必要かDesktop 検証済みハイライト(2026-08-31)カテゴリ別 API(実装入口)コマンド早見表関連

Protocol dictionary — LINE.js 名で Desktop を探す

最終更新: 2026-08-31


なぜ辞書が必要か

Vyline は 外部 LINE.js に依存しない。
ただし開発時は LINE.js / stack の メソッド名 を手がかりに、Desktop LINE.exe 内の同名 Thrift / C++ を特定し、実際の動きは Desktop を正とする。

text
やりたい機能
  → LINE.js / stack の関数名(辞書)
  → bun run vyline:find-native -- <名前>
  → Desktop の TalkService_*_pargs / line::Foo
  → protocol domain + backend 実装

コード上の辞書: Vyline/packages/protocol/src/dictionary/rpcMap.ts
(RPC_DICTIONARY / findRpc())


Desktop 検証済みハイライト(2026-08-31)

検証対象 Desktop: 26.4.2.3957

LINE.js / stack 名Desktop で観測Path
sendMessageTalkService_sendMessage_pargs, line::SendMessageTask::sendMessage/S4
unsendMessageTalkService_unsendMessage_pargs, ChatServiceImpl::requestUnsendMessage/S4
getProfileTalkService_getProfile_pargs/S4
updateProfileAttributesTalkService_updateProfileAttributes_pargs (+ ProfileService 同名)/S4
updateChatTalkService_updateChat_pargs, ChatMergeTask::updateChat*/S4
updateContactSettingTalkService_updateContactSetting_pargs/S4
getContactsV3RelationService_getContactsV3_pargs/presult/RE4
getTargetProfilesRelationService_getTargetProfiles_pargs/presult/RE4
getRSAKeyInfoヒットあり/api/v3/TalkService.do
loginV2ヒットあり/api/v3p/rs
OBS uploadobs.line-apps.com(メソッド名よりホスト)OBS HTTP

生ログ: source/desktop/recovered/native-search/

Transport は用途別に分かれる。通常 Talk RPC は /S4、RelationService は /RE4。Square/OpenChat の protocol stack baseline には /SQ1 が存在するが、現 worktree では Domain → Backend → BFF → UI の接続を確認できていないため、Square を「利用可能」とは扱わない。

Desktop バイナリの SHA-256 は、インストール実体と解析/unpack 実体を混同しない。

  • インストール済み LINE.exe: 893d899f3b39d9cef59752067166b7e72c6f7021e1841b24b617ab079cf8f2b1
  • 解析/unpack バイナリ: f85053950282da89b91fec090dd2b40aa165a593e249016f000287a939359577

カテゴリ別 API(実装入口)

自分のプロフィール

操作domainbackend HTTP
取得session.profile.getMineGET /line/:id/getProfile
表示名・ステメ等session.profile.updatePATCH /line/:id/updateProfileAttributes
アバターsession.profile.uploadAvatarPOST /line/:id/profile/image
背景session.profile.uploadBackgroundPOST /line/:id/profile/background

他人

操作domainbackend HTTP
取得session.contacts.getGET /line/:id/getContact/:targetMid
表示名 overridesession.contacts.renamePATCH /line/:id/updateContactSetting/:mid

グループ

操作domainbackend HTTP
名前session.chat.updateNamePATCH /line/:id/chats/:chatMid
画像session.chat.uploadAndSetPicturePOST /line/:id/chats/:chatMid/picture

トーク(既存)

操作backend
送信POST /line/:id/sendMessage
取消POST /line/:id/unsendMessage
既読POST /line/:id/sendChatChecked
履歴GET /line/:id/getPreviousMessagesV2WithRequest/:chatMid

コマンド早見表

powershell
# 文字列 + xref のみ(速い)
bun run vyline:find-native -- updateProfileAttributes --list-only --skip-setup

# decompile まで(Ghidra 必要・遅い)
bun run vyline:find-native -- sendMessage --max-functions 10

# Desktop インストール一式を source/desktop へ
bun run vyline:dump-desktop
bun run vyline:dump-desktop -- --full

# recovered ソースをキーワード整理
bun run vyline:focus-recovered -- sendMessage

関連

GitHub で原文を読む内容の修正・提案は GitHub へ

↑ ↓ で選ぶ Enter で開く