Security warning on libdvm.so noticed while deploying Android apps

AndroidEclipse

Android 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:

https://stackoverflow.com/questions/20141538/mylib-so-has-text-relocations-this-is-wasting-memory-and-is-a-security-risk-pl

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].

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionajacian81View Question on Stackoverflow
Solution 1 - AndroidChris StrattonView Answer on Stackoverflow
Solution 2 - AndroidSeth W. KleinView Answer on Stackoverflow
Solution 3 - AndroidLeaView Answer on Stackoverflow
Solution 4 - AndroidBhrugsView Answer on Stackoverflow