Skip to content

Commit ba595d5

Browse files
author
android-build-team Robot
committed
Merge cherrypicks of [14217257, 14217258, 14217339, 14217529, 14217566, 14214972, 14217508, 14216278, 14216279, 14217530, 14217281, 14215011] into rvc-qpr3-release
Change-Id: I6d9ce7c32a28ca52edd1a595c957c9926979caf5
2 parents de4179c + 301aaf6 commit ba595d5

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

services/core/java/com/android/server/pm/ApexManager.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,12 +757,15 @@ boolean uninstallApex(String apexPackagePath) {
757757
void registerApkInApex(AndroidPackage pkg) {
758758
synchronized (mLock) {
759759
for (ActiveApexInfo aai : mActiveApexInfosCache) {
760-
if (pkg.getBaseCodePath().startsWith(aai.apexDirectory.getAbsolutePath())) {
760+
if (pkg.getBaseCodePath().startsWith(
761+
aai.apexDirectory.getAbsolutePath() + File.separator)) {
761762
List<String> apks = mApksInApex.get(aai.apexModuleName);
762763
if (apks == null) {
763764
apks = Lists.newArrayList();
764765
mApksInApex.put(aai.apexModuleName, apks);
765766
}
767+
Slog.i(TAG, "Registering " + pkg.getPackageName() + " as apk-in-apex of "
768+
+ aai.apexModuleName);
766769
apks.add(pkg.getPackageName());
767770
}
768771
}

0 commit comments

Comments
 (0)