Add a version of update engine that does not send stats
update_engine_nostats has the same functionality as the update_engine
but without interaction with statsd libraires and without build
dependency on it.
Test: Apply an upadte to an aosp cf vm - note that merge stats are
reported in logcat.
Replace update engine with the nostats service in the product
packages and apply an update - note that stats reporting is
skipped.
Bug: 328227527
Change-Id: Iba87119838ecb9bdd8c94f8a913ec0d6e86a26d1
diff --git a/update_engine.rc b/update_engine.rc
index bc6447b..45f05af 100644
--- a/update_engine.rc
+++ b/update_engine.rc
@@ -1,3 +1,4 @@
+# LINT.IfChange
service update_engine /system/bin/update_engine --logtostderr --logtofile --foreground
class late_start
user root
@@ -7,3 +8,4 @@
on property:ro.boot.slot_suffix=*
enable update_engine
+# LINT.ThenChange(update_engine_nostats.rc)