OSDN Git Service

Remove obsolete & broken handling of precompiled sys apps
authorCalin Juravle <calin@google.com>
Tue, 26 Sep 2017 01:13:38 +0000 (18:13 -0700)
committerCalin Juravle <calin@google.com>
Tue, 26 Sep 2017 19:30:56 +0000 (12:30 -0700)
commitefc022768eba2f33d3fadbda7eaa6adf1730d3fc
treec4e7a8bfa875ca5950f3b986d3bfbccbfb89ba8d
parent3933c79c51298e5c06196ec79efa54a64c4a731a
Remove obsolete & broken handling of precompiled sys apps

During the times we used verify-profile for OTAs we had to ensure that
prebuilds do not regress by verifying at runtime. For that we added a
hackish check in PMS.

Now, we no longer use verify-profile and we have no configuration which
will leave the prebuilds unverified (assume-verify does not count here).
So, we can remove this check which blocks system apps to be compiled with
speed-profile.

(Also worth mentioning that
!Environment.getReferenceProfile(pkg.packageName).exists() was broken...
most likely because of an SElinux policy update which we did not handled
:/ )

Bug: 66903791
Test: build & boot
Change-Id: I981e463d61c42ab8455d489ff86cc300632a2a90
services/core/java/com/android/server/pm/PackageManagerService.java