Skip to content

Instantly share code, notes, and snippets.

@sjfricke
Last active September 5, 2017 14:31
Show Gist options
  • Save sjfricke/925a6491c524acd460f3212906d9fe2b to your computer and use it in GitHub Desktop.
Save sjfricke/925a6491c524acd460f3212906d9fe2b to your computer and use it in GitHub Desktop.
adb shell setprop in Go
package main
import (
"fmt"
"os/exec"
"strings"
)
func run(args ...string) {
cmd := exec.Command("adb", args...)
fmt.Printf("adb %s", strings.Join(args, " "))
err := cmd.Run()
if err != nil {
fmt.Printf("FAILED: adb %s: %v", strings.Join(args, " "), err)
}
}
func main() {
fmt.Println("STARTING...")
run("shell", "setprop", "debug.vulkan.layers", "\"\"")
// run("shell", "setprop", "debug.vulkan.layers", "")
fmt.Println("") // new line format
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment