Giter Club home page Giter Club logo

learnndk's Introduction

learnNDK

结合反射一起学习NDK

###反射四步(代码位置MainActivity.class & ReflectionModel.class)

1.拿class

2.拿field/method

3.设置可见性setAccess

4.调用set修改field/invoke调用method

###jni调java三步(代码位置ctest.cpp)

1.FindClass拿class

2.拿GetMethodId/GetMethodId

3.调用GetField/GetField

jni调java最需要注意的就是c++和java的类型变换

###jni动态注册/轮询反调试(代码位置ccheck.cpp)

1.复写jni_OnLoad方法

2.创建子线程读取proc/[pid]/status文件下的traceid值

###安全检查(代码位置SecurityCheckUtils.class)

1.检查签名;

2.检查debug属性;

3.检查root;

4.检查xp框架;

5.检查端口

###详细见

android ndk开发索引

jni动态注册/轮询traceid/反调试学习笔记

反Xposed方案学习笔记

learnndk's People

Watchers

 avatar

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.