Merge "Simplify permitted-path construction" into nyc-dev
am: 6e2b3d158a
* commit '6e2b3d158a333b8754854314af0fc865a1f8bc5e':
Simplify permitted-path construction
Change-Id: I70ac68b50cd43cd5d725d9bb5df48b92f5edd624
This commit is contained in:
@@ -466,11 +466,7 @@ public final class LoadedApk {
|
||||
final boolean isBundledApp = mApplicationInfo.isSystemApp()
|
||||
&& !mApplicationInfo.isUpdatedSystemApp();
|
||||
|
||||
// Apps are allowed to open any native library under /data
|
||||
// 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";
|
||||
String libraryPermittedPath = mDataDir;
|
||||
if (isBundledApp) {
|
||||
// This is necessary to grant bundled apps access to
|
||||
// libraries located in subdirectories of /system/lib
|
||||
|
||||
Reference in New Issue
Block a user