File.listFiles() crashes for invalid UTF-8 characters
问题 Some folder in my phone storage includes files like this: dzG럫saᡑῑ.sg 존Ὣ 졼).sg So when I try to read files from this folder with File.listFiles() function my app crashes: JNI DETECTED ERROR IN APPLICATION: input is not valid Modified UTF-8: illegal start byte ...... string: 'dzG럫saᡑῑ.sg' I found out which app creates them, but it doesn't matter, for example if other users would have similar files on their phone memory, I can't just ask them to remove it I just want to avoid app crashing Even