Android LOGD battery drain

Pfff I’ve had a battery drain for weeks on my Oneplus device (you know that your phone battery drains faster than you would expect). But that drain was not visible in the android battery overview.

I had already installed an app (betterbattrystats) that give you more information about the drain. With betterbatterystats I found out that logd could be the issue, but logd is a log service so it should not be a root cause.

So I found out that you could just start a task manager (top) from the Android debug tools. What seems; the youtube music app was draining my battery. Even though I don’t even use it. You can’t delete that app either so I forced stopped it and now everything is quiet.

Really wtf; I am a tech guy and have to put in so much effort to figure this out. How many people don’t have the same issues but just accept it?

How can you fix this?

  • First install ADB
  • Put your phone in development mode
  • Start top
adb shell top -m 20 -d 2

Here you can see the logd and the com.google.and+

To figure out what PID 9036 is

adb shell ps | grep 9036

And voila; the root cause…. Youtube music

So I turned off the Youtube app and now everything looks nice!

Please google don’t hide you shitty services from the android battery overview!

Happy debugging!

Remove Spyware

First I had a problem with delta-homes.com spyware. When I remove that software a crappy mystartsearch.com browser hijacker came by… ARGGG!!!!

So removing the software is quite easy when you follow this staps

  1. Download superantispyware (free)
  2. Install superantispyware (select free editon)
  3. Run a quick scan
  4. Clean and reboot
  5. Run a full scan
  6. Clean and reboot
  7. Download and run ADWCleaner
  8. Scan and clean

AdwCleaner

Enjoy your adware free system 🙂

Cannot disable mail enabled public folders

Output

    PS C:\Users\jfb> get-mailpublicfolder -Identity "bccp11-036"

    Alias                Identity
    -----                --------
    bccp11-036           matricis.local/Microsoft Exchange System Objects/Correspondance 81807753


    PS C:\Users\jfb> disable-mailpublicfolder -Identity "matricis.local/Microsoft Exchange 
System Objects/Correspondance 81807753"

    Disable-MailPublicFolder : No existing 'PublicFolder' matches the following Identity: 'matricis.local/Microsoft Exchange System Objects/Correspondance 81807753'
    At line:1 char:25
    + disable-mailpublicfolder <<<<  -Identity "matricis.local/Microsoft Exchange System Objects/Correspondance 81807753"
        + CategoryInfo          : NotSpecified: (0:Int32) [Disable-MailPublicFolder], MapiOperationException
        + FullyQualifiedErrorId : 826D5700,Microsoft.Exchange.Management.MapiTasks.DisableMailPublicFolder

Cause

I have resolved the issue, to solve this, we have to go into Active Directory Users and Computers. Under View, select Advanced Features. Now, under the /Microsoft Exchange System Objects folder, manually delete the Correspondance 81807753 object.

To prevent this, you have to mail-disable the public folder before deleting it from the public folders

Source

Tip:

If you want to quick find the old public folder use a custom AD search:

(&proxyaddresses=smtp:[email protected])

Centos Configure time to Europe/Amsterdam

I always have some time issues in Linux. Here the howto:

Check the time

# date
Fri Mar 18 21:50:43 CET 2011

Install and configure NTP

# yum install ntp
# service ntpd stop
# ntpdate pool.ntp.org
# /etc/init.d/ntpd start
# chkconfig ntpd on

Configure the localtime

# cd /etc/
# ls -la |grep localtime
# /etc/localtime -> /usr/share/zoneinfo/Europe/Amsterdam
# ln -sf /usr/share/zoneinfo/Europe/Amsterdam /etc/localtime

Configure the shell time

export TZ=CET

Nagios Webinject errors

I installed a fresh copy of Nagios XI but the web transaction didn’t work very well. I made some changes to fix the problems

The first status information error I had was: (null)

To fix this I installed perl-suidperl

yum install perl-suidperl

After that I get I new error: Return code of 255 is out of boundsnagios return code of 255 is out of bounds

To fix this I changed the permissions of the  webinject folder and its files:

chown nagios:nagios /usr/local/nagiosxi/etc/components/webinject/
chown nagios:nagios /usr/local/nagiosxi/etc/components/webinject/*

Did was the trick.

Automatically download series with RSS (ShowRSS) and Synology

I want the latest tvseries series automatically downloaded. There are plugins like couchpotato and sickbeard. Problem with these tools is that you must (semi) hack your synology nas to get this working.

Synology has the option to download automatically trough RSS. So I did a dive in to this option and I worked it out for you 😉

What do you need:

After you create an account at http://showrss.info select the series you want to download and click “Add to my list”

showrss series overview

After that click on the feeds button and select the type of RSS you want to generate. I like HD versions and I also want to download a proper repack when the first edition have some audio and video problems

showrss generate rss

Click on generate and copy the RSS feed URL. (If you want to test the url and you use Firefox it looks like the feed is empty but when you use chrome instead you see the output.)

showrss copy url

Now login to your Synology NAS and open the download station. Click on RSS feeds and then on the blue plus button

synology add rss

Paste the RSS feed URL in to the field and don’t press the download automatically option

synology add rss url

Now click on the download filter tab an click add. Fill in these fields:

synology save location

Now when the new tv series releases on the bittorent network your download started automatic .

Have fun and don’t forget to click the donate button on the ShowRSS site if your like their website.

Add an Adsense banner to your wordpess site without plugin

  1. Start a FTP program and connect to your wordpress website
  2. Locate your funtions.php (wp-content\themes\theme_name\functions.php)
  3. Edit the file and put the following code in your functions.php file:
  4. function showads() {
    return '
    <script type="text/javascript"><!--
    google_ad_client = "ca-pub-3134535021136249";
    google_ad_slot = "3483719222";
    google_ad_width = 468; google_ad_height = 60;
    // -->
    </script>
    <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    ';}
    add_shortcode('banner', 'showads');
    
  5. Modify the client, slot, width and height values
  6. Safe the file and overwrite the current

Now you can use the [banner] tag in your post to publish the banner:

[banner]