Hi all,

*Disclaimer: I'm new to the group and primarily looking for answers about 
something I don't fully understand. Please let me know if I should be 
posting this elsewhere.*

Essentially i'm looking to get answers to a stack overflow question 
<https://stackoverflow.com/questions/52553558/how-can-i-stop-chrome-background-updates-killing-my-app>.
 
I have updated and improved the question and even offered a bounty, but no 
one seems to be able to answer it. In addition I can't find any information 
in standard documentation about the ActivityManager log regarding 
`installPackageLI` and it's usage.

Some background about the project; it is a live live service game with many 
daily active users. The game is written in Unity and build across a few 
platforns. In QA we sometimes get crash reports that look like the one in 
the SO question, which look like this;

3034  3049 I ActivityManager: Force stopping com.android.chrome appid=10115 
user=-1: installPackageLI
3034  3049 I ActivityManager: Killing 
963:com.google.android.googlequicksearchbox:search/u0a80 (adj 500): stop 
com.android.chrome,installPackageLI
3034  3049 W ActivityManager: Scheduling restart of crashed service 
com.google.android.googlequicksearchbox/com.google.android.apps.gsa.shared.util.keepalive.StandaloneKeepAlive$KeepAliveService
 
in 1000ms
3034  3049 W ActivityManager: Scheduling restart of crashed service 
com.google.android.googlequicksearchbox/com.google.android.apps.gsa.nowoverlayservice.DrawerOverlayService
 
in 10999ms
3034  3049 I ActivityManager: Killing 1709:com.my.app/u0a292 (adj 0): stop 
com.android.chrome,installPackageLI

Chrome is updated, which kills out app. That sort of make sense as we have 
a dependency on it for WebViews used in ad providers. What I don't 
understand is why it is allow to kill a foreground app, and it seems like 
that would be something we can mitagate. I'm wondering if someone could 
explain this process to me (what actually decides to update the Chrome 
package like this in the first place) and whether we are able to avoid it 
in anyway. It seems that others have had this problem 
<https://seap.samsung.com/forum-topic/activitymanager-kills-our-pro-kiosk-mode-app-chrome-update>
 
too, but I cannot find any advise on addressing it.

Anything that would increase my knowledge of what is happening here would 
be great, even if it doesn't directly answer the question of how to avoid 
this, so please don't be afraid to answe as i'm at a loss otherwise.

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/49303fb7-cf9d-4ec7-9d45-1ca71bbea5fe%40googlegroups.com.

Reply via email to