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

Commit a5f21141 authored by Satoshi Niwa's avatar Satoshi Niwa
Browse files

Fix bmgr whitelist on HSUM devices

The bmgr whitelist command is broken on headless system user mode (HSUM) devices because it incorrectly performs user-specific checks for a device-scoped property.

This change fixes the following issues:
1. The bmgr tool checks if the backup service is active for the current user before fetching the whitelist.
   On HSUM devices, this check fails for the default user (user 0), causing the command to exit prematurely.
2. The BackupManagerService.getTransportWhitelist() method also contains a user-specific check, which fails for the headless system user and returns null.

Flag: EXEMPT bug fix
Bug: 442476405
Test: gts-tradefed run commandAndExit gts -m GtsOsTestCases -t com.google.android.os.gts.SysConfigTest#testBackupTransportWhitelist
Change-Id: I5f257d7f375ce89fa5dab44012f54aae940a74da
parent f8e8d178
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