|
[讨论]关于LD_PRELOAD在Android API HOOK中的应用
放置全局变量的方法看懂了 但是我有个hook so时的问题 比如我想hook frameworks/av/camera下的libcamera_client.so 中的connect函数。代码如下: sp<Camera> Camera::connect(int cameraId) { LOGV("connect"); sp<Camera> c = new Camera(); const sp<ICameraService>& cs = getCameraService(); if (cs != 0) { c->mCamera = cs->connect(c, cameraId); } if (c->mCamera != 0) { c->mCamera->asBinder()->linkToDeath(c); c->mStatus = NO_ERROR; } else { c.clear(); } return c; } 我想把它写到自己的函数中,中间加些代码,生成so,放到LD_PRELOAD中。 但是其中的引用复杂,引用库之间牵连甚广,命名空间,类要不要?怎么取舍? 我的。cpp文件怎么写? 原camera。cpp如附件 |
|
[求助]非虫大哥,求教关于您的文章android api hook问题
谢谢! 1.有权限,我想把它做成一个软件,安装的时候修改。电脑连接adb shell只能对一台机器。有没有解决的方法 2.如果我想写一个open函数,内容和系统代码相同,只是插几句自己的代码,生成so文件,然后挂在LD_PRELOAD上。但是我实现过程中发现只是这一个函数就引用了好多库,那些库有引用库,错综复杂。有没有解决办法? |
|
[求助]谁知道这个android.mk文件会生成什么?
不会生成动态库吗? include $(BUILD_HEAPTRACKED_SHARED_LIBRARY) 名字应该是看LOCAL_MODULE:= camera.$(TARGET_BOARD_PLATFORM)吧? 如果include $(BUILD_HEAPTRACKED_SHARED_LIBRARY)是 include $(BUILD_SHARED_LIBRARY) 生成的应该是libcamera.omap4.so 但加了个heaptracked,堆指针? 生成的东西camera.omap4是什么类型文件?功能和动态库一样吗? 可以按正常方法hook吗? 求详解 |
|
[求助]谁知道这个android.mk文件会生成什么?
嗯,我想知道生成一个叫什么名字的文件 重点是这句:LOCAL_MODULE:= camera.$(TARGET_BOARD_PLATFORM) 看不懂 |
|
[求助]android系统代码中hardware的代码问题
另外,open函数的内容什么? |
|
[求助]求监控手机摄像头的方法 谁能帮帮我
只能这样了! |
|
|
|
[讨论]关于LD_PRELOAD在Android API HOOK中的应用
小弟最近在研究这块,我是要搞一个拦截不正常开启Camera和mic的。有一个不成熟的想法,通过注入,获取他们的open函数在plt/got表中位置,然后hook一个自己的函数 然后看了非虫大哥的文章,想从LD_PERLOAD入手,但是install.bat那块没看懂,不知道它在哪里执行,cmd上?找不着路径,手机上?不会。如果可以的话,教教小弟 |
|
|
|
|
|
[求助]求学hook API 具体方法或途径
求关于hook的教程 |
|
[求助]求学hook API 具体方法或途径
需要什么工具?什么格式的文档?放在什么地方?与主程序怎么连接?(android) |
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值