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

Commit 6e1c2330 authored by Winson Chiu's avatar Winson Chiu Committed by Automerger Merge Worker
Browse files

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

parents 7724e586 fbf8386d
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();
        }