Android App MAX Data Storage (Internal Memory) Capacity Definition and File Visibility Gallery / Third-Party Applications

If I have a built-in 32 GB storage device, my application can store ~ ​​25 GB data in internal memory (data / data / package_name /), hidden from the outside world. Assuming 6 GB for system data.

Minimum capacity is discussed here .

According to my experiment on nexus 5, my application can write (image files) up to ~ 25 gb plus to internal memory. Insane image attached .

Just want to know the MAX capacity if android has one.?


Is this good for other devices? or is it an OEM patented definition.

File Usage: Root directory: data / data / com.exmaple.ui / If the file is not private , then Video / PDF files can be played and viewed using other applications, such as Photos / Adobe Using Intents.

But creating MODE_WORLD_READABLE, they do not appear in the native gallery. How to make them displayed in your own gallery or in file explorer?

Using subdirectory files:

if I write a file using FileOutputStream in data / data / com.exmaple.ui / myfolder ** and make the file readable . does this prevent me from reading the file as stated above for any reason?

Thanks NITZ

+5
source share
2 answers

Adding to Amit K. Saha answer.

1) Any application can store up to the internal memory of the device without restrictions.

2) No matter which application of the first reserve receives the first priority. First-to-first-served.

3) Used file provider: copied the files to the application’s private memory (so the file is protected) in the subfolder and used the file provider to access the files so that the external application can display the content.

https://developer.android.com/training/secure-file-sharing/setup-sharing.html

0
source

As long as my little knowledge about Android goes on, Android has no upper limit. Rather, in the api version specification, it requests the minimum available shared memory (for storing data) on devices.

eg. From Android 4.0 Compatibility Definition ( http://static.googleusercontent.com/external_content/untrusted_dlcp/source.android.com/en/us/compatibility/android-4.0-cdd.pdf )

“Device implementations MUST offer shared storage for applications. The shared storage provided must be at least 1 GB.”

The same is said in the Android 4.3 compatibility definition ( http://static.googleusercontent.com/external_content/untrusted_dlcp/source.android.com/en/us/compatibility/android-4.3-cdd.pdf )

Thus, as I understand it, its limitations on OEMs to provide this minimum shared storage (regardless of internal memory / SD card) for third-party applications, like the upper limit, depend on the available shared storage of the device. for example, we could theoretically store 64 GB of data in a device with a 128 GB SD card.

I hope this post helps in your quest.

+4
source

Source: https://habr.com/ru/post/1210845/


All Articles