Thứ Tư, 28 tháng 10, 2015

Android Auto Backup

One of the best features from Android Marshmallow is auto backup for apps. Android used to have a backup feature that only worked for system settings and a few apps that enabled it. Now Google saves the settings and data for all the apps and backs it up to Google Drive, so you can quickly restore it when needed.

I've checked the Android section from Google Dashboard and noticed the difference between Nexus 7 running Android 4.3 and Nexus 5 running Android 6.0. While Nexus 7 only backed up system settings, the wallpaper and some data for Gmail, Google Calendar and Google Keyboard, Nexus 5 backed up the data for almost all the apps: from QuickPic Gallery to MyFitnessPal, from Firefox to Opera Mini and Angry Birds 2. There are still some apps that don't support auto backup, but at least the feature is now opt-out instead of opt-in.



The Android section from Google Dashboard shows a lot of useful information about your Android devices (IMEI number, registered date, last activity date, carrier) and it also lets you delete backup data. "Please note that new backup data will be created if backup is enabled on any of your Android devices," informs Google.

The list of apps backed up to Google Drive is also available in the Settings section of the Google Drive app for Android. You can enable or disable the backup feature, automatic restore, reset network settings, add backup accounts. The nice thing is that all this data doesn't use your Google Drive storage quota, but each app is limited to 25MB.

"Apps running on the new backup system aim to save their data every 24 hours, but there are a few requirements for the backup system to trigger automatically. The new backup system uses the JobScheduler API introduced in Lollipop and only triggers a backup if the device is connected to power, on Wi-Fi, and has been idle for at least an hour. The data then gets encrypted and uploaded to Google Drive," reports Ars Technica.

It's worth pointing out that reinstalling an app from the Play Store restores its settings and data. This way, you won't lose your data when you uninstall an app and you don't have to reconfigure an app you've previously used. In my opinion, this is a game-changing feature.



The new backup service is powered by Google Play Services, so it can be improved without updating the operating system. Hopefully, Google will allow users to disable backup for certain apps, remove the 25MB limitation and backup even more data.

ASUS OnHub Router

For many people, routers are an afterthought. Stuck in a closet, out of sight and out of mind, regular users only think about their routers when something is wrong. Dealing with routers is frustrating: they usually have poor user interfaces, buggy firmware, annoying lights and most people don't know how to change their settings, update firmware or improve their performance.

Google hopes to solve these issues with OnHub, a series of routers designed by Google and manufactured by third-party companies. After launching a TP-LINK router, Google announced a second router with similar specs, this time from ASUS. The new router is even more expensive ($219.99) and can only be preordered in the US.


OnHub routers are designed to be fast, secure, easy to use and to look good. "Like our first router, the ASUS OnHub comes with faster Wi-Fi, easy set-up, and simple management with the Google On app. With the ASUS OnHub, we're also introducing Wave Control, which lets you boost the Wi-Fi speed for a particular device by simply waving your hand over the top of the ASUS OnHub - great for busy houses," informs Google.

It's worth pointing out that OnHub routers run Google's software and they're automatically updated, without having to be restarted. That's an impressive achievement. No other router can be updated without disrupting your Internet connectivity for a few minutes and most users don't bother updating their routers.

Both OnHub routers have powerful specs and they're designed for the future. That's why they only have a single LAN port, they support Bluetooth and Weave and have many other features borrowed from smartphones. They're supposed to be smarter, just like all the other smart devices they enable. As Google says in the following video, hopefully one day you'll love your router.


I've only liked two routers: an old Linksys router running Tomato and an Apple Airport Express. They're very different routers, but they have a few things common: they're stable, reliable and secure. Hopefully, OnHub routers will be just even better.

Thứ Ba, 27 tháng 10, 2015

7 Years of Google Chrome

A lot has changed since Google launched Chrome back in September 2008. Chrome's popularity has been growing ever since then and all the other important browsers became more like Chrome. Google focused on the things that mattered and transformed the browser from a simple application into a "modern OS" for web apps.

While there are many services that claim to measure the market share for browsers, I tend to think that StatCounter is the most accurate. StatCounter's stats for 2008-2015 show that Chrome's market share grew from 0% to 53% in 7 years, while IE's share declined from 67% to 15%. According to StatCounter, Chrome is now the dominant browser, while IE and Firefox are continually losing market share.


It's clear that Google did a lot things right when it launched Chrome, but few people anticipated that Google's browser will take over the world. Most people didn't know what's a browser and only knew that they were supposed to click on the blue E icon to go online. Google changed this by promoting a constantly evolving browser, which was faster and more secure.

RankBrain Helps Google Understand Queries

Google's search engine hasn't always been very smart. In its early years, Google only tried to find the pages that matched the words from your query and ranked them. It's hard to answer a question without understanding it, but that's what Google did.

Google constantly improved its algorithms, added personalization options, started to match synonyms and expand abbreviations, but Knowledge Graph and Hummingbird were the greatest leaps that put machine learning to work and made Google smarter. Google started to understand the meaning behind a question, to disambiguate words and to find answers, not just pages that include the words from the query.

Bloomberg reports that Google uses even more artificial intelligence to answer questions and rank results. RankBrain is a new AI system that has been used for the past few months to improve search results. "If RankBrain sees a word or phrase it isn't familiar with, the machine can make a guess as to what words or phrases might have a similar meaning and filter the result accordingly, making it more effective at handling never-before-seen search queries."

15% of the queries Google gets every day are new and RankBrain helps Google understand them. Here's an example of complicated query: "What's the title of the consumer at the highest level of a food chain?" RankBrain finds words and phrases that have a similar meaning and highlights them (for example: predators). "In the few months it has been deployed, RankBrain has become the third-most important signal contributing to the result of a search query."


Google's CEO, Sundar Pichai, says that "machine learning is a core transformative way by which we are rethinking everything we are doing". Machine learning has already helped Google improve image search, automatic translation, speech recognition and deep learning is already showing some promising results: smarter photo search with object recognition.

"In tandem with other researchers at Google, Andrew Ng is building one of the most ambitious artificial-intelligence systems to date, the so-called Google Brain. This movement seeks to meld computer science with neuroscience — something that never quite happened in the world of artificial intelligence," reports Wired. "Deep Learning is a first step in this new direction. Basically, it involves building neural networks — networks that mimic the behavior of the human brain. Much like the brain, these multi-layered computer networks can gather information and react to it. They can build up an understanding of what objects look or sound like."

Newer Is Not Always Better

With all this talk about Android and software updates, I realized that one of the biggest Android advantages is that you can install custom firmware or downgrade to an old Android version.

My old Nexus 7 tablet from 2012 doesn't support the latest Android release. Instead of installing custom firmware from some independent developers, I decided to go back to the smoothest Android version I can find. Asus skimped on quality storage and Nexus 7 was pretty slow and laggy, especially when using Android 5.x.

Google has a page with factory images for Nexus devices and it's pretty easy to install any Android version that's officially available. You have to backup your data, enable USB debugging and run some scripts.

I've installed Android 4.4.4 and Nexus 7 was much smoother, but there was still room for improvement. Android 4.3 was even better and I decided to keep it. It's like having a completely new device, even if it runs some outdated software released 2 years ago.


It's difficult to optimize new software for old hardware, especially if manufacturers don't care about quality, cut costs and ship poorly made devices with obvious design flaws. On there other hand, Google has its own issues with software optimization, memory leaks, battery draining software and other bugs. When properly optimised, Android runs well and users are happy, but this doesn't happen often. With so many devices to update, manufacturers and even Google take shortcuts when it comes to old phones and tablets. Some stop updating them, others release unfinished software, hoping to encourage users to buy new hardware, while others spend more time improving the software for the latest flagships.

Thankfully, you can downgrade and go back to a software that actually works well. Apple devices rarely allow you to downgrade and usually for a limited time, so you're stuck with phones and tablets that are suddenly slow, laggy and crashy.

This post was written on my Nexus 7 running Android 4.3.

Thứ Năm, 22 tháng 10, 2015

Google Photos Stats

Google has some stats about Google Photos, the online photo sharing service released 5 months ago. Google Photos has 100 million monthly active users. They created more than 15 million animations and collages and their backed-up photos and videos use more than 3,720 TB of storage.



Paris is the top photographed place, followed by New York and Barcelona. Besides people, food and cars are the most photographed things. Sky, beaches and mountains are also included in the top 10 things photographed by Google users. The top 6 events in Google Photos are: wedding, concerts, Christmas, dancing, birthday and clubbing.

The most popular searches are for baby photos, but "me" is also a popular query.

Google's Play

Android started as an open platform that brought together many competing companies. iPhone's launch changed Android's development and was an important reason for Android's success. Phone manufacturers and carriers wanted an "iPhone killer" and Android was a good bet, but it still had a lot of rough edges and there were many missing features. This was a great opportunity for manufactures to fill in the gaps, create their own user interfaces and develop their own apps and widgets that brought value and differentiation.

Here's an image from Android's original SDK emulator:



Why did Google acquire Andy Rubin's company and invested in Android? One of the reasons was to make a better platform for developing mobile apps. Google already had a few mobile apps for feature phones, Symbian, Blackberry and it was very difficult to add new features and to test the applications because of the inconsistent APIs and their implementations. Android seemed like an interesting opportunity, but Google never anticipated that it will take over the world. It's obvious that Android became the dominant mobile OS because so many companies invested in Android, hoping to come up with better phones than Apple's iPhone.

While Android was open source, Google created a few proprietary apps that weren't part of the Android Open Source Project (AOSP). The most important proprietary Google app was Android Market, which is now called Google Play Store, but Google developed other apps as well: Gmail, Google Search, Google Maps etc. Over time, many open source apps were replaced by proprietary Google apps: the music player became Google Play Music, the calendar app became Google Calendar, the browser became Chrome etc.



Android Market/Google Play is Google's own service and it was licensed to phone manufactures subject to confidential terms and conditions. According to the distribution agreements (MADA) revealed by companies like HTC and Motorola, Android Market was bundled with other Google apps and services, including Google Search and Network Location Provider, which had to be the default search and location services. "Devices may only be distributed if all Google Applications [listed elsewhere in the agreement] ... are pre-installed on the Device," mentions one of the distribution agreements.

The list of bundled Google apps increased over the years, as Google released more and more apps. Phone manufacturers were allowed to bundle competing apps from third-party companies and you'll find many phones that include Whatsapp and Hangouts, Microsoft OneDrive/Dropbox and Google Drive, Facebook and Google+. Here's a screenshot from Samsung Note 4, courtesy of Gsmarena, which shows that Samsung preinstalled Facebook and Google+, Hangouts, WhatsApp and Facebook Messenger, Instagram and Google Photos.


While many Android users complain that their phones have too much bloatware, some companies aren't happy that Google ties the Google Play Store with other Google apps and some default settings (Google = default search engine, Google Network Location Provider = default location provider).

Deutsche Telekom will file an anti-trust charge against Google, complaining that "Google uses its Android mobile operating system to unfairly promote its own products like Google Maps and online search over those of rivals". According to New York Times, "a number of large tech companies, including Oracle and Nokia, as well as small start-ups like Aptoide, a Portuguese online marketplace for smartphone applications, already have filed complaints to European officials connected to the Android investigation." The European Commission has opened a formal investigation into Google's mobile operating system and the Federal Trade Commission started a similar investigation last month.

Is it fair for Google to bundle the Play Store with other apps and to dictate its own terms and conditions? It's obvious that the Play Store is the most important Android app and few people outside of China would buy an Android device that can't access the Play Store. By now, Google Play Store and the associated Google Play Services are hard to separate from Android, even if they're not technically part of Android. This is Google's play: it's holding the keys to more than 1 million apps and dictates its own terms to phone manufacturers. Many of Google's apps are actually useful and they are hard to beat by competitors (Google Maps, Google Search, Gmail, YouTube), but some of the apps aren't the best in their category and Google uses distribution agreements to promote them (Hangouts, Keep, Play Books).

Back in 2008, Android Market was just another Android app store, but now it's the most important by far and it also comes with APIs that tie Android apps to the Google Play Store. I think it's not fair to tie Play Store licensing with bundling other Google apps and Google should use separate distribution agreements for them, just like Facebook and Microsoft.