Skip to content
This repository has been archived by the owner on Jul 18, 2018. It is now read-only.

Commit

Permalink
Change flags
Browse files Browse the repository at this point in the history
  • Loading branch information
topjohnwu committed Apr 19, 2017
1 parent 4035d5b commit b499ac8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions activity.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
char binary_version[256];
sprintf(binary_version, "%d", VERSION_CODE);
// char binary_version[256];
// sprintf(binary_version, "%d", VERSION_CODE);

char uid[256];
sprintf(uid, "%d", ctx->from.uid);
Expand Down
4 changes: 2 additions & 2 deletions su.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,10 +253,10 @@ int su_daemon_main(int argc, char **argv) {
ctx.to.shell = optarg;
break;
case 'V':
printf("%d\n", VERSION_CODE);
printf("%d\n", MAGISK_VER_CODE);
exit(EXIT_SUCCESS);
case 'v':
printf("%s\n", SU_VERSION_STR);
printf("%s\n", MAGISKSU_VER_STR);
exit(EXIT_SUCCESS);
case 'u':
switch (ctx.user.multiuser_mode) {
Expand Down
2 changes: 1 addition & 1 deletion su.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <limits.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
#define ROOT_ACCESS_PROP "persist.sys.root_access"
Expand Down

0 comments on commit b499ac8

Please sign in to comment.