当前位置:网站首页>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
边栏推荐
- QML advanced (IV) - drawing custom controls
- Progress of innovation training (IV)
- L2-011 玩转二叉树(建树+BFS)
- QML advanced (V) - realize all kinds of cool special effects through particle simulation system
- [paper reading] [3D object detection] voxel transformer for 3D object detection
- JS generates a specified number of characters according to some words
- Innovation training (II) task division
- KVM error: Failed to connect socket to ‘/var/run/libvirt/libvirt-sock‘
- leetcode001--返回和为target的数组元素的下标
- CLion+OpenCV identify ID number - detect ID number
猜你喜欢

简单的拖拽物体到物品栏

Experience summary and sharing of the first prize of 2021 National Mathematical Modeling Competition

redis数据类型有哪些

做数据可视化应该避免的8个误区

Supplement 14: cmake practice project notes (to be continued 4 / 22)

MySQL - index

Learning Android V from scratch - UI

Learning Android from scratch -- Introduction

【数据库】MySQL基本操作(基操~)

New terminal play method: script guidance independent of technology stack
随机推荐
使用model.load_state_dict()时,出现AttributeError: ‘str‘ object has no attribute ‘copy‘
FAQ of foreign lead and alliance Manager
Use model load_ state_ Attributeerror appears when dict(): 'STR' object has no attribute 'copy‘
Leetcode001 -- returns the subscript of the array element whose sum is target
The object needs to add additional attributes. There is no need to add attributes in the entity. The required information is returned
leetcode008--实现strStr()函数
Unity3D 实用技巧 - 理论知识库(一)
Key points of AWS eks deployment and differences between console and eksctl creation
简单的拖拽物体到物品栏
Programmers complain: I really can't live with a salary of 12000. Netizen: how can I say 3000
Unity RawImage背景无缝连接移动
Eight misunderstandings that should be avoided in data visualization
Windows remote connection to redis
Pixel mobile phone brick rescue tutorial
Excel protects worksheets and workbooks from damage
Druid -- JDBC tool class case
Spell it! Two A-level universities and six B-level universities have abolished master's degree programs in software engineering!
Download PDF from HowNet (I don't want to use CAJViewer anymore!!!)
Flink case - Kafka, MySQL source
unity摄像机旋转带有滑动效果(自转)