Open leonzhuhi opened 7 years ago
@leonzhuhi 1.不支持修改字段哦 2.你这个是引入了aspectj?看起来是修改的不只是方法?
@supern 这个类引入了aspectj 但是需要修改的方法并不是他的,是一个 点击事件
////------------------测试 OnClickListener onclickTestHotFix = new OnClickListener() { @Override public void onClick(View view) { testFix(); } };
private void testFix() {
// int i = 100; // System.out.println("Fix------------" + i); // Toast.makeText(this,"Fix",Toast.LENGTH_SHORT).show(); }
@supern 方便加个qq吗? 328556396
@supern 用0.5arr 1、修改了一个 Const static 字段,直接用apatch比较,并没有生成任何文件apatch 2、我又修改 如下方法
// my_xiu_quit_btn.setTextColor(Color.parseColor("#ff0000")); }
其中bug包 是testFix(){} 里面是空方法,新报增加 两句(system, 和Toast) 用AndFix fix之后, 6.0手机上面 并没有出现打印信息,也没有toast 信息,看到日志 已经是 替换了方法。
如下是smali文件 .class public Lcom/xiu/app/moduleothers/other/setting/XiuSettingActivity_CF; .super Lcom/xiu/app/basexiu/base/BaseNewBaseActivity; .source "XiuSettingActivity.java"
interfaces
.implements Landroid/view/View$OnClickListener; .implements Lcom/xiu/app/basexiu/task/ITaskCallbackListener;
annotations
.annotation build Landroid/annotation/SuppressLint; value = { "HandlerLeak" } .end annotation
static fields
.field private static ajc$anno$0:Ljava/lang/annotation/Annotation;
.field private static ajc$anno$1:Ljava/lang/annotation/Annotation;
.field private static ajc$anno$2:Ljava/lang/annotation/Annotation;
.field private static final ajc$tjp_0:Lorg/aspectj/lang/JoinPoint$StaticPart;
.field private static final ajc$tjp_1:Lorg/aspectj/lang/JoinPoint$StaticPart;
.field private static final ajc$tjp_2:Lorg/aspectj/lang/JoinPoint$StaticPart;
instance fields
.field private adapter1:Lcom/xiu/app/moduleothers/other/setting/adapter/SettingItemAdapter;
.field private adapter2:Lcom/xiu/app/moduleothers/other/setting/adapter/SettingItemAdapter;
.field private cachByFile:Ljava/lang/String;
.field private checkInfo:Lcom/xiu/app/moduleothers/other/setting/bean/CheckAppUpdateInfo;
.field private dialog:Lcom/xiu/commLib/widget/progressDialog/CustomProgressDialog;
.field private getUserInfoTask:Lcom/xiu/app/basexiu/user/GetUserInfoTask;
.field private handler:Landroid/os/Handler;
.field private my_xiu_quit_btn:Landroid/widget/Button;
.field onclickTestHotFix:Landroid/view/View$OnClickListener;
.field private setting_listview1:Lcom/xiu/commLib/widget/FlowListView;
.field private setting_listview2:Lcom/xiu/commLib/widget/FlowListView;
.field shoppingModule:Lmodules/shopping/ShoppingModule; .annotation runtime Lframework/loader/Module; value = "Shopping" .end annotation .end field
.field private showDlg:Lcom/xiu/commLib/widget/dialog/CommButtonIOSDlg;
direct methods
.method static constructor()V
.locals 0
.end method
.method public constructor()V
.locals 1
.end method
.method static synthetic access$000(Lcom/xiu/app/moduleothers/other/setting/XiuSettingActivity;)Lcom/xiu/commLib/widget/progressDialog/CustomProgressDialog; .locals 1 .param p0, "x0" # Lcom/xiu/app/moduleothers/other/setting/XiuSettingActivity;
.end method
.method static synthetic access$100(Lcom/xiu/app/moduleothers/other/setting/XiuSettingActivity;)Lcom/xiu/commLib/widget/FlowListView; .locals 1 .param p0, "x0" # Lcom/xiu/app/moduleothers/other/setting/XiuSettingActivity;
.end method
.method static synthetic access$1000(Lcom/xiu/app/moduleothers/other/setting/XiuSettingActivity;)Lcom/xiu/commLib/widget/dialog/CommButtonIOSDlg; .locals 1 .param p0, "x0" # Lcom/xiu/app/moduleothers/other/setting/XiuSettingActivity;
.end method
.method static synthetic access$1100(Lcom/xiu/app/moduleothers/other/setting/XiuSettingActivity;)V .locals 0 .param p0, "x0" # Lcom/xiu/app/moduleothers/other/setting/XiuSettingActivity;
.end method
.method static synthetic access$1200(Lcom/xiu/app/moduleothers/other/setting/XiuSettingActivity;)Lcom/xiu/app/moduleothers/other/setting/bean/CheckAppUpdateInfo; .locals 1 .param p0, "x0" # Lcom/xiu/app/moduleothers/other/setting/XiuSettingActivity;
.end method
.method static synthetic access$1300(Lcom/xiu/app/moduleothers/other/setting/XiuSettingActivity;)V .locals 0 .param p0, "x0" # Lcom/xiu/app/moduleothers/other/setting/XiuSettingActivity;
.end method
.method static synthetic access$200(Lcom/xiu/app/moduleothers/other/setting/XiuSettingActivity;)Lcom/xiu/app/moduleothers/other/setting/adapter/SettingItemAdapter; .locals 1 .param p0, "x0" # Lcom/xiu/app/moduleothers/other/setting/XiuSettingActivity;
.end method
.method static synthetic access$202(Lcom/xiu/app/moduleothers/other/setting/XiuSettingActivity;Lcom/xiu/app/moduleothers/other/setting/adapter/SettingItemAdapter;)Lcom/xiu/app/moduleothers/other/setting/adapter/SettingItemAdapter; .locals 0 .param p0, "x0" # Lcom/xiu/app/moduleothers/other/setting/XiuSettingActivity; .param p1, "x1" # Lcom/xiu/app/moduleothers/other/setting/adapter/SettingItemAdapter;
.end method
.method static synthetic access$300(Lcom/xiu/app/moduleothers/other/setting/XiuSettingActivity;I)Ljava/util/List; .locals 1 .param p0, "x0" # Lcom/xiu/app/moduleothers/other/setting/XiuSettingActivity; .param p1, "x1" # I
.end method
.method static synthetic access$400(Lcom/xiu/app/moduleothers/other/setting/XiuSettingActivity;)Lcom/xiu/app/moduleothers/other/setting/adapter/SettingItemAdapter; .locals 1 .param p0, "x0" # Lcom/xiu/app/moduleothers/other/setting/XiuSettingActivity;
.end method
.method static synthetic access$402(Lcom/xiu/app/moduleothers/other/setting/XiuSettingActivity;Lcom/xiu/app/moduleothers/other/setting/adapter/SettingItemAdapter;)Lcom/xiu/app/moduleothers/other/setting/adapter/SettingItemAdapter; .locals 0 .param p0, "x0" # Lcom/xiu/app/moduleothers/other/setting/XiuSettingActivity; .param p1, "x1" # Lcom/xiu/app/moduleothers/other/setting/adapter/SettingItemAdapter;
.end method
.method static synthetic access$500(Lcom/xiu/app/moduleothers/other/setting/XiuSettingActivity;)Lcom/xiu/commLib/widget/FlowListView; .locals 1 .param p0, "x0" # Lcom/xiu/app/moduleothers/other/setting/XiuSettingActivity;
.end method
.method static synthetic access$600(Lcom/xiu/app/moduleothers/other/setting/XiuSettingActivity;)Ljava/lang/String; .locals 1 .param p0, "x0" # Lcom/xiu/app/moduleothers/other/setting/XiuSettingActivity;
.end method
.method static synthetic access$700(Lcom/xiu/app/moduleothers/other/setting/XiuSettingActivity;)Ljava/io/File; .locals 1 .param p0, "x0" # Lcom/xiu/app/moduleothers/other/setting/XiuSettingActivity;
.end method
.method static synthetic access$800(Lcom/xiu/app/moduleothers/other/setting/XiuSettingActivity;)V .locals 0 .param p0, "x0" # Lcom/xiu/app/moduleothers/other/setting/XiuSettingActivity;
.end method
.method static synthetic access$900(Lcom/xiu/app/moduleothers/other/setting/XiuSettingActivity;)Landroid/os/Handler; .locals 1 .param p0, "x0" # Lcom/xiu/app/moduleothers/other/setting/XiuSettingActivity;
.end method
.method static synthetic access$lambda$0(Lcom/xiu/app/moduleothers/other/setting/XiuSettingActivity;Landroid/view/View;)V .locals 0
.end method
.method static synthetic access$lambda$1(Lcom/xiu/app/moduleothers/other/setting/XiuSettingActivity;Landroid/view/View;)V .locals 0
.end method
.method static synthetic access$lambda$2(Lcom/xiu/app/moduleothers/other/setting/XiuSettingActivity;Landroid/view/View;)V .locals 0
.end method
.method private static ajc$preClinit()V .locals 9 .annotation runtime Lcom/alipay/euler/andfix/annotation/MethodReplace; method = "ajc$preClinit" clazz = "com.xiu.app.moduleothers.other.setting.XiuSettingActivity" .end annotation
.end method
.method private clearCache()V .locals 5
.end method
.method private getImgLoaderFile()Ljava/io/File; .locals 3
.end method
.method private getSetItem(I)Ljava/util/List; .locals 10 .param p1, "type" # I .annotation system Ldalvik/annotation/Signature; value = { "(I)", "Ljava/util/List", "<", "Lcom/xiu/app/moduleothers/other/setting/bean/SetItemInfo;", ">;" } .end annotation
.end method
.method private synthetic lambda$initView$29(Landroid/view/View;)V .locals 2 .param p1, "view" # Landroid/view/View;
.end method
.method private synthetic lambda$initView$30(Landroid/view/View;)V .locals 1 .param p1, "view" # Landroid/view/View;
.end method
.method private synthetic lambda$initView$31(Landroid/view/View;)V .locals 4 .param p1, "view" # Landroid/view/View;
.end method
.method private logout()V .locals 6 .annotation runtime Lcom/xiu/umeng/sdk/annotation/UMClick; eventName = "setting_loginout" .end annotation
.end method
.method private testFix()V .locals 2 .annotation runtime Lcom/alipay/euler/andfix/annotation/MethodReplace; method = "testFix" clazz = "com.xiu.app.moduleothers.other.setting.XiuSettingActivity" .end annotation
.end method
virtual methods
.method public doTaskComplete(Ljava/lang/Object;)V .locals 11 .param p1, "o" # Ljava/lang/Object;
.end method
.method public initView()V .locals 7
.end method
.method public onClick(Landroid/view/View;)V .locals 6 .param p1, "v" # Landroid/view/View;
.end method
.method protected onCreate(Landroid/os/Bundle;)V .locals 2 .param p1, "savedInstanceState" # Landroid/os/Bundle;
.end method
.method protected onDestroy()V .locals 3
.end method
.method public onPause()V .locals 6 .annotation runtime Lcom/xiu/umeng/sdk/annotation/UMPV; pageName = "XiuSettingActivity" state = .enum Lcom/xiu/umeng/sdk/annotation/StateType;->PAUSE:Lcom/xiu/umeng/sdk/annotation/StateType; .end annotation
.end method
.method public onResume()V .locals 6 .annotation runtime Lcom/xiu/umeng/sdk/annotation/UMPV; pageName = "XiuSettingActivity" .end annotation
.end method
.method public onStart()V .locals 1
.end method
.method public onStop()V .locals 1
.end method