Last active
February 18, 2026 17:09
-
-
Save sjfricke/925a6491c524acd460f3212906d9fe2b to your computer and use it in GitHub Desktop.
adb shell setprop in Go
This file contains hidden or 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 | |
| } |
carlaarchuleta308-source
commented
Feb 18, 2026
<script src="https://gist.github.com/sjfricke/925a6491c524acd460f3212906d9fe2b.js"></script>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment