profiling: Set startup system properties.
Add --cleanup-after-crash to clean up leftover system properties.
Test: start profiling and check properties
check --cleanup-after-crash
Change-Id: Ife9fe45e6b4d700f9c656836f94549eeb942485d
diff --git a/heapprofd.rc b/heapprofd.rc
index eb5379a..5e055b2 100644
--- a/heapprofd.rc
+++ b/heapprofd.rc
@@ -18,4 +18,5 @@
user nobody
group nobody readproc
writepid /dev/cpuset/system-background/tasks
+ onrestart exec_background - nobody shell -- /system/bin/heapprofd --cleanup-after-crash
capabilities KILL