1. Are you ready for the Galaxy S20? Here is everything we know so far!

No more able to open HTML files on Chrome with Android 11

Discussion in 'Android Lounge' started by jchirag21, Jan 8, 2021.

  1. jchirag21

    jchirag21 Lurker
    Thread Starter


    I have a business scenario where I have to open an HTML with browser on my Android Google Pixel 3XL file.
    I have been using below method to do the same
    By pointing the browser at the file you want with a URL of the format
    but after upgrading my Android to 11 the method is no longer working , getting below error

    Access to the file was denied
    The file at file:///sdcard/download/UniversalLink.html is not readable. It may have been removed, moved, or file permissions may be preventing access.


    Can anyone help me how I can open html file now with Android 11

    1. Download the Forums for Android™ app!


  2. Dannydet

    Dannydet Extreme Android User

    You can put your documents into the folder Android/data/com.android.chrome/files/Download/ in the internal storage. It's absolute path is /storage/emulated/0/Android/data/com.android.chrome/files/Download/ or /sdcard/Android/data/com.android.chrome/files/Download/. This is the location where Chrome stores any downloaded files and therefore, this the only location where Chrome can access the files. But remember, uninstalling Chrome will delete this directory.
  3. gonen52

    gonen52 Lurker

    Hi Dannydet
    Great reply !!! spent so much time on it. now I can access a file if I place this directly in Chrome file:///storage/emulated/0/Android/data/com.android.chrome/files/Download/Final_Days.html

    but if I try to open it from HTML href - I got block with

    also when trying HTML - window.open(.....)

    I gave all permission I could find.....

    any idea what I miss?

    many thanks !!!!!!
    #3 gonen52, Mar 11, 2022
    Last edited: Mar 11, 2022

Share This Page