Giter VIP home page Giter VIP logo

yhook's Introduction

这是一个ART method hook 框架,支持5.0~10.0系统。实现了Lens IHookFrameWork接口,可用于支持Lens 的一些高级功能。支持加载内置hook插件或多个外置hook 插件。
引用:
1.yhook:https://github.com/Tencent/GT/tree/master/android/GT_SDK/yhook
2.YAHFA: https://github.com/PAGalaxyLab/YAHFA   GPL3.0
介绍
  • 支持 5.0~10.0 Android 系统方法hook能力。
  • 支持加载assets中内置的hookplugin。
  • 支持加载多个自定义路径的hookplugin。 由于稳定性、可靠性、开源协议的问题,建议在debug阶段开发模式下使用。
安装
	dependencies {
	   debugImplementation 'carl.lee.yhook:lens-yhook:1.1.0'
	}
使用
  1. 制作hook 插件:
    • 仿造 hookapi 模块下ViewTouchHook实现。
    • 使用 hook plugin 编译出hook 插件。
  2. 使用hook 插件
    • 内置方式:将插件放置于assets下,命名为hookplugin.apk
    • 外置方式:HookWrapper.addCustomHookPluginPath(String);
  3. 对接Lens Hook能力: 参照app 模块下 HookFrameworkImpl 实现Lens IHookFrameWork接口。并调用LensUtil.buildConfig().setHookFrameWorkImpl(new HookFramework())设置Hook框架实现层。
License

GNU GPL V3

yhook's People

Contributors

carlyle-lee 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.