Skip to content
This repository has been archived by the owner on Nov 7, 2022. It is now read-only.

HimekoEx/PeachPatch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PEACH PATCH

自用的 Android Patch 模块

自带 map 用于快速获取 Patch 实例

绝对地址 为 Key 进行优化性能, 减少不必要的操作

ABI 支持

  • armeabi-v7a
  • arm64-v8a
  • x86

使用方法

#include <PeachPatch/Peach.h>

//armeabi-v7a 的 NOP 指令
const ulong NOP = 0xE320F000;

//假定地址
ulong addr = 0x00000000;

//标准构建方式
auto patch = PeachPatch(addr, (const void *)&NOP, 4);
auto patch = PeachPatch(addr, "\x00\xF0\x20\xE3", 4);

//Hex字符串构建
auto patch = PeachPatch(addr, "00F020E3");
auto patch = PeachPatch(addr, "00 F0 20 E3");//可以带空格

//执行patch
patch.Patch();

//获取目标地址当前Hex字符串
patch.get_CurrHex();

//还原修改
patch.Rebase();

本项目借鉴于 KittyMemory

About

Android Runtime Code Patch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published