在arm64平台中删除了获取android系统属性的API

我使用sys / system_properties.h中的__system_property_get()来获取系统属性.我正在尝试使用r10c ndk,因为我需要arm64工具链.

__system_property_get()在libc.so中定义.下面是armv5 / armv7a的libc.so的readelf输出.

readelf -Ws libc.so | grep property_get

       194: 00009100    20 FUNC    GLOBAL DEFAULT    4 __system_property_get
       198: 00009100    20 FUNC    GLOBAL DEFAULT    4 __system_property_get

但是,看起来已经删除了arm64版本!我收到一个链接器错误,说它没有定义.我分析了arm64的所有共享库,但没有一个具有该符号.

是否有替代API来获取本机代码中的系统属性?

谢谢!

解决方法

这从来没有打算成为公共API.它隐藏在64位工具链中,因为我们可以在不破坏ABI兼容性的情况下这样做.

Is there an alternate API to get the system property in the native code?

不会.此功能从未应用于应用程序.

你想做什么?

以上是来客网为你收集整理的在arm64平台中删除了获取android系统属性的API全部内容,希望文章能够帮你解决在arm64平台中删除了获取android系统属性的API所遇到的程序开发问题。

如果觉得来客网网站内容还不错,欢迎将来客网网站推荐给程序员好友。