/odex-patcher

Run arbitrary code by patching OAT files

Primary LanguageKotlinApache License 2.0Apache-2.0

ODEX Patcher

GitHub all releases GitHub release (latest by date including pre-releases) GitHub code size in bytes GitHub

Introduction

ODEX Patcher allows you to execute arbitrary code while maintaining the original signature of the target app. It does this by patching the OAT (Ahead-of-Time) files that the ART runtime creates when an app is installed.

This tool can be useful when an app uses SafetyNet for example, as you cannot simply edit the app and sign it with your key.

Examples

☺️ Coming soon...

Requirements

Android 4.4+ devices with root access (Magisk is suggested)

Downloads

Latest release: 2.0.0-rc1

Building and Development

  • Clone sources: git clone https://github.com/giacomoferretti/odex-patcher
  • Open the project with Android Studio.
    • Currently using: Android Studio Arctic Fox | 2020.3.1 Patch 3

Compatibility matrix

✅ = Working

❌ = Not working

❔ = Not tested, but should work

Single Dex Multi Dex
Android Version Oat Version 32bit 64bit 32bit 64bit
4.4 - 4.4.2 007 (1) (1)
4.4.3 - 4.4.4 008 (1) (1)
5.0 - 5.0.2 039
5.1 - 5.1.1 045
6.0 - 6.0.1 064
7.0 - 7.1 079
7.1.1 - 7.1.2 088
8.0 124
8.1 131
9 138
10 170
11 183
12 195
Sv2 199

(1) Follow #6