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_nostats.rc b/update_engine_nostats.rc
new file mode 100644
index 0000000..512f0eb
--- /dev/null
+++ b/update_engine_nostats.rc
@@ -0,0 +1,11 @@
+# LINT.IfChange
+service update_engine /system/bin/update_engine_nostats --logtostderr --logtofile --foreground
+ class late_start
+ user root
+ group root system wakelock inet cache media_rw
+ task_profiles OtaProfiles
+ disabled
+
+on property:ro.boot.slot_suffix=*
+ enable update_engine
+# LINT.ThenChange(update_engine.rc)