ErrnoException:statfs failed:EACCES(Permission denied)&路径无效:/ mnt / sdcard

时间:2014-02-28 00:00:24

标签: android samsung-mobile samsung-mobile-sdk

我的Android应用使用Samsung SPen SDK 2.2。我有> 50个用户和> 3个月我没有收到任何崩溃报告,但今天我在Google Play开发者控制台中找到了一个。它来自三星Galaxy Note 3(Android 4.3),但有很多其他用户使用同一设备从未遇到过这个问题。

你知道崩溃的原因是什么吗?我甚至不知道如何在我的测试设备上重现它。

应用程序代码不适用于SD卡(不像

Environment.getExternalStorageDirectory();

,没有/ mnt / sdcard的硬编码路径等),它没有WRITE_EXTERNAL_STORAGE权限。此外,该应用程序无法安装/移动到SD卡。

崩溃报告包含以下堆栈跟踪:

java.lang.IllegalArgumentException: Invalid path: /mnt/sdcard
at android.os.StatFs.doStat(StatFs.java:46)
at android.os.StatFs.<init>(StatFs.java:39)
at com.samsung.sdraw.CanvasView.onDetachedFromWindow(Unknown Source)
at android.view.View.dispatchDetachedFromWindow(View.java:13064)
at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:2798)
at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:2798)
at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:2798)
at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:2798)
at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:2798)
at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:2798)
at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:2798)
at android.view.ViewRootImpl.dispatchDetachedFromWindow(ViewRootImpl.java:3368)
at android.view.ViewRootImpl.doDie(ViewRootImpl.java:5959)
at android.view.ViewRootImpl.die(ViewRootImpl.java:5942)
at android.view.WindowManagerGlobal.removeViewLocked(WindowManagerGlobal.java:378)
at android.view.WindowManagerGlobal.removeView(WindowManagerGlobal.java:328)
at android.view.WindowManagerImpl.removeViewImmediate(WindowManagerImpl.java:88)
at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:3667)
at android.app.ActivityThread.access$1300(ActivityThread.java:159)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1369)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5414)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1187)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
at dalvik.system.NativeStart.main(Native Method)
Caused by: libcore.io.ErrnoException: statfs failed: EACCES (Permission denied)
at libcore.io.Posix.statfs(Native Method)
at libcore.io.ForwardingOs.statfs(ForwardingOs.java:131)
at android.os.StatFs.doStat(StatFs.java:44)
... 27 more

0 个答案:

没有答案