Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot copy/move hidden folders #107

Open
sanjaykumarm opened this issue Dec 13, 2022 · 10 comments
Open

Cannot copy/move hidden folders #107

sanjaykumarm opened this issue Dec 13, 2022 · 10 comments
Labels
bug Something isn't working unreproducible Cannot reproduce the bug

Comments

@sanjaykumarm
Copy link

sanjaykumarm commented Dec 13, 2022

Library version: 0.x.x
OS version: [Android 12]
Device model: [Samsung S20]

When copying or moving hidden files, it throws security exception.

java.lang.SecurityException: com.android.externalstorage has no access to content://media/external _primary/file/1000008384 at android.os.Parcel.createException or Null(Parcel.java:2438) at 08 android.os.Parcel.createException(P arcel.java:2422) at android.os.Parcel.readException(Par cel.java:2405) at android.database.DatabaseUtils.rea dExceptionFromParcel(DatabaseUtil s.java:190) at android.database.DatabaseUtils.rea dException WithFileNotFoundExcepti on From Parcel(DatabaseUtils.java:15 3)

@anggrayudi
Copy link
Owner

Can you share the code snippet that causes this error?

@sanjaykumarm
Copy link
Author

Used this repo only to copy/move the file from one folder (WhatsApp Statuses) to another folder (Download -> NewFolder or any Folder)

@anggrayudi
Copy link
Owner

Can you share the video record? It's not happening to me.

@sanjaykumarm
Copy link
Author

As you can see here, only folder copied/created but not the files within it. This is happening for some of the Samsung phones only. In Realme, Pixel phones etc working fine.

Screen_Recording_20221223-095827_Simple.Storage.mp4

@anggrayudi anggrayudi changed the title Not working on some Samsung phone like Samsung Galaxy S20 FE Cannot copy/move hidden folders on Samsung Galaxy S20 FE Dec 31, 2022
@anggrayudi anggrayudi changed the title Cannot copy/move hidden folders on Samsung Galaxy S20 FE Cannot copy/move hidden folders Dec 31, 2022
@anggrayudi
Copy link
Owner

No longer appears in v1.5.4:

OS.12.copy.hidden.folders.mp4

The folder is copied successfully:

Screenshot 2023-01-09 at 15 04 46

@sanjaykumarm
Copy link
Author

Hello bro, thank you so much for update.

So were you able to reproduce the same issue what I told ? Did you fix it/I mean change the code related to this ? Because I can't see this in release version history note.

@anggrayudi
Copy link
Owner

I don't know which part that fixes the code. But after testing the same scenario like you've provided in the video, the issue disappears with v1.5.4. That's why I didn't mention this issue in release notes. But you can try with v1.5.4 again, and if the issue persists, then I'll reopen it.

@sanjaykumarm
Copy link
Author

Okay I tested it again but same. Nothing changed.

@anggrayudi
Copy link
Owner

Well, I really can't figure out the root cause. I've tested it with multiple devices using Android 12, but here you have an intermittent issue. I'll reopen it. Let's see if there's someone facing this issue too, maybe she/he can give us a hint.

@anggrayudi anggrayudi reopened this Jan 12, 2023
@anggrayudi anggrayudi added bug Something isn't working unreproducible Cannot reproduce the bug labels Jan 12, 2023
@PaulWoitaschek
Copy link

This is very likely this: https://issuetracker.google.com/issues/258270138

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working unreproducible Cannot reproduce the bug
Projects
None yet
Development

No branches or pull requests

3 participants