当前位置:网站首页>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
边栏推荐
- Improving 3D object detection with channel wise transformer
- redis和mysql区别
- Raspberry pie + opencv + opencv -- face detection ------- environment construction
- leetcode001--返回和为target的数组元素的下标
- 简单的拖拽物体到物品栏
- Spark small case - RDD, broadcast
- Summary of MySQL de duplication methods
- Unity RawImage背景无缝连接移动
- Luogu p1858 [multi person knapsack] (knapsack seeking the top k optimal solution)
- Leetcode009 -- search the target value in the array with binary search
猜你喜欢

Record the ThreadPoolExecutor main thread waiting for sub threads

【数据库】MySQL多表查询(一)

The 14th issue of HMS core discovery reviews the long article | enjoy the silky clip and release the creativity of the video

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

【数据库】MySQL单表查询

Unity rawimage background seamlessly connected mobile

Programmers complain: I really can't live with a salary of 12000. Netizen: how can I say 3000

Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.

What is a data island? Why is there still a data island in 2022?

New terminal play method: script guidance independent of technology stack
随机推荐
【数据库】MySQL单表查询
Unity3d practical skills - theoretical knowledge base (I)
Spell it! Two A-level universities and six B-level universities have abolished master's degree programs in software engineering!
拼了!两所A级大学,六所B级大学,纷纷撤销软件工程硕士点!
ApplicationContext injection bean
List< Map> Replication: light copy and deep copy
js 判斷數字字符串中是否含有字符
The programmer starts the required application with one click of window bat
【数据库】表的查看、修改和删除
redis数据类型有哪些
负载均衡简介
Mysql50 basic exercises
Agile practice | agile indicators to improve group predictability
Learning Android from scratch -- baseactivity and activitycollector
L2-011 play binary tree (build tree + BFS)
程序员抱怨:1万2的工资我真的活不下去了,网友:我3千咋说
Set Chrome browser background to eye protection (eye escort / darkreader plug-in)
Leetcode - > 1 sum of two numbers
Innovation training (IX) integration
Recommended scheme of national manufactured electronic components for intelligent electronic scales