1. DroidForums.net is currently undergoing a major software upgrade. If you are experiencing any problems logging in please: Contact Us

Turning Off Ad Blocking Dropped CPU Usage from 96% to 14%

Discussion in 'Bugless' started by dennis_faucher, Feb 2, 2011.

  1. dennis_faucher
    Offline

    dennis_faucher New Member

    Joined:
    Sep 2, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hello,

    Unchecking "Block advertisements" just saved me 82% CPU usage.

    I love Bugless Beast and am using v0.6.2.1. Recently, the CPU has been spiking until I rebooted and then spiking again. I installed and ran OSMonitor to see what was using all the CPU and it was Android System. I looked at the log for Android System and an error came up every second "skimagedecoder::factory returned null". I did a little Googling and saw that this might be related to AdMob. When I unchecked "Block advertisements" in the ROM toolkit, my Droid became happy again. I just thought I would pass this on.
  2. BayouFlyFisher
    Offline

    BayouFlyFisher Rescue Squad

    Joined:
    Dec 10, 2009
    Messages:
    4,966
    Likes Received:
    17
    Trophy Points:
    38
    Location:
    Baton Rouge, LA
    Wow!! This is a spectacular find. Great job!! Good diligence! You may have just found an answer for so many "why is my phone sluggish" and "why is my battery draining" questions.
  3. dsolomon
    Offline

    dsolomon New Member

    Joined:
    Aug 18, 2010
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Concord NC
    wow, seriously high five, mine really hasn't had too many problems, only it lags when changing launcher screens, and when I open app drawer. Problem is gone now, zips right through.
  4. crazytrain69
    Offline

    crazytrain69 New Member

    Joined:
    Feb 15, 2010
    Messages:
    34
    Likes Received:
    1
    Trophy Points:
    0
    Interesting? The thing is I can't find ad blocking in the rom tool kit. So where is it? feeling like a moron!
  5. dsolomon
    Offline

    dsolomon New Member

    Joined:
    Aug 18, 2010
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Concord NC
    i'm using the nightly build, and it's rom toolkit-system
  6. crazytrain69
    Offline

    crazytrain69 New Member

    Joined:
    Feb 15, 2010
    Messages:
    34
    Likes Received:
    1
    Trophy Points:
    0
    WOW! I really need to go to bed!! I looked over it about 10 times and it was right in the same spot on BB 6.2.1. LOL! I'll give it a go and see what happens.
  7. jcwilliams
    Offline

    jcwilliams New Member

    Joined:
    Jul 21, 2010
    Messages:
    1,398
    Likes Received:
    3
    Trophy Points:
    0
    Location:
    OH
    Great find! I'm just turned mine off and ima going to see what I get out of my phone tom. Thanks

    Sent from my Droid using DroidForums App
  8. mursepaolo
    Offline

    mursepaolo New Member

    Joined:
    Mar 16, 2010
    Messages:
    190
    Likes Received:
    0
    Trophy Points:
    0
    hmmm.. i don't know of it's a mind game, but it does seem snappier.
  9. BigMcGuire
    Offline

    BigMcGuire New Member

    Joined:
    Dec 13, 2009
    Messages:
    1,040
    Likes Received:
    2
    Trophy Points:
    0
    Location:
    Los Angeles, California
    It would be cool to get a second opinion on this (a scientific one). What does Pete think about this?

    Edit: Ok, so I actually did this and yeah, the phone seems considerably faster... I'm OC'ed to 1Ghz and my phone was slowing to a crawl and I was getting launcher FCs (I have like 6 apps installed, clean cache all the time, etc...).
    Last edited: Feb 2, 2011
  10. Game4set
    Offline

    Game4set New Member

    Joined:
    Feb 3, 2010
    Messages:
    106
    Likes Received:
    0
    Trophy Points:
    0
    Ok so besides turning off the option in the ROM Toolkit, should we also uninstall the actual Admob app?
  11. flyer05
    Offline

    flyer05 New Member

    Joined:
    Nov 19, 2009
    Messages:
    77
    Likes Received:
    0
    Trophy Points:
    0
    Wow my phone is working again like it should. (droid 1):icon_ banana:
  12. Chaddaddadd
    Offline

    Chaddaddadd New Member

    Joined:
    Aug 19, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Royal Oak, MI
    So far this has really improved my phone. I have yet to have an issue with the screen redrawing. Thank you to the OP for the tip and your effort. This was one of the biggest things that has been annoying me about my phone, even before I rooted and installed BB a couple of weeks ago.
  13. rlarson_mn
    Offline

    rlarson_mn New Member

    Joined:
    May 17, 2010
    Messages:
    320
    Likes Received:
    1
    Trophy Points:
    0
    Have to agree, my phones performance has improved enough so that I can see a big difference with my eyes without going into any additional testing. Great find!
  14. gtschubert
    Offline

    gtschubert New Member

    Joined:
    Apr 21, 2010
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    0
    So I've been experimenting with this for a bit, and it seems (at least in my case) that if you just replace the /system/etc/hosts file, it doesn't drag or spike the cpu, and still blocks ads.

    Like I said, works for me. Hopefully it works for you guys.

    --Edit--

    Yes, I know that is basically what happens when you check the 'block ads' button, but for some reason, it just doesn't seem to bog down the system if you manually replace the file.
    Last edited: Feb 3, 2011
  15. gsDroid
    Offline

    gsDroid New Member

    Joined:
    Dec 1, 2009
    Messages:
    513
    Likes Received:
    3
    Trophy Points:
    0
    Location:
    Colorado
    Thanks for the suggestion, but replace it with what? A little more instruction would be helpful.
  16. gtschubert
    Offline

    gtschubert New Member

    Joined:
    Apr 21, 2010
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    0
    Oh sorry. Pete gives us the altered hosts file as well as a copy of the original to revert back to in case you want to see the ads.

    TERMINAL

    su
    sys -rw
    cp /system/xbin/hostsblock /system/etc/hosts
    sys -ro
    sync

    RESTART YOUR PHONE

    You are basically replacing the stock file (hosts) with the altered file (hostsblock).

    In the end, you'll still see /system/etc/hosts, but its really just the modified file.

    --Edit--

    If and when you want to revert back...

    TERMINAL

    su
    sys -rw
    cp /system/xbin/hostsshow /system/etc/hosts
    sys -ro
    sync

    RESTART YOUR PHONE
    Last edited: Feb 3, 2011
  17. triplejnj
    Offline

    triplejnj New Member

    Joined:
    Mar 15, 2010
    Messages:
    65
    Likes Received:
    5
    Trophy Points:
    0
    Awesome find-- DEFINATELY a noticable improvement, thanks!
  18. racketier
    Offline

    racketier New Member

    Joined:
    Feb 27, 2010
    Messages:
    112
    Likes Received:
    0
    Trophy Points:
    0
    I unchecked it and installed AdFree from the market.
  19. BigMcGuire
    Offline

    BigMcGuire New Member

    Joined:
    Dec 13, 2009
    Messages:
    1,040
    Likes Received:
    2
    Trophy Points:
    0
    Location:
    Los Angeles, California

    Confirmed - did this and everything is still smooth. Interesting.
  20. gsDroid
    Offline

    gsDroid New Member

    Joined:
    Dec 1, 2009
    Messages:
    513
    Likes Received:
    3
    Trophy Points:
    0
    Location:
    Colorado
    Thanks for the instructions. I am getting an error:
    $su
    #sys -rw
    sys: not found
    #

    But if I type:
    $su
    #sysrw
    system mounted as rw
    #
    Can anyone explain why the sys -rw returns the error, but sysrw mounts the system as rw?
    Thanks in advance
Search tags for this page
admob disable
,

admob remove

,
android admob blocker
,
android block admob
,
block admob
,

block admob android

,
block admob on android
,
blocking ad mob android 2.2.3
,
cpu 14% at rest
,

remove admob

,
remove admob from android
,
skimagedecoder::factory returned null etc1
,
turn off ad blocker android