Preload libnativehelper.so which cannot be loaded through the Java classloader.
Test: atest CtsHardwareTestCases (between 2 and 4 failing tests, but that happens on clean ToT too; no dlopen failures) Bug: 126601993 Change-Id: Icfe58fad93b97992e39758c02c92c488a13c717f
This commit is contained in:
@@ -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 "$@"
|
||||
|
||||
Reference in New Issue
Block a user