Comments (5)
能提供一下 hook 的是哪个方法吗,我这里没有复现出来
from pine.
String methodName = Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT ? "openDexFileNative" : "openDexFile";
XposedBridge.hookAllMethods(DexFile.class, methodName,new XC_MethodHook()
XposedBridge.hookAllMethods(Camera.class, "native_setup",new XC_MethodHook() {}
from pine.
我尝试使用如下代码,未能复现闪退。麻烦确认一下同样的代码是否能在你那里复现闪退。
另外麻烦提供一下一些配置信息,比如应用是否 debuggable,是否打开了 pending hook.
try {
Pine.hook(Camera.class.getDeclaredMethod("native_setup", Object.class, int.class, String.class), new MethodHook() {
@Override
public void beforeCall(Pine.CallFrame callFrame) throws Throwable {
Log.e(TAG, "Calling with" + Arrays.toString(callFrame.args));
}
});
} catch (NoSuchMethodException e) {
throw new RuntimeException(e);
}
for (int i = 0;i < 2000;i++) {
Camera camera = Camera.open();
Log.e(TAG, "Opened " + i + " camera");
camera.release();
}
Log.e(TAG, "Camera test done");
from pine.
Related Issues (20)
- java.lang.AbstractMethodError: abstract method "java.lang.Object top.canyie.pine.callback.MethodReplacement.replaceHookedMethod(top.canyie.pine.Pine$CallFrame)" HOT 1
- https://dl.bintray.com/canyie/pine Forbidden HOT 1
- Pending hook crashes on Android 12 HOT 4
- null pointer deref in callBackupMethod fault addr 0xc HOT 1
- [Pine related crash on specific ROM] Unable to run Aliucord at all on CrDroid 8 HOT 6
- Regression: Null Pointer deref in GrapheneOs Android 12 HOT 6
- please support X86 and X86_64 HOT 4
- Trampoline code crashes with "Illegal instruction" on WearOS HOT 5
- PendingHookHandler depends on default handler's internal behavior
- Release后无效 HOT 2
- Crash on Android 12 When start with "Debug 'app'" HOT 4
- 安卓12测试无法成功hook HOT 2
- Hook 的 Static String 仅在应用内部生效 HOT 5
- Hook 方法突然间不会被hook了 HOT 15
- 什么时候支持13 HOT 1
- 安卓13 Release 状态下Hook静态方法失败 HOT 3
- STREX Rd cannot be Rt or Rn HOT 6
- Stack corruption on Nubia NX531J Android 6.0.1 arm64-v8a
- Unable to handle unknown calling convention on Nubia NX531J Android 6.0 arm32
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 pine.