Skip to content

Apkmod - automatically patch an apk to load frida script at runtime

License

Notifications You must be signed in to change notification settings

mon231/apkpatcher

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

apkmod - an apk patcher

Hits
Cross-Platform tool used to inject frida script & gadget to an APK
This project started as a fork of apkpatcher

NOTE that you should use this tool for debugging / educational purposes only!

Installation

The apkmod tool uses the buildapp project
Install both using a pypi package, then fetch the tools required for buildapp:

pip install apkmod --upgrade && buildapp_fetch_tools

Automation

You can use apkmod in your github workflow process!
Simply add a build.yml at your repo .github/workflows folder:

name: build patched app
on: [push]

jobs:
  build:
    runs-on: windows-latest
    steps:
      - uses: actions/checkout@v3
      - uses: mon231/apkpatcher@master
        with:
          original-apk: 'original.apk'
          output-apk: 'patched.apk'
          frida-script: 'frida.js'

Patching process

This tool gets an android app installation file (.apk) and a frida js-script
Then builds a new apk with frida-gadget & script runner ready to be installed on non-rooted android devices!

Requirements

The tool uses buildapp package,
Therefore you have to provide it's requirements
Or run the requirements fetcher tool buildapp_fetch_tools after the pip install command