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

Commit 0a72ba7d authored by Alex Light's avatar Alex Light
Browse files

Make fake libart for misbehaving apps be loaded.

Bug: 27775991
Change-Id: Ie4eba211e876ec0643ce6ecf6a110f3cb5e0f57e
(cherry picked from commit 20ed24fc)
parent aa733e0b
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -362,6 +362,11 @@ public final class LoadedApk {

            // Add path to libraries in apk for current abi
            if (mApplicationInfo.primaryCpuAbi != null) {
                // Add fake libs into the library search path if we target prior to N.
                if (mApplicationInfo.targetSdkVersion <= 23) {
                    libPaths.add("/system/fake-libs" +
                        (VMRuntime.is64BitAbi(mApplicationInfo.primaryCpuAbi) ? "64" : ""));
                }
                for (String apk : apkPaths) {
                  libPaths.add(apk + "!/lib/" + mApplicationInfo.primaryCpuAbi);
                }