open failed: EBUSY (Device or resource busy)

后端 未结 7 2070

I have a strange error in my App.

In my app it is possible to download a zipFile, read the content as what it is and also delete it. Its doesn\'t matter what exactly

7条回答
  •  渐次进展
    2020-12-24 12:22

    This issue may be cause by

    • two or more process reference the same file

    • file was deleted,but the reference not be killed

    However,deleted it,only one reference was killed,or one or more process reference this file also

    you can step by step:

    before you delete the file you should

    • adb shell lsof | grep "com.xxxxxx.android"

    The file you have been opened,and which process reference the file which you opened. also,this command ,show us the process id

    than,

    • adb shell ls -al /proc/%d/fd

    Surprise waiting for you, O(∩_∩)O

    good luck!

提交回复
热议问题