The method UserHandle.getAppId() strips off the part of the Uid that is related to the current user (which may not be zero for multiuser). Bug: 236100828 Test: Unit test Merged-In: Ie27c8570ba2551b6d99d9848a0b2469fe76ac3d1 Change-Id: I0c1c1a198bb49e944c2e71fd9e23fc6f528aab9a