commit | 7355b750c4f45ca9cc16e4d9730c12927ab6235b | [log] [tgz] |
---|---|---|
author | Tony Liu <liutony@google.com> | Wed Sep 01 04:59:36 2021 +0000 |
committer | Tony Liu <liutony@google.com> | Wed Sep 01 05:05:35 2021 +0000 |
tree | af607ddfc136fe05b540ca16d5c3156025a691c3 | |
parent | 18a62c26a9a67b47a08d38d411c15fe7848e67e9 [diff] |
Limit the number of times app_profiler.py tries to kill an app process. Certain apps are unable to be killed long-term because they provide a service which Android binds to. The service gets automatically restarted by Android if the process dies. This change prevents app_profiler.py from getting stuck in an infinite loop in above scenario. Bug: 198371533 Change-Id: I21415f3d29085fa2ab3c14caead0835b0c74edb2