Software runs my life

Category: software Page 2 of 14

Remove Adware infected YouTube App

I recently bought  Xiaomi Redmi Note 2 and Note 3 phones off Lazada in Singapore. Both times the standard ROM was installed, but some modifications had been made. The phones were rooted and some apps had been installed (Kingroot, Google Play Services etc.). The most annoying part however was that if Chrome hadn’t been used for ~10mins and you opened it, then it would open a popup with a full screen advertisement. I started researching how to remove this annoying Adware.

I found one really good article which detailed the debugging process. There are a few pre-steps however:

  1. Root the phone
  2. Install ADB tools on your computer
  3. Plug in the phone via a USB cable

As per the article above, you can then use the ADB logcat to debug what’s going on. Do the following steps from a terminal prompt on your computer:

  1. adb logcat > log.txt
  2. Open Chrome on your Android phone, wait for the ads to load. Take note of the Ad URL that loads (there might be a couple, so try and get the first one)
  3. Ctrl+C to kill logcat
  4. Open the log.txt file in a text editor and search of the URL you noted in step #2

My Ad spam URL was “ymtracking.com” and so I searched for that in log.txt. It came up with this line:

I/ActivityManager(  808): START u0 {act=android.intent.action.VIEW dat=http://global.ymtracking.com/trace?offer_id=111090&aff_id=27742 flg=0x10000000 cmp=com.android.chrome/com.google.android.apps.chrome.Main} from uid 10035 on display 0

This line tells me that a process running under UID 10035 is calling the ad URL. Time to hunt and kill that UID!

  1. adb -d shell
  2. su

Then you need to view the file /data/system/packages.xml. The Xiaomi phones don’t seem to have vi as a text editor installed, so move it to /sdcard/ to download it to your computer, or open it on the phone itself in the browser. Look for the package line that matches the UID you find earlier (10035):

<package name=”<<PACKAGE NAME>>” codePath=”<<DIR>>”  sharedUserId=”10035″>

Now you know the package name and the location. Normally you could enter the following command from the ADB shell as su “pm disable <<PACKAGE NAME>>”, but when I tried that it was not allowed (read only). Trying to reinstall the package didn’t work either. I found I had to actually use the code path and delete the .apk file itself:

  1. cd /system/priv-app/Youtube (what you had as <<DIR>> above)
  2. mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
  3. rm -rf Youtube.apk

That was it! Reboot the phone and the ads are gone. You can then use the Play Store to install YouTube as normal, from the official source.

Flickrtoplus.com now supports Google Photos

Google Photos iconGoogle Plus photos has been split out into a separate product, Google Photos. As part of this move there were some API changes, in particular an newly enforced requirement to use OAuth 2.0. With some help we managed to get the tool updated after a period of 1-2 weeks of downtime in late June 2015.

Usage volumes have since been steadily increasing: over the period June – December 2015 daily usage has doubled. I’m not sure whether it’s due to a decline in Flickr usage, and increase in Google Photos usage, or a combination of both (my guess). I need to spend some time working on improving the efficiency of the tool over the holiday period, but until then would ask for your patience. It’s working, it’s just a bit backlogged.

FlickrToPlus.com Screenshot

FlickrToPlus.com – Flickr to Google Plus Migration Tool

FlickrToPlus.com Screenshot

FlickrToPlus.com Screenshot

I have been using Google Plus a lot more lately, and now feel that the social layer (permissions and annotations) adds substantially to the photo experience. I know this is not a new revelation, but as a long time Flickr Pro customer I felt that the options of “Friends” or “Family” visibility, when I don’t really have either on Flickr, were not enough. Therefore over the 2012 Christmas holiday break I decided to work on a new web tool, FlickrToPlus.com.

There are two really annoying things about doing this migration for me:

  1. Losing metadata – especially titles and geo data
  2. Downloading/Uploading every file

This tool solves both these problems with the help of the Flickr and Picasa API’s. In fact my server doesn’t even see the photo files, you can pass a Flickr original image URL directly to the Picasa API. This means the service is fast and reliable. All you need to do is log in with both Flickr and Picasa, and then check the box against the set you would like to migrate. The site will then provide a progress update on the migration status. Google Plus albums and Picasa albums are currently pretty much the same thing, so these migrated albums are available straight away in the Google Plus interface for sharing with your friends.

Please give it a try and let me know what you think!

Page 2 of 14

Powered by WordPress & Theme by Anders Norén