当前位置:网站首页>Other problems encountered in debugging fingerprints
Other problems encountered in debugging fingerprints
2022-04-23 04:50:00 【Dream full stack program ape】
Other problems encountered when debugging fingerprints
1.SELinux
android 8.0 SELinux Great changes have taken place , at present SELinux Compile it , Will be generated in two directories :
1.system/etc/sepolicy
2.vendor/etc/sepolicy
compile SELinux You can't just compile as before bootimage. Now compile bootimage It can't be generated Selinux Of documents ,
For the time being, I can only think of all the compilation methods .
test SeLinux Whether to compile to :
1.android 8.0 Before , You can take a look at this out/project/obj/sepolicy_interdaiates/policy.conf Is there... In this file
Self written selinux The rules
2.android 8.0 after , look down system/etc/sepolicy perhaps vendor/etc/sepolicy Have you written it yourself selinux The rules
2. Close... From the source code SELinux The security policy
Code location :/system/core/init/init.cpp
modify selinux_is_enforcing() The function is as follows
static bool selinux_is_enforcing(void){
return false; //force set selinux permissive.
if (ALLOW_PERMISSIVE_SELINUX) {
return selinux_status_from_cmdline() == SELINUX_ENFORCING;
}
return true;
}
3.app load jni compiled .so Report the wrong question
If you app It is compiled in the system , And then you install Installed , It's easy to have this problem
1. The details of error reporting are as follows :
java.lang.UnsatisfiedLinkError: dlopen failed: library "xx.so"
("/system/lib/xx.so") needed or dlopened by
"/system/lib/libnativeloader.so" is not accessible for the namespace
"classloader-namespace"at java.lang.Runtime.loadLibrary0(Runtime.java:977)
at java.lang.System.loadLibrary(System.java:1602)
reason :android 7.0, There are some behavioral changes ,app You cannot call the private of the system .so file . You can only call the public of the system .so
Solution :
Put yourself jni Generated .so Put it in /system/etc/public.libraries.txt perhaps /vendor/etc/public.libraries.txt In the middle .
And then put public.libraries.txt push go in
版权声明
本文为[Dream full stack program ape]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220554572395.html
边栏推荐
- leetcode007--判断字符串中的括号是否匹配
- Basic operation of sequence table
- The 14th issue of HMS core discovery reviews the long article | enjoy the silky clip and release the creativity of the video
- List remove an element
- Key points of AWS eks deployment and differences between console and eksctl creation
- redis数据类型有哪些
- Open the past and let's start over.
- Innovation training (XII) reptile
- Luogu p1858 [multi person knapsack] (knapsack seeking the top k optimal solution)
- Improving 3D object detection with channel wise transformer
猜你喜欢
Small volume Schottky diode compatible with nsr20f30nxt5g
PHP+MySQL 制作留言板
Unity rawimage background seamlessly connected mobile
Flink's important basics
Spark optimization
Recommended scheme of national manufactured electronic components for intelligent electronic scales
Customize the navigation bar at the top of wechat applet (adaptive wechat capsule button, flex layout)
Pixel mobile phone brick rescue tutorial
Youqilin 22.04 lts version officially released | ukui 3.1 opens a new experience
Repair of self calibration SPC failure of Tektronix oscilloscope dpo3054
随机推荐
Programmers complain: I really can't live with a salary of 12000. Netizen: how can I say 3000
leetcode001--返回和为target的数组元素的下标
Unity攝像頭跟隨鼠標旋轉
Gets all dates between two times
Innovation training (IV) preliminary preparation - server
Manually write smart pointer shared_ PTR function
La caméra Unity tourne avec la souris
MySQL - data read / write separation, multi instance
Windows remote connection to redis
用LCR表完美测试无线充电系统中的线圈
Last day of 2017
MySQL time function query
Jetpack -- lifecycle usage and source code analysis
unity摄像机旋转带有滑动效果(自转)
io. Platform. packageRoot; // ignore: deprecated_ Member_ use
New terminal play method: script guidance independent of technology stack
Open the past and let's start over.
Download PDF from HowNet (I don't want to use CAJViewer anymore!!!)
Innovation training (IX) integration
Flink case - Kafka, MySQL source