0

I'm unable to delete the files with wrong character encoding in names on my phone. I plug it into my Windows PC and try to delete it in File Explorer. It says the files are write-protected:

This guide tells me to

su
restorecon -v -R /data/media

The output is

u0_a82@j1x3g:/ $ su
root@j1x3g:/ # restorecon -v -R /data/media
Function: selinux_compare_spd_ram , priority [2] , priority version is VE=SEPF_SM-J120H_5.1.1_0069
SELinux: Loaded file_contexts from /file_contexts
SELinux: Skipping restorecon_recursive(/data/media)
root@j1x3g:/ #

But the deletion still doesn't work. Nevertheless I can do this via adb.

Do you know why this happens?

4
  • 3
    From what OS is the first screen shot. Assuming you are trying to delete a file on an Android phone how is the PC connected to the Android phone and how do you try to access/delete he file (MTP protocol?).
    – Robert
    Commented Feb 26, 2023 at 18:39
  • Yes. I'm unable to delete it on my phone. I plug it into my Windows PC and try to delete it in Fine Explorer. Probably it is via MTP
    – Ooker
    Commented Feb 27, 2023 at 4:40
  • What Windows version do you use? The dialog does not look like Windows 10 or 11. Older versions of Windows my contain bugged MTP implementations and thus fail to delete the file, or it is a general bug that affects all Windows MTP implementations. Unicode can be sometimes pretty complicated when it comes to characters that can be written as one or two characters.
    – Robert
    Commented Feb 27, 2023 at 8:10
  • It's Windows 11 though
    – Ooker
    Commented Feb 28, 2023 at 16:41

0

You must log in to answer this question.