|
|
|
@ -91,7 +91,6 @@ class EdgeToEdgeTest {
|
|
|
|
|
|
|
|
|
|
@Before
|
|
|
|
|
fun enableDemoMode() {
|
|
|
|
|
UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()).apply {
|
|
|
|
|
executeShellCommand(
|
|
|
|
|
"settings put global development_settings_enabled 1",
|
|
|
|
|
)
|
|
|
|
@ -121,7 +120,6 @@ class EdgeToEdgeTest {
|
|
|
|
|
"network -e satellite hide",
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@After
|
|
|
|
|
fun disableDemoMode() {
|
|
|
|
@ -332,7 +330,7 @@ class EdgeToEdgeTest {
|
|
|
|
|
|
|
|
|
|
private fun executeShellCommand(command: String) {
|
|
|
|
|
runOnUiThread {
|
|
|
|
|
InstrumentationRegistry.getInstrumentation().uiAutomation.executeShellCommand(command)
|
|
|
|
|
UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()).executeShellCommand(command)
|
|
|
|
|
}
|
|
|
|
|
// ADB commands are not synchronized. This sleep was found empirically.
|
|
|
|
|
Thread.sleep(20)
|
|
|
|
|