Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8b8936f8 authored by Martin Stjernholm's avatar Martin Stjernholm Committed by android-build-merger
Browse files

Merge "Preload libnativehelper.so which cannot be loaded through the Java...

Merge "Preload libnativehelper.so which cannot be loaded through the Java classloader." am: 9ab1d614 am: e65afdf2
am: 40f29dbc

Change-Id: If715c9bdf42f18e5f1813a3d5a7ea5d046fbefb3
parents e5262a39 40f29dbc
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -5,4 +5,10 @@
#
base=/system
export CLASSPATH=$base/framework/hid.jar

# Preload the native portion libhidcommand_jni.so to bypass the dependency
# checks in the Java classloader, which prohibit dependencies that aren't
# listed in system/core/rootdir/etc/public.libraries.android.txt.
export LD_PRELOAD=libhidcommand_jni.so

exec app_process $base/bin com.android.commands.hid.Hid "$@"