The Android Dev Summit was an Android-only developer-focused conference hosted in the Computer History Museum in Mountain View. It’s much more deep dive focused that Google I/O and given the locality of Google HQ there were lots Googlers to answer questions.
All sessions videos are here.
Themes and Styling – video
There was a big emphasis on using Theme attributes (e.g `?attr/textColorSecondary`) to set your colours within our apps rather than setting the specific colours in styles/layouts. The main advantage is you can tweak or change your theme can you don’t have to change all your style definitions. The best use case was supporting day/night mode which switches the app’s colour depending on the time of day.
But also useful when changing colour scheme for a particular screen. i.e if displaying football teams, theme the screen based on team colour. In HelpScout’s case, the way we theme a screen yellow when composing a conversation note.
Also, material specs have been updated form colours point of view. Instead of colour primary, primarydark and accent. It’s now primary and secondary with variants and there’s a focus on the colour of text when it’s on light or dark background more info. Bonus Lightning talk on vector drawables from Nick Butcher.
Webviews – video
There’s a new AndroidX Webview library whose aim is to provide stability and common API across Android versions. When using
shouldOverideUrlLoading() make sure to check
WebResourceRequest.hasGesture() to ensure it’s a person clicking a link and not a script (benign or malicious) causing the URL to change.
TL;DR This article fills in some of the gaps in the official docs and add rationale to why you should consider moving your app to a non-human Google account.
Google offers the ability to move/transfer one of many apps from one Google account to another. But before you transfer highly recommend reading the official docs on how to transfer apps to a different developer account here.
Are you using your personal Google account for apps?
If your app(s) are associated with your personal Google account you run the risk of having your access to Gmail, Google Photos, Drive blocked if Google Play account is suspended due to a breach of Play content policy. The thought of losing access to my emails, family photos is a very frightening prospect. You might think you’ll never be in breach and maybe you’re right? but remember the Play content policy is frequently updated and you have to ask yourself how closely you read the updates. I ran into policy breaches a few times and none of the apps I’ve released are particularly risky. The first app that I wrote to get my first Android job was a wallpaper changer based geotagged Flickr photos and user’s location. It was pulled due to copyright infringement (I mistakenly used Flickr’s logo and name). So certainly worth considering moving them to seperate Google account.
What if the account owner leaves your organisation?
Recently at work the first Android developer left for greener pastures. I mention first because he was only one in the Android team and registered his work Google account as the Google Play Developer owner which I’m sure happens a lot. When he left the company a few weeks ago his Google account was deactivated as you’d expect. However, because that account was the owner on Google Play we *lost* all access to Google Play console 😱😱😱. Thankfully we were able to restore their Google account which restored our access. But keeping an ex-employee’s account active just for this would be less than ideal.
I attended Google I/O for the first time in May 2017 and had an absolute blast! It is by far the best conference I’ve attended. Google listened to the gripes of last year’s I/O at Shoreline and fixed all the niggles. But what does it costs to attend? I’d estimated a total cost of around £2K after totalling up receipts, I’m reasonably happy to see that I was near in the estimate.
Of course this is highly individual based on my experiences this year and current USD to GBP ratio but I hope it serves as indicator for others. Here’s the rough and rounded the numbers.
- Flights LHR to SFO: ~£450
- Airport transfers UK: £50
- Airport transfers US: £60
- AirBnb (split between 4): £350
- Taxi/Uber to/from Shoreline: £55
- Other food/beer (not at I/O): £150
- I/O Ticket price £950*
*Disclaimer: As an GDE for Android I am fortunate to get a complementary I/O ticket. However I thought this article would be more useful if I included the ticket price in the main total.
- I was able to share uber a few times to cut down some of the travel costs.
- Didn’t factor lost earnings for the 5 days not working (or the reduced efficiency the week after with jet lag)
- Haven’t included some leisure activities at weekend like bike hire, Makers faire and travelling to/from San Francisco as I figured it’s purely what I got up to and not indicative of costs for others.
Tips and tricks to cut costs:
- Remembers it’s near unlimited free food, drink, snacks and beer/wine at Google I/O so on a I/O day you shouldn’t need much else.
- After researching flights, I discovered you can fly into San Francisco (SFO) or San Jose (SJC). SJC is closer but SFO is often cheaper. I did a fair bit of checking of different flight options to get the flights for £450. This is £200 cheaper than LHR to SJC
- Also see if flying back on different day helps, I found that returning on the Sunday night saved £1000!!! Over flight on the Friday evening.
- Book accommodation nearer to bus drop off locations i.e Mountain view caltrain. This is so I could take advance of the free Google I/O buses.
- Sharing AirBnb brought the accommodations costs down. Nearby hotels wanted $200 per night.
- If you’re in a permanent role try to convince your employer to cover some of the costs in exchange for things like blog articles and knowledge transfer sessions.
- If you’re independent contractors consider working the weekend to recover some lost earnings.
- Monzo card for fee free payments in USD and ATM withdrawals (always pay in USD and don’t let the ATM/ePOS do the conversion)
Slides and links(below) from my “What’s NNNNNNNNew in Android Security” talk at Droidcon London. The video via SkillsMatter is here.
Training and Developer Docs
Would you like me to speak at your conference or meetup? If so please get in contact.
Any questions, please drop me an email or tweet.
Droidcon London is one of my favourite conferences with it’s wall to wall Android theme. I’ve spoken 3 times over the past 6 years or so and I’m super excited to be speaking this year after a break of a couple of years. I tend to speak about Android Security because it’s an area of app development that isn’t often prioritised high enough. Mobile security comes with it’s own set of challenges where devices and data are physically at more risk than traditional PC/Laptop environment.
In addition to checking out the other security talks I’m keen to learn tips and quick wins for view animations and screen transitions. Also top of my list is learning from real world experiences and lessons learnt using different architectural approaches such as MVP and Clean architecture. I’m looking forward to getting to grips with Kotlin based on the news that Kotlin is supported for build scripts in Gradle 3.0.
My Talk – What’s NNNNNNew in Android Security?
As you might guess from the name is all about the new security features in the most recent versions of Android: Nougat aka N.
Who should come to it?
There were several notable security updates in Android Nougat and in this talk I’ve distilled the information specially for the busy developer who don’t have a lot of time to invest in learning new APIs. I’m personally most excited about Android 7’s Network security config. It’s an easy way to increase your app’s network security without writing any code (just xml based config). I’ll show you the most likely things you’d use it for with code samples. For example allowing self signed certificates for development API and SSL pinning.
See you there!
Also watch @scottyab and speakerdeck profile for the slides
Thanks to Matt Rollings, Niall Scott and Andy Barber proofreading feedback.
I had a great time at MCE conference in Warsaw, Poland in April. I’d recommend MCE as a mobile conference I attended both Android and iOS talks and there were all high quality. Also all the people I met were very friendly and spoke great english. I was introduced to Polish vodka and some tasty polish food. Thanks to the organisers for inviting me and I hope to attend again.
In this presentation I share a story of a recent Android app I developed where app security wasn’t prioritised and how I still provided a minimal level of security to protect the app’s users and developer reputation.
For those wondering why my t-shirt has a mantis shrimp on it? check out this awesome oatmeal comic.
Last week I attended the first Blackhat mobile security summit in London. It was a great chance for us to learn from security specialists.
I co-wrote this article to highlights some of our favourite and key takeaways.
- New Android Security Rewards Program
- State of malware on Android/mobile
- Samsung / SwiftKey Zip Traversal Hack
- SSL validation (or lack of) still one of most common app vulns
- “erase everything” = not everything?
- Windows phone 8 exploits and security faux pas
I have been fortunate enough to be invited to speak at goto; conference in Copenhagen on October 6th. I’ll be giving a talk I one of my favourite subjects: Android app security. If you can make it please come and say hi.
Global mobile adoption is spreading like wildfire, pervasive government surveillance programs are coming to light and major internet security exploits are being uncovered. This results in increased awareness from users, managers and developers for the dire need for rigorous security in deployed code. While mobile device security can be helped via mobile device management (MDM) solutions it’s our responsibility as app developers/publishers to ensure our apps protect user privacy and critical business data. The problem is securing your Android app and data is not always obvious or well documented.
This talk will cover current Android app threats and look at how with freely available tools we can easily reverse engineer an Android app. After a brief introduction to Android platform security and how to protected app components, we’ll cover enhanced SSL validation, encryption, tamper protection and advanced obfuscation techniques. We will also focus on leveraging open source commercially viable libraries allowing us to increase our app’s security with minimal effort.
These best practise techniques will arm you with practical solutions that can help you survive in the Android security jungle.
I have released a new open source library to wrap a Google Play services API called SafetyNet, which has been completely eclipsed by the recent Google IO and WWDC coverage 😉
Here’s a blog post that explains a bit about what is it and why and here’s the code on github.
I’ve also released the Sample app on the Google Play store so you can run the Safety Net test on your own device.