Prevent apps from impersonating others in CarrierConfigLoader#dump.
If we detect such impersonation, we throw a SecurityException. However,
we always allow the shell's UID to pass any --requesting-package
argument because that's where bug reports are generated, and apps can
request bug reports using BugreportManager, so the system knows the true
caller's information.
Test: manual with test app holding DUMP + executing shell commands
Test: take bug report with BugreportManager, see caller dumped from CCL
Bug: 146521742
Change-Id: Ib998bdec988cb4ff369a766fb3867570d39c7ccc
(cherry picked from commit 54e11bee2f193b5599c2242ad071198f467de7cb)
1 file changed