Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fbf8386d authored by Winson Chiu's avatar Winson Chiu Committed by Android (Google) Code Review
Browse files

Merge "Re-root and use device remount APIs for SystemPreparer" into tm-dev

parents 1d0baf79 e593837a
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -21,7 +21,6 @@ import static org.junit.Assert.assertTrue;

import com.android.tradefed.device.DeviceNotAvailableException;
import com.android.tradefed.device.ITestDevice;
import com.android.tradefed.log.LogUtil;

import org.junit.Assert;
import org.junit.ClassRule;
@@ -369,7 +368,9 @@ public class SystemPreparer extends ExternalResource {
                device.executeShellCommand("disable-verity");
                device.reboot();
            }
            device.executeShellCommand("remount");
            device.enableAdbRoot();
            device.remountSystemWritable();
            device.remountVendorWritable();
            device.waitForDeviceAvailable();
        }