Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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}
KeyMeaning
iEntry number, from 0, never reused. The phone keeps the newest 5000 entries, so the first line received may not be entry 0.
tThe phone’s wall clock, Unix milliseconds.
kindWhat happened; see below.
prevSHA-256, as 64 hex characters, of the previous entry’s line exactly as stored; 64 zeros for entry 0.
dataAn 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.

kinddata
armdns_host, delay_tier
disarmhow: exit or dev_removal
teardownprivate_dns_left: the host Private DNS is still set to, only when it could not be set back to automatic
statestep: restored (the backup copy was used) or damaged (salvaged; see Damaged state); fields: the stored values that could not be read
upkeep_errorerrors: 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_failedfailed: 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_abandonedwhy: 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_openlimit_ms. USB debugging was allowed on the phone (Connecting).
debug_window_closereason (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_closeWritten 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.
tamperwhat: 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.
bundletype (as the bundle claims, or unreadable), via (session for a connection, or file), code (Acceptance), effect when ok
pending_startkind (as in 8.3.1), delay_ms
pending_cancel, pending_donekind
configconfig: the whole config now in force
keysreason (enrolment, re_pair, key_add, key_remove, partner_remove), owner_key_ids, partner_key_id if any
waitingstep (started, approved, completed, cancelled, expired, dropped), type; role and via (phone, tap or signature) for approved; code for dropped
phone_secretrole, step (set, changed, removed, allowed, cleared), kind (pin, password, screen_lock) for set and changed. Never the secret.
phone_secret_wrongrole, failures (the count so far), wait_ms before the next try
partner_readystep (ready, stopped, expired)
re_pairstep: ready or cancelled
self_checkproblems: a list of strings, empty when problems found earlier have cleared. Written only when the list changes.
apppackage, step (suspended, resuspended, released), reason (blocklist, browser, untrusted_source, needs_approval) unless released
updatestep (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.