Há o Swapper2, um app que faz tudo isso de forma fácil! (Use the Swapper2 app, its better than this one!) Confira aqui
What is Swap Space?
Swap space in Linux is used when the amount of physical memory (RAM) is full. If the system needs more memory resources and the RAM is full, inactive pages in memory are moved to the swap space. While swap space can help machines with a small amount of RAM, it should not be considered a replacement for more RAM. Swap space is located on hard drives, which have a slower access time than physical memory.
Swap space can be a dedicated swap partition, a swap file (this is what this app does), or a combination of swap partitions and swap files.
- Make sure your phone are rooted
- Kernel that supports swap
- BusyBox (if you have a Custom Rom, you don’t need to install busybox)
- Make sure that the “Unknown Sources” option is activated on “Config > Applications”
(Only tested on Android CyanogenMod 2.3.7 by pax0r, without kernel change)
Install using ADB or File Manager.
Click on “Create / Mount Swap”, select the size in mb (200 is good); and wait for the sucess message;
Everytime you reboot your phone, you have to click on “Mount Swap”;
And if you wanna use the usb in storage mode, select “Desmount Swap” (or it will not mount). Maybe the phone freeze for a moment in this option, just wait.
OBS: In the size of swap file, put 200000 for 200mb, only 200 will make a 200kb file! Cause i’m so lazy to fix it right now.