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

Commit 8f725dba authored by Satoshi Niwa's avatar Satoshi Niwa
Browse files

Fix UserBackupManagerServiceTest failure on HSUM devices.

The UserBackupManagerService was hardcoded to operate on user 0, which caused testSetFrameworkSchedulingEnabled_enablesAndSchedulesBackups to fail on headless system user mode (HSUM) devices where the current user is not 0.

This change updates the service to be initialized with the correct user ID.
The corresponding test is also updated to dynamically fetch the current user at runtime, making the test robust for multi-user environments.

Flag: TEST_ONLY
Bug: 439491661
Test: atest UserBackupManagerServiceTest

Change-Id: I01c61f6fcc7b15e82bbebc18297b8f62ca7eee94
parent 8b4519ed
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