Last month the first version of RamEater was released.

I’ve done a bit of polishing of the code. The main change has been to support older Android 2 devices. The problem is that activityManager.getLargeMemoryClass is only available in Android 3 and later.

private void eatAllMemory() {
 //Get amount of memory this app is allowed to use (in MBs)
 int availMem = activityManager.getLargeMemoryClass();

The code has been changed so that the amount of memory each service will eat up can be specified in MB (this must be used for Android 2 devices) however if you are using a newer device then the service can get the maximum allowed memory.

2015-05-31 00.48.42

The updated app is in the play store and the code is in github