Giter VIP home page Giter VIP logo

pms-hook-detection's Introduction

Android PMS Hook Detection

This is a proof-of-concept(PoC) project on detecting hooks in Android's PackageManagerService(PMS). PMS hook is a common way to bypass signature checks on Android apks.

The PoC comprises of two parts:

  • Ported a typical PMS hook from MT Manager(binmt.cc) and replaced the default Application class in manifests
  • Implemented PMS hook detection methods in both Java and native layers

TO-DOs

  • Detect hook in ActivityThread in Java
  • Detect hook in ApplicationContext in Java
  • Detect hook in ActivityThread in native
  • Detect hook in ApplicationContext in native
  • Recover PMS instance after hooking

Screenshots

screenshot

Getting Started

  1. Download Android Studio
  2. Launch Android Studio.
  3. Open the sample directory.
  4. Open File/Project Structure..., click Download or Select NDK location.
  5. Click Tools/Android/Sync Project with Gradle Files.
  6. Click Run/Run 'app'.

References

http://weishu.me/2016/03/07/understand-plugin-framework-ams-pms-hook/

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.