mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-28 04:25:27 +00:00
Change flags
This commit is contained in:
parent
aefbc1c9bf
commit
977c049875
@ -69,8 +69,8 @@ static int get_owner_login_user_args(struct su_context *ctx, char* user, int use
|
|||||||
}
|
}
|
||||||
|
|
||||||
void app_send_result(struct su_context *ctx, policy_t policy) {
|
void app_send_result(struct su_context *ctx, policy_t policy) {
|
||||||
char binary_version[256];
|
// char binary_version[256];
|
||||||
sprintf(binary_version, "%d", VERSION_CODE);
|
// sprintf(binary_version, "%d", VERSION_CODE);
|
||||||
|
|
||||||
char uid[256];
|
char uid[256];
|
||||||
sprintf(uid, "%d", ctx->from.uid);
|
sprintf(uid, "%d", ctx->from.uid);
|
||||||
|
4
su.c
4
su.c
@ -253,10 +253,10 @@ int su_daemon_main(int argc, char **argv) {
|
|||||||
ctx.to.shell = optarg;
|
ctx.to.shell = optarg;
|
||||||
break;
|
break;
|
||||||
case 'V':
|
case 'V':
|
||||||
printf("%d\n", VERSION_CODE);
|
printf("%d\n", MAGISK_VER_CODE);
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
case 'v':
|
case 'v':
|
||||||
printf("%s\n", SU_VERSION_STR);
|
printf("%s\n", MAGISKSU_VER_STR);
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
case 'u':
|
case 'u':
|
||||||
switch (ctx.user.multiuser_mode) {
|
switch (ctx.user.multiuser_mode) {
|
||||||
|
2
su.h
2
su.h
@ -7,7 +7,7 @@
|
|||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
#define SU_VERSION_STR xstr(VERSION) ":MAGISKSU (topjohnwu)"
|
#define MAGISKSU_VER_STR xstr(MAGISK_VERSION) ":MAGISKSU (topjohnwu)"
|
||||||
|
|
||||||
// Property check for root access
|
// Property check for root access
|
||||||
#define ROOT_ACCESS_PROP "persist.sys.root_access"
|
#define ROOT_ACCESS_PROP "persist.sys.root_access"
|
||||||
|
Loading…
Reference in New Issue
Block a user