Turn off network while running rollback tests

A workaround to reduce test failures due to network crashes.

Bug: 142035706
Test: atest CtsRollbackManagerHostTestCases
Change-Id: Iaf479aa9d0ff359a0ddf36e784e08c027fce1b40
diff --git a/hostsidetests/rollback/AndroidTest.xml b/hostsidetests/rollback/AndroidTest.xml
index 23e362f..727dce0 100644
--- a/hostsidetests/rollback/AndroidTest.xml
+++ b/hostsidetests/rollback/AndroidTest.xml
@@ -23,6 +23,12 @@
         <option name="test-file-name" value="CtsRollbackManagerHostTestHelperApp.apk" />
         <option name="test-file-name" value="CtsRollbackManagerHostTestHelperApp2.apk" />
     </target_preparer>
+    <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer">
+        <option name="run-command" value="svc wifi disable" />
+        <option name="run-command" value="svc data disable" />
+        <option name="teardown-command" value="svc wifi enable" />
+        <option name="teardown-command" value="svc data enable" />
+    </target_preparer>
     <test class="com.android.tradefed.testtype.HostTest" >
         <option name="class" value="com.android.cts.rollback.host.RollbackManagerHostTest" />
     </test>