Dmitry Myachin 9 months ago committed by Pavel
parent 7bbd532464
commit d1f2a15bf9

1
.gitignore vendored

@ -1,4 +1,5 @@
.idea
.gradle
.vscode
app/build
/local.properties

Binary file not shown.

@ -10,8 +10,8 @@ android {
defaultConfig {
minSdk 25
targetSdk 32
versionCode 11
versionName "1.11"
versionCode 12
versionName "1.12"
}
buildTypes {

@ -8,6 +8,7 @@ import androidx.test.uiautomator.UiDevice
import androidx.test.uiautomator.UiSelector
import xyz.myachin.yaf.R
import xyz.myachin.yaf.core.exceptions.TException
import xyz.myachin.yaf.core.os.shell.TShell
import xyz.myachin.yaf.core.os.ui.notification.TNotification
import xyz.myachin.yaf.core.os.ui.utils.TOsUtil
import xyz.myachin.yaf.ui.tView.highlevel.TButtonGeneric
@ -84,4 +85,8 @@ object TOs {
}
return result
}
fun getProcesses(processFilter: String): List<String> {
return TShell.getProcessesArgs().split('\n').filter { it.contains(processFilter) }
}
}

@ -4,7 +4,11 @@ import xyz.myachin.yaf.core.os.TOs.tDevice
internal object TShell {
private fun shellCommand(command: String): String? {
return tDevice.executeShellCommand(command)
return tDevice.executeShellCommand(command)?.trim()
}
internal fun getProcessesArgs(): String {
return shellCommand("ps -e -o ARGS=CMD")!!
}
private fun bootComplete(): Boolean {

Loading…
Cancel
Save