Skip to content

Commit

Permalink
add --xposedversion parameter to quickly check whether the binary wor…
Browse files Browse the repository at this point in the history
…ks (without tombstone)
  • Loading branch information
rovo89 committed Dec 6, 2012
1 parent 9b1467d commit f28b9c8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions app_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,11 @@ static void setArgv0(const char *argv0, const char *newArgv0)

int main(int argc, const char* const argv[])
{
if (argc == 2 && strcmp(argv[1], "--xposedversion") == 0) {
printf("Xposed version: " XPOSED_VERSION "\n");
return 0;
}

// These are global variables in ProcessState.cpp
mArgC = argc;
mArgV = argv;
Expand Down
2 changes: 1 addition & 1 deletion xposed.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace android {
#define XPOSED_CLASS "de/robv/android/xposed/XposedBridge"
#define XPOSED_CLASS_DOTS "de.robv.android.xposed.XposedBridge"
#define XRESOURCES_CLASS "android/content/res/XResources"
#define XPOSED_VERSION "25"
#define XPOSED_VERSION "26"

#ifndef ALOGD
#define ALOGD LOGD
Expand Down

0 comments on commit f28b9c8

Please sign in to comment.