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

Commit 7482a8d0 authored by Marcin Kosiba's avatar Marcin Kosiba
Browse files

Preload the WebView package into all applications.

This is a temporary workaround to allow the WebView to move into
an APK.

BUG: 11505352
Change-Id: I0c446d44c3f94f70bced7f471ae6fb74f65d5ff9
parent 1cd5add1
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -723,6 +723,12 @@ public class PackageParser {
        pkg.baseCodePath = apkPath;
        pkg.mSignatures = null;

        // TODO: Remove this when the WebView can load resources dynamically. b/11505352
        if (pkg.usesOptionalLibraries == null) {
            pkg.usesOptionalLibraries = new ArrayList<String>();
        }
        pkg.usesOptionalLibraries.add("com.android.webview");

        return pkg;
    }