legend icon indicating copy to clipboard operation
legend copied to clipboard

hook不到TextView的setText

Open CharlesCT opened this issue 6 years ago • 1 comments

老铁求救啊 我hook了 TextView的setText方法 由于他会自动调用public的这个方法 public final void setText(CharSequence text) { setText(text, mBufferType); } 我hook这个方法 public void setText(CharSequence text, BufferType type) { setText(text, type, true, 0);

if (mCharWrapper != null) {
    mCharWrapper.mChars = null;
}

} 但是没有作用 求教 @Hook("android.widget.TextView::[email protected]#android.widget.TextView.BufferType") public static void TextView_setText(TextView view, CharSequence text , TextView.BufferType type) { Log.v(TAG,"this is text" ); HookManager.getDefault().callSuper(view,text,type); }

CharlesCT avatar Aug 11 '17 02:08 CharlesCT

注解部分写的不对,正确的如下: @Hook("android.widget.TextView::[email protected]#android.widget.TextView$BufferType")

LiYaHX avatar Sep 17 '19 09:09 LiYaHX