alibaba / alibaba/AndFix

是不是不能在修复版本中添加新的方法名?

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

Description

是不是不能在修复版本中添加新的方法名?用的是 compile 'com.alipay.euler:andfix:0.5.0@aar'

//有bug的方法
private void bugMethod(){
int a=100;
int i=0;
Toast.makeText(MainActivity.this,"结果为"+a/i,Toast.LENGTH_LONG).show();
// addFixMethod();
}
//修复bug的方法
private void addFixMethod(){

}

进行以上操作会出现:
1.SIGSEGV(SEGV_MAPERR)
#00 pc 000eed56 /data/dalvik-cache/arm/data@app@com.cgd-2@base.apk@classes.dex (oatdata+974166) [armeabi]

或者
2.SIGABRT
#00 pc 0003b4c8 /system/lib/libc.so (tgkill+12) [armeabi-v7a]
#01 pc 00017865 /system/lib/libc.so (pthread_kill+52) [armeabi-v7a]
#02 pc 0001846f /system/lib/libc.so (raise+10) [armeabi-v7a]
#03 pc 00014d07 /system/lib/libc.so (__libc_android_abort+34) [armeabi-v7a]
#04 pc 000130f4 /system/lib/libc.so (abort+4) [armeabi-v7a]
#05 pc 000a7075 /system/lib/libart.so (art::LogMessage::~LogMessage()+1416) [armeabi-v8]
#06 pc 0022a91d /system/lib/libart.so (art::Thread::AssertNoPendingExceptionForNewException(char const*) const+384) [armeabi-v8]
#07 pc 0022e3df /system/lib/libart.so (art::Thread::ThrowNewException(art::ThrowLocation const&, char const_, char const_)+14) [armeabi-v8]

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the issue with AndFix 0.5.0 on Android using the shown bugMethod and addFixMethod examples, then inspect the SIGSEGV and SIGABRT traces. Determine whether adding a new method in a hot-fix patch is supported, and document the confirmed behavior and any required constraints.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.