| commit | 44a4529285f514c7cdbe0777004e853503399c35 | [log] [tgz] |
|---|---|---|
| author | Jackal Guo <jackalguo@google.com> | Thu Jun 10 15:33:59 2021 +0800 |
| committer | Jackal Guo <jackalguo@google.com> | Thu Jun 10 17:13:56 2021 +0800 |
| tree | e9465c9a9368bd00d353e1b4b1c8c63cdee1207f | |
| parent | bbece8611523b02033052ad1345a9c909a83661a [diff] |
Enforce the permission and the owner rights earlier
Move the check to the early section of the method to secure the
validity.
Bug: 188219307
Test: atest PackageManagerServiceHibernationTests
Test: atest -p services/core/java/com/android/server/am
Test: atest -p services/core/java/com/android/server/pm
Test: manually using the PoC in the buganizer to ensure the symptom
no longer exists.
Change-Id: I49c456da65cb2befbf5c435e5febcdd9434be684