最新消息:20210917 已从crifan.com换到crifan.org

【未解决】安卓项目rcsjta的core运行报错:libc Access denied finding property ro.vendor.df.effect.conflict

Access crifan 2094浏览 0评论
折腾:
【未解决】Android Studio真机小米9中调试rcsjta的core的apk
期间,用Android Studio调试rcsjta的core的apk,Logcat错误日志:
com.gsma.rcs E/libc: Access denied finding property "ro.vendor.df.effect.conflict"
去看看什么原因
libc: Access denied finding property “ro.vendor.df.effect.conflict”
【AS-AndroidX】迁移AndroidX带来的问题_dandelionela的博客-CSDN博客_access denied finding property ro.vendor.df.effec
android studio – Preferences library is causing E/libc & E/Pref errors – Stack Overflow
java – Why location doesn’t work in app with android 10? – Stack Overflow
或许和android 10有关系?
此处安卓手机是:小米9
  • Android:10
  • MIMU:11.0.9
别人用的是安卓的sdk是29
android – java.lang.IllegalArgumentException: Given String is empty or null – Stack Overflow
好像是和preference有关系?
项目中没有androidx.preference
有用到:addPreferencesFromResource
好像没啥特殊的。
libc Access denied finding property
Access denied finding property “vendor.debug.egl.swapinterval” – after installing Android P Beta on OnePlus 6 · Issue #19810 · flutter/flutter
好像是和:获取手机中的属性值 有关系
此处的属性是:
ro.vendor.df.effect.conflict
不知道为何需要获取这个属性
以及这个属性是干啥的
java – Access denied finding property “vendor.debug.egl.swapinterval” i am keep getting this error in android studio when i run my app – Stack Overflow
说是sdk 29有render方面的bug
换成27就可以了?
android – Access denied finding property “camera.hal1.packagelist” – Stack Overflow
好像加上申请访问外部存储的权限
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
就可以了?
去找找此处是否已经申请此权限
果然已有:
core/AndroidManifest.xml
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
java – How to solve runtime error “Access denied finding property”? – Stack Overflow
很多这类错误,相关属性都是:
vendor.debug.xxx.xx
看来是:和手机厂商 相关?
有些手机厂商没提供这个参数属性?所以读取不到而报错?
android – Access denied finding property “vendor.debug.egl.profiler” – Stack Overflow
vendor.debug.egl.profiler
vendor.gralloc.enable_ahardware_buffer
ro.vendor.graphics.memory
android studio – Access denied finding property “persist.vendor.log.tel_dbg” – Stack Overflow
persist.vendor.log.tel_dbg
Android8.0及其以上版本获取序列号时报:Access denied finding property “ro.serialno” – 简书
ro.serialno
那去研究看看:ro.vendor.df.effect.conflict
【AS-AndroidX】迁移AndroidX带来的问题_dandelionela的博客-CSDN博客_access denied finding property ro.vendor.df.effec
android studio – Preferences library is causing E/libc & E/Pref errors – Stack Overflow
Error while initializing the Dart VM: Snapshot not compatible with the current VM configuration
使用flutter在安卓上开发遇到问题,随附log – Agora 音视频 SDK – RTC开发者社区-WebRTC中文论坛|RTC实时技术论坛
AVException: timeout – 问题讨论 / SDK / API – LeanCloud 用户社区
另外突然想到,去项目中看看是否哪里有调用到:ro.vendor.df.effect.conflict
的地方,结果并没有。
然后换去:
【无法解决】安卓项目rcsjta的core运行报错:type 1400 audit avc denied read for name object_r vendor_displayfeature_prop s0 dev tmpfs scontext tcontext tclass file permissive 0
然后也就明白了:
此处的相关的完整的错误日志是:
2020-08-04 16:05:39.102 6396-6396/com.gsma.rcs W/com.gsma.rcs: type=1400 audit(0.0:526384): avc: denied { read } for name="u:object_r:vendor_displayfeature_prop:s0" dev="tmpfs" ino=16384 scontext=u:r:untrusted_app_25:s0:c512,c768 tcontext=u:object_r:vendor_displayfeature_prop:s0 tclass=file permissive=0

2020-08-04 16:05:39.113 6396-6396/com.gsma.rcs E/libc: Access denied finding property "ro.vendor.df.effect.conflict"
而此处讨论的是第二条错误:
E/libc: Access denied finding property "ro.vendor.df.effect.conflict"
其意思是:想要查找属性ro.vendor.df.effect.conflict,但由于没有权限访问而被拒绝了。

其根本原因是:
第一条错误导致的:
type=1400 audit(0.0:526384): avc: denied { read } for name="u:object_r:vendor_displayfeature_prop:s0" dev="tmpfs" ino=16384 scontext=u:r:untrusted_app_25:s0:c512,c768 tcontext=u:object_r:vendor_displayfeature_prop:s0 tclass=file permissive=0
其具体含义,详见:
【无法解决】安卓项目rcsjta的core运行报错:type 1400 audit avc denied read for name object_r vendor_displayfeature_prop s0 dev tmpfs scontext tcontext tclass file permissive 0
此处翻译成人话就是:
untrusted_app_25 想要对于 file 类型的 vendor_displayfeature_prop 去 read
(但是被Android的SELinux拒绝denied了
解决办法:
给SELinux加上上述的权限
具体步骤,请参考:
【无法解决】安卓项目rcsjta的core运行报错:type 1400 audit avc denied read for name object_r vendor_displayfeature_prop s0 dev tmpfs scontext tcontext tclass file permissive 0

转载请注明:在路上 » 【未解决】安卓项目rcsjta的core运行报错:libc Access denied finding property ro.vendor.df.effect.conflict

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
97 queries in 0.174 seconds, using 23.26MB memory