• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

Question [HELP] Can't open pdf and other files on some apps

Search This thread

Vaizen

Senior Member
Dec 24, 2011
720
183
Bogotá
Xiaomi 11T Pro
Hello people it's just to report and see if any of you have faced a skmilar problem and how To solve it.

The main problem is that all files pdfs, jpgs or any other that are sent to me via WhatsApp it's impossible to open with any app. All apps say the file is corrupted or something like that. The same happens with Edison Mail (app) I use it to have all my mails synced, but the same happens all mails that contain attached files are imposible to open the external apps to open pdf or image files say it's impossible or file corrupted.

Nevertheless, and the main thing is that those files are NOT CORRUPTED whatsoever, if I look for the files on the internal storage and open them with any of the apps that said that the same files were corrupted, the files open without any problem.

I was going to reinstall WhatsApp, but in the end I didn't because it's really time consuming to make a backup and because I realized it was happening with other apps (probably with others I haven't come across).

I have checked permissions, disabled /enabled them but with no luck.

Any thoughts or similar experiences? Any workaround?
 

nousernamesorry

Senior Member
Feb 15, 2016
79
22
Xiaomi 11T Pro
Hello people it's just to report and see if any of you have faced a skmilar problem and how To solve it.

The main problem is that all files pdfs, jpgs or any other that are sent to me via WhatsApp it's impossible to open with any app. All apps say the file is corrupted or something like that. The same happens with Edison Mail (app) I use it to have all my mails synced, but the same happens all mails that contain attached files are imposible to open the external apps to open pdf or image files say it's impossible or file corrupted.

Nevertheless, and the main thing is that those files are NOT CORRUPTED whatsoever, if I look for the files on the internal storage and open them with any of the apps that said that the same files were corrupted, the files open without any problem.

I was going to reinstall WhatsApp, but in the end I didn't because it's really time consuming to make a backup and because I realized it was happening with other apps (probably with others I haven't come across).

I have checked permissions, disabled /enabled them but with no luck.

Any thoughts or similar experiences? Any workaround?
This problem isnt occuring for me. It opens for me fine. Maybe it could be an issue with the pdf reader?

What do you mean when you say, it is impossible to open pdfs in external apps?

Im assuming you have tried different pdf apps as well? Try opening the file from the pdf app itself, as in navigating to the file from inside the pdf app, rather than opening it directly in whatsapp.
 

Vaizen

Senior Member
Dec 24, 2011
720
183
Bogotá
Xiaomi 11T Pro
This problem isnt occuring for me. It opens for me fine. Maybe it could be an issue with the pdf reader?

What do you mean when you say, it is impossible to open pdfs in external apps?

Im assuming you have tried different pdf apps as well? Try opening the file from the pdf app itself, as in navigating to the file from inside the pdf app, rather than opening it directly in whatsapp.
Sorry if I wasn't clear enough.

If I open the files directly from the pdf reader (I've used several, acrobat, xodo, drive, onedrive, etc) or opening the files from a file explorer (solid explorer, xiaomi file explorer) they open, they are not corrupted.

The problem is when I tap on the attached file on the whatsapp chat or on the edison mail (app) The prompt to select an app to open the file shows up but no matter which one I select it will FC or say the file is unreadable or corruupted (depending the app). That is why I believed the problem was regarding some permissions in whatsapp or edison mail, but I've enabled and disabled them with no avail.

If you google this problem, hilariously you can find a very similar one on an Adobe forum but of course there's no solution because the adobe won't provide a solution that is not directly caused by their apps. The only good comment there is that apparently it's an andorid 11 problem on MIUI devices.

Some mention to disable MIUI optimizations, which I've already tried enabling and disabling because I usually have them disabled.
 

nousernamesorry

Senior Member
Feb 15, 2016
79
22
Xiaomi 11T Pro
Sorry if I wasn't clear enough.

If I open the files directly from the pdf reader (I've used several, acrobat, xodo, drive, onedrive, etc) or opening the files from a file explorer (solid explorer, xiaomi file explorer) they open, they are not corrupted.

The problem is when I tap on the attached file on the whatsapp chat or on the edison mail (app) The prompt to select an app to open the file shows up but no matter which one I select it will FC or say the file is unreadable or corruupted (depending the app). That is why I believed the problem was regarding some permissions in whatsapp or edison mail, but I've enabled and disabled them with no avail.

If you google this problem, hilariously you can find a very similar one on an Adobe forum but of course there's no solution because the adobe won't provide a solution that is not directly caused by their apps. The only good comment there is that apparently it's an andorid 11 problem on MIUI devices.
Yes, it certainly seems like an miui problem or the A11 problem. Okay, do one thing, try opening the pdf file via chrome browser, or any other app, maybe gmail app.

Also, before you do that, download matlog to log what happens, maybe we can try pin pointing the issue.

If its just an app thing, then maybe reinstalling should fix it. But i doubt it is. And the only real possibility seems like reinstalling the rom.

Heres a suggestion, since we dont have twrp yet.

Download the latest full rom, a few issues happened to me earlier, when i installed miui in one of the incremental updates.

So, what i did was, downloaded the entire recovery rom (not fastboot) and just updated the system via system update by locally installing it.

Just google how to local upgrade on miui if you're not clear about it. As i wasn't since this is my first miui phone.

This would essentially dirty flash a stock rom, and should iron out any issues without having to reset the phone.
 

brzi6

New member
Feb 2, 2014
2
0
Is your MIUI optimisation option disabled in the developers options? If so, try enabling it and try to open the files again.
 

Vaizen

Senior Member
Dec 24, 2011
720
183
Bogotá
Xiaomi 11T Pro
Yes, it certainly seems like an miui problem or the A11 problem. Okay, do one thing, try opening the pdf file via chrome browser, or any other app, maybe gmail app.

Also, before you do that, download matlog to log what happens, maybe we can try pin pointing the issue.

If its just an app thing, then maybe reinstalling should fix it. But i doubt it is. And the only real possibility seems like reinstalling the rom.

Heres a suggestion, since we dont have twrp yet.

Download the latest full rom, a few issues happened to me earlier, when i installed miui in one of the incremental updates.

So, what i did was, downloaded the entire recovery rom (not fastboot) and just updated the system via system update by locally installing it.

Just google how to local upgrade on miui if you're not clear about it. As i wasn't since this is my first miui phone.

This would essentially dirty flash a stock rom, and should iron out any issues without having to reset the phone.
Here are the logs. Actually by doing so, I discovered that also sharing a zip file from the matlog to any app to upload or share it (whatsapp, gdrive, onedrive, etc.) also resulted in an similar error (this part is not included on the logs).

The logs include trying to open one file in two different apps. Gdrive pdf reader and Xodo.
 

Attachments

  • logs-2021-11-27-20-09-51.zip
    12.3 KB · Views: 3

Vaizen

Senior Member
Dec 24, 2011
720
183
Bogotá
Xiaomi 11T Pro
Is your MIUI optimisation option disabled in the developers options? If so, try enabling it and try to open the files again.
Actually I hadn't tried that, Just did and leaving MIUI Optimizations enabled makes the problem disappear, in fact, the promt to select the app to open the file is different.

But what if I want to leave MIUI Optimizations disabled?
 

brzi6

New member
Feb 2, 2014
2
0
Actually I hadn't tried that, Just did and leaving MIUI Optimizations enabled makes the problem disappear, in fact, the promt to select the app to open the file is different.

But what if I want to leave MIUI Optimizations disabled?
I don't think there's a solution for this. I think the best workaround for this problem would be switching to Xiaomi.eu rom (since they have MIUI optimisiation disabled by default) but it's still not released yet.
I could be wrong though.
 

nousernamesorry

Senior Member
Feb 15, 2016
79
22
Xiaomi 11T Pro
Actually I hadn't tried that, Just did and leaving MIUI Optimizations enabled makes the problem disappear, in fact, the promt to select the app to open the file is different.

But what if I want to leave MIUI Optimizations disabled?
Im assuming the miui has its own code for the app selector and the underlying android 11 app selector code is disabled. Probably to speed up the process of switching apps. Maybe if there is a way if you can enable the original android 11 code for it then you could disable the miui optimization setting. But then, if this is just for the app selector, there could be other underlying issues, that you might have not have experienced yet where miui uses its own implementation and has disabled the original android implementation. I wouldnt recommend that unless you decide to switch roms to the EU version for this specific issue like @brzi6 mentioned but i think theres no point as it could cause other location based hassles.
 

djlunatix

Member
Mar 28, 2011
5
0
Firstly, miui optimization is garbage anyway.
Secondly, the problem is with app permissions. If you can get your pdf viewer of choice to have access to your file system then all will be well.