Avoid using UserHandle.isSameApp() in package check
SDK sandbox processes created from the sandbox package do not have the uid of the package - they use a separate uid range instead. UserHandle.isSameApp() does not take this account when run for the sandbox. Instead, use the API PackageManagerService.isSameApp() that takes into account the differences between sandbox package uid and sandbox process uid. Bug: 340172289 Test: atest IntentTest#testCreateChooser -- --enable-optional-parameterization --enable-parameterized-modules --module-parameter run_on_sdk_sandbox Change-Id: Iedc34ccf8bb397059268eef373bb4eace7f7d99c
Loading
Please register or sign in to comment