# AndroidHookStartActivity **Repository Path**: chen3441251/AndroidHookStartActivity ## Basic Information - **Project Name**: AndroidHookStartActivity - **Description**: 两行代码启动未注册的Activity - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2020-08-26 - **Last Updated**: 2024-04-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # AndroidHookStartActivity ## AMSHook 两行代码实现动态启动未注册的Activity。 1.application标签里配置一个壳Activity ```         ``` 2.注册一下其中this为context ``` AMSHookUtil.hookStartActivity(this); ``` 3.以后就可以按照标准的Intent启动为那些未被注册的Activity。 ``` Intent intent = new Intent(MainActivity.this, OtherActivity.class); startActivity(intent); ``` 原理详解:http://www.jianshu.com/p/2ad105f54d07 ## 更新 - 1.修复多次hook的问题 - 2.修复Activity无需和包名一致也能启动