[FIX] Bulletproof Background Apps!

Search This thread

anamul.quader

Senior Member
Jan 25, 2012
59
4
riyadh
Pls someone help me to bulletproof my sms app :(...after i choose option 17.it tells to give a unique name.like opera for opera browser... What do i typ there..pls helppppp
 

ioo7

Senior Member
Dec 29, 2011
200
36
Winnetka, CA
Pls someone help me to bulletproof my sms app :(...after i choose option 17.it tells to give a unique name.like opera for opera browser... What do i typ there..pls helppppp

Type in the first couples letters of that app, like com.what ever if that's what it stars with, the script will look for it and ask for your confirmation. Option 17 will list all your background and running apps. Scroll up and look for that process and type the fist 6 letters of it, hope that helps.

Sent from my DROID using Tapatalk 2 Beta-6
 

anamul.quader

Senior Member
Jan 25, 2012
59
4
riyadh
Type in the first couples letters of that app, like com.what ever if that's what it stars with, the script will look for it and ask for your confirmation. Option 17 will list all your background and running apps. Scroll up and look for that process and type the fist 6 letters of it, hope that helps.

Sent from my DROID using Tapatalk 2 Beta-6

Umm.the app that i want to bulletproof is "MESSAGE" and..its .. Com.sonyericsson.conversation ...k? So i choose option 17.and it list running apps n all.but message isnt there..what do i do?

Sent from my MK16i using xda premium
 

zeppelinrox

Senior Member
Dec 21, 2010
9,374
21,590
IN THE FREAKIN' OP
the latestest script allows you to add non-running apps to the hitlist so just put conversation

If the bulletproof apps script is running, the message app will automatically get bulletproofed whenever you run it
 

anamul.quader

Senior Member
Jan 25, 2012
59
4
riyadh
the latestest script allows you to add non-running apps to the hitlist so just put conversation

If the bulletproof apps script is running, the message app will automatically get bulletproofed whenever you run it

if i choose a aggressive launcher 1000hp...and then use bulletproof..will it work??i mean will the sms thing work??
and ya after typing `conversations` it tells..it couldnt find it..n ask me if it should add it? i answered as yes...now will it work???thnx
 

anamul.quader

Senior Member
Jan 25, 2012
59
4
riyadh
Should be good to go as long as long as *97BulletProof_Apps runs on boot...
You check with V6 script after reboot under the menu to see if it's running

Hm..m nt getting anything at all..i will tell u what i did
1.run latest script with root.choosed 1000hp aggressive..option 9
2.super clean and reboot
3.again run script.n choose option 17 (bulletproof app hitormiss)
It shows some apps listing..then ask me to enter a unique name eg.opera for opera browser...there i type CONVERSATION and it tells.its not there and ask me if it should add it..n i answer yes bla bla.its added..ok now tell me what do i do?? N pls tell me properly:p m so not good at it.so if you could tell me step by step..it will be a real help..thnx :)

Sent from my MK16i using xda premium
 

ioo7

Senior Member
Dec 29, 2011
200
36
Winnetka, CA
Hm..m nt getting anything at all..i will tell u what i did
1.run latest script with root.choosed 1000hp aggressive..option 9
2.super clean and reboot
3.again run script.n choose option 17 (bulletproof app hitormiss)
It shows some apps listing..then ask me to enter a unique name eg.opera for opera browser...there i type CONVERSATION and it tells.its not there and ask me if it should add it..n i answer yes bla bla.its added..ok now tell me what do i do?? N pls tell me properly:p m so not good at it.so if you could tell me step by step..it will be a real help..thnx :)

Sent from my MK16i using xda premium

Open the app you want, then hit home and run script, option 17, it should show up now. Try and see, hope that helps
 

anamul.quader

Senior Member
Jan 25, 2012
59
4
riyadh
It's not that complicated.
Read prior help given and script output.

If you still can't figure it out, you're SOL.

Umm..i downloaded an app which solved my problem:s ''watchdog" i added the apps that i need running all the time like "message" "what's app" to the whitelist..and now i get all notification xD

Sent from my MK16i using xda premium
 
Aug 31, 2011
42
3
purchase
Hey Zep.
Ive been trying to bulletproof swype but there's another application for swype update withthe same name. So when I type in the process name for swype, it tellme there's more than one process and to try again. Im trying to use the options to look for the PPID or something else to lock swype. But I can't seem to type the right thing. I want to use swype over a regular keyboard, every time I open a text I have to wait till the swype keyboard loads up. Any help would be appreciated.
 

zeppelinrox

Senior Member
Dec 21, 2010
9,374
21,590
IN THE FREAKIN' OP
Hi zeppelinrox,

How to set this app (Record my call) to be -17 on oom?
I tried this on GScript but didn't work.

Or can I set it in the V6 supercharger?

Thanks :)

Hey Zep.
Ive been trying to bulletproof swype but there's another application for swype update withthe same name. So when I type in the process name for swype, it tellme there's more than one process and to try again. Im trying to use the options to look for the PPID or something else to lock swype. But I can't seem to type the right thing. I want to use swype over a regular keyboard, every time I open a text I have to wait till the swype keyboard loads up. Any help would be appreciated.

Both of you use be sure to use the latest RC9 - with script manager and not gscript
 

maluga

Member
May 12, 2012
37
4
Hi zeppelinrox,

How to set this app Record my call to be -17 on oom?
I tried this on GScript but didn't work.

Or can I set it in the V6 supercharger?

Thanks :)

I know that's old and should be solved but related to Record my call:
I think there is some incompatibility with it and "Fix emissions", at least in my phone.
Not 100% sure yet.

SuperCharger is great btw.
 

zeppelinrox

Senior Member
Dec 21, 2010
9,374
21,590
IN THE FREAKIN' OP
Yes it does, as long as you passed the busybox test.
If you don't have init.d, you then obviously have to run bulletproof apps script manually or with script manager.

And check process priorities with the bOOM Stick.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 44
    UPDATE: Try BulletProofing Apps with my latest V6 SuperCharger Script! Use the following link OR use the link in my signature :D

    I didn't want to risk making the SuperCharge & Bulletproof thread too confusing so I figured it best to make a "sister" thread.

    This is a work in progress.

    But if this information is helpful, please click the thanks button :D

    HUGE thanks to Feeyo and Bear in NM for helping me figure out a workable solution on locking a background app in memory on boot up.

    Feeyo gave me the gist of it but it wouldn't work on boot.
    After posting in this thread at Droid Forums, things got rolling - with alot of help from Bear in NM.

    Create a Unix script file with no extension (I named it 97oom) with Notepad++ and put it in your i/system/etc/init.d/ folder and put this inside:
    Code:
    #!/system/bin/sh
    
    sleep 60
    
    PPID=$(pidof [B]com.estrongs.android.safer[/B])
    echo "-17" > /proc/$PPID/oom_adj
    Permissions: chmod 755 /system/etc/init.d/97oom (same as 10overclock)

    You can also do it on the phone itself:
    1. Make a copy of 10overclock
    2. Renamed it to 97oom (I have a 98governor and a 99complete so...)
    3. Deleted the text and put the text you see above
    4. Set permissions

    Then reboot to test!
    You can check to see if it worked with either Auto Memory Manager (AMM) or AutoKiller Memory Optimizer (AKMO).

    The bold text in the above code is the process name of the app that you want to protect!
    Note: You can get the process name from most process monitors or with AKMO or AMM.

    That command "as is" will give ES Security Manager the highest priority of -17.
    AKMO shows it as being ignored by the OOM killer :)
    At first it wasn't working on boot because ES Security was not yet loaded in memory.
    The "sleep 60 "command fixes that by waiting 60 seconds to execute the command :D

    You can also do this in GScript Lite with this:
    Code:
    PPID=$(pidof com.estrongs.android.safer)
    echo "-17" > /proc/$PPID/oom_adj
    This comes in handy for apps that don't load on bootup - just run a GScript for those apps :D

    I suggest you get Busybox Installer and have it install the latest BusyBox (v1.19).
    This ensures GScript doesn't spit out ugly stderr: messages.

    GScript Tip: 1. Make a file (with any text editor) with the commands
    ................. 2. Rename it with an .sh extension (example 97oom.sh)
    ................. 3. Put it in sdcard/gscript folder
    ................. 4. Run GScript, Menu key, Add script, and click Load file, select a script and Save (leave SU checked)

    Even better, you can make shortcut for any GScript.
    Long press desktop > Shortcuts > GScript Lite > Select... BOOYA!

    As I said, this is a work in progress.
    Taming the OOM Killer explains that an app will be ignored by the OOM killer if it has the -17 priority.
    The problem is that Android will still shuffle it's priority downwards like it does with any inactive app.
    If that happens, then the app reverts to it's usual priority.
    This is why ESS will lose it's -17 after a couple of hours. It just sleeps ALL the time.

    My thinking that if a more active background app, such as an SMS app or a music app is given the -17, it won't lose it's priority at all.

    Feedback with results is more than welcome!
    4
    That's pretty cool.
    I figure most people would copy/paste the whole thing and replace the process name.
    So maybe the back ticks wouldn't be a big deal.
    3
    No need to set a variable, just use back-ticks:
    Code:
    echo -17 > /proc/`pidof [B]com.estrongs.android.safer[/B]`/oom_adj
    Although that may be a little too complicated for some people to type in. Best to keep it simple I suppose...
    3
    Persistent bulletproof apps/ bulletproof service

    I may be wrong, but the bulletproof apps script only runs once at boot, then calls /data/97BulletproofApps.sh, so it seems you get two shots at bulletproofing an app.

    The problem, as I see it is that if your app isn't running at boot or in a few minutes after boot, it won't get bulletproofed.

    If you want the script to stay persistent so that your chosen apps get bulletproofed whenever you decide to launch them, you can do something like:

    ---------------
    #!/system/bin/sh

    while true; do

    for i in com.waze com.myrt.andrevocadjuster com.google.android.apps.maps com.android.music com.mixzing.basic mobi.mgeek.TunnyBrowser com.android.browser ;

    do
    j=`pidof $i`
    echo "-17" > /proc/$j/oom_adj
    renice -10 $j
    done

    sleep 60

    done
    -------------

    On the "for i in" line just place a space-separated list of the processes you want to bulletproof.

    I've used a nice value of -10, as I've always understood from my Unix days that it's good to let the system processes exist at a lower nice level than user processes (so that swap, I/O and other system processes get priority and keep the system running smoothly). I may be wrong.

    The only problem would arise if android decided to kill the 97oom shell process. Having looked into this, you could instead move 97oom into /system/xbin (or another location if you prefer) and add these lines to your /init.rc

    ----------
    # bulletproof as a service by evilj, with thanks to zeppelinrox for bulletproof and SuperCharger
    service bulletproof /system/xbin/97oom
    user root
    critical
    # bulletproof end
    ----------

    The "critical" line makes the android system restart the service if it gets killed.

    However, I noticed that 97oom is running at an oom level of -17 anyway, so it's unlikely to get killed unless you do it yourself, so maybe it's a case of overkill (pun intended!)

    Hope this helps. Please give me a thanks if it does.

    J
    3
    I don't know.

    But try this:
    1. uncheck lock messaging app so it's disabled.
    2. run messaging
    3. lock messaging in memory again.

    It has to work if it's working on my phone.
    But if not, keep in mind that I installed RC4 clean.

    I had a stock rom that I was testing with and I wiped everything clean before installing RC4.
    The only thing that was kept were the apps that were sleeping on the ext2 partion that were installed on CM6