Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9cf3f636 authored by Satoshi Niwa's avatar Satoshi Niwa
Browse files

Improve error reporting and command handling of `bu` command.

Redirects error messages to stderr in addition to Log.e.
This makes errors visible when running bu from adb shell,
which could previously fail silently. For example, an
unknown backup flag error is now printed to the console.

Additionally, moves the command validation to an earlier phase.
This ensures that running bu without a valid command
correctly prints the usage instructions, which was previously
prevented by userId check.

Test: `adb shell bu` shows usage.
Test: atest BackupEligibilityHostSideTest
Bug: 420527847
Flag: TEST_ONLY
Change-Id: Idb948ca2699a8feb0296d346923db8ea99e92727
parent d0dba9b0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment