You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
487 B
24 lines
487 B
--- a/src/wg-quick/android.c
|
|
+++ b/src/wg-quick/android.c
|
|
@@ -242,17 +252,17 @@
|
|
if (!getuid())
|
|
return;
|
|
|
|
- args[0] = "su";
|
|
- args[1] = "-p";
|
|
+ args[0] = "tsu";
|
|
+ args[1] = "-a";
|
|
args[2] = "-c";
|
|
memcpy(&args[3], argv, argc * sizeof(*args));
|
|
args[argc + 3] = NULL;
|
|
|
|
- printf("[$] su -p -c ");
|
|
+ printf("[$] tsu -a -c ");
|
|
for (int i = 0; i < argc; ++i)
|
|
printf("%s%c", argv[i], i == argc - 1 ? '\n' : ' ');
|
|
|
|
- execvp("su", args);
|
|
+ execvp("tsu", args);
|
|
exit(errno);
|
|
}
|
|
|
|
|