Do not require root for heap profiling script.
Change-Id: I4cbe32cb2f333cb97403f230bfa3682a5ca0d961
diff --git a/tools/heap_profile b/tools/heap_profile
index 334b598..cf006d7 100755
--- a/tools/heap_profile
+++ b/tools/heap_profile
@@ -181,8 +181,7 @@
signal.signal(signal.SIGINT, old_handler)
if IS_INTERRUPTED:
# Not check_call because it could have existed in the meantime.
- subprocess.call(['adb', 'shell', 'su', 'root', 'kill', '-INT',
- perfetto_pid])
+ subprocess.call(['adb', 'shell', 'kill', '-INT', perfetto_pid])
# Wait for perfetto cmd to return.
while exists: