Skip to content

Commit 2eebf5c

Browse files
jeymichaelJean-Baptiste Queru
authored andcommitted
'uses-library' was not working for persistent applications.
Fix by generating the applicationInfo, when asked for info. Change-Id: I44686d5a306562c6649148dce8f709e682adcdf4
1 parent c6f8ea4 commit 2eebf5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/java/com/android/server/PackageManagerService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1861,7 +1861,7 @@ public List<ApplicationInfo> getPersistentApplications(int flags) {
18611861
&& (p.applicationInfo.flags&ApplicationInfo.FLAG_PERSISTENT) != 0
18621862
&& (!mSafeMode || (p.applicationInfo.flags
18631863
&ApplicationInfo.FLAG_SYSTEM) != 0)) {
1864-
finalList.add(p.applicationInfo);
1864+
finalList.add(PackageParser.generateApplicationInfo(p, flags));
18651865
}
18661866
}
18671867
}

0 commit comments

Comments
 (0)