Rename Android kill switch
Test: As follows:
patch aosp/891475
patch aosp/891853
patch ag/6224352
$ adb shell
walleye:/ $ ps -A | grep traced
nobody 1135 1 52288 2200 0 0 S traced
nobody 1136 1 52288 2256 0 0 S
traced_probes
walleye:/ $ settings put global sys_traced 0
walleye:/ $ ps -A | grep traced
1|walleye:/ $
walleye:/ $ settings put global sys_traced 1
1|walleye:/ $ ps -A | grep traced
nobody 12386 1 52288 2208 0 0 S traced
nobody 12387 1 52288 2248 0 0 S
traced_probes
Bug: b/71737179
Change-Id: Ia62c6c7ac08dd73cf35a9f7aabb30e1ec56ac6d7
diff --git a/perfetto.rc b/perfetto.rc
index 40e5f75..8d07713 100644
--- a/perfetto.rc
+++ b/perfetto.rc
@@ -35,10 +35,10 @@
file /dev/kmsg w
capabilities DAC_READ_SEARCH
-on property:sys.traced.enable_override=1
+on property:persist.device_config.global_settings.sys_traced=1
setprop persist.traced.enable 1
-on property:sys.traced.enable_override=0
+on property:persist.device_config.global_settings.sys_traced=0
setprop persist.traced.enable 0
on property:debug.atrace.user_initiated=1