alibaba / alibaba/AndFix

请问AndFix可以修复构造函数吗?

Open
#202 0 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

我有个构造函数有问题,用ApkPatch 后,反编译diff.dex 如下
@MethodReplace(clazz="cn.cmgame.test.OrgFunction", method="") public OrgFunction_CF(int k)

但是,好像这个没有能被热修补。

AndFixManager.fixClass 函数只是对方法做修改。但对构造函数无效。
是这样吗?有办法对构造函数热修补吗?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with AndFixManager.fixClass and the generated diff.dex snippet showing the replacement. Trace how constructor replacements are handled, then verify the behavior with a minimal constructor hotfix reproduction; done means the issue has a clear, documented determination of whether constructor hotfixing is supported.

Written by the indexing model from the issue text.

Assessment

Tech stack
android
Domain
mobile
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.