You verify adb restore by comparing the device or emulator state after the restore against a known-good reference — the original backup contents, a prior snapshot, or checksums captured before the operation — because adb restore itself does not print a per-file success report. It returns an overall exit status and progress text, and on many Android builds the on-device restore daemon reports very little beyond adb: restore started / adb: restore finished and a success or failure code. Treat that as a necessary but not sufficient signal.
What adb restore actually does and does not tell you
adb restore <file.ab> pipes a backup archive into the device's backup/restore service (historically the com.android.commands.bu / BackupRestoreConfirmation path, depending on Android version). The stream format is Android Backup (magic header such as ANDROID BACKUP, version, compression flag, and an optional encryption salt/checksum block). The client-side command knows only whether the transport completed and whether the device-side service reported a terminal status.
Consequences you must plan around:
Exit code ≠ data integrity. A zero exit status means the host-side adb client finished streaming and the device did not return a transport-level error. It does not mean every package was accepted, that a package's BackupAgent ran, or that the app's data landed where you expect. Silent skips are normal. Apps can declare android:allowBackup="false", restrict which transport may restore them, or use a BackupAgent that only restores certain keys. adb restore is not root magic; it drives the same backup framework the platform uses, subject to those same flags and to the restore transport allowlist on that build. Encryption and passwords fail loudly, but late. For an encrypted archive you are prompted for the password (or must supply it, e.g., -p-style options depending on the adb/bu implementation). A wrong password aborts the stream, and the failure can appear as a truncated stream rather than a clean “no data restored” message. Version skew matters. Restoring an archive produced on a newer Android release onto an older one, or across a major version boundary, frequently produces package-level rejections that the CLI does not itemize. The reference date (November 2026) does not remove this; archive compatibility still depends on the platform versions involved.
Because of these limits, verification must be observational: inspect the device after the run and compare to an independently captured reference.
Establish a reference before you restore
Verification is only as good as the baseline. Capture, before touching the device:
1: The archive itself. Record its size and a cryptographic hash on the host, e.g. sha256sum backup.ab. Keep the hash with a note of the device build fingerprint (adb shell getprop ro.build.fingerprint) and Android version (ro.build.version.release/sdk), plus the source device model, so you know what the archive is supposed to represent. 2: The expected inventory. If you control the backup, you know which packages should be present. If not, you can often glimpse the package list by decoding the archive's header and, when unencrypted, its tar payload (see below). Write the expected package set down; it becomes your checklist. 3: A pre-restore device snapshot. For meaningful comparison, record what the target device currently holds: installed package list (adb shell pm list packages), per-app data directory listings where accessible, and app-level exportable state. If you can take a full device image or a second independent backup, do so; that gives you a rollback and a second comparison point.
The point of a hash on the archive is to prove you restored the file you intended, not a truncated or re-downloaded copy. A hash on the device data proves you restored what the host held. These are different claims; keep them separate.
Inspect the archive on the host first
Many verification failures are archive problems, not restore problems. Before or after running the command, examine the .ab file:
Header check. The file begins with ANDROID BACKUP, then a version number, a compression flag (0 or 1), and an algorithm string (e.g. none, AES-256). adb backup with no -nocompress/encryption options produces a header you can read in plain text. Anything else is an archive you cannot casually inspect. Payload check. After the header lines, the body is typically a tar stream, possibly gzip-compressed. On a host you can decompress (respecting the compression flag) and list it: tar -tf payload.tar. The tar layout is Android-backup-specific: entries like apps//_manifest, apps//, and sometimes shared/… for shared storage. Listing entries tells you which packages the archive even contains — the first thing to compare against your expected inventory. Encrypted archives cannot be inspected without the password; if you lack it, host-side verification of contents is impossible, and you should verify only by on-device observation plus hash of the ciphertext.
If the archive lacks the package you expected, no amount of post-restore checking will produce it; the verified conclusion is “restore correctly replayed an archive that did not contain X.”
On-device verification after the restore
Run these checks after adb restore returns.
1: Package and installation state
Confirm the target app is installed and that the package name and signatures match what you expect (signature mismatch is a common cause of a restore being refused for an app already present from a different signer). If the archive restores app data for an app that is not installed, the platform behavior depends on version and transport; often the data is skipped. Verification therefore requires confirming the app was present or that the platform installed/restored it as you intended.
2: App data presence and timestamps
Where you have run-as access (debuggable builds of the app, or a userdebug/eng build), inspect the data directory:
Look for files you expected from the archive's tar listing, and check modification times and sizes. Timestamps are evidence but not proof: restore may preserve them, or the BackupAgent may rewrite content. Size and count of files are stronger than mtime.
On a non-debuggable, non-rooted production device you cannot read other apps' data. There, verify through the app's own behavior and its own exported state — for example, log in and check that settings, drafts, or cached content reappear — or use a device/emulator you control closely enough to inspect.
3: Application-level readback
For apps you can drive, the strongest end-to-end check is functional: launch the app and confirm the exact data the archive should carry — a specific note, account, preference value, saved game slot. Prefer a distinctive, known value you planted before backup; “the app opens” is not verification. If you restored to a different device or user, confirm the data appears in that profile and not the wrong one (adb shell am get-current-user and the profile context matter).
4: Compare hashes when you can read the data
If you can read the restored data (emulator, debug build, test app), compute a hash over the relevant files and compare with a hash captured from the source. Be careful: backup/restore can legitimately transform data (different serialization, re-written databases, timestamps), so a mismatch is not automatically a failure. Compare logical content — e.g., SQLite table row counts and key field values via sqlite3 or the app's export — rather than raw bytes unless you know the pipeline is byte-preserving.
5: Logs
adb logcat around the restore window is the best source of per-package outcomes. Filter for the backup framework (tags vary by version; BackupManager, BackupRestoreConfirmation, BackupAgent, and package names) and look for errors about signature mismatch, missing agent, or restore refusal. The CLI’s silence is compensated for here — but log tags and messages are build-specific, so treat absence of errors as weak and specific error lines as strong.
A practical verification checklist
A verified result is the conjunction: the archive is the intended file, it contains the expected packages, the packages are installed with compatible signatures, the expected data is readable on the device, and the known marker value is observable. Missing any of these downgrades the conclusion from “verified restore” to “restore completed without a transport error” — which is all the command itself guarantees.
Common confusions and where the method stops
“Restore finished” read as “all apps restored.” The CLI’s progress text is stream-level. Per-app refusal, especially signature mismatch or allowBackup=false, is not itemized there. Hashing the archive and calling it verification. That proves file identity, not restoration. It is one row in the checklist, not the conclusion. Restoring to a different user or profile. Confirm the active user; data may land under a profile you did not intend, making “it’s not there” and “it’s there but elsewhere” look alike. adb shell am get-current-user and checking /data/user// resolve this. Assuming modern Android always carries app data this way. Platform backup behavior and which transports are permitted have tightened over releases, and some app data is excluded by default on newer versions. On such builds the archive may legitimately contain less than you expect; verify against what the archive holds, not against an older mental model. Encrypted archive without the password. Contents cannot be independently inspected on the host; verification collapses to on-device observation plus ciphertext hash, and you should say so plainly rather than claim content verification.
The command is a faithful pipe; the evidence you need lives on both ends of it — the file’s hash and package inventory on the host, and readable, known state on the device — and in the logs between them.