Lock Apps in Memory on the Motorola Defy
Keeping applications in memory can serve various potential uses. While aggressive RAM conservation may benefit the user experience when opening very large apps, users typically see the best performance and battery life by having frequently used apps in RAM. While it’s not possible to put all of your applications in memory, keeping the go-to applications like the dialer, contacts, SMS app, etc can make the menial tasks of the day much faster. For Motorola Defy users, there is now both an easy way and a hard way to get this accomplished.
The easy method was posted by XDA Senior Member kanpurite, and the hard way was posted by Senior Member espaciosalter20. Both methods work equally well, and users can choose whichever one suits their needs best. The easy way is for users who just want a few apps to perform a little better. In contrast, the hard way is for users who want to roll up their sleeves and get their hands dirty.
The easy method involves creating a local.prop in /data and writing in a line for each application you want left in memory. By far the more interesting technique is the difficult way. It involves extracting and modifying the services.jar and manually modding it to leave the apps open in memory. No matter which way you choose, you’ll have your apps stored in memory.