N上预置APK失败提示找不到so文件
来源:互联网 发布:java多线程是什么 编辑:程序博客网 时间:2024/05/18 09:10
[DESCRIPTION]
预置APK到系统之后打开APK会提示:
01-01 12:00:39.537 5326 5326 E AndroidRuntime: Process: com.skype.raider, PID: 532601-01 12:00:39.537 5326 5326 E AndroidRuntime: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathListlib] couldn't find "libSkypeAndroid.so"01-01 12:00:39.537 5326 5326 E AndroidRuntime: at java.lang.Runtime.loadLibrary0(Runtime.java:972)01-01 12:00:39.537 5326 5326 E AndroidRuntime: at java.lang.System.loadLibrary(System.java:1530)01-01 12:00:39.537 5326 5326 E AndroidRuntime: at com.skype.android.util.CrashAndAnrHandler.<clinit>(SourceFile:19)01-01 12:00:39.537 5326 5326 E AndroidRuntime: at com.skype.android.util.CrashAndAnrHandler.saveHandlers(Native Method)01-01 12:00:39.537 5326 5326 E AndroidRuntime: at com.skype.android.skylib.SkyLibInitializer.a(SourceFile:115)01-01 12:00:39.537 5326 5326 E AndroidRuntime: at com.skype.android.SkypeModule.a(SourceFile:126)01-01 12:00:39.537 5326 5326 E AndroidRuntime: at com.skype.android.SkypeModule_SkyLibFactory.get(SourceFile:37)01-01 12:00:39.537 5326 5326 E AndroidRuntime: at com.skype.android.SkypeModule_SkyLibFactory.get(SourceFile:11)01-01 12:00:39.537 5326 5326 E AndroidRuntime: at dagger.internal.d.get(SourceFile:47)01-01 12:00:39.537 5326 5326 E AndroidRuntime: at com.skype.android.app.BackgroundMode_Factory.get(SourceFile:72)01-01 12:00:39.537 5326 5326 E AndroidRuntime: at com.skype.android.app.BackgroundMode_Factory.get(SourceFile:16)01-01 12:00:39.537 5326 5326 E AndroidRuntime: at dagger.internal.d.get(SourceFile:47)01-01 12:00:39.537 5326 5326 E AndroidRuntime: at com.skype.android.wakeup.DreamKeeper_Factory.get(SourceFile:48)01-01 12:00:39.537 5326 5326 E AndroidRuntime: at com.skype.android.wakeup.DreamKeeper_Factory.get(SourceFile:12)01-01 12:00:39.537 5326 5326 E AndroidRuntime: at dagger.internal.d.get(SourceFile:47)01-01 12:00:39.537 5326 5326 E AndroidRuntime: at com.skype.android.wakeup.ForegroundObserver_Factory.get(SourceFile:34)01-01 12:00:39.537 5326 5326 E AndroidRuntime: at com.skype.android.wakeup.ForegroundObserver_Factory.get(SourceFile:8)01-01 12:00:39.537 5326 5326 E AndroidRuntime: at dagger.internal.d.get(SourceFile:47)01-01 12:00:39.537 5326 5326 E AndroidRuntime: at com.skype.android.SkypeApplication_MembersInjector.injectMembers(SourceFile:160)01-01 12:00:39.537 5326 5326 E AndroidRuntime: at com.skype.android.SkypeApplication_MembersInjector.injectMembers(SourceFile:24)01-01 12:00:39.537 5326 5326 E AndroidRuntime: at com.skype.android.DaggerSkypeApplicationComponent.inject(SourceFile:2266)01-01 12:00:39.537 5326 5326 E AndroidRuntime: at com.skype.android.SkypeApplication.onCreate(SourceFile:152)01-01 12:00:39.537 5326 5326 E AndroidRuntime: at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1027)01-01 12:00:39.537 5326 5326 E AndroidRuntime: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5503)01-01 12:00:39.537 5326 5326 E AndroidRuntime: at android.app.ActivityThread.-wrap2(ActivityThread.java)01-01 12:00:39.537 5326 5326 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1595)01-01 12:00:39.537 5326 5326 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:110)01-01 12:00:39.537 5326 5326 E AndroidRuntime: at android.os.Looper.loop(Looper.java:203)01-01 12:00:39.537 5326 5326 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6251)01-01 12:00:39.537 5326 5326 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)01-01 12:00:39.537 5326 5326 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1063)01-01 12:00:39.537 5326 5326 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:924)01-01 12:00:39.537 5326 5326 E AndroidRuntime: FATAL EXCEPTION: main
[SOLUTION]
这是因为Google在N上对selinux有更严格的限制,APK的so文件被selinux挡住了:
01-01 12:00:39.520000 5326 5326 W om.skype.raider: type=1400 audit(0.0:64): avc: denied { read } for name="libSkypeAndroid.so" dev="mmcblk0p22" ino=770074 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:system_data_file:s0 tclass=file permissive=0
参考如下的solution:
Add the policy to alps/device/mediatek/common|[platfrom]/sepolicy/basic|bsp|full/xxx.te#====================== untrusted_app.te ======================allow untrusted_app system_data_file:file r_file_perms;
阅读全文
0 0
- N上预置APK失败提示找不到so文件
- 提示找不到so文件
- android 源码中预置带.so文件的APK
- Android的支持库 && app/apk包进系统 && 预置so库进系统 && 预置文件和文件夹进系统
- 提示so文件找不到的错误
- android 预置apk so库等
- Android 6.0 预置so库 apk
- Android 6.0 预置so库 apk
- 【Android N兼容问题】Android N上系统预置应用调用第三方库初始化失败
- Android Studio添加so文件后,运行提示找不到so
- office2007在windows2008上安装失败的诡异原因(提示找不到文件)
- office2007在VS2008上安装失败的诡异原因(提示找不到文件)
- 在 APK 中找不到对应的 securityguard***.so 文件或者 so 文件载入出错
- 在 APK 中找不到对应的 securityguard***.so 文件或者 so 文件载入出错
- Xamarin.Android编译提示找不到mscorlib.dll.so文件
- android 预置apk so库 jar包等
- 预置APK文件到sdcard下
- 预置APK
- 《汇编语言》(第三版)王爽第十章实验10.3个人方法记录
- MariaDB安装与简单配置
- idea启动项目address localhost:1099 is already in use异常解决
- SnowNLP 简单用法例子
- Runtime获取对象隐藏的属性
- N上预置APK失败提示找不到so文件
- Android 微信支付开发流程
- 前端面试题9
- 为什么要用redis
- spring boot & mybatis 集成 方法一
- bootstrap之navbar样式
- angularjs $http服务--XMLHTTPRequest && SQL
- adaptiveThreshold自适应二值化源码分析
- 采用SQLServer 发布,订阅方式实现数据库同步遇到问题总结