summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Piyush Mehrotra <piee@google.com> 2023-02-03 17:25:14 +0000
committer Piyush Mehrotra <piee@google.com> 2023-04-24 14:13:47 +0000
commitda26f028aeb54125923284002b24fcd7058d15d8 (patch)
treebb3716c3bb47197c639f170588243a72862519e3 /libs/androidfw/FileStream.cpp
parent661518fc7096ae5e4dc5d508a45857a9ed820c49 (diff)
Improve `dumpsys backup`
This change refactors `dumpsys backup` code and adds some improvements - - Removes `isUserReadyForBackup()` check on calling user. This check is not needed, as it prevents a User with INTERACT_ACROSS_USERS_FULL permission, but not Backup activated, to get info about Backup service on other users. This is particularly relevant in case of headless mode, as Backup service isn't running for SYSTEM_USER. - Adds `--user <userId>` optional parameter for `dumpsys backup`, which will return info about Backup service for the user passed in argument. This is also helpul in case of multiple users on the device. Bug: 267755698 Test: atest BackupManagerServiceTest Manual test by running dumpsys backup with optional arguments. Change-Id: Id7790a501a8befb12a212f66adfc0cd8cc9f9e8b
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions