Comments (9)
最近没啥时间看这个,你可以提个pr过来帮忙改下。
from byopen.
提了,不是很优雅,因为在我的一台老的安卓设备上不知道为什么不能用%c%cx%c进行过滤,所以直接先把属性提出来再判断了
from byopen.
过滤 x 也不行,很多设备 maps 上 一个 so 过滤了 x 后的,offset 都不是 0,算出来的 baseaddr 还是不对,尤其是 11 上会取错。
from byopen.
我本地更新了一个版本,减去offset就可以了
没提pr。。
from byopen.
我没用 11设备测试过,我在10的设备上 读取linker的符号的时候遇到这个问题了
你直接改一下咯,哈哈哈
from byopen.
过滤 x 也不行,很多设备 maps 上 一个 so 过滤了 x 后的,offset 都不是 0,算出来的 baseaddr 还是不对,尤其是 11 上会取错。
我这段时间比较忙,后面有时间了打算直接对linker打补丁
from byopen.
我现在 master 的就是减了 offset 的。。android 11/armv7 上必崩,内部调用 android_runtime.so getenv 时候,就是 so baseaddr 在 减去 offset 后算出来的 baseaddr 值,跟首行 offset 的那个 baseaddr 后有偏差
减去 offset 算的不是完全准的。
from byopen.
我没用 11设备测试过,我在10的设备上 读取linker的符号的时候遇到这个问题了
你直接改一下咯,哈哈哈
你这个是老版本的,master 上老早减掉 offset 了。。不过也不完全对
from byopen.
我现在 master 的就是减了 offset 的。。android 11/armv7 上必崩,内部调用 android_runtime.so getenv 时候,就是 so baseaddr 在 减去 offset 后算出来的 baseaddr 值,跟首行 offset 的那个 baseaddr 后有偏差
减去 offset 算的不是完全准的。
拉到ida里看下,差多少?我晚点找个 11看看,是计算 libandroid_runtime.so的函数有偏差吗?32位还是 64位?
from byopen.
Related Issues (11)
- 安卓10,Redmi K20 Pro,加载 libnativeloader_lazy.so 还是会失败 HOT 1
- byOpen可以加载/system/lib之外的例如SD卡当中的so吗 HOT 4
- 小米10 测试到一个so库 在armeabi / armeabi-va7下使用by_dlopen会闪退。 HOT 7
- 请问iOS的使用能提供一个demo吗 HOT 3
- Translate the ReadMe into English HOT 4
- arm64下安卓可执行文件by_dlopen无法加载/data/local/tmp下的so文件 HOT 3
- 关于传参问题(Call function parameters)
- iOS 无法加载IOKit.framework,加载失败;使用系统的dlopen可以 HOT 2
- 命名让人头皮发麻
- java版报错 HOT 1
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 byopen.