feat: optimize ADB snippet collection

- Remove old/duplicate snippets (14 removed)
- Add comprehensive ADB commands (35 added)
- Improve snippet names with Chinese descriptions

Categories:
- Basic device management (devices, connect, disconnect, server control)
- Reboot options (normal, recovery, bootloader)
- App management (install, uninstall, package info)
- File operations (push, pull)
- Screen & input (screencap, screenrecord, input simulation)
- System info & debugging (logcat, dumpsys, battery, etc.)
- Shell commands (pm, wm, am, getprop/setprop)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-26 09:49:23 +08:00
parent a19b93bc57
commit c815d75cdd
48 changed files with 280 additions and 104 deletions

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "adb bugreport",
"uid" : "I5E0F6D3-2C9H8-4H4I9-1E5F-2C9G2I8F0H7J0",
"name" : "生成完整除錯報告",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "adb connect ",
"uid" : "A7C4D9E2-5B8F-4A3E-9C1D-2E6F8A7B4D9C",
"name" : "連線到指定 IP",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "adb devices",
"uid" : "BA8E8F3A-7C2D-4A8E-9B1F-3C5D6E7A8B9C",
"name" : "列出已連接的裝置",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "adb disconnect",
"uid" : "C3E8F4A1-6D9B-4B2F-8D3E-4F7A9C6E8B5D",
"name" : "斷開無線連線",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "adb install -r ",
"uid" : "K1G6H2F9-5E5J-0J0K-7G1H-2F5I8K4H6J3L",
"name" : "更新安裝 APK (保留資料)",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "adb install ",
"uid" : "J0F5G1E8-4D4I-9I9J-6F0G-1E4H7J3G5I2K",
"name" : "安裝 APK",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "adb kill-server",
"uid" : "D4F9A5E2-7E8C-4C3D-9F4A-5E8B1D7A9C6E",
"name" : "停止 ADB 伺服器",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "adb logcat -c",
"uid" : "P6L1M7K4-0J0O-5O5P-2L6M-7K0N3P9M1O8Q",
"name" : "清除系統日誌",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "adb logcat -s ",
"uid" : "Q7M2N8L5-1K1P-6P6Q-3M7N-8L1O4Q0N2P9R",
"name" : "過濾特定標籤日誌",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "adb logcat",
"uid" : "O5K0L6J3-9I9N-4N4O-1K5L-6J9M2O8L0N7P",
"name" : "查看系統日誌",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "adb pull ",
"uid" : "N4J9K5I2-8H8M-3M3N-0J4K-5I8L1N7K9M6O",
"name" : "從裝置拉取檔案",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "adb push ",
"uid" : "M3I8J4H1-7G7L-2L2M-9I3J-4H7K0M6J8L5N",
"name" : "傳送檔案到裝置",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "adb reboot",
"uid" : "F6B1C7A4-9F0E-5E5F-2B6C-7A0D3F9C1E8G",
"name" : "重啟裝置",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "adb reboot bootloader",
"uid" : "H8D3E9C6-2B2G-7G7H-4D8E-9C2F5H1E3G0I",
"name" : "重啟至 Bootloader 模式",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "adb reboot recovery",
"uid" : "G7C2D8B5-1A1F-6F6G-3C7D-8B1E4G0D2F9H",
"name" : "重啟至 Recovery 模式",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "adb screencap -p /sdcard/screenshot.png",
"uid" : "R8N3O9M6-2L2Q-7Q7R-4N8O-9M2P5R1O3Q0S",
"name" : "截圖",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "adb screenrecord /sdcard/recording.mp4",
"uid" : "S9O4P0N7-3M3R-8R8S-5O9P-0N3Q6S2P4R1T",
"name" : "錄影",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "adb shell ",
"uid" : "I9E4F0D7-3C3H-8H8I-5E9F-0D3G6I2F4H1J",
"name" : "進入互動式 shell",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "adb shell am force-stop ",
"uid" : "G3C8D4B1-0A7F6-2F2G7-9C3D-0A7E0G6D8F5H8",
"name" : "強制停止應用程式",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "adb shell am start -n ",
"uid" : "F2B7C3A0-6Z6E5-1E1F6-8B2C-3Z6D9F5C7E4G7",
"name" : "啟動應用程式",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "adb shell dumpsys activity top",
"uid" : "H4D9E5C2-1B8G7-3G3H8-0D4E-1B8F1H7E9G6I9",
"name" : "查看目前 Activity",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "adb shell dumpsys battery",
"uid" : "B8X3Y9W6-2V2A1-7A7B2-4X8Y-9V2Z5B1Y3A0C3",
"name" : "查看電池資訊",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "adb shell dumpsys package ",
"uid" : "Y5U0V6T3-9S9X-4X4Y-1U5V-6S9W2Y8V0X7Z",
"name" : "查看套件詳細資訊",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "adb shell getprop",
"uid" : "C9Y4Z0X7-3W3B2-8B8C3-5Y9Z-0W3A6C2Z4B1D4",
"name" : "查看系統屬性",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "adb shell input keyevent ",
"uid" : "V2R7S3Q0-6P6U-1U1V-8R2S-3P6T9V5S7U4W",
"name" : "模擬按鍵事件",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "adb shell input tap ",
"uid" : "T0P5Q1O8-4N4S-9S9T-6P0Q-1N4R7T3Q5S2U",
"name" : "模擬點擊螢幕",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "adb shell input text ",
"uid" : "U1Q6R2P9-5O5T-0T0U-7Q1R-2O5S8U4R6T3V",
"name" : "模擬輸入文字",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "adb shell pm list packages -3",
"uid" : "X4T9U5S2-8R8W-3W3X-0T4U-5R8V1X7U9W6Y",
"name" : "列出第三方套件",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "adb shell pm list packages",
"uid" : "W3S8T4R1-7Q7V-2V2W-9S3T-4Q7U0W6T8V5X",
"name" : "列出所有套件",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "adb shell setprop ",
"uid" : "D0Z5A1Y8-4X4C3-9C9D4-6Z0A-1X4B7D3A5C2E5",
"name" : "設定系統屬性",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "adb shell wm density",
"uid" : "A7W2X8V5-1U1Z-6Z6A1-3W7X-8U1Y4A0X2Z9B2",
"name" : "查看/修改螢幕密度",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "adb shell wm size",
"uid" : "Z6V1W7U4-0T0Y-5Y5Z-2V6W-7T0X3Z9W1Y8A1",
"name" : "查看螢幕解析度",
"keyword" : ""
}
}

View File

@@ -1,8 +0,0 @@
{
"alfredsnippet" : {
"snippet" : "adb shell",
"uid" : "283AFDA0-12F3-4888-A0B1-D757AFA85F48",
"name" : "adb shell 互動",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "adb start-server",
"uid" : "E5A0B6F3-8F9D-4D4E-1A5B-6F9C2E8B0D7F",
"name" : "啟動 ADB 伺服器",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "adb tcpip 5555",
"uid" : "E1A6B2Z9-5Y5D4-0D0E5-7A1B-2Y5C8E4B6D3F6",
"name" : "啟用無線 ADB 模式",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "adb uninstall ",
"uid" : "L2H7I3G0-6F6K-1K1L-8H2I-3G6J9L5I7K4M",
"name" : "解除安裝應用程式",
"keyword" : ""
}
}

View File

@@ -1,8 +0,0 @@
{
"alfredsnippet" : {
"snippet" : "adb disconnect",
"uid" : "76DBE44F-FA10-4FB3-A8D2-84F8EDCC80DC",
"name" : "adb 斷開連線",
"keyword" : ""
}
}

View File

@@ -1,8 +0,0 @@
{
"alfredsnippet" : {
"snippet" : "adb shell input text \"{cursor}\"",
"uid" : "466D7F8B-5D69-44B8-AD20-61FBAE90FE9A",
"name" : "adb 模擬輸入",
"keyword" : ""
}
}

View File

@@ -1,8 +0,0 @@
{
"alfredsnippet" : {
"snippet" : "adb connect",
"uid" : "3241E93A-DA32-4A2A-AFB5-20A463E46D25",
"name" : "adb 連線",
"keyword" : ""
}
}

View File

@@ -1,8 +0,0 @@
{
"alfredsnippet" : {
"snippet" : "adb reboot",
"uid" : "3FE82483-1114-46EE-8716-C1357ABABBDD",
"name" : "adb 重啟",
"keyword" : ""
}
}

View File

@@ -1,8 +0,0 @@
{
"alfredsnippet" : {
"snippet" : "adb kill-server",
"uid" : "3997E2BA-0445-4F5F-A1E2-0EC9B75D1C76",
"name" : "停止 adb 伺服器",
"keyword" : ""
}
}

View File

@@ -1,8 +0,0 @@
{
"alfredsnippet" : {
"snippet" : "adb devices",
"uid" : "245C8670-45E7-4367-83A3-D37C64F9523B",
"name" : "列出 adb 裝置",
"keyword" : ""
}
}

View File

@@ -1,8 +0,0 @@
{
"alfredsnippet" : {
"snippet" : "adb tcpip 5555",
"uid" : "996D10E7-B33B-4876-A6AF-6FB00C65D941",
"name" : "將 ADB 調整為 TCP\/IP 模式,端口設置為 5555",
"keyword" : ""
}
}

View File

@@ -1,8 +0,0 @@
{
"alfredsnippet" : {
"snippet" : "adb disconnect",
"uid" : "76DBE44F-FA10-4FB3-A8D2-84F8EDCC80DC",
"name" : "斷開目前的 ADB 連接",
"keyword" : ""
}
}

View File

@@ -1,8 +0,0 @@
{
"alfredsnippet" : {
"snippet" : "adb kill-server",
"uid" : "3997E2BA-0445-4F5F-A1E2-0EC9B75D1C76",
"name" : "終止 ADB 伺服器",
"keyword" : ""
}
}

View File

@@ -1,8 +0,0 @@
{
"alfredsnippet" : {
"snippet" : "adb connect 192.168.42.102:5555",
"uid" : "5CF757F5-05C4-45DC-B342-18CF18DAD7A0",
"name" : "連接到 IP 地址為 192.168.42.102,端口為 5555 的設備",
"keyword" : ""
}
}

View File

@@ -1,8 +0,0 @@
{
"alfredsnippet" : {
"snippet" : "adb reboot bootloader",
"uid" : "757734C2-8B29-45F3-8B3B-7E7C8A1BD988",
"name" : "重啟 bootloader",
"keyword" : ""
}
}

View File

@@ -1,8 +0,0 @@
{
"alfredsnippet" : {
"snippet" : "adb reboot recovery",
"uid" : "CB081E2F-E3BC-4B4D-9581-0F7E2FCBF3C4",
"name" : "重啟至 Recovery",
"keyword" : ""
}
}