Comments (6)
use this API: https://github.com/tiann/FreeReflection/blob/master/library/src/main/java/me/weishu/reflection/Reflection.java#L80
Add the methods you want to exempt
from freereflection.
Thanks Tiaan ... Where do I call this method, same place where we unseal it ? Like this ?
@Override protected void attachBaseContext(Context base) { super.attachBaseContext(base); Reflection.exempt("method1", "method2"); Reflection.unseal(base); }
or just before calling a method ?
from freereflection.
Before you call the method.
from freereflection.
Ok, this is because, we have a jar file that was given to us by a third party, and they have used reflection- We don't have the code for the jar file, and we wanted to make it work by using this ... so, the easiest way to do would have been just unseal some methods.
Any suggestions ?And so sorry for the bother - and thankyou very very much !!!!!
from freereflection.
Why only unseal some methods? You can use the API I mention above.
from freereflection.
到此一游
from freereflection.
Related Issues (20)
- 请问DEX是使用自己本地的BootstrapClass进行Base64吗?LIB集成到项目中测试出现CLASSLOADER为NULL HOT 1
- 查了下AOSP最新的代码,漏洞应该还没有修复,理论上依然支持Android 12 HOT 3
- 老哥你的域名挂了,通知该续费了。 HOT 1
- 请问能否调用com.android.server 下面的class? HOT 4
- 尝试了小米12失败了 HOT 4
- Android 12以上反射时native需要检查调用堆栈,native层有更新,可以看下
- Not working android S (13) HOT 1
- Cash app
- Wallet
- Kevin m lyons jr
- 反射vivo系统方法异常 HOT 2
- In Android 13 it is not working HOT 1
- Reflection.unseal(base); HOT 1
- Writable dex file is not allowed HOT 2
- Considering Update to Android U? HOT 1
- NoSuchMethodException: dalvik.system.VMRuntime.setHiddenApiExemptions HOT 5
- 复现一个偶现crash问题
- reflect bootstrap failed:(in Android 13,api33)
- unsealNative方法有没有被调用到
- 反射仍然是ClassNotFoundException HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from freereflection.