Last active
September 5, 2017 14:31
-
-
Save sjfricke/925a6491c524acd460f3212906d9fe2b to your computer and use it in GitHub Desktop.
adb shell setprop in Go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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