Git Product home page Git Product logo

lspatch's Introduction

Introduction

LSPatch fork from Xpatch.

LSPatch provides a way to insert dex and so into the target APK by repackaging. The following changes have been made since Xpatch

  1. use LSPosed as Hook framework
  2. Clean up the code
  3. merge Xpatch's Loader and Patch into a single project

Usage

  1. download the artifact
  2. run java -jar lspatch.jar

Build

Android Studio Arctic Fox | 2020.3.1 Beta 3
gradlew build[Debug|Release]

Supported Android Versions

Same with LSPosed

Principle

  1. Decompress target APK.
  2. Patch the app property of AndroidManifest.xml in the target APK, changing it to the Application class in the inserted dex.
  3. Copy all files in list-so, list-assets, list-dex into target APK.
  4. Package and sign target APK.

Running Stage:

  1. Inserted dex initializes LSPosed
  2. New ClassLoader from assets/lsploader.dex.
  3. Loads the Xposed module installed in the system with new ClassLoader.

Known issues

  1. Can't solve the signature verification issue perfectly
  2. If you use under Windows, you need open CMD/Powershell with Run as Administrator, See Code.

lspatch's People

Contributors

b14aa178 avatar luoyesiqiu avatar nuo503 avatar windysha avatar yujincheng08 avatar zaoqi avatar

Watchers

 avatar  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.