部署 Android 应用程序时注意到 libdvm.so 上的安全警告
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/21837532/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Security warning on libdvm.so noticed while deploying Android apps
提问by ajacian81
Has anyone seen this before?
有没有人见过这个?
ActivityManager: WARNING: linker: libdvm.so has text relocations. This is wasting memory and is a security risk. Please fix.
ActivityManager:警告:链接器:libdvm.so 有文本重定位。这会浪费内存并且存在安全风险。请修复。
This occurs as I'm trying to deploy an app to my device. Google doesn't seem to help at this point.
当我尝试将应用程序部署到我的设备时会发生这种情况。谷歌在这一点上似乎没有帮助。
采纳答案by Chris Stratton
Were this your own jni library or native executable the solution would be to update to ndk r8c or later as discussed at:
如果这是您自己的 jni 库或本机可执行文件,解决方案将更新到 ndk r8c 或更高版本,如下所述:
mylib.so has text relocations. This is wasting memory and is a security risk. Please fix
mylib.so 有文本重定位。这会浪费内存并且存在安全风险。请修复
in order to obtain a fix for https://code.google.com/p/android/issues/detail?id=23203
为了获得https://code.google.com/p/android/issues/detail?id=23203的修复
However as this appears to be in a platform library (specifically the Dalvik VM itself) rather than something you built, there is not much of anything you can do. You'll likely see this on every Activity process (or at least runtime) startup, until your device manufacturer does an update.
然而,由于这似乎是在平台库(特别是 Dalvik VM 本身)而不是您构建的东西中,因此您无能为力。您可能会在每个 Activity 进程(或至少运行时)启动时看到这一点,直到您的设备制造商进行更新。
It is only a warning though.
但这只是一个警告。
回答by Lea
I had the same error and i fixed it by removing other versions of the app installed on the device.
我遇到了同样的错误,我通过删除设备上安装的其他版本的应用程序来修复它。
回答by Seth W. Klein
I was getting this error because I was trying to install an APK with minSdkVersion set higher than the device supported.
我收到此错误是因为我试图安装 minSdkVersion 设置高于支持的设备的 APK。
回答by Bhrugs
There may be so many reasons behind this error, one of them was what I was getting, but then this error was solved.
这个错误背后可能有很多原因,其中一个是我得到的,但后来这个错误得到了解决。
check while creating emulator, it is 'compatible'or not? on Emulator selection screen [see for last column].
在创建模拟器时检查它是否“兼容”?在模拟器选择屏幕上 [请参阅最后一列]。
if not compatible, then select 'target sdk' as the highest version by editing existing 'Emulator' [as it should be greater than min sdk].
如果不兼容,则通过编辑现有的“模拟器”选择“目标 sdk”作为最高版本 [因为它应该大于最小 sdk]。
回答by Talal Absar
Same error faced while running the application on tablet, removing the following line from build.gradle worked for me.
在平板电脑上运行应用程序时遇到同样的错误,从 build.gradle 中删除以下行对我有用。
Remove this line: testInstrumentationRunner"android.support.test.runner.AndroidJUnitRunner"
删除这一行: testInstrumentationRunner"android.support.test.runner.AndroidJUnitRunner"