Closed henrytom1703 closed 6 years ago
Hello @romainthomas
Can you help me?
Here new log. How to fix it?
08-15 11:10:59.748 25982-25982/com.oang.app.checker I/ng.app.checker: type=1400 audit(0.0:81346): avc: denied { execute } for path="/data/local/tmp/lib/armeabi-v7a/libtest-lib.so" dev="mmcblk0p47" ino=393263 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:shell_data_file:s0 tclass=file permissive=1
I also tried setenforce But It's not working:
su
setenforce 0
Thanks
You need to patch the SELinux context of /data/local/tmp/lib/armeabi-v7a/libtest-lib.so
using chcon
@romainthomas Could you give me a command line? I tried But It;s not working. here log:
1|root@htc_m8:/ # su -c 'chcon -R /data/local/tmp/lib/armeabi-v7a/libtest-lib.so'
usage: chcon [-hRv] CONTEXT FILE...
Change the SELinux security context of listed file[s].
-h change symlinks instead of what they point to.
-R recurse into subdirectories.
-v verbose output.
chcon: Need 2 arguments
Thanks,
Yes chcon needs a Selinux context...
@romainthomas Do you know how to find a correct Selinux context? Could you provide me a command line? Thanks
Hello guys. Cannot call JNI_OnLoad function of libtest-lib.so after injected libtest-lib.so into libnative-lib.so. Anyone, who can help me fix it: Thanks Here my source code: Android App:
native-lib.cpp (libnative-lib.so)
Lib inject so: test-lib.cpp (libtest-lib.so)
python code inject:
adb shell:
Rooted device: HTC one m9