Default Finding the ram section in the android OS source code and making changes to it

Hello I am new to android os programming and I am using java to generate code.

I want to modify the part of the os where the ram is detected and used. So just like page file or virtual file is used,the os uses the page file sometims whn the RAM has run out right???



I WANT TO BE ABLE TO LOOK OUT for the code were the os uses ram and detects the RAM CHIP ON THE BOARD.

So I don't want my android phone to only use ram but extend it so that code says to extract ram from micrso sd chip too.


PLEASE POST SOME CODE AND TELL ME EXTACLY WERE BOUTS TO CHANGE THE CODE...