Merge "Don't include the data dir in zygote library paths." into rvc-dev am: aa9b7407da am: 9893288b79 am: bcfd0170f1
Change-Id: I6d02a53b5d03991c3d41da8c300d7c74c194e51c
This commit is contained in:
@@ -801,6 +801,11 @@ public final class LoadedApk {
|
|||||||
makePaths(mActivityThread, isBundledApp, mApplicationInfo, zipPaths, libPaths);
|
makePaths(mActivityThread, isBundledApp, mApplicationInfo, zipPaths, libPaths);
|
||||||
|
|
||||||
String libraryPermittedPath = mDataDir;
|
String libraryPermittedPath = mDataDir;
|
||||||
|
if (mActivityThread == null) {
|
||||||
|
// In a zygote context where mActivityThread is null we can't access the app data dir
|
||||||
|
// and including this in libraryPermittedPath would cause SELinux denials.
|
||||||
|
libraryPermittedPath = "";
|
||||||
|
}
|
||||||
|
|
||||||
if (isBundledApp) {
|
if (isBundledApp) {
|
||||||
// For bundled apps, add the base directory of the app (e.g.,
|
// For bundled apps, add the base directory of the app (e.g.,
|
||||||
|
|||||||
Reference in New Issue
Block a user