Loading core/java/android/app/LoadedApk.java +7 −1 Original line number Original line Diff line number Diff line Loading @@ -736,7 +736,13 @@ public final class LoadedApk { } } if (!libPaths.isEmpty() && SystemProperties.getBoolean(PROPERTY_NAME_APPEND_NATIVE, true)) { if (!libPaths.isEmpty() && SystemProperties.getBoolean(PROPERTY_NAME_APPEND_NATIVE, true)) { // Temporarily disable logging of disk reads on the Looper thread as this is necessary StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskReads(); try { ApplicationLoaders.getDefault().addNative(mClassLoader, libPaths); ApplicationLoaders.getDefault().addNative(mClassLoader, libPaths); } finally { StrictMode.setThreadPolicy(oldPolicy); } } } if (addedPaths != null && addedPaths.size() > 0) { if (addedPaths != null && addedPaths.size() > 0) { Loading Loading
core/java/android/app/LoadedApk.java +7 −1 Original line number Original line Diff line number Diff line Loading @@ -736,7 +736,13 @@ public final class LoadedApk { } } if (!libPaths.isEmpty() && SystemProperties.getBoolean(PROPERTY_NAME_APPEND_NATIVE, true)) { if (!libPaths.isEmpty() && SystemProperties.getBoolean(PROPERTY_NAME_APPEND_NATIVE, true)) { // Temporarily disable logging of disk reads on the Looper thread as this is necessary StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskReads(); try { ApplicationLoaders.getDefault().addNative(mClassLoader, libPaths); ApplicationLoaders.getDefault().addNative(mClassLoader, libPaths); } finally { StrictMode.setThreadPolicy(oldPolicy); } } } if (addedPaths != null && addedPaths.size() > 0) { if (addedPaths != null && addedPaths.size() > 0) { Loading