Merge "Mark product apks as unbundled"
am: 856ef55672
Change-Id: I9d4d7cf2ae8e47c8aaed82d0d47861cd7d787067
This commit is contained in:
@@ -760,6 +760,16 @@ public final class LoadedApk {
|
||||
isBundledApp = false;
|
||||
}
|
||||
|
||||
// Similar to vendor apks, we should add /product/lib for apks from product partition
|
||||
// and not having /product/lib in the default search path
|
||||
final boolean treatProductApkAsUnbundled = !defaultSearchPaths.contains("/product/lib");
|
||||
if (mApplicationInfo.getCodePath() != null
|
||||
&& mApplicationInfo.isProduct() && treatProductApkAsUnbundled
|
||||
// TODO(b/128557860): Change target SDK version when version code R is available.
|
||||
&& getTargetSdkVersion() == Build.VERSION_CODES.CUR_DEVELOPMENT) {
|
||||
isBundledApp = false;
|
||||
}
|
||||
|
||||
makePaths(mActivityThread, isBundledApp, mApplicationInfo, zipPaths, libPaths);
|
||||
|
||||
String libraryPermittedPath = mDataDir;
|
||||
|
||||
Reference in New Issue
Block a user