Skip to content
Commit 57bf7bad authored by Chandan Nath's avatar Chandan Nath
Browse files

add option --user to Bmgr.java

Bug: 118480337

Test: 1) atest RunFrameworksServicesRoboTests
    2) atest BmgrTest
    3) atest CtsBackupTestCases
    4) atest CtsBackupHostTestCases
    5) atest GtsBackupTestCases
    6) atest GtsBackupHostTestCases
    UsageStatsRestoreHostSideTest fails. I verified locally that this test
    fails without this change too.
    7) flashed device and ran:adb shell bmgr --user 10 backupnow --all
    Logs and output are as expected since backupservice isnt active for user 10
    log: Bmgr    : Running backupnow for user:10
    output: Error: Could not access the Backup Manager.  Is the system running

    8) flashed device and ran:adb shell bmgr backupnow --all
    log: Bmgr    : Running backupnow for user:0
    output:
	Running incremental backup for all packages.
	Package @pm@ with result: Success
	....
	Backup finished with result: Success

Change-Id: Icfebe26f36276ea687d15c9f9c361c409313ae9d
parent 2252fcc4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment