diff --git a/services/shellexecutor/java/androidx/test/services/shellexecutor/LocalSocketProtocol.kt b/services/shellexecutor/java/androidx/test/services/shellexecutor/LocalSocketProtocol.kt index 4949d232d..7fa702159 100644 --- a/services/shellexecutor/java/androidx/test/services/shellexecutor/LocalSocketProtocol.kt +++ b/services/shellexecutor/java/androidx/test/services/shellexecutor/LocalSocketProtocol.kt @@ -52,6 +52,12 @@ object LocalSocketProtocol { env: Map? = null, timeout: Duration, ) { + val myString = "Kotlin is awesome!" + val destinationArray = CharArray(myString.length) + + // Convert the string and store it in the destinationArray: + myString.toCharArray(destinationArray) + val builder = RunCommandRequest.newBuilder().setSecret(secret).addAllArgv(argv) env?.forEach { (k, v) -> builder.putEnvironment(k, v) } if (timeout.isInfinite() || timeout.isNegative() || timeout == Duration.ZERO) {