Function: selinux_android_load_priority [0], no sepolicy file

I have 2 errors in logcat.

Function: selinux_android_load_priority [0], There is no sepolicy file 

04-11 10:58:13.837: E/SELinux(10101): Function: selinux_android_load_priority , loading version is VE=SEPF_SGH-I337M_4.3_0022

This is not fatal, my application looks fine.

Any idea what is the reason and how to fix it? It just might be an error log in my application!

Th

+4
source share
1 answer

I do not know how to get rid of these messages. But they do not allow working with the Android NDK ndk-gdbscript. I found this question while searching for a way to get the debugger to work after receiving this error:

ERROR: Could not setup network redirection to gdbserver?
       Maybe using --port=<port> to use a different TCP port might help?

, - , Samsung , , , , Samsung Galaxy Note 2. (, run-as) selinux stderr.

ndk-gdb script , , , , . selinux . , $NDK_HOME/ndk-gdb :

diff --git a/ndk-gdb b/ndk-gdb
index 537808e..c8561e5 100755
--- a/ndk-gdb
+++ b/ndk-gdb
@@ -620,7 +620,7 @@ else
 fi

 # Find the <dataDir> of the package on the device
-adb_var_shell2 DATA_DIR run-as $PACKAGE_NAME /system/bin/sh -c pwd
+adb_var_shell DATA_DIR "run-as $PACKAGE_NAME /system/bin/sh -c pwd 2>/dev/null"
 if [ $? != 0 -o -z "$DATA_DIR" ] ; then
     echo "ERROR: Could not extract package data directory. Are you sure that"
     echo "       your installed application is debuggable?"
+2

Source: https://habr.com/ru/post/1536165/


All Articles