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

Skip to content
Commit b58049a0 authored by Will Burr's avatar Will Burr
Browse files

Store SDK sandbox exit reasons under real UID and package UID

SDK sandbox processes have the same package UID, but have real UIDs
corresponding to the client app which started the sandbox. To allow SDKs
to view their own exit reasons, we need to store SDK sandbox exit
reasons under their real UID. To allow apps with the DUMP permission to
see exit reasons for all SDK sandboxes, we also store the same objects
under the package UID.

This requires additional logic to ensure the trace input is not reset if
already set.

Fixes: 241524222
Test: manual (kill sandbox process and call
getHistoricalProcessExitReasons from app w/ DUMP permission)
Test: manual (kill sandbox process and call
getHistoricalProcessExitReasons from SDK sandbox)
Test: atest SdkSandboxMetricsHostTest

Change-Id: I4279c22cbcb033b43013988c51fc441e4d2a66b7
parent 47ac0112
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