We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@TargetClass("androidx.appcompat.app.AppCompatActivity") @Proxy("onDestroy") public void onDestroy() { Log.e("siyehua", "onDestroy"); Origin.callVoid(); }
如果不重写onDestroy(),则无效
public class Main2Activity extends AppCompatActivity { @Override public void onCreate(Bundle savedInstanceState, PersistableBundle persistentState) { super.onCreate(savedInstanceState, persistentState); setContentView(R.layout.activity_main2); } // @Override // protected void onDestroy() { // super.onDestroy(); // } }
The text was updated successfully, but these errors were encountered:
Insert(mayCreateSuper = true)
Sorry, something went wrong.
我加了mayCreateSuper = true,似乎还是没有成功织入。
@Insert(value = "startActivity", mayCreateSuper = true) @TargetClass("xx.xx.MyActivity") // @TargetClass(value = "android.support.v4.app.FragmentActivity", scope = Scope.ALL) public void hookStartActivity(Intent intent) { Origin.callVoid(); Log.d("hjwaj", "hookStartActivity"); }
@TargetClass("xx.xx.MyActivity") 时,加不加mayCreateSuper = true都可以织入。 @TargetClass(value = "android.support.v4.app.FragmentActivity")时,不管设置什么scope,不管加不加mayCreateSuper = true,在MyActivity调用startActivity时,都没有成功织入。
版本是1.0.5。
No branches or pull requests
如果不重写onDestroy(),则无效
The text was updated successfully, but these errors were encountered: