OSDN Git Service

Don't manage dumpstate lifecycle from system server
authorNandana Dutt <nandana@google.com>
Wed, 13 Mar 2019 15:17:01 +0000 (15:17 +0000)
committerNandana Dutt <nandana@google.com>
Wed, 13 Mar 2019 15:19:55 +0000 (15:19 +0000)
Dumpstate now exits correctly when it's finished. So we don't have to
manage its lifecycle from system server.

BUG: 123571915
Test: manually verified dumpstate service dies
Change-Id: I8d0e12cb607cda74b5cc36e26306ea106da67ba3

core/java/android/os/BugreportManager.java

index 684369a..89b6577 100644 (file)
@@ -208,8 +208,6 @@ public class BugreportManager {
                 });
             } finally {
                 Binder.restoreCallingIdentity(identity);
-                // The bugreport has finished. Let's shutdown the service to minimize its footprint.
-                cancelBugreport();
             }
         }