alibaba / alibaba/AndFix

建议replace_method后保存老方法

Open
#260 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
7k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

现在replace_method时,只是修改了jni层老方法的指针指向新方法,但是并没有保存老方法。
我想应该存在调用老方法的场景,是否能顺手把老方法保存一下,和新方法做下swap?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the JNI-layer implementation of replace_method. Trace how the existing method pointer is replaced, then determine how the old method can be retained and swapped with the new method. Done means callers can still invoke the old method while the replacement remains available.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, cpp
Domain
mobile-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.