Android 5.0 Lollipop
The memory leak issue that causes apps to crash will be fixed in the next update. Google

Users have been experiencing what is termed as a memory leak issue, ever since the release of the Android Lollipop developer preview version.

Multiple users have reported this issue at the AOSP issue tracker. The bug has plagued a range of Nexus devices such as Nexus 7 2012, Nexus 4, Nexus 5, Nexus 9, Nexus 10 and even Moto G 2nd Gen.

This bug in the Android device drains out a huge amount of RAM, the launcher keeps redrawing randomly and background apps keep restarting.

"I can also confirm this bug on my nexus 5. After some days of use when I go into settings to see the memory usage I find system just use 1GB memory!!! So without a restart I can only get about 400MB memory available to use. Apps on the background restart again and again, this is really annoying," according to a user.

While there is no information as to what the reason for this bug is, a user seems to have found the memory leak in the system_server happens when the screen is turned on/off.

I have dig a lot and find a memmory leak in system_server when screen on/off, how can I submmit a patch for frameworks/base/services/core/java/com/android/server/display/ColorFade.java?

--- a/services/core/java/com/android/server/display/ColorFade.java

+++ b/services/core/java/com/android/server/display/ColorFade.java

@@ -470,6 +470,7 @@ final class ColorFade {

st.updateTexImage();

st.getTransformMatrix(mTexMatrix);

+ st.release();

// Set up texture coordinates for a quad.

// We might need to change this if the texture ends up being

Thankfully, the status of this bug has been listed under 'FutureRelease' which means the next Android release will bring a fix for this issue. Currently, there is no information on what will be the next Android version or when the public roll-out is scheduled.

[Source: Phandroid]