How to create custom Android WebView that can be set at android system level?





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















I have some idea on creating Android WebView with custom behavior:
https://www.chromium.org/developers/androidwebview/android-webview-beta



How can i create my WebView that can be set as default at system level by users? It seems that this is about replacing of system WebView (and i need to add my WebView to options list, not replace the system one). How can it be distributed and updated (does it require some special signing) without rooting?




There is a one time device set up to remove the existing webview. This is needed because it is not possible to install over the existing apk due to mismatched signing key.




Will it work if i just change the package and install it as regular apk? Can such apk be distributed in Google Play?



PS. I have experience in building of Chromium and creating Chromium fork.










share|improve this question




















  • 1





    It's gonna be tricky if not impossible - replacing WebView provider is an internal API. If you wanna dive into that, You might need to spend some time sifting through AOSP source code. You might want to start at package for picking WebView implementation in developer settings.

    – Pawel
    Nov 23 '18 at 18:32











  • >replacing WebView provider is an internal API. Sorry, i did not catch it - want to let the user decide what actual WebView implementation is used. As far as i can see it's available on production Galaxy s7 with Android 8 (after developer options are enabled).

    – 4ntoine
    Nov 23 '18 at 18:46













  • Do you mean selection in developer settings? Because I'm not aware of any app that can be added to that list.

    – Pawel
    Nov 23 '18 at 18:49











  • Yes, i'm about that. But thanks for the link - it can help to understand how the suitable packages are found: android.googlesource.com/platform/packages/apps/Settings/+/…

    – 4ntoine
    Nov 23 '18 at 18:52













  • It looks here is how they are listed: android.googlesource.com/platform/frameworks/base/+/master/…

    – 4ntoine
    Nov 23 '18 at 19:06


















0















I have some idea on creating Android WebView with custom behavior:
https://www.chromium.org/developers/androidwebview/android-webview-beta



How can i create my WebView that can be set as default at system level by users? It seems that this is about replacing of system WebView (and i need to add my WebView to options list, not replace the system one). How can it be distributed and updated (does it require some special signing) without rooting?




There is a one time device set up to remove the existing webview. This is needed because it is not possible to install over the existing apk due to mismatched signing key.




Will it work if i just change the package and install it as regular apk? Can such apk be distributed in Google Play?



PS. I have experience in building of Chromium and creating Chromium fork.










share|improve this question




















  • 1





    It's gonna be tricky if not impossible - replacing WebView provider is an internal API. If you wanna dive into that, You might need to spend some time sifting through AOSP source code. You might want to start at package for picking WebView implementation in developer settings.

    – Pawel
    Nov 23 '18 at 18:32











  • >replacing WebView provider is an internal API. Sorry, i did not catch it - want to let the user decide what actual WebView implementation is used. As far as i can see it's available on production Galaxy s7 with Android 8 (after developer options are enabled).

    – 4ntoine
    Nov 23 '18 at 18:46













  • Do you mean selection in developer settings? Because I'm not aware of any app that can be added to that list.

    – Pawel
    Nov 23 '18 at 18:49











  • Yes, i'm about that. But thanks for the link - it can help to understand how the suitable packages are found: android.googlesource.com/platform/packages/apps/Settings/+/…

    – 4ntoine
    Nov 23 '18 at 18:52













  • It looks here is how they are listed: android.googlesource.com/platform/frameworks/base/+/master/…

    – 4ntoine
    Nov 23 '18 at 19:06














0












0








0








I have some idea on creating Android WebView with custom behavior:
https://www.chromium.org/developers/androidwebview/android-webview-beta



How can i create my WebView that can be set as default at system level by users? It seems that this is about replacing of system WebView (and i need to add my WebView to options list, not replace the system one). How can it be distributed and updated (does it require some special signing) without rooting?




There is a one time device set up to remove the existing webview. This is needed because it is not possible to install over the existing apk due to mismatched signing key.




Will it work if i just change the package and install it as regular apk? Can such apk be distributed in Google Play?



PS. I have experience in building of Chromium and creating Chromium fork.










share|improve this question
















I have some idea on creating Android WebView with custom behavior:
https://www.chromium.org/developers/androidwebview/android-webview-beta



How can i create my WebView that can be set as default at system level by users? It seems that this is about replacing of system WebView (and i need to add my WebView to options list, not replace the system one). How can it be distributed and updated (does it require some special signing) without rooting?




There is a one time device set up to remove the existing webview. This is needed because it is not possible to install over the existing apk due to mismatched signing key.




Will it work if i just change the package and install it as regular apk? Can such apk be distributed in Google Play?



PS. I have experience in building of Chromium and creating Chromium fork.







android webview chromium webviewchromium






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 23 '18 at 18:19







4ntoine

















asked Nov 23 '18 at 18:02









4ntoine4ntoine

7,364948132




7,364948132








  • 1





    It's gonna be tricky if not impossible - replacing WebView provider is an internal API. If you wanna dive into that, You might need to spend some time sifting through AOSP source code. You might want to start at package for picking WebView implementation in developer settings.

    – Pawel
    Nov 23 '18 at 18:32











  • >replacing WebView provider is an internal API. Sorry, i did not catch it - want to let the user decide what actual WebView implementation is used. As far as i can see it's available on production Galaxy s7 with Android 8 (after developer options are enabled).

    – 4ntoine
    Nov 23 '18 at 18:46













  • Do you mean selection in developer settings? Because I'm not aware of any app that can be added to that list.

    – Pawel
    Nov 23 '18 at 18:49











  • Yes, i'm about that. But thanks for the link - it can help to understand how the suitable packages are found: android.googlesource.com/platform/packages/apps/Settings/+/…

    – 4ntoine
    Nov 23 '18 at 18:52













  • It looks here is how they are listed: android.googlesource.com/platform/frameworks/base/+/master/…

    – 4ntoine
    Nov 23 '18 at 19:06














  • 1





    It's gonna be tricky if not impossible - replacing WebView provider is an internal API. If you wanna dive into that, You might need to spend some time sifting through AOSP source code. You might want to start at package for picking WebView implementation in developer settings.

    – Pawel
    Nov 23 '18 at 18:32











  • >replacing WebView provider is an internal API. Sorry, i did not catch it - want to let the user decide what actual WebView implementation is used. As far as i can see it's available on production Galaxy s7 with Android 8 (after developer options are enabled).

    – 4ntoine
    Nov 23 '18 at 18:46













  • Do you mean selection in developer settings? Because I'm not aware of any app that can be added to that list.

    – Pawel
    Nov 23 '18 at 18:49











  • Yes, i'm about that. But thanks for the link - it can help to understand how the suitable packages are found: android.googlesource.com/platform/packages/apps/Settings/+/…

    – 4ntoine
    Nov 23 '18 at 18:52













  • It looks here is how they are listed: android.googlesource.com/platform/frameworks/base/+/master/…

    – 4ntoine
    Nov 23 '18 at 19:06








1




1





It's gonna be tricky if not impossible - replacing WebView provider is an internal API. If you wanna dive into that, You might need to spend some time sifting through AOSP source code. You might want to start at package for picking WebView implementation in developer settings.

– Pawel
Nov 23 '18 at 18:32





It's gonna be tricky if not impossible - replacing WebView provider is an internal API. If you wanna dive into that, You might need to spend some time sifting through AOSP source code. You might want to start at package for picking WebView implementation in developer settings.

– Pawel
Nov 23 '18 at 18:32













>replacing WebView provider is an internal API. Sorry, i did not catch it - want to let the user decide what actual WebView implementation is used. As far as i can see it's available on production Galaxy s7 with Android 8 (after developer options are enabled).

– 4ntoine
Nov 23 '18 at 18:46







>replacing WebView provider is an internal API. Sorry, i did not catch it - want to let the user decide what actual WebView implementation is used. As far as i can see it's available on production Galaxy s7 with Android 8 (after developer options are enabled).

– 4ntoine
Nov 23 '18 at 18:46















Do you mean selection in developer settings? Because I'm not aware of any app that can be added to that list.

– Pawel
Nov 23 '18 at 18:49





Do you mean selection in developer settings? Because I'm not aware of any app that can be added to that list.

– Pawel
Nov 23 '18 at 18:49













Yes, i'm about that. But thanks for the link - it can help to understand how the suitable packages are found: android.googlesource.com/platform/packages/apps/Settings/+/…

– 4ntoine
Nov 23 '18 at 18:52







Yes, i'm about that. But thanks for the link - it can help to understand how the suitable packages are found: android.googlesource.com/platform/packages/apps/Settings/+/…

– 4ntoine
Nov 23 '18 at 18:52















It looks here is how they are listed: android.googlesource.com/platform/frameworks/base/+/master/…

– 4ntoine
Nov 23 '18 at 19:06





It looks here is how they are listed: android.googlesource.com/platform/frameworks/base/+/master/…

– 4ntoine
Nov 23 '18 at 19:06












0






active

oldest

votes












Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53451202%2fhow-to-create-custom-android-webview-that-can-be-set-at-android-system-level%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53451202%2fhow-to-create-custom-android-webview-that-can-be-set-at-android-system-level%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

If I really need a card on my start hand, how many mulligans make sense? [duplicate]

Alcedinidae

Can an atomic nucleus contain both particles and antiparticles? [duplicate]