After adb upload file access and deletion inpossible
- /e/ version: 0.13-q-2020120789006-dev-FP3
- Device model(s): FP3
Summary
After uploading a folder to my FP3 to /sdcard/Audiobooks
I couldn't access the files.
I tried to remove the folder but it was not possible.
Then I tried to connect via adb shell
:
-
ls /sdcard/Audiobooks/Qualityland\ 2.0/
shows the folder is empty -
rm -rf /sdcard/Audiobooks/Qualityland\ 2.0/
showsDirectory not empty
-
ls /sdcard/Audiobooks/Qualityland\ 2.0/*
showsStructure needs cleaning
The problem
Steps to reproduce
I cant reproduce the bug but the bugged folder stays bugged even after a reboot.
What is the current behavior?
There is a folder that I can not delete on my phone.
What is the expected correct behavior?
I should be able to remove the folder.
Technical informations
Relevant logs (adb logcat
)
01-07 17:13:18.210 3238 3238 W AlarmSleepTimer: Waking up.
01-07 17:13:33.285 3238 3669 W IncomingMessageObserver: Application level read timeout...
01-07 17:13:33.294 3238 3669 D IncomingMessageObserver: Network: true, Foreground: false, FCM: false, Censored: false, Registered: true, Websocket Registered: true
01-07 17:13:33.296 3238 3669 D IncomingMessageObserver: Reading message...
01-07 17:13:33.392 1589 1692 E LightsService: Light requested not available on this device. 2
01-07 17:13:33.421 1589 2017 D ConnectivityService: requestNetwork for uid/pid:10147/6497 NetworkRequest [ TRACK_DEFAULT id=66, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10147] ]
01-07 17:13:33.423 1589 1785 D Ethernet: got request NetworkRequest [ TRACK_DEFAULT id=66, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10147] ] with score 60 and serial -1
01-07 17:13:33.423 1589 1751 D WifiNetworkFactory: got request NetworkRequest [ TRACK_DEFAULT id=66, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10147] ] with score 60 and serial -1
01-07 17:13:33.423 1589 1751 D UntrustedWifiNetworkFactory: got request NetworkRequest [ TRACK_DEFAULT id=66, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10147] ] with score 60 and serial -1
01-07 17:13:33.424 2056 2056 D PhoneSwitcherNetworkRequstListener: got request NetworkRequest [ TRACK_DEFAULT id=66, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10147] ] with score 60 and serial -1
01-07 17:13:33.780 4891 4891 D ActionModeController: Starting action mode.
01-07 17:13:33.794 4891 4891 D ContentLock: monitor listener, is locked : true
01-07 17:13:34.347 4891 4891 D ContentLock: monitor listener, is locked : false
01-07 17:13:34.490 1589 1754 D ConnectivityService: maybeHandleNetworkMonitorMessage: 528386
01-07 17:13:34.494 2767 2815 D QCNEJ/WlanStaInfoRelay: Received action: android.net.wifi.RSSI_CHANGED
01-07 17:13:34.494 2034 2664 D QCNEJ/WlanStaInfoRelay: Received action: android.net.wifi.RSSI_CHANGED
01-07 17:13:35.827 692 692 E SDM : ColorManager::ApplyLinearColorTransform: Apply PCC for SetTransform FAILED
01-07 17:13:35.827 692 692 E SDM : HWCDisplay::HandleColorModeTransform: Failed to set Color Transform Matrix
01-07 17:13:35.827 692 692 E SDM : HWCDisplay::SetColorTransform: failed for hint = 1
01-07 17:13:35.828 692 692 E SDM : HWCDisplayPrimary::SetColorTransform: failed for hint = 1
01-07 17:13:35.828 520 520 W HwcComposer: command 0x2000000 generated error 8
01-07 17:13:39.038 1589 2017 D WificondControl: Scan result ready event
01-07 17:13:39.057 1016 1887 I LOWI-8.6.0.75: [LOWI-Scan] lowi_close_record:Scan done in 2926024ms, 28 APs in scan results
01-07 17:13:40.693 4891 4891 D ActionModeController: Handling action mode destroyed.
01-07 17:13:40.697 4891 4891 D FileOperations: Handling generic 'start' call.
01-07 17:13:40.720 4891 4969 D OpenGLRenderer: endAllActiveAnimators on 0x7745533700 (RippleDrawable) with handle 0x77a89f00e0
01-07 17:13:40.721 7815 7815 D FileOperationService: Created.
01-07 17:13:40.724 7815 7815 D FileOperationService: onStartCommand: 2966347-0 with serviceId 1
01-07 17:13:40.728 7815 7815 D FileOperationService: Scheduling job 2966347-0.
01-07 17:13:40.733 7815 7857 D FileOperationService: onStart: 2966347-0
01-07 17:13:40.733 7815 7857 D FileOperationService: Set foreground job to 2966347-0
01-07 17:13:40.736 1589 4168 E InputDispatcher: Window handle Window{ec3c727 u0 com.android.documentsui/com.android.documentsui.files.FilesActivity} has no registered input channel
01-07 17:13:40.766 7815 7857 D DeleteJob: Deleting document @ content://com.android.externalstorage.documents/document/primary%3AAudiobooks%2FQualityland%202.0
01-07 17:13:40.771 7786 7803 E DatabaseUtils: Writing exception to parcel
01-07 17:13:40.771 7786 7803 E DatabaseUtils: java.lang.IllegalStateException: Failed to delete /storage/emulated/0/Audiobooks/Qualityland 2.0
01-07 17:13:40.771 7786 7803 E DatabaseUtils: at com.android.internal.content.FileSystemProvider.deleteDocument(FileSystemProvider.java:335)
01-07 17:13:40.771 7786 7803 E DatabaseUtils: at android.provider.DocumentsProvider.callUnchecked(DocumentsProvider.java:1164)
01-07 17:13:40.771 7786 7803 E DatabaseUtils: at android.provider.DocumentsProvider.call(DocumentsProvider.java:1067)
01-07 17:13:40.771 7786 7803 E DatabaseUtils: at com.android.externalstorage.ExternalStorageProvider.call(ExternalStorageProvider.java:594)
01-07 17:13:40.771 7786 7803 E DatabaseUtils: at android.content.ContentProvider.call(ContentProvider.java:2152)
01-07 17:13:40.771 7786 7803 E DatabaseUtils: at android.content.ContentProvider$Transport.call(ContentProvider.java:477)
01-07 17:13:40.771 7786 7803 E DatabaseUtils: at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:277)
01-07 17:13:40.771 7786 7803 E DatabaseUtils: at android.os.Binder.execTransactInternal(Binder.java:1021)
01-07 17:13:40.771 7786 7803 E DatabaseUtils: at android.os.Binder.execTransact(Binder.java:994)
01-07 17:13:40.772 7815 7857 W DocumentsContract: Failed to delete document
01-07 17:13:40.772 7815 7857 W DocumentsContract: java.lang.IllegalStateException: Failed to delete /storage/emulated/0/Audiobooks/Qualityland 2.0
01-07 17:13:40.772 7815 7857 W DocumentsContract: at android.os.Parcel.createException(Parcel.java:2079)
01-07 17:13:40.772 7815 7857 W DocumentsContract: at android.os.Parcel.readException(Parcel.java:2039)
01-07 17:13:40.772 7815 7857 W DocumentsContract: at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:188)
01-07 17:13:40.772 7815 7857 W DocumentsContract: at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:140)
01-07 17:13:40.772 7815 7857 W DocumentsContract: at android.content.ContentProviderProxy.call(ContentProviderNative.java:658)
01-07 17:13:40.772 7815 7857 W DocumentsContract: at android.content.ContentProviderClient.call(ContentProviderClient.java:558)
01-07 17:13:40.772 7815 7857 W DocumentsContract: at android.content.ContentResolver.call(ContentResolver.java:2032)
01-07 17:13:40.772 7815 7857 W DocumentsContract: at android.provider.DocumentsContract.deleteDocument(DocumentsContract.java:1416)
01-07 17:13:40.772 7815 7857 W DocumentsContract: at com.android.documentsui.services.Job.deleteDocument(Job.java:267)
01-07 17:13:40.772 7815 7857 W DocumentsContract: at com.android.documentsui.services.DeleteJob.start(DeleteJob.java:119)
01-07 17:13:40.772 7815 7857 W DocumentsContract: at com.android.documentsui.services.Job.run(Job.java:160)
01-07 17:13:40.772 7815 7857 W DocumentsContract: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
01-07 17:13:40.772 7815 7857 W DocumentsContract: at java.util.concurrent.FutureTask.run(FutureTask.java:266)
01-07 17:13:40.772 7815 7857 W DocumentsContract: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
01-07 17:13:40.772 7815 7857 W DocumentsContract: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
01-07 17:13:40.772 7815 7857 W DocumentsContract: at java.lang.Thread.run(Thread.java:919)
01-07 17:13:40.778 7815 7857 E DeleteJob: Failed to delete document @ content://com.android.externalstorage.documents/document/primary%3AAudiobooks%2FQualityland%202.0
01-07 17:13:40.778 7815 7857 E DeleteJob: com.android.documentsui.services.ResourceException: Failed to delete file content://com.android.externalstorage.documents/document/primary%3AAudiobooks%2FQualityland%202.0 due to an exception.
01-07 17:13:40.778 7815 7857 E DeleteJob: at com.android.documentsui.services.Job.deleteDocument(Job.java:273)
01-07 17:13:40.778 7815 7857 E DeleteJob: at com.android.documentsui.services.DeleteJob.start(DeleteJob.java:119)
01-07 17:13:40.778 7815 7857 E DeleteJob: at com.android.documentsui.services.Job.run(Job.java:160)
01-07 17:13:40.778 7815 7857 E DeleteJob: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
01-07 17:13:40.778 7815 7857 E DeleteJob: at java.util.concurrent.FutureTask.run(FutureTask.java:266)
01-07 17:13:40.778 7815 7857 E DeleteJob: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
01-07 17:13:40.778 7815 7857 E DeleteJob: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
01-07 17:13:40.778 7815 7857 E DeleteJob: at java.lang.Thread.run(Thread.java:919)
01-07 17:13:40.778 7815 7857 E DeleteJob: Caused by: java.lang.IllegalStateException: Failed to delete /storage/emulated/0/Audiobooks/Qualityland 2.0
01-07 17:13:40.778 7815 7857 E DeleteJob: at android.os.Parcel.createException(Parcel.java:2079)
01-07 17:13:40.778 7815 7857 E DeleteJob: at android.os.Parcel.readException(Parcel.java:2039)
01-07 17:13:40.778 7815 7857 E DeleteJob: at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:188)
01-07 17:13:40.778 7815 7857 E DeleteJob: at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:140)
01-07 17:13:40.778 7815 7857 E DeleteJob: at android.content.ContentProviderProxy.call(ContentProviderNative.java:658)
01-07 17:13:40.778 7815 7857 E DeleteJob: at android.content.ContentProviderClient.call(ContentProviderClient.java:558)
01-07 17:13:40.778 7815 7857 E DeleteJob: at android.content.ContentResolver.call(ContentResolver.java:2032)
01-07 17:13:40.778 7815 7857 E DeleteJob: at android.provider.DocumentsContract.deleteDocument(DocumentsContract.java:1416)
01-07 17:13:40.778 7815 7857 E DeleteJob: at com.android.documentsui.services.Job.deleteDocument(Job.java:267)
01-07 17:13:40.778 7815 7857 E DeleteJob: ... 7 more
01-07 17:13:40.778 7815 7857 D FileOperationService: onFinished: 2966347-0
01-07 17:13:40.778 7815 7857 D FileOperationService: deleteJob: 2966347-0
01-07 17:13:40.780 7815 7857 D FileOperationService: Stop foreground
01-07 17:13:40.784 7815 7815 D FileOperationService: Canceling notification for 2966347-0
01-07 17:13:40.786 7815 7815 E FileOperationService: Job failed to process docs: [DocumentInfo{docId=primary:Audiobooks/Qualityland 2.0, name=Qualityland 2.0, mimeType=vnd.android.document/directory, isContainer=true, isDirectory=true, isArchive=false, isInArchive=false, isPartial=false, isVirtual=false, isDeleteSupported=true, isCreateSupported=true, isMoveSupported=true, isRenameSupported=true, isMetadataSupported=true} @ content://com.android.externalstorage.documents/document/primary%3AAudiobooks%2FQualityland%202.0].
01-07 17:13:40.798 7815 7815 D FileOperationService: Shutting down. Last serviceId was 1
01-07 17:13:40.800 7815 7815 D FileOperationService: Stopping service: true
01-07 17:13:40.801 7815 7815 D FileOperationService: Shutting down executor.
01-07 17:13:40.802 7815 7815 D FileOperationService: Destroyed.
01-07 17:13:40.863 3262 3262 D NotificationRepository: updateNotification() called with: list = [4]
01-07 17:13:40.866 3262 3262 D NotificationRepository: updateNotification() called with: list = [4]
01-07 17:13:40.918 3262 3262 D NotificationRepository: updateNotification() called with: list = [5]
01-07 17:13:45.792 1589 1624 E LightsService: Light requested not available on this device. 2
Possible fixes
I found https://unix.stackexchange.com/questions/330742/cannot-remove-file-structure-needs-cleaning but I don't know how to check for a corrupted file system in Android.
Edited by Olaf Pichler