Don't assume that the primary user is user 0

This way tests can also run on devices with split user enabled

Bug: 25906481
Change-Id: Ica0c99eccf90c032bc65728720b93f03313706ad
18 files changed