Is there a way to white-list an app (web browser) so Froyo 2.2 memory manager does NOT kill it? One of my biggest pet peeves with Android (due to heavy use of my Droid X for reading web pages) is the fact that it can kill ANY application it wishes when doing its automated memory management. Especially, the fact that it usually starts by killing the stock browser as opposed to other less useful apps.

More specifically, if I:


have multiple tabs open in Android's native browser (or even a single tab with some state in it, such as Google Reader)
and then switch to some memory hogging app(s), e.g. some heavy game from Glu or Google Maps/Navigation
Then, Android memory manager decides to kill my browser to free up memory (as opposed to, say, such critically important processes like Google Play or media player which I don't want)
Which, due to Froyo's stock browser not preserving its session state, loses all the open tabs I had, as well as in-tab state (e.g. which Google Reader article was open).


Is there a way to white-list an app (web browser) so Froyo 2.2 memory manager does NOT kill it?

System: Droid X with stock Froyo 2.2 ROM, rooted.
AFAIK, you can't.

But, you can customise when to kill background apps (not selective app) by tweaking MinFree values set by Android (root is required for tweaking). If you have problems dealing with it, there are many apps in Play Store for that. My fav is AutoKiller Memory Optimizer.

And, when foreground app and/or kernel runs out of memory, killing background apps can't be prevented. It's because foreground apps and kernel are more important than background apps. Probably, you'd not be wanting to crash device to preserve your web browser in background.

Update:
Another approach is to create/increase swap memory in device. There are apps for this purpose too: Swapper (by dario) and Swapper 2 (by Elviss).