Coder Social home page Coder Social logo

android_kprobe_hook_architecture's Introduction

android_kprobe_hook_architecture

1. Preparation Phase

  • a phone like redmi note 11
  • kernel source code from Xiaomi_Kernel_OpenSource
  • a kernel product of compiled success(don't forget open support of kprobe at arch/arm64/configs/xxxx_defconfig)
    CONFIG_KPROBES=y
    CONFIG_HAVE_KPROBES=y
    CONFIG_KPROBE_EVENTS=y
    

2. LKM Compile Phase

  1. git clone https://github.com/tcc0lin/android_kprobe_hook_architecture
  2. cd android_kprobe_hook_architecture
  3. modify path on Makefile
    KERNEL_OUT=/xxxxx/xiaomi_kernel_opensource-selene-r-oss/out
    TOOLCHAIN=/xxxxx/android_prebuilts_gcc_linux-x86_aarch64_aarch64-linux-android-4.9-lineage-19.1/bin/aarch64-linux-android-
  4. build
    make
    then you can get the following file
    Sample.ko Sample.mod.c Sample.mod.o Sample.o
    
  5. install LKM
    insmod Sample.ko

android_kprobe_hook_architecture's People

Contributors

tcc0lin avatar

Stargazers

 avatar  avatar  avatar  avatar

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.