首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >ANDR-PERF tryGetService失败;SELinux

ANDR-PERF tryGetService失败;SELinux
EN

Stack Overflow用户
提问于 2019-03-05 22:34:27
回答 2查看 3.3K关注 0票数 1

每次我在设备上启动我的应用程序时,我都会在日志中看到这个错误。

E/ANDR-PERF: IPerf::tryGetService失败!E/SELinux: avc:拒绝{ find } for interface=vendor.qti.hardware.perf::IPerf pid=3328 scontext=u:r:untrusted_app:s0:c123,c256,c512,c768 tcontext=u:object_r:hal_perf_hwservice:s0 tclass=hwservice_manager permissive=0

我有点搞不懂这是什么意思。也许是我的某个库导致了这种情况?

代码语言:javascript
运行
复制
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

//General Stuff
implementation "com.android.support:appcompat-v7:$compile_version"
implementation "com.android.support:support-v4:$compile_version"
implementation "com.android.support:design:$compile_version"
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation "com.android.support:recyclerview-v7:$compile_version"
implementation "com.android.support:cardview-v7:$compile_version"
implementation "com.android.support:exifinterface:$compile_version"

//Test
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

//Testfairy
implementation 'testfairy:testfairy-android-sdk:1.9.4'

//REST - MVVM
implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
implementation 'android.arch.lifecycle:extensions:1.1.1'
implementation 'com.squareup.okhttp3:okhttp:3.10.0'

//Location
implementation 'com.google.android.gms:play-services-location:16.0.0'
implementation 'com.google.android.gms:play-services-maps:16.1.0'

//Async Tasks
implementation "org.jetbrains.anko:anko-commons:0.10.0"

//Barcode Detector
//OCR Scanner
implementation 'com.google.android.gms:play-services-vision:17.0.2'
implementation 'com.google.zxing:core:3.3.0'

//Biometric Authentication
implementation 'com.kevalpatel2106:fingerprint-dialog-compat:1.0'

//Glide Image manager
implementation 'com.github.bumptech.glide:glide:4.8.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.8.0'

//Image Viewer
implementation 'com.facebook.fresco:fresco:1.9.0'
implementation 'com.github.stfalcon:frescoimageviewer:0.5.0'

//EditText Label Design
implementation 'com.wrapp.floatlabelededittext:library:0.0.6'

//Segmented Control
implementation 'info.hoang8f:android-segmented:1.0.6'

//Progress Bar
implementation 'com.github.ybq:Android-SpinKit:1.1.0'

//BlurView
implementation 'com.wonderkiln:blurkit:1.0.0'

//Tags
implementation 'me.gujun.android.taggroup:library:1.4@aar'

//Seek Bar
implementation 'com.ramotion.fluidslider:fluid-slider:0.3.0'

//Rating View
implementation 'com.iarcuschin:simpleratingbar:0.1.5'

//Country Code Picker
implementation 'com.hbb20:ccp:2.2.0'
}
EN

回答 2

Stack Overflow用户

发布于 2019-03-25 22:45:52

此日志文件表示您的某个库存在访问(可能是interface=vendor.qti.hardware.perf::IPerf)冲突。您必须重新启动您的应用程序并找到有问题的应用程序。此外,您还可以在

代码语言:javascript
运行
复制
adb shell ps -eZ | grep  3328 

当你的应用同时运行时,从命令行命令有问题的服务。找到受害者(应用程序)后,您必须添加/external/sepolicy/service_contexts文件,以处理访问冲突的SELinux规则。

票数 0
EN

Stack Overflow用户

发布于 2020-08-24 21:00:14

这似乎是Blurkit库中的一个问题。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/55005210

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档