Webview proccess is killed by ActivityManagerService on Android O?

2,224 views
Skip to first unread message

Quan Gan

unread,
Dec 19, 2017, 3:42:29 AM12/19/17
to android-webview-dev
My application use webview attach with Application Context.

when other service called my application using AIDL, it would use webview to load url in background.

on Android O, the webview proccess is isolated, so 

I want to check whether the ActivityManagerService killed the proccess because it's related with an background process?


1251 2107 I ActivityManager: Killing 3935:com.google.android.webview:sandboxed_process0/u0a64i21 (adj 0): isolated not needed


it will be improved in next webview version?

is it possible that my application want to load the webview in my own process?


Toby Sargeant

unread,
Dec 19, 2017, 4:17:59 AM12/19/17
to Quan Gan, android-webview-dev
On Tue, Dec 19, 2017 at 8:42 AM, Quan Gan <netwal...@gmail.com> wrote:
My application use webview attach with Application Context.

I take it you're aware of all the things you can't do with a WebView if you initialize it with an Application context?
 
when other service called my application using AIDL, it would use webview to load url in background.

Is this actually causing an issue with your application, or are you simply concerned about the log message?
 
it will be improved in next webview version?

No.

is it possible that my application want to load the webview in my own process?

No. Multiprocess is a security benefit, and we aren't going to give developers an API to turn it off. 

Torne (Richard Coles)

unread,
Dec 19, 2017, 10:24:22 AM12/19/17
to Toby Sargeant, Quan Gan, android-webview-dev
The message means that the separate webview process wasn't needed any more - either because you destroyed all the WebViews in your app, or because your app itself exited. The message is normal - the process isn't kept around unless it's currently being used.

--
You received this message because you are subscribed to the Google Groups "android-webview-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-webview...@chromium.org.
To post to this group, send email to android-w...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/android-webview-dev/CADFGwthv4XpWbx0NXqs5%3DWPoCFiHjaU%3DDy-8dgaNK-OZtxyTYQ%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages