关于 ServiceHook 的详细介绍请看博客:
Android 利用 ServiceHook 实现特殊功能
运行效果如下所示:
add at 2019/02/14: add WindowManager hook
License: Apache License 2.0
关于 ServiceHook 的详细介绍请看博客:
Android 利用 ServiceHook 实现特殊功能
运行效果如下所示:
add at 2019/02/14: add WindowManager hook
Process: com.example.servicehook, PID: 16237
java.lang.ClassCastException: $Proxy2 cannot be cast to android.view.WindowManagerImpl
at com.android.internal.policy.DecorContext.getSystemService(DecorContext.java:53)
at android.view.ContextThemeWrapper.getSystemService(ContextThemeWrapper.java:171)
at android.widget.PopupWindow.<init>(PopupWindow.java:398)
at android.widget.PopupWindow.<init>(PopupWindow.java:380)
at android.widget.PopupWindow.<init>(PopupWindow.java:350)
at com.android.internal.widget.FloatingToolbar.createPopupWindow(FloatingToolbar.java:1695)
at com.android.internal.widget.FloatingToolbar.-wrap5(Unknown Source:0)
at com.android.internal.widget.FloatingToolbar$FloatingToolbarPopup.<init>(FloatingToolbar.java:444)
at com.android.internal.widget.FloatingToolbar.<init>(FloatingToolbar.java:126)
at com.android.internal.policy.DecorView.createFloatingActionMode(DecorView.java:1815)
at com.android.internal.policy.DecorView.createActionMode(DecorView.java:1664)
at com.android.internal.policy.DecorView.startActionMode(DecorView.java:891)
at com.android.internal.policy.DecorView.startActionModeForChild(DecorView.java:848)
at android.view.ViewGroup.startActionModeForChild(ViewGroup.java:916)
at android.view.ViewGroup.startActionModeForChild(ViewGroup.java:916)
at android.view.ViewGroup.startActionModeForChild(ViewGroup.java:916)
at android.view.ViewGroup.startActionModeForChild(ViewGroup.java:916)
at android.view.ViewGroup.startActionModeForChild(ViewGroup.java:916)
at android.view.View.startActionMode(View.java:6455)
at android.widget.Editor.startSelectionActionModeInternal(Editor.java:2095)
at android.widget.SelectionActionModeHelper.startActionMode(SelectionActionModeHelper.java:155)
at android.widget.SelectionActionModeHelper.-android_widget_SelectionActionModeHelper-mthref-2(SelectionActionModeHelper.java:84)
at android.widget.-$Lambda$tTszxdFZ0V9nXhnBpPsqeBMO0fw$2.$m$0(Unknown Source:6)
at android.widget.-$Lambda$tTszxdFZ0V9nXhnBpPsqeBMO0fw$2.accept(Unknown Source:0)
at android.widget.SelectionActionModeHelper$TextClassificationAsyncTask.onPostExecute(SelectionActionModeHelper.java:367)
at android.widget.SelectionActionModeHelper$TextClassificationAsyncTask.onPostExecute(SelectionActionModeHelper.java:363)
at android.os.AsyncTask.finish(AsyncTask.java:695)
at android.os.AsyncTask.-wrap1(Unknown Source:0)
at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:712)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6541)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
hook ams后不能启动activity
我直接在你的mainactivity中启动一个activity就崩溃了
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.