Skip to content
Commit 70afec38 authored by Ruslan Tkhakokhov's avatar Ruslan Tkhakokhov
Browse files

Fix BackupManager#getUserForSerialNumber

Test: atest ProfileSerialNumberHostSideTest

Currently BackupManager#getUserForSerialNumber goes through users
associated with the calling user (inluding the calling user itself) and
looks for the given serial number. However, to get the list of users it calls
UserManager#getUserProfiles that operates for the users associated with
the calling process (in our case - system user since the call is made
from BMS). While this works for our current use case (only support
backup for system user and their work profile, meaning
BackupManager#getUserForSerialNumber will only be called for system
user), it won't work for a full multi-user case.

Change-Id: Ia42a69a1216ed9a5dae596e44336290d2718de7a
parent d1a556a5
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