Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undeclared Identifier PTRACE_PEEKTEXT #28

Open
kotanaavatharam opened this issue Feb 19, 2017 · 1 comment
Open

Undeclared Identifier PTRACE_PEEKTEXT #28

kotanaavatharam opened this issue Feb 19, 2017 · 1 comment

Comments

@kotanaavatharam
Copy link

Hi ,

I am getting the below error when building the project.Please help on this below error.

D:/dummy_data/adbi_master/hijack/jni/../hijack.c:529:76: warning: comparison of unsigned expression < 0 is always false
[-Wtautological-compare]
if ((*p = ptrace(PTRACE_PEEKTEXT, pid, (void )(pos+(i4)), (void *)*p)) < 0)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~
D:/dummy_data/adbi_master/hijack/jni/../hijack.c:764:11: error: use of undeclared identifier 'PTRACE_GETREGS'
ptrace(PTRACE_GETREGS, pid, 0, &regs);
^
D:/dummy_data/adbi_master/hijack/jni/../hijack.c:792:9: error: use of undeclared identifier 'PTRACE_GETREGS'
ptrace(PTRACE_GETREGS, pid, 0, &regs);
^
D:/dummy_data/adbi_master/hijack/jni/../hijack.c:873:9: error: use of undeclared identifier 'PTRACE_SETREGS'
ptrace(PTRACE_SETREGS, pid, 0, &regs);
^
2 warnings and 3 errors generated.

@gcapitalteam
Copy link

gcapitalteam commented May 29, 2017

Create ./jni/Application.mk file and put this content
APP_ABI := armeabi

It works for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants