简体   繁体   English

当我收到应用程序 OTA 更新时,我的应用程序会被终止吗?

[英]Will my app get killed when i receive app OTA updates?

I'm receiving latest app update (for App-X) during which I'm noticing that if the App-X is currently running it's getting killed.我正在接收最新的应用程序更新(针对 App-X),在此期间我注意到如果 App-X 当前正在运行,它就会被杀死。

Is this an expected scenario?这是预期的情况吗? Why android kills the running process?为什么android会杀死正在运行的进程? What is the technical reasoning behind this?这背后的技术原因是什么?

If someone had some idea please help me to know about it.如果有人有一些想法,请帮助我了解它。

Is this an expected scenario?这是预期的情况吗?

Yes.是的。

Why android kills the running process?为什么android会杀死正在运行的进程? What is the technical reasoning behind this?这背后的技术原因是什么?

If Android did not terminate the process, then the running code (from the old app) might be expecting different things than what is contained in the new app, such as:如果 Android 没有终止进程,则运行代码(来自旧应用程序)可能会期待与新应用程序中包含的内容不同的内容,例如:

  • Different resources不同的资源
  • Different assets不同的资产
  • Different manifest entries (eg, permissions)不同的清单条目(例如,权限)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM