Automation: Enable mobile data

Issue: FP3-A11#130
Change-Id: I21001701b0b8073c7f2131668b95fcc923e44555
diff --git a/automation_setup/automation_setup.sh b/automation_setup/automation_setup.sh
index 744d4ef..4b80fae 100644
--- a/automation_setup/automation_setup.sh
+++ b/automation_setup/automation_setup.sh
@@ -32,4 +32,13 @@
 # Remove trigger so we don't run again
 rm -v /data/userdata_automation/trigger
 
+echo >&2 "+++ AUTOMATION: Waiting for late boot trigger. +++"
+while [ "$(getprop sys.boot_completed)" != "1" ]; do
+    # Full boot can take a while, especially after factory reset.
+    sleep 2
+done
+
+# Enable mobile data. Requires service `phone` to be running.
+svc data enable
+
 echo >&2 "+++ TRIGGERING AUTOMATION SETUP FOR ATS DONE +++"