alibaba / alibaba/AndFix

patch的修改不能修改acitivity?

Open
#42 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

我发现只要新包的版本只要修改了activity 的方法 或者实现 或者 在activity新建类 打出来的patch 一运行偶读会报错
举个例子 在更新包中实现 implements View.OnClickListener 然后打patch 一运行 直接报
java.lang.IncompatibleClassChangeError: Class 'com.euler.andfix.MainActivity' does not implement interface 'android.view.View$OnClickListener' in call to 'void android.view.View$OnClickListener.onClick(android.view.View)' (declaration of 'java.lang.reflect.ArtMethod' appears in /system/framework/core-libart.jar)

手机是android 5.1 框架是否不支持 art 或者 在打新包的时候不支持修改activity的字段函数和实现集成关系?

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the reported AndFix patch on Android 5.1, using an Activity that implements View.OnClickListener and the shown IncompatibleClassChangeError as the starting point. Check whether the framework supports changing Activity methods, fields, or implemented interfaces on ART, then document the supported behavior or a confirmed limitation. No source files or tests are named in the issue.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.