From faf39271c49c4985b9c624a564ee38c3df45b560 Mon Sep 17 00:00:00 2001 From: MemRelay Date: Fri, 25 Sep 2026 07:28:43 +0800 Subject: [PATCH] =?UTF-8?q?create:=20=E5=8F=AF=E7=94=A8=20--from-device=20?= =?UTF-8?q?=E8=AF=BB=E5=8F=96=E8=AE=BE=E5=A4=87=E4=B8=8A=E7=9A=84=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E5=87=AD=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit MemRelay-Operation: memory-save:rapt-from-device-20260925 MemRelay-Resource: 5d3a2663-0be5-4b96-846e-988700b468bb --- .../可用 -from-device 读取设备上的登录凭证.md | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 projects/280dd2a0-d23d-4a71-91e1-dce4353163be/可用 -from-device 读取设备上的登录凭证.md diff --git a/projects/280dd2a0-d23d-4a71-91e1-dce4353163be/可用 -from-device 读取设备上的登录凭证.md b/projects/280dd2a0-d23d-4a71-91e1-dce4353163be/可用 -from-device 读取设备上的登录凭证.md new file mode 100644 index 0000000..aa93e6e --- /dev/null +++ b/projects/280dd2a0-d23d-4a71-91e1-dce4353163be/可用 -from-device 读取设备上的登录凭证.md @@ -0,0 +1,25 @@ +--- +title: 可用 --from-device 读取设备上的登录凭证 +type: decision +permalink: main/projects/280dd2a0-d23d-4a71-91e1-dce4353163be/可用-from-device-读取设备上的登录凭证 +stable_id: 5d3a2663-0be5-4b96-846e-988700b468bb +scope: project +memory_type: decision +project_id: 280dd2a0-d23d-4a71-91e1-dce4353163be +usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998 +status: active +revision: 1 +request_id: rapt-from-device-20260925 +created_at: '2026-09-24T23:28:41.241585+00:00' +updated_at: '2026-09-24T23:28:41.241585+00:00' +tags: +- adb +- token +- scraper +--- + +rapt_scraper.py 增加 --from-device。它用 MuMu adb(可用 --adb、--serial 或 RAPTD_ADB、RAPTD_SERIAL 覆盖)执行 adb root,读取 /data/data/com.leivideo.raptdrama/shared_prefs/FlutterSharedPreferences.xml 里 flutter.user_data 的 accessToken,作为 apasstk。不把 token 或邮箱写进输出和记忆。 + +优先级:--from-device 优先于环境变量 RAPTD_TOKEN,都没有时走游客 autologin。 + +已在当前设备验证提取成功,playlistv2 返回 200。当时设备上是 autologin 游客,免费集有 src,锁定集为空。有购买的账号需要先在 App 里登录,再加 --from-device;服务端按该 token 决定哪些集返回 src。 \ No newline at end of file