Giter Site home page Giter Site logo

freethedsp's People

Contributors

geohot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

freethedsp's Issues

Can't compile

Hello.
I try to compile freethedsp.c with './clang -shared freethedsp.c -o freethedsp.so'.
Therefor I use clang with NDK-14 (also tryed 16).
I used "python make_standalone_toolchain.py --arch arm --api 24 --install-dir tmp" for generating the Clang toolchain.
But when trying to compile I get following error:

freethedsp.c:70:5: error: conflicting types for 'ioctl' int ioctl(int fd, unsigned long request, void *arg) { ^ ./../sysroot/usr/include/unistd.h:145:12: note: previous declaration is here extern int ioctl(int, int, ...); ^ freethedsp.c:91:17: warning: implicit declaration of function 'open' is invalid in C99 [-Wimplicit-function-declaration] int ionfd = open("/dev/ion", O_RDONLY); ^ freethedsp.c:91:34: error: use of undeclared identifier 'O_RDONLY' int ionfd = open("/dev/ion", O_RDONLY); ^ 1 warning and 2 errors generated.
Can anybody help me how to fix?

How may I determine patching parameter?

I compiled the .so file successfully. However that doesn't seem work. I think maybe the wrong parameter for patching the fastrpc_shell_0. Would you please tell me how to determine patching parameter? Thanks~~

original code listed:
#define PATCH_ADDR 0x5200c
#define PATCH_OLD "\x40\x3f\x20\x50"
#define PATCH_NEW "\x40\x3f\x00\x5a"
#define PATCH_LEN (sizeof(PATCH_OLD)-1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.