Question
Is there a generalized man page or documentation for the Android adb shell dumpsys [service]
command? I do not mean this as this does not seem to give specifics about the output of specific services, e.g. adb shell dumpsys backup
Background
I've read through this question with regards to the dumpsys command in general, but it seems there is no link to any generalized documentation or man page. This answer stems from the user reading through the source C code and describing their observations, while this answer seems to be just some specific use-cases that the user has found helpful. One comment even asks
Is this from a document somewhere or just your own experimentation?
Without a reply.
In particular, I came to the previously linked question based on the fact that I was not sure what I was looking at from the output of adb shell dumpsys backup
.
The Android docs state:
To look up backup tokens, run
adb shell dumpsys backup
. The token is the hexadecimal string following the labels Ancestral: and Current:. The ancestral token refers to the backup dataset that was used to restore the device when it was initially setup (with the device-setup wizard). The current token refers to the device's current backup dataset (the dataset that the device is currently sending its backup data to).
A truncated version of my output is:
Backup Manager is enabled / provisioned / not pending init
Auto-restore is enabled
Last backup pass started: 0 (now = 1575271089047)
next scheduled: 1575281388106
Transport whitelist:
android/com.android.internal.backup.LocalTransportService
com.google.android.gms/.backup.component.D2dTransportService
com.google.android.gms/.backup.BackupTransportService
Available transports:
android/com.android.internal.backup.LocalTransport
destination: Backing up to debug-only private cache
intent: null
* com.google.android.gms/.backup.BackupTransportService
destination: *****@gmail.com
intent: Intent { cmp=com.google.android.gms/.backup.SetBackupAccountActivity }
@pm@ - 3794 state bytes
com.google.android.dialer - 124 state bytes
com.google.android.videos - 72 state bytes
com.android.providers.settings - 76 state bytes
...
Pending init: 0
Ancestral: 0
Current: 39b423cbcb6862e5
Participants:
uid: 1000
com.android.providers.settings
android
uid: 1027
com.android.nfc
uid: 10004
com.android.providers.userdictionary
com.android.providers.blockednumber
com.android.calllogbackup
...
Ancestral packages: none
Ever backed up: 66
com.android.cellbroadcastreceiver
com.allrecipes.spinner.free
com.google.android.youtube
...
Pending key/value backup: 47
BackupRequest{pkg=com.google.android.dialer}
BackupRequest{pkg=com.google.android.videos}
BackupRequest{pkg=com.android.cellbroadcastreceiver}
...
Full backup queue:68
0 : com.jb.gokeyboard.langpack.ja
0 : com.Splitwise.SplitwiseMobile
1575154802432 : com.google.android.gsf.login
1575156372751 : com.google.android.backuptransport
1575159051168 : com.google.android.ext.services
...
Backup Manager is enabled / provisioned / not pending init
Auto-restore is enabled
Last backup pass started: 0 (now = 1575271089047)
next scheduled: 1575281388106
Transport whitelist:
android/com.android.internal.backup.LocalTransportService
com.google.android.gms/.backup.component.D2dTransportService
com.google.android.gms/.backup.BackupTransportService
Available transports:
android/com.android.internal.backup.LocalTransport
destination: Backing up to debug-only private cache
intent: null
* com.google.android.gms/.backup.BackupTransportService
destination: *****@gmail.com
intent: Intent { cmp=com.google.android.gms/.backup.SetBackupAccountActivity }
@pm@ - 3794 state bytes
com.google.android.dialer - 124 state bytes
com.google.android.videos - 72 state bytes
com.android.providers.settings - 76 state bytes
...
Pending init: 0
Ancestral: 0
Current: 39b423cbcb6862e5
Participants:
uid: 1000
com.android.providers.settings
android
uid: 1027
com.android.nfc
uid: 10004
com.android.providers.userdictionary
com.android.providers.blockednumber
com.android.calllogbackup
...
Ancestral packages: none
Ever backed up: 66
com.android.cellbroadcastreceiver
com.allrecipes.spinner.free
com.google.android.youtube
...
Pending key/value backup: 47
BackupRequest{pkg=com.google.android.dialer}
BackupRequest{pkg=com.google.android.videos}
BackupRequest{pkg=com.android.cellbroadcastreceiver}
...
Full backup queue:68
0 : com.jb.gokeyboard.langpack.ja
0 : com.Splitwise.SplitwiseMobile
1575154802432 : com.google.android.gsf.login
1575156372751 : com.google.android.backuptransport
1575159051168 : com.google.android.ext.services
...
Backup Manager is enabled / provisioned / not pending init
Auto-restore is enabled
Last backup pass started: 0 (now = 1575271089047)
next scheduled: 1575281388106
Transport whitelist:
android/com.android.internal.backup.LocalTransportService
com.google.android.gms/.backup.component.D2dTransportService
com.google.android.gms/.backup.BackupTransportService
Available transports:
android/com.android.internal.backup.LocalTransport
destination: Backing up to debug-only private cache
intent: null
* com.google.android.gms/.backup.BackupTransportService
destination: *****@gmail.com
intent: Intent { cmp=com.google.android.gms/.backup.SetBackupAccountActivity }
@pm@ - 3794 state bytes
com.google.android.dialer - 124 state bytes
com.google.android.videos - 72 state bytes
com.android.providers.settings - 76 state bytes
...
Pending init: 0
Ancestral: 0
Current: 39b423cbcb6862e5
Participants:
uid: 1000
com.android.providers.settings
android
uid: 1027
com.android.nfc
uid: 10004
com.android.providers.userdictionary
com.android.providers.blockednumber
com.android.calllogbackup
...
Ancestral packages: none
Ever backed up: 66
com.android.cellbroadcastreceiver
com.allrecipes.spinner.free
com.google.android.youtube
...
Pending key/value backup: 47
BackupRequest{pkg=com.google.android.dialer}
BackupRequest{pkg=com.google.android.videos}
BackupRequest{pkg=com.android.cellbroadcastreceiver}
...
Full backup queue:68
0 : com.jb.gokeyboard.langpack.ja
0 : com.Splitwise.SplitwiseMobile
1575154802432 : com.google.android.gsf.login
1575156372751 : com.google.android.backuptransport
1575159051168 : com.google.android.ext.services
...
The parts mentioned in the quoted text above, seem to make sense, but there is a significant amount of additional information that I'm not sure what to do with. In particular, I was searching for a means to verify what was backed up and what was not, but with headings like "Participants, Ancestral packages, Ever backed up, Pending key/value backup, Full backup queue", I'm not sure what is and is not backed up.
I tried adb shell dumpsys backup -h
but this gives nothing helpful:
$ adb shell dumpsys backup -h
'dumpsys backup' optional arguments:
-h : this help text
a[gents] : dump information about defined backup agents
Summary
I am seeking an explanation of the output of adb shell dumpsys backup
and all its headers. Also, is there any documentation discussing this in more detail? Maybe there is none, and this is why people have resorted to reading through the source code in its place?