Event log
The answer to {"op":"log","from":<n>} is {"entries":[<line>,...],"next":<n>}: entries whose i is at least from, oldest first, each the exact stored line as a JSON string. next is present when there is more; ask again with from set to it. A missing from means 0. A page is at most about 256 KiB.
Each line is canonical JSON:
{"data":{"code":"ok","effect":"delayed","type":"config","via":"session"},"i":41,"kind":"bundle","prev":"9f2c…","t":1800000000000}
| Key | Meaning |
|---|---|
i | Entry number, from 0, never reused. The phone keeps the newest 5000 entries, so the first line received may not be entry 0. |
t | The phone’s wall clock, Unix milliseconds. |
kind | What happened; see below. |
prev | SHA-256, as 64 hex characters, of the previous entry’s line exactly as stored; 64 zeros for entry 0. |
data | An object, by kind. |
A reader checks that each line’s prev is the SHA-256 of the line before it and that i goes up by one; for entry 0, that prev is all zeros. It hashes the received string, never a re-encoding. The chain makes later edits, removals and reordering visible; it is not signed, and is read over an unsigned connection.
kind | data |
|---|---|
arm | dns_host, delay_tier |
disarm | how: exit or dev_removal |
teardown | private_dns_left: the host Private DNS is still set to, only when it could not be set back to automatic |
state | step: restored (the backup copy was used) or damaged (salvaged; see Damaged state); fields: the stored values that could not be read |
upkeep_error | errors: a list of strings, one for each step of the background check (due, removal, self_check, update) that threw. Written only when the list changes. |
teardown_failed | failed: a list of strings, one for each step that did not take. Device owner is kept, and the phone tries again; written again only when the failures change. |
removal_abandoned | why: enrolled. A removal that had not finished was dropped because keys were enrolled again; without this the next background check would finish it and wipe the new enrolment. |
debug_window_open | limit_ms. USB debugging was allowed on the phone (Connecting). |
debug_window_close | reason (time_limit, turned_off, tamper, app_stopped, error), open_ms. error: something failed while the window was opening, so it was closed at once. app_stopped: the app’s process ended with the window open and this entry was written when it next started. |
session_open, session_close | Written by versions before 2026-12-01, which had sessions; session_close has a reason and open_ms like debug_window_close. Readers still show them. |
tamper | what: a list of codes, one for each change against policy found while a debugging window was open; package for adb_install. Codes: proxy, private_dns, restrictions, auto_time, uninstall_block, wireless_debugging, background_restricted, battery_optimized, job_cancelled, app_unsuspended, adb_install. Always followed by a debug_window_close (in older logs, session_close) with reason tamper. A reader shows a code it does not know as it is. |
bundle | type (as the bundle claims, or unreadable), via (session for a connection, or file), code (Acceptance), effect when ok |
pending_start | kind (as in 8.3.1), delay_ms |
pending_cancel, pending_done | kind |
config | config: the whole config now in force |
keys | reason (enrolment, re_pair, key_add, key_remove, partner_remove), owner_key_ids, partner_key_id if any |
waiting | step (started, approved, completed, cancelled, expired, dropped), type; role and via (phone, tap or signature) for approved; code for dropped |
phone_secret | role, step (set, changed, removed, allowed, cleared), kind (pin, password, screen_lock) for set and changed. Never the secret. |
phone_secret_wrong | role, failures (the count so far), wait_ms before the next try |
partner_ready | step (ready, stopped, expired) |
re_pair | step: ready or cancelled |
self_check | problems: a list of strings, empty when problems found earlier have cleared. Written only when the list changes. |
app | package, step (suspended, resuspended, released), reason (blocklist, browser, untrusted_source, needs_approval) unless released |
update | step (installing, installed, failed), version, error when failed |
Entries that follow from a bundle (pending_start, config, keys) come after its bundle entry. A reader shows kinds it does not know rather than rejecting the log.