summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Varun Shah <varunshah@google.com> 2023-12-11 22:14:21 +0000
committer Varun Shah <varunshah@google.com> 2023-12-12 21:57:59 +0000
commit3bb71c1cc651b1fb2622187f0f57eb18a8ca60f7 (patch)
treed4eaf635b92fda6573cf412580c1f4246829123f /libs/androidfw/FileStream.cpp
parentf045351b1e2693f1c2351d5572537e545027375d (diff)
Update exception thrown for consistency.
The PackageManagerInternal APIs for checking if the app is in a stopped state or is quarantined throw an IllegalArgumentException when the package is not found - however, this was not documented anywhere. Instead, to be consistent with other PackageManager APIs, start throwing a NameNotFoundException from the internal APIs and ensure the new exception is caught from the public APIs and rethrown as IllegalArgumentException. This change updates the documentation as well, fixes a typo in a method name, and also updates the logging level for when these exceptions occur. Bug: 314863695 Test: builds/flashes/boots (mostly documentation changes) Change-Id: Ia7b30ce4e16b5e40bd767cd15dbf2cd2728567dd
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions