Watch This Now!

[Q] Best way to keep app in memory?

36 posts
Thanks Meter: 8
By Mystery000777, Member on 19th April 2014, 10:47 PM
Post Reply Subscribe to Thread Email Thread
Ok first of all hello everybody and welcome to the ultimate mythbusters thread about keeping apps in memory.

I would like you android pros, geeks, programmers, etc to answer me a simple question about android.
Answers may differ but i would like to solve this mystery once and for all:

How do i keep a d*mn app in my phones memory?

Little background sittuation, I want to "bulletproof" an application called hello sms and possibly other apps...
I would also love to know wich of these methods actually works:

1) add to build.prop

ro.sys.keep_app_1=com.hellotext.text / sys.keep_app_1= process here

2) init.d script (credits to zepplinrox, he is awsome and i saw this script on one of his threads)

sleep 60
echo "-17" > /proc/$PPID/oom_adj

3) other init.d script (also credits to zpplinrox, but this one i got through digging on supercharger v6 rc 13 script..)

sleep 60
echo "-17" > /proc/$PPID/oom_adj
echo "-1000" > /proc/$PPID/oom_score_adj
renice -20 $PPID

Whats the best way? I heard that the first one only works on 2.3 android, not on 4.0+, is that true?
Wich one of the init.d scripts works best? If one of them works how do i make it loop?

Dont tell me to use supercharger v6 bulletproof option because although it is a great script im trying to add all those tweaks
to my personal rom already in the instalation (no later tweaking, just flash it and bam, working)

Thanks in advance, and i hope someone can enlighten me and the whole xda forums
31st January 2015, 12:48 PM |#2  
Junior Member
Thanks Meter: 0
I checked these keys '' and '' on ADT-1 with Android TV 5.0 and it doesn't work
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes