mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-01-04 16:17:39 +00:00
Default to cmdline logging
This commit is contained in:
parent
f9e32a119a
commit
1046dd5eda
@ -100,7 +100,6 @@ static void usage() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int imgtool_main(int argc, char *argv[]) {
|
int imgtool_main(int argc, char *argv[]) {
|
||||||
cmdline_logging();
|
|
||||||
if (argc < 2)
|
if (argc < 2)
|
||||||
usage();
|
usage();
|
||||||
if (strcmp(argv[1], "create") == 0) {
|
if (strcmp(argv[1], "create") == 0) {
|
||||||
|
@ -114,7 +114,6 @@ void stop_magiskhide(int client) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int magiskhide_main(int argc, char *argv[]) {
|
int magiskhide_main(int argc, char *argv[]) {
|
||||||
cmdline_logging();
|
|
||||||
if (argc < 2) {
|
if (argc < 2) {
|
||||||
usage(argv[0]);
|
usage(argv[0]);
|
||||||
}
|
}
|
||||||
|
@ -391,7 +391,6 @@ static void syntax_error_msg() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int magiskpolicy_main(int argc, char *argv[]) {
|
int magiskpolicy_main(int argc, char *argv[]) {
|
||||||
cmdline_logging();
|
|
||||||
char *outfile = NULL, *tok, *saveptr;
|
char *outfile = NULL, *tok, *saveptr;
|
||||||
int magisk = 0;
|
int magisk = 0;
|
||||||
struct vector rules;
|
struct vector rules;
|
||||||
|
@ -28,6 +28,7 @@ int main(int argc, char *argv[]) {
|
|||||||
umask(0);
|
umask(0);
|
||||||
argv0 = argv[0];
|
argv0 = argv[0];
|
||||||
dload_selinux();
|
dload_selinux();
|
||||||
|
cmdline_logging();
|
||||||
|
|
||||||
if (strcmp(basename(argv0), "magisk.bin") == 0 ||
|
if (strcmp(basename(argv0), "magisk.bin") == 0 ||
|
||||||
(strcmp(basename(argv[0]), "magisk") == 0
|
(strcmp(basename(argv[0]), "magisk") == 0
|
||||||
|
@ -297,7 +297,6 @@ static int verbose_logging(const char *fmt, va_list ap) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int resetprop_main(int argc, char *argv[]) {
|
int resetprop_main(int argc, char *argv[]) {
|
||||||
cmdline_logging();
|
|
||||||
log_cb.d = verbose_logging;
|
log_cb.d = verbose_logging;
|
||||||
|
|
||||||
int trigger = 1, persist = 0;
|
int trigger = 1, persist = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user