Contacts

Access phone contacts and call log. Use for looking up contact info or checking recent calls.

mikeyobrien 58042c2 1015 B Updated

File contents

Contacts & Calls

List all contacts

termux-contact-list

Output:

[
  {
    "name": "John Doe",
    "number": "+1234567890"
  }
]

Call log

termux-call-log                    # recent calls
termux-call-log -l 20              # last 20 calls
termux-call-log -o 10              # offset (skip first 10)

Output:

[
  {
    "name": "John Doe",
    "phone_number": "+1234567890",
    "type": "INCOMING",
    "date": "2024-01-15 14:30:00",
    "duration": "120"
  }
]

Call types: INCOMING, OUTGOING, MISSED, REJECTED

Make a phone call

termux-telephony-call "+1234567890"

Opens the dialer with the number (user must confirm).

Phone info

termux-telephony-deviceinfo        # IMEI, carrier, etc.
termux-telephony-cellinfo          # cell tower info

Note: Requires contacts/phone permissions.

mikeyobrien/rho/tree/main/platforms/android/skills/contacts commit 58042c2a49

Frequently asked questions

npx skillmds@latest add mikeyobrien/contacts