DroidForums.net is the original Verizon Android Forum! Registered Users do not see these ads. Please Register - It's Free!
Results 1 to 9 of 9

Thread: [RAM Tweak] - Force an application to stay in RAM - build.prop tweak

  1. Senior Droid
    alucardx's Avatar
    Member #
    16787
    Join Date
    Dec 2009
    Location
    Philly
    Posts
    103
    Liked
    1 times
    Phone
    Droid 1
    #1

    Post [RAM Tweak] - Force an application to stay in RAM - build.prop tweak

    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)

    There 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.
    For instance, my entry in build.prop is

    Code:
    sys.keep_app_1=com.jrtstudio.music
    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.

    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.
  2. Sponsor
    DF Advertising
    Join Date
    Nov 2008
    Location
    DroidForums.net
     
     
     
     
  3. Droid Ninja
    metalspring's Avatar
    Member #
    158915
    Join Date
    Jan 2011
    Location
    hermitage, pa
    Posts
    2,223
    Liked
    96 times
    Phone
    Galaxy Nexus LTE
    #2
    does this actually work??? i've never heard of it before???
    Galaxy nexus all-in-one guide with tweaks for performance and battery life
    Droid 1 tweaks, hacks, and other goodies
    here
    current phone The GALAXY NEXUS LTE a​ll the
    liquid and franco kernel
    previous phone the trusty ol' droid 1
  4. Senior Droid
    alucardx's Avatar
    Member #
    16787
    Join Date
    Dec 2009
    Location
    Philly
    Posts
    103
    Liked
    1 times
    Phone
    Droid 1
    #3
    Quote Originally Posted by metalspring View Post
    does this actually work??? i've never heard of it before???
    yes, it's working for me. but i've only used it for android music.

    there's a lot of goodies over xda forum but this one was buried in a CM7 thread.
  5. Master Droid
    meishkov's Avatar
    Member #
    37113
    Join Date
    Feb 2010
    Location
    Sterling Heights, MI
    Posts
    958
    Liked
    8 times
    Phone
    OG Droid
    #4
    I'm not sure, would be amazing if it does. Kinda weird how now these 2 RAM tweaks that seem pretty major would come out now?

    Sent from my OG using DroidForums
  6. Droid Ninja
    metalspring's Avatar
    Member #
    158915
    Join Date
    Jan 2011
    Location
    hermitage, pa
    Posts
    2,223
    Liked
    96 times
    Phone
    Galaxy Nexus LTE
    #5
    I asked Zeppelinrox about it and he said that its only on some cyanogenmod 7 based roms... So I guess you might be able to tell is run it in terminal emulator first with setprop sys.keep_app_1 = com.jrtstudio.music
    Galaxy nexus all-in-one guide with tweaks for performance and battery life
    Droid 1 tweaks, hacks, and other goodies
    here
    current phone The GALAXY NEXUS LTE a​ll the
    liquid and franco kernel
    previous phone the trusty ol' droid 1
  7. Master Droid
    meishkov's Avatar
    Member #
    37113
    Join Date
    Feb 2010
    Location
    Sterling Heights, MI
    Posts
    958
    Liked
    8 times
    Phone
    OG Droid
    #6
    So anything after setprop puts it into build.prop?

    Sent from my OG using DroidForums
  8. Droid Ninja
    metalspring's Avatar
    Member #
    158915
    Join Date
    Jan 2011
    Location
    hermitage, pa
    Posts
    2,223
    Liked
    96 times
    Phone
    Galaxy Nexus LTE
    #7
    Quote Originally Posted by meishkov View Post
    So anything after setprop puts it into build.prop?

    Sent from my OG using DroidForums
    Not really, it does the same thing as putting it in build.prop but only for that one time, it doesn't stick on reboot usually... Its just to see if it works
    Galaxy nexus all-in-one guide with tweaks for performance and battery life
    Droid 1 tweaks, hacks, and other goodies
    here
    current phone The GALAXY NEXUS LTE a​ll the
    liquid and franco kernel
    previous phone the trusty ol' droid 1
  9. Master Droid
    meishkov's Avatar
    Member #
    37113
    Join Date
    Feb 2010
    Location
    Sterling Heights, MI
    Posts
    958
    Liked
    8 times
    Phone
    OG Droid
    #8
    I'll just edit build.prop manually, I've done it 200,000 times before so it's probably quicker. Was thinking about putting LatinIME.apk in and see if that works. Think that'd be a problem?

    Sent from my OG using DroidForums
  10. Master Droid
    meishkov's Avatar
    Member #
    37113
    Join Date
    Feb 2010
    Location
    Sterling Heights, MI
    Posts
    958
    Liked
    8 times
    Phone
    OG Droid
    #9
    Any insight as to whether this is the better option, I'm assuming so, instead of using zeppelinrox v6 supercharger that has a bulletproof app option? Looking to lock swapper2 in so it won't get killed or "restarting" and screw up my 256mb swap partition. I need that sucker

    Sent from my OG using DroidForums

Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Similar Threads

  1. Imoseyon tweak
    By jgmarz in forum Droid X Hacks
    Replies: 4
    Last Post: 06-13-2011, 04:44 PM
  2. GB V6 tweak help
    By jchildress in forum Liberty ROM DX
    Replies: 2
    Last Post: 06-01-2011, 11:19 AM
  3. Battery Tweak for 2.0
    By imp3r10 in forum Liberty ROM DX
    Replies: 0
    Last Post: 04-10-2011, 04:03 PM
  4. Youtube HQ Tweak
    By budmonster in forum Xeudoxus
    Replies: 16
    Last Post: 10-13-2010, 07:49 AM
  5. a little help finding battery tweak
    By theguy386 in forum Droid Incredible Hacks
    Replies: 3
    Last Post: 09-15-2010, 03:23 PM

Search tags for this page

android build.prop tweaks
,
android force app to stay in memory
,

android keep app in memory

,

build prop tweaks

,
build.prop ram
,

build.prop tweaks

,
ics build.prop tweaks
,

keep app in memory

,

keep app in memory android

,
keep apps in memory android
,
keep in memory android
,

lock app in memory android

,
sys.keep app
,

sys.keep app 1

,
sys.keep app 1=
Click on a term to search our site for related topics.
Find us on Google+