博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Android7.0后JNI库必须保留Section Headers
阅读量:6909 次
发布时间:2019-06-27

本文共 898 字,大约阅读时间需要 2 分钟。

此修改在官网的描述如下:

Each ELF file has additional information contained in the section headers. These headers must be present now, because the dynamic linker uses them for sanity checking. Some developers try to strip them in an attempt to obfuscate the binary and prevent reverse engineering. (This doesn’t really help because it is possible to reconstruct the stripped information using widely-available tools.)

$ readelf --header libBroken.so | grep 'section headers'  Start of section headers:          0 (bytes into file)  Size of section headers:           0 (bytes)  Number of section headers:         0$

Resolution: remove the extra steps from your build that strip section headers.

理解:

1.ELF文件,必须要保留 section headers,Android7.0后dynamic linker会对这个字段做检查

2.一些app开发者之前去掉section headers的目的是为了混淆或保护,其实效果不大

3.修复方法是在编译JNI库时去掉strip section headers步骤

转载于:https://www.cnblogs.com/jason207489550/p/6669899.html

你可能感兴趣的文章
支撑AIOps的运维角色和技能有哪些?
查看>>
浏览器渲染的过程
查看>>
扎克伯格发信表示押注区块链,即时通讯 + 加密货币 = 全球化使用!
查看>>
从Jenkins迁移到Jenkins X:一场持续交付之旅\n
查看>>
终极指南:如何使用Visual Studio Code进行 Java 开发?
查看>>
GitHub采用了新的GraphQL API
查看>>
保持分布式团队同步
查看>>
如何在国内构建一个硅谷级的高效技术团队?
查看>>
物联网技术周报第 144 期: 基于 KafKa + OTS + MaxCompute 完成了一次物联网系统技术重构...
查看>>
手机端效果(一)滑块效果
查看>>
微软开发团队的DevOps实践启示
查看>>
通过XAML Islands使Windows桌面应用程序现代化
查看>>
敏捷方法在测试计划中的应用
查看>>
美团DBA团队数据库智能运维探索与实践
查看>>
深度学习框架不能“包治百病”,开发者如何选出最适合自己的?
查看>>
Salesforce大刀阔斧变革开发者体验
查看>>
封仲淹:Storm 2.0将会基于JStorm,阿里巴巴全程参与
查看>>
百度正式开源其RPC框架brpc
查看>>
极客时间App安卓版上线,让知识获取更加简单
查看>>
微服务通信策略
查看>>