Siemens92 No this is not true, or rather did not so
MultiROM went in a simple way, to the address: /system/app/miuisystem/miuisystem.apk/miui/util/HardwareInfo.java, is getFreeMemory method, which is responsible for displaying information about free memory.
What they did: renamed the original file, create a new one, and then the amount of free memory is taken from the original, and increased by 10% in the newly created file, if the value is greater than the total number of OD, the original value is returned. Needless to say, that in the list of recent applications shows "optimized" the number of OP.
This is how the code looks like in the original:
public static long getFreeMemory () {long l1 = getAndroidCacheMemory (); long l2 = getTotalPhysicalMemory (); long l3 = getTotalMemory (); return (MiuiProcessUtil.getFreeMemory () / 1024L + l1) * (2L * l2 - l3) / l2 * 1024L; }
That's when "their magic"
public static long getFreeMemory () {long l1 = getFreeMemory_source (); long l2 = getTotalPhysicalMemory (); long l3 = Math.round (l2 * 0.1D + l1); if (l3>l2) {return l1; } Return l3; } Public static long getFreeMemory_source () {long l1 = getAndroidCacheMemory (); long l2 = getTotalPhysicalMemory (); long l3 = getTotalMemory (); return (MiuiProcessUtil.getFreeMemory () / 1024L + l1) * (2L * l2 - l3) / l2 * 1024L; }
Something like that)))