bolexliu / androidhookstartactivity Goto Github PK
View Code? Open in Web Editor NEW两行代码启动未注册的Activity
两行代码启动未注册的Activity
进入app,点击启动,打开的是OtherActivity,
然后一直按back键退出程序,再次 进入app,点击启动,跳转的是HostActivity
OtherActivity只能放在根目录(com.bolex.androidhookstartactivity)下,放到其他目录就报错:
have you declared this activity in your AndroidManifest.xml?
原因在于:HookInvationHandler类中invoke方法里的以下代码:
String PackageName = mProxyActivity.getPackage().getName();
ComponentName componentName = new ComponentName(PackageName, mOriginallyActivity.getName());
这行代码,getpackage().getName()获取的是该Activity的路径,而Component第一个参数是应用的包名,所以才会包该错。
在Android12,ActivityManagerNative被@Deprecated
了,会不会意味着这个库会在将来失效
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.