All credit goes to Eiertschik @ [ROM] CyanogenMod 7.2.0 RC0 (Android 2.3.7) - Page 711 - xda-developers
This tweak can force an app to stay in RAM simply by adding a string of text to /system/build.prop along with the internal process name (com.foo.bar)
For instance, my entry in build.prop isThere are two lines in /system/build.prop named "sys.keep_app_1=" and "...2"
Here you can enter process names.
You can figure them out with... Auto Memory Manager
Keep in mind that this option locks the app's priority to 0 which means totally unkillable.
If you want to stop such an app you'll have to go to the running apps in Android settings and press "Stop process".
If you kill it via Taskkiller or any other app it will restart.
Ever since I started using Gingerbread ROMs, Android Music would keep losing where I was at in the middle of a mp3 via a "Pause". I listen to 1-2hour radio mp3 shows and obviously need it to pause and remember where it's at in the mp3 so when I listen again it picks up where it left off. In Froyo I never had an issue, I've always used the built in Android Music app and the Widget. In SS5.6 I had this issue sometimes, and in SD9.0 it always happens. With or without v6 supercharger, the OS would keep killing android music so it would lose the file handle and thus "forget" it's place in the mp3 file.Code:sys.keep_app_1=com.jrtstudio.music
The key point here it's based on app name, not PID, so it only needs to be set once.
I also rebooted my phone, and it picked back up exactly where it left off! Finally, just like Froyo. I tried using Auto Memory Management app to do this but, #1 it's an extra app that I don't want, #2 it didn't really work and was based on PID. So anytime it was rebooted or Music was killed, it would get a different PID.