Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b5fd21d5 authored by Dimitry Ivanov's avatar Dimitry Ivanov Committed by android-build-merger
Browse files

Merge "Simplify permitted-path construction" into nyc-dev am: 6e2b3d15

am: 434f5392

* commit '434f5392':
  Simplify permitted-path construction

Change-Id: I505f17b5d808e6655fb91d338d45d17ee3e7262c
parents 37504ee1 434f5392
Loading
Loading
Loading
Loading
+1 −5
Original line number Original line Diff line number Diff line
@@ -466,11 +466,7 @@ public final class LoadedApk {
        final boolean isBundledApp = mApplicationInfo.isSystemApp()
        final boolean isBundledApp = mApplicationInfo.isSystemApp()
                && !mApplicationInfo.isUpdatedSystemApp();
                && !mApplicationInfo.isUpdatedSystemApp();


        // Apps are allowed to open any native library under /data
        String libraryPermittedPath = mDataDir;
        // TODO (dimitry):This is something which could be limited to apps own directory
        // later on but currently there are number of apps relying on this.
        // (see http://b/27588281 and http://b/26954419 for examples)
        String libraryPermittedPath = "/data";
        if (isBundledApp) {
        if (isBundledApp) {
            // This is necessary to grant bundled apps access to
            // This is necessary to grant bundled apps access to
            // libraries located in subdirectories of /system/lib
            // libraries located in subdirectories of /system/lib