The sudden appearance of the notification “Android system is out of memory” can unsettle any user. This message blocks the installation of updates, downloading photos, and even the normal operation of instant messengers. The problem occurs not only on budget devices with small storage capacity, but also on powerful flagships, where the system partition is full due to incorrect data management.

Before taking radical measures like resetting to factory settings, it is necessary to conduct a deep diagnostic of the storage. Often the reason lies not in the number of installed games, but in the growing caches of social networks or “junk” files left behind by uninstalled apps. Understanding the structure of the file system will allow you to free up gigabytes of space in a few minutes without losing important contacts.

In this guide, we will examine proven optimization methods, from standard cleaning tools to advanced actions through the computer. You'll learn which folders are safe to delete, how to move media files to the cloud, and why standard app deletion doesn't always free up space completely. Follow the instructions sequentially to restore the performance of your smartphone.

Diagnostics of occupied space and storage analysis

The first step to solving the problem is to determine exactly what is eating up free space. Modern Android shells provide built-in analysis tools that visualize the distribution of data. Go to Settings → Storageto see a detailed diagram. Here you will see a breakdown by category: applications, images, videos, audio and system files.

Pay attention to the “Other” or “Miscellaneous” section. Often this is where gigabytes of temporary files, debug logs and residual data are hidden. If this section occupies more than 20% of the total volume, manual cleaning or the use of specialized software is required. Ignoring this category may result in the problem remaining even after deleting the photo.

It is also worth checking the folder Download (Downloads). Users often download APK installation files, documents and archives, forgetting about them forever. These files are not needed by the system to operate and can be safely deleted. Regular auditing of this directory should become a habit to prevent critical memory filling.

📊 What takes up the most space on your smartphone?
Photos and videos
Social networks (Telegram, WhatsApp)
Games and applications
System files and cache

Clearing the application cache and system data

Data caching is a mechanism that speeds up the operation of apps, but over time it turns into ballast. Social networks such as Telegram or VKcan accumulate tens of gigabytes of viewed media files. Clearing the cache does not delete your correspondence or accounts, it only erases temporary copies of data that can be downloaded again if necessary.

For manual clearing, go to Settings → Applications. Select the heaviest application from the list and click Storage. Here you will see two buttons: “Clear cache” and “Clear data”. Be extremely careful: the “Clear data” button will reset the application to the state of the first installation, deleting logins and settings.

⚠️ Attention: Do not use the “Clear data” function for messengers if you do not have a backup copy of your correspondence. This action will irreversibly delete the entire message history on the device.

The system cache can also be cleared through the recovery menu (Recovery Mode), but this requires rebooting the device while holding down the physical buttons. For most users, it's safer to use the built-in Free up Space feature, which automatically finds duplicates and large files. This tool analyzes usage patterns and suggests removing rarely used apps.

💡

Use Google Files to automatically scan for garbage. It safely identifies duplicates, blurry photos and old screenshots that can be deleted in one click.

Manage your media library and transfer files to the cloud

Photos and videos are the main consumers of space on a modern smartphone. High-definition cameras create huge files that quickly fill up your internal memory. The optimal solution is to set up automatic synchronization with cloud services, such as Google Photos or Yandex.Disk.

After your media files are uploaded to the cloud, use the “Free up space” function in the gallery application. It will delete local copies of photos, leaving them available for viewing over the Internet. This allows you to store thousands of pictures without taking up a byte of your phone's internal storage.

If you prefer to store data locally, consider transferring files to a memory card microSD. Although modern versions of Android limit the installation of applications on external drives, it is still a great solution for photos, videos and music. Just change the camera save path in settings to SD card.

☑️ Preparing to transfer files

Done: 0 / 4

Removing unused applications and their remnants

Simply deleting an icon from the desktop often does not lead to the complete disappearance of the app. Many applications leave behind empty folders and configuration files. For deep cleaning, it is recommended to use a file manager, for example FX File Explorer or the built-in explorer.

Pay attention to the folders with the names of deleted games or utilities in the root of the internal memory. Also check the directory Android/obb i Android/data. Cache files of heavy games are stored here. If you deleted the game, the corresponding folders here can be safely erased, freeing up a significant amount of space.

Pre-installed applications (bloatware) deserve special attention, which cannot be deleted in the standard way. The “Disable” function is available for them in the application settings. This hides the app from the interface and prevents it from running in the background, saving system resources, although disk space may remain occupied.

Data type Where it is located Deletion security Approximate volume
Application cache Settings → Applications High (data will be downloaded again) 1–5 GB
Download folder File manager High (check important documents) 0.5–10 GB
.Thumbnails files DCIM/.thumbnails Medium (will slow down gallery opening) 1–3 GB
Game Remains (OBB) Android/obb High (if the game is deleted) 2–20 GB

Using developer mode and ADB

For advanced users, it is possible to clean up system partitions via USB debugging. Connecting to a computer and using the utility ADB (Android Debug Bridge) allows you to remove system junk that is not accessible through the normal interface. This requires enabling developer mode in the menu About phone.

Using the command adb shell pm list packages you can get a list of all installed packages and identify hidden system applications that are not displayed in the settings. However, tampering with the system partition requires caution: removing critical components can lead to a bricked device.

adb shell pm uninstall -k --user 0 package name

This command removes the application for the current user without affecting the system partition deeply, which is safer than a complete removal. This way you can get rid of unnecessary Google or manufacturer services that consume memory in the background.

Risks of using ADB

Incorrect removal of system packages can lead to a cyclic reboot of the phone. Always create a full backup (TWRP) before executing commands in the console.

Dramatic measures: Factory reset

If none of the above methods helped and the “Out of Memory” message continues to appear, the file system may be damaged or contains critical errors. In this case, the only effective solution is a hard reset.

Before performing this procedure, be sure to save all important data to an external drive or to the cloud. The formatting process will destroy all information on the internal storage, including contacts, photos and settings. After the reset, the phone will be in “out of the box” condition.

⚠️ Attention: Make sure the battery charge is at least 50% before starting the reset. Interrupting the formatting process due to battery drain may render the device unusable.

After returning to factory settings, it is recommended not to restore the application backup immediately. Install only the essentials and watch the memory fill up over the course of a few days. This will help identify the culprit application that was causing the problem earlier.

💡

A full reset is an extreme measure that solves software errors in the file system, but requires careful preparation and backup of all personal data.

Prevention of memory overflow in the future

To prevent the problem from returning, you need to change your smartphone usage habits. Check your storage regularly at least once a month. Set up automatic trash cleaning in the gallery and file manager so that deleted files do not take up space for another 30 days.

Avoid installing dubious applications from unverified sources. Often such apps contain hidden modules that generate garbage in the background. Use only the official store Google Play or proven alternatives.

It is also worth disabling automatic downloading of media files in messenger settings. You can prevent saving pictures and videos to the phone gallery by viewing them only inside the application. This will save gigabytes of space and prevent file duplication. WhatsApp And Telegram You can prevent saving pictures and videos to your phone gallery by viewing them only inside the application. This will save gigabytes of space and prevent file duplication.

Why does the memory fill up on its own immediately after cleaning?

This may be due to the operation of system services that create error logs, or to the “Smart Storage” function, which caches content for offline access. Also check if automatic downloading of application updates in the background is enabled.

Is it possible to transfer the Android system to a memory card?

On most modern smartphones this is not possible for security and performance reasons. Internal memory is faster than microSD cards, and transferring system files will slow down the device. However, some manufacturers allow you to format the card as internal memory (Adoptable Storage), but this feature is rare.

How to clean out the .thumbnails folder if it is constantly growing?

Delete files in the folder DCIM/.thumbnails via a file manager with hidden files displayed. To prevent repeated bloat, you can create an empty file in this folder named .nomedia, which will prevent the system from generating thumbnails, although this may slow down the gallery.

Does full memory affect the speed of the phone?

Yes, critically. When free space approaches zero, the system cannot effectively use the page file and cache processes. This leads to freezes, long application launches and spontaneous reboots. It is recommended to keep at least 10-15% of the total memory free.

Is it safe to use cleaning applications (Clean Master and analogues)?

Modern versions of Android have built-in effective cleaning tools. Third-party cleaners themselves often consume a lot of resources, show intrusive advertising and can delete necessary files. In most cases, they do more harm than good, slowing down the device with their background activity.