Skip to content

Commit

Permalink
log logcat command at the beginning
Browse files Browse the repository at this point in the history
  • Loading branch information
grote committed Jan 7, 2025
1 parent 0187f01 commit 841b9b8
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,8 @@ internal class SettingsViewModel(
try {
app.contentResolver.openOutputStream(uri, "wt")?.use { outputStream ->
getRuntime().exec(command).inputStream.use { inputStream ->
// first log command, so we see if it is correct, e.g. has our own uid
outputStream.write("$command\n\n".toByteArray())
inputStream.copyTo(outputStream)
}
} ?: throw IOException("OutputStream was null")
Expand Down

0 comments on commit 841b9b8

Please sign in to comment.