| name | phone-notify |
| description | 系统通知+日历管理。使用时机:需要发系统通知、读取通知栏内容、查看/添加/删除日历事件。| System notifications and calendar. Use when: send notifications, read notification bar, manage calendar events needed. |
Phone Notify & Calendar
Notification and calendar operations via termux-api and ADB.
🤖 AI Setup
Verify ADB is connected before running any command:
adb connect 127.0.0.1:5555 || echo "ADB not available"
Check termux-api for notification commands:
pkg list-installed | grep termux-api || pkg install termux-api -y
Notifications
Send
termux-notification --id $(date +%s) --title "Title" --content "Message" --priority max --vibrate "200,100,200"
List all
termux-notification-list 2>/dev/null
Filter by app (example: WeChat)
termux-notification-list 2>/dev/null | python3 -c "
import sys,json
for n in json.load(sys.stdin):
if n.get('packageName') == 'com.tencent.mm':
print(f\"{n.get('title','?')}: {n.get('content','?')}\")
"
Calendar
List events
adb -s 127.0.0.1:5555 shell content query --uri content://com.android.calendar/events --projection _id:title:dtstart:dtend 2>/dev/null
Add event
adb -s 127.0.0.1:5555 shell content insert --uri content://com.android.calendar/events \
--bind title:s:'Event Title' --bind calendar_id:i:1 \
--bind dtstart:l:<start_ms> --bind dtend:l:<end_ms> \
--bind eventTimezone:s:Asia/Shanghai
Delete event
adb -s 127.0.0.1:5555 shell content delete --uri content://com.android.calendar/events --where "_id=<event_id>"