Skip to content
Commit d8ba6857 authored by Hai Zhang's avatar Hai Zhang
Browse files

Skip generating missing permission state for unknown permissions.

Fixes the NullPointerException. Unknown permissions was skipped in
restorePermissionState() when handling changing regarding platform
permissions, so it's safe to skip it when generating missing
(platform) permission state as well.

Test: Flash a recent build without this fix
Test: Install an app which uses an unknown permission
Test: Manually remove app entry in runtime-permissions.xml with root
Test: Reboot device and confirm system server crash and stacktrace
Test: Flash a build with this fix, without clearing data
Test: Confirm system boots, log shows missing permission state was
Test: generated for the app and unknown permission was skipped
Bug: 158860316
Change-Id: Idfc9b5bf6c69772d41ccf781b84a4d101ed1277d
parent 9ac716fc
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