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

Fix all runtime permissions being considered changing protection from

non-runtime on first boot.

1. Don't check against a newly created permission object, as it will
always have signature protection and be considered non-runtime.

2. "Placeholder" permissions of TYPE_CONFIG shouldn't count as an
existing permission, as they are only used for assigning GIDs.

Bug: 183304624
Test: manual
Test: atest PermissionEscalationTest (from ag/12980961)
Change-Id: I39055a914a8575c754a3a4def2b2a31071605986
parent a95de94f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment