Because of the unprecedented memory shortage, Google has introduced stricter guidelines for how Android applications manage and use device memory. These new rules ensure applications perform smoothly across a wider range of devices, especially those with lower memory capacities. Developers now have until February 2027 to optimize their applications to reduce the memory footprint.
Smartphone manufacturers are managing the limited supply and rising costs of memory and storage components in different ways. Some are reducing the memory or storage included in their smartphones, while others are passing the additional costs directly on to consumers. Before the global memory shortage, it was not uncommon to find entry-level smartphones equipped with 6GB to 8GB of memory. However, many manufacturers have dialed memory down to 4GB, which will ultimately significantly impact device performance.
Google’s new memory limits are meant to help guarantee a smooth experience on smartphones with limited memory. If an application exceeds the predefined memory thresholds, the Android operating system will intervene by slowing down the application or forcibly closing it to prevent slowdowns or crashes. Google has called on developers to optimize three crucial areas: dynamic memory usage (anonymous RSS + swap), bitmap memory usage, and DEX code.
Dynamic memory usage refers to the temporary memory that an application consumes while it is running. Developers need to implement smarter memory management so memory is freed when it is no longer needed. This can be when the user is no longer interacting with the application or when it moves to the background.
Bitmap memory usage is another key area that developers must focus on. Bitmaps are common resources for displaying vibrant images, but they consume far more memory than displaying text. When overdone, excessive bitmap memory usage can easily eat up a device's memory. Google recommends that developers use bitmaps responsibly and use better image handling protocols.
Google also highlights code optimization. During development, applications often accumulate redundant or unused code. Sometimes developers ship applications with more code than what is actually needed. Unnecessary code just increases the memory footprint. Under the new guidelines, developers must clean and shrink the application's code by at least 25% with tools such as R8 before publishing the application on the Google Play Store.
Just as computer enthusiasts are reluctant to buy new hardware, smartphone users are in the same boat when it comes to upgrading their devices. This has prompted companies to take a more proactive approach to supporting customers by improving the experience on hardware they already own.
Get Tom's Hardware's best news and in-depth reviews, straight to your inbox.
For example, Microsoft has committed to optimizing Windows 11 to run smoothly on devices with 8GB of memory so users are not pressured to upgrade their memory. Google has also taken steps with the new policy to enforce better memory management practices among Android application developers.
Follow Tom's Hardware on Google News, or add us as a preferred source, to get our latest news, analysis, & reviews in your feeds.
Zhiye Liu is a news editor, memory reviewer, and SSD tester at Tom’s Hardware. Although he loves everything that’s hardware, he has a soft spot for CPUs, GPUs, and RAM.
-
hotaru251 Reply
Developers need to implement smarter memory management so memory is freed when it is no longer needed.
so they are making devs do the work for what Apple does with its apps when they arent used for a while. -
Simtone Oh this socks. The RAM usage was a huge reason to choose an android tablet over the iPad.Reply -
Gibby-Hayes I agree they needed better RAM management on the Dev side. It is interesting to note, however, that among the big five AI companies causing the RAMpocalypse, Google is restricting RAM usage in light of their inability to keep up with the consumption, a problem caused in part by their own company.Reply -
Gibby-Hayes Reply
Maybe in pure raw numbers, but iPad iOS is slightly better at managing inactive RAM threads and much better at RAM resource management. Also the development for Android tablets felt disconnected and disparate to me and people around me. I really tried with Samsung, and sunk thousands of dollars into them and came out disappointed by the level of long term support.Simtone said:Oh this socks. The RAM usage was a huge reason to choose an android tablet over the iPad. -
hwertz Reduce usage by 25% using tools such as R8? What if your app is already small? The one I published years back was under 100KB. I didn't have any redundant code in it.Reply