Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Security warning on libdvm.so noticed while deploying Android apps

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.

like image 660
ajacian81 Avatar asked Feb 17 '14 19:02

ajacian81


People also ask

What are the security concerns of Android apps?

The most common security concern for an application on Android is whether the data that you save on the device is accessible to other apps.

Does libdvm have text relocations?

WARNING: linker: libdvm.so has text relocations. This is wasting memory and is a security risk. Please fix. · Issue #20795 · flutter/flutter · GitHub Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

What should I do before deploying my Android app?

Before deploying your app, make sure that all libraries, SDKs, and other dependencies are up to date: For first-party dependencies, such as the Android SDK, use the updating tools found in Android Studio, such as the SDK Manager .

What are the challenges of writing Android apps on a VM?

For developers experienced with VM programming in other environments, there are two broad issues that may be different about writing apps for Android: Some virtual machines, such as the JVM or .NET runtime, act as a security boundary, isolating code from the underlying operating system capabilities.


2 Answers

Were this your own jni library or native executable the solution would be to update to ndk r8c or later as discussed at:

mylib.so has text relocations. This is wasting memory and is a security risk. Please fix

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.

like image 121
Chris Stratton Avatar answered Sep 21 '22 11:09

Chris Stratton


I was getting this error because I was trying to install an APK with minSdkVersion set higher than the device supported.

like image 24
Seth W. Klein Avatar answered Sep 18 '22 11:09

Seth W. Klein