Android: emulators start without gRPC, so tools that need the emulator gRPC endpoint (Argent) cannot drive leased devices
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 70/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- android, grpc
- 領域
- devtools, mobile-dev
調査の方向性
エミュレータの起動引数は emulatorLaunchFlags の近くで組み立てられています。Issue によると、ユーザーが指定した生のフラグを受け付けるべきではありません。まずそこから始め、コンソールポートがどのように選ばれているかを確認してください。そうすることで、管理下の他のポートと衝突せずに gRPC ポートを port + 3000 として導出できます。完了の条件は、リースされたエミュレータが gRPC ポートで待ち受け、grpc.token を含む pid_*.ini を書き出し、Argent のスクリーンショットと gesture-tap が成功することです。
索引モデルが issue の本文から書いたものです。
説明
This issue was written by Claude (an AI coding agent) while it investigated a tooling problem for me. I reviewed it and approved posting it.
simlock 0.2.0 starts emulators with the args below. main (0.3.0) uses the same args.
emulator -avd <avd> -port <n> -no-snapshot-save [-snapshot simlock_clean_baseline]
When -port is set and -grpc is not, the emulator:
- starts no gRPC server, and
- writes no discovery file (
~/Library/Caches/TemporaryItems/avd/running/pid_<pid>.inion macOS).
Without -port, the emulator turns on gRPC by default (console port + 3000, with a token) and writes the file.
Tools that drive the emulator over gRPC read that file. Argent is one. On a leased emulator its screenshot and gesture-tap fail with:
emulator "emulator-5558" not found among running emulators (a token-less `-grpc` launch omits grpc.token; check avd/running/*.ini)
adb-only tools still work, so the device looks healthy. Argent documents the same failure for any emulator launched without -grpc: software-mansion/argent#1192.
Repro (macOS, emulator 36.6.11, simlock 0.2.0)
simlock lease --platform android --device "Pixel 9" --agent-id test --detachls ~/Library/Caches/TemporaryItems/avd/running/→ nopid_*.inifor the leased emulator.lsof -nP -iTCP -sTCP:LISTEN -p <emulator pid>→ console and adb ports only, no gRPC port.
Matrix (throwaway AVD, launched by hand)
| Flags | gRPC endpoint + .ini |
|---|---|
-port 5570 -no-snapshot-save |
no |
no -port |
yes, grpc.port=8556 |
-port 5570 -grpc 8570 -grpc-use-token |
yes, and Argent works |
Proposed fix
Add -grpc <port + 3000> -grpc-use-token to the emulator launch args.
- Base the gRPC port on the console port, like the emulator's own default, so parallel leases never collide. With console ports above 5585 on
main, it may be worth checking thatport + 3000stays clear of other simlock-managed ports. - The token keeps the endpoint authenticated. Argent also requires
grpc.tokenin the.ini. - Users cannot work around this: config cannot add raw emulator flags (by design, per the comment near
emulatorLaunchFlags).
Optional: expose the gRPC port in the grant, so tools do not have to find it through the discovery file.
- 主要言語
- TypeScript
- スター
- 19
- フォーク
- 1
- 平均マージ
- 7時間 49分
- マージ済み PR(30日)
- 228
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
callstackincubator/simlock のほかの issue
-
Lint does not enforce index.ts boundaries for cleanup/, routing/, warm-pool/ and contract/ helpers対応中かも @V3RON が今日担当しました。 オープンbug:ready
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
callstackincubator/simlock#445 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
daemon-lifecycle e2e: the it.fails status test passes for the wrong reason対応中かも @V3RON が 8 日前に担当しました。 オープンbug:triage
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
callstackincubator/simlock#422 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
task:ready
難易度 5/5 1週間以上 初心者へのやさしさ 8/100
callstackincubator/simlock#637 ·
メンテナーはふだん 1 日以内に返信
-
task:ready
難易度 5/5 1週間以上 初心者へのやさしさ 12/100
callstackincubator/simlock#636 ·
メンテナーはふだん 1 日以内に返信
-
task:ready
難易度 5/5 1週間以上 初心者へのやさしさ 12/100
callstackincubator/simlock#635 ·
メンテナーはふだん 1 日以内に返信
callstackincubator/simlock の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
agilepathway/label-checker#739 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
CopilotKit/OpenBot#800 ·
メンテナーはふだん 1 日以内に返信
-
Endpoint links in the tag operations list are below the 24px target size対応中かも @AdzerKI が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
ehmpathy/rhachet-roles-bhuild#471 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
メンテナーはふだん 1 日以内に返信