zhkl0228 / unidbg

Allows you to emulate an Android native library, and an experimental iOS emulation
Apache License 2.0
3.88k stars 966 forks source link

请问下如果native方法参数有Context如何处理 #5

Closed qtfreet00 closed 5 years ago

qtfreet00 commented 5 years ago

我看了下示例中几个都是常规的基本参数,没有跟android环境相关的参数类型

zhkl0228 commented 5 years ago

src/test 目录下有个com.xunmeng.pinduoduo.secure.DeviceNative 里面有个例子

freemanZYQ commented 5 years ago

https://bbs.pediy.com/thread-249732.htm 这里作者有回复 Object custom = null; DvmObject context = vm.resolveClass("android/content/Context").newObject(custom);

pkw123456 commented 4 years ago

作者你好,你说的com.xunmeng.pinduoduo.secure.DeviceNative这个类我在项目里找不到,能说一下具体位置吗?

pkw123456 commented 4 years ago

@zhkl0228

RickyCong commented 3 years ago

https://github.com/zhkl0228/unidbg/blob/4e7c3c1f478ed9c97c30fff16995105bf949f40d/src/test/java/com/xunmeng/pinduoduo/secure/DeviceNative.java