Home Helpful Hints Downloads require access to the device's memory in Xiaomi what to do. How to access external and internal storage? How to allow access to external storage

Downloads require access to the device's memory in Xiaomi what to do. How to access external and internal storage? How to allow access to external storage

I really want to access files on android system. I manage to read files and directories in android external storage. My questions:

  1. How can I access internal storage directories and files (specially for videos, pics all apps that work in android).
  2. Where is the data of each application that is installed in the internal storage stored?
  3. Is it possible to transfer data that exists in internal storage (from internal storage to external storage?
  4. I read that external storage is world readable? what does it mean? (if you create an application, then this application can access all the files installed in external storage?)

2 answers

By default, an application cannot access data stored in another application. Permissions are applied to internal storage that make data written by an application inaccessible outside of that application (your application cannot read anything written by another application). This can be changed when an application can specify different permissions for OWN OWN data; basically, an application can let others read its data. However, unless an app specifically sets its permissions to allow it, other apps cannot access its data. This is a fundamental principle of Android's security/isolation model and is done at the Linux/kernel level as each app runs under its own Linux UID and permissions are set on the filesystem allowing that UID to access the app's directory structure (group and world permissions set to 0 default).

This all goes out of the box if you have root access on the device (the phone is built in and the app runs as root), but we have to consider that's out of scope for your question.

External storage (SD card) is different in that it is considered free for everyone and permissions do not apply there (this is natively due to the file system commonly used in SD not supporting permissions). Any application can normally read anything written to the SD card by any other application, unless the original application does something to protect it (encryption, etc.).

When trying to download a file to a Xiaomi phone, the user of the device may receive the message "Downloads require access to the device's memory." This dysfunction is usually caused by the settings of the Downloads and Browser applications, due to which the access of these applications to the phone's memory is blocked. We will deal with the specifics of this problem and options for solving it.

The essence of the problem of access requirements

As you know, the Android operating system allows the user to regulate the specifics of access of a particular mobile application to the system components of your phone. This is due both to the security policy (malicious applications cannot automatically access system components) and to the peculiarities of working with the battery, allowing you to use its potential more carefully.


Getting the message "Downloads require access to device memory" usually means that your mobile browser settings have blocked access to the gadget's memory that it needs.

In some cases, a similar notice may also apply to the Downloads application, which is also denied said access.

Let's figure out how to solve the "Downloads require access" problem on Xiaomi.

What to do if in Xiaomi - Downloads require access to the device's memory

To fix the download problem on Xiaomi, there is no need to get root rights, flash the device or do other similar operations. The solutions to the problem are quite simple.

  1. First of all, check the overall performance of your mobile browser.
  2. Close it, then go to the device settings, and select "All applications" there.
  3. In the list of applications, find your browser, tap on it, and go to its settings, click on "Clear data", as well as on "Clear cache".
  4. Then close the gadget settings, launch the browser, and try to download the files you need again.

If the error continues to repeat, then you need to change the access settings of your browser and the Downloads application. Go to the settings of your Xiaomi, there select "All applications" - ("Third-party"), then "Browser", then "Application permissions", and activate the "Memory" slider there.

It is also recommended to carry out a similar action in relation to the application "Download" (or in English "Downloads"). In the device settings, you need to find the specified application, tap on it, and after entering its settings, move the "Memory" slider, which is responsible for the application's access to the latter. The problem will be solved.

Conclusion

In the vast majority of cases, the appearance of the message “Downloads require access to the device’s memory” means that the browser settings do not allow it to access the memory of your gadget. A simple and effective solution to the problem is to go to the device settings and give the browser (or the Downloads app) the necessary permissions, after which this problem will be effectively solved.

Last update: 03/21/2017

In the last topic, we covered saving and reading files from the application directory. By default, these files are available only to the application itself. However, we can place and work with files from external storage. This will also allow other programs to open these files and modify them as needed.

The whole mechanism of working with files will be the same as when working with the application storage. The key difference here will be getting and using the path to the external storage via the method Environment.getExternalStorageDirectory()

So, let's have the same interface markup in the activity_main.xml file:

New on site

>

Most popular