当前位置:网站首页>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
边栏推荐
- Unity3d practical skills - theoretical knowledge base (I)
- Agile practice | agile indicators to improve group predictability
- Unity摄像头跟随鼠标旋转
- [timing] empirical evaluation of general convolution and cyclic networks for sequence modeling based on TCN
- Innovation training (XII) reptile
- 数据孤岛是什么?为什么2022年仍然存在数据孤岛?
- 简单的拖拽物体到物品栏
- 泰克示波器DPO3054自校准SPC失败维修
- The object needs to add additional attributes. There is no need to add attributes in the entity. The required information is returned
- Getprop property
猜你喜欢

Excel uses the functions of replacement, sorting and filling to comprehensively sort out financial data

QML advanced (V) - realize all kinds of cool special effects through particle simulation system

用LCR表完美测试无线充电系统中的线圈

/etc/bash_ completion. D directory function (the user logs in and executes the script under the directory immediately)

【数据库】表的查看、修改和删除
![[paper reading] [3D object detection] voxel transformer for 3D object detection](/img/a2/9f66789cc12fad99491309717cf418.png)
[paper reading] [3D object detection] voxel transformer for 3D object detection

Pixel mobile phone brick rescue tutorial

Introduction to raspberry pie 3B - system installation

Recommended scheme for national production of electronic components of wireless keyboard

PIP3 installation requests Library - the most complete pit sorting
随机推荐
What's the difference between error and exception
Small volume Schottky diode compatible with nsr20f30nxt5g
Innovation training (V) configuration information
Supplement 14: cmake practice project notes (to be continued 4 / 22)
View analysis of scenic spots in ArcGIS
Innovation training (XI) airline ticket crawling company information
Eight misunderstandings that should be avoided in data visualization
Progress of innovation training (III)
Leetcode006 -- find the longest common prefix in the string array
L2-011 玩转二叉树(建树+BFS)
Windows remote connection to redis
js 判斷數字字符串中是否含有字符
Getprop property
Recommended scheme for national production of electronic components for wireless charging
Gets all dates between two times
ApplicationContext injection bean
Painless upgrade of pixel series
解决ValueError: Argument must be a dense tensor: 0 - got shape [198602], but wanted [198602, 16].
泰克示波器DPO3054自校准SPC失败维修
leetcode004--罗马数字转整数