Security warning on libdvm.so noticed while deploying Android apps
AndroidEclipseAndroid Problem Overview
Has anyone seen this before?
>ActivityManager: WARNING: linker: libdvm.so has text relocations. This is wasting memory and is a security risk. Please fix.
This occurs as I'm trying to deploy an app to my device. Google doesn't seem to help at this point.
Android Solutions
Solution 1 - Android
Were this your own jni library or native executable the solution would be to update to ndk r8c or later as discussed at:
in order to obtain a fix for 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.
It is only a warning though.
Solution 2 - Android
I was getting this error because I was trying to install an APK with minSdkVersion set higher than the device supported.
Solution 3 - Android
I had the same error and i fixed it by removing other versions of the app installed on the device.
Solution 4 - Android
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].