Makes static shared libs visible to installer

Prior to this change, shared libraries could be installed by, but were
not visible to installers. This made management of them impossible.

Change-Id: Id6e45a2ad8d5b1dbb8b5e0967a035ec53268904d
Fixes: 66673959
Test: manual - installed static lib and verified installer could view it
This commit is contained in:
Patrick Baumann
2018-04-20 09:19:30 -07:00
parent 79ecaac7f3
commit 1df26b9b26

View File

@@ -4223,6 +4223,11 @@ public class PackageManagerService extends IPackageManager.Stub
|| appId == Process.ROOT_UID) {
return false;
}
// Installer gets to see all static libs.
if (PackageManager.PERMISSION_GRANTED
== checkUidPermission(Manifest.permission.INSTALL_PACKAGES, uid)) {
return false;
}
}
// No package means no static lib as it is always on internal storage