Android 5.0 and later only support position-independent executables
生活随笔
收集整理的這篇文章主要介紹了
Android 5.0 and later only support position-independent executables
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
在參考Android利用tcpdump和wireshark抓取網(wǎng)絡數(shù)據(jù)包使用tcpdump的時候,會提示如下信息:
λ adb shell /data/local/tcpdump "/data/local/tcpdump": error: Android 5.0 and later only support position-independent executables (-fPIE).什么是PIE:
位置獨立的可執(zhí)行區(qū)域(position-independent executables)為什么要關閉PIE:
Android L(以上)中限制每個app只能在sd卡的特定文件夾內寫入文件而不能讀取整個sd卡,這樣便于管理app。解決方法
執(zhí)行該native可執(zhí)行文件,輸出位置放到同目錄就好了。
λ adb shell phone:/ # cd data/local/ phone:/data/local # tcpdump -n -s 0 > log.txt參考文獻
總結
以上是生活随笔為你收集整理的Android 5.0 and later only support position-independent executables的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 国企数字化转型的难点及建议
- 下一篇: 上网行为安全之深信服用户认证技术和用户、