Profile cover photo
Profile photo
Said Tahsin Dane
2,029 followers -
Developer Expert on Android
Developer Expert on Android

2,029 followers
About
Posts

Post has attachment
I will be speaking about #AndroidThings and +Firebase at +GDG Düsseldorf October meetup.

It is today at 7PM in Dusseldorf.

More info here: https://www.meetup.com/Google-Developer-Group-Dusseldorf/events/243137194/

#GDE #AndroidDev #techtalk #Android
Photo
Add a comment...

Post has shared content
Just recorded some silly words 110 times and uploaded voices. Current feeling like a researcher. 🤓
Calling all collaborators... We need your help!

The #AIYProjects team would like your help recording a sample of keywords such as "Yes", "No", "On", or "Off" to help build an open data collection of spoken commands.

Record your voice here: goo.gl/U3qnYS

This data will be used to train a TensorFlow model that will allow you to run on-device natural language processing and control your #RaspberryPi. It will be released with an open license.
Photo
Add a comment...

Post has shared content
What are the unique capabilities of the Android platform and what opportunities do they create for you to make innovative apps? In this video +Nick Butcher walks you through his favourite features of Android and shows how they can be leveraged to build unique experiences: youtu.be/J4pQK2463qs
Add a comment...

Post has shared content
Shape Shifter v0.2.0 is now live!

This is a HUGE update with a TON of new features. The most significant improvement is that it is now possible to morph paths with different amounts of subpaths. For example, the GIF below illustrates a path morphing animation that morphs an overflow icon with 3 subpaths into a back arrow with 1 subpath. These types of animations are easy to create using the new "split subpath" mode, which allows you to cut SVG paths into multiple parts without altering their initial appearance. Check out the YouTube video below for a short example.

Other improvements include the ability to add split points directly to the canvas using the mouse, the ability to morph SVGs with differently sized viewports, a simpler UI for adding rotation to the final animation, and much, much more (see the changelog below).

A ton of work went into this release, so I'm excited to see what you all think. That said, there is still more I want to improve, so stay tuned for v0.3.0! :)

Live version: https://shapeshifter.design

Full changelog: https://github.com/alexjlockwood/ShapeShifter/blob/master/CHANGELOG.md

How to create a play-to-pause animation in ~10 seconds: https://www.youtube.com/watch?v=YtYDEezpmpU

p.s. Spread the word if you can! I want to get as much feedback on the tool as possible. :)
Animated Photo
Add a comment...

Post has attachment
Add a comment...

Post has shared content
This week #GoogleDev Agency Spotlight caught up with @Novoda, a UK-based agency making smarter and better tools! https://goo.gl/O16IvK
Add a comment...

Post has shared content
I thought I'd write an update on git and SHA1, since the SHA1 collision attack was so prominently in the news.

Quick overview first, with more in-depth explanation below:

(1) First off - the sky isn't falling. There's a big difference between using a cryptographic hash for things like security signing, and using one for generating a "content identifier" for a content-addressable system like git.

(2) Secondly, the nature of this particular SHA1 attack means that it's actually pretty easy to mitigate against, and there's already been two sets of patches posted for that mitigation.

(3) And finally, there's actually a reasonably straightforward transition to some other hash that won't break the world - or even old git repositories.

Anyway, that's the high-level overview, you can stop there unless you are interested in some more details (keyword: "some". If you want more, you should participate in the git mailing list discussions - I'm posting this for the casual git users that might just want to see some random comments).

Anyway, on to the "details":

(1) What's the difference between using a hash for security vs using a hash for object identifiers in source control management?

Both want to use cryptographic hashes, but they want to use them for different reasons.

A hash that is used for security is basically a statement of trust: and if you can fool somebody, you can make them trust you when they really shouldn't. The point of a cryptographic hash there is to basically be the source of trust, so in many ways the hash is supposed to fundamentally protect against people you cannot trust other ways. When such a hash is broken, the whole point of the hash basically goes away.

In contrast, in a project like git, the hash isn't used for "trust". I don't pull on peoples trees because they have a hash of a4d442663580. Our trust is in people, and then we end up having lots of technology measures in place to secure the actual data.

The reason for using a cryptographic hash in a project like git is because it pretty much guarantees that there is no accidental clashes, and it's also a really really good error detection thing. Think of it like "parity on steroids": it's not able to correct for errors, but it's really really good at detecting corrupt data.

Other SCM's have used things like CRC's for error detection, although honestly the most common error handling method in most SCM's tends to be "tough luck, maybe your data is there, maybe it isn't, I don't care".

So in git, the hash is used for de-duplication and error detection, and the "cryptographic" nature is mainly because a cryptographic hash is really good at those things.

I say "mainly", because yes, in git we also end up using the SHA1 when we use "real" cryptography for signing the resulting trees, so the hash does end up being part of a certain chain of trust. So we do take advantage of some of the actual security features of a good cryptographic hash, and so breaking SHA1 does have real downsides for us.

Which gets us to ...

(2) Why is this particular attack fairly easy to mitigate against at least within the context of using SHA1 in git?

There's two parts to this one: one is simply that the attack is not a pre-image attack, but an identical-prefix collision attach. That, in turn, has two big effects on mitigation:

(a) the attacker can't just generate any random collision, but needs to be able to control and generate both the "good" (not really) and the "bad" object.

(b) you can actually detect the signs of the attack in both sides of the collision.

In particular, (a) means that it's really hard to hide the attack in data that is transparent. What do I mean by "transparent"? I mean that you actually see and react to all of the data, rather than having some "blob" of data that acts like a black box, and you only see the end results.

In the pdf examples, the pdf format acted as the "black box", and what you see is the printout which has only a very indirect relationship to the pdf encoding.

But if you use git for source control like in the kernel, the stuff you really care about is source code, which is very much a transparent medium. If somebody inserts random odd generated crud in the middle of your source code, you will absolutely notice.

Similarly, the git internal data structures are actually very transparent too, even if most users might not consider them so. There are places you could try to hide things in (in particular, things like commits that have a NUL character that ends printout in "git log"), but "git fsck" already warns about those kinds of shenanigans.

So fundamentally, if the data you primarily care about is that kind of transparent source code, the attack is pretty limited to begin with. You'll see the attack. It's not silently switching your data under from you.

"But I track pdf files in git, and I might not notice them being replaced under me?"

That's a very valid concern, and you'd want your SCM to help you even with that kind of opaque data where you might not see how people are doing odd things to it behind your back. Which is why the second part of mitigation is that (b): it's fairly trivial to detect the fingerprints of using this attack.

So we already have patches on the git mailing list which will detect when somebody has used this attack to bring down the cost of generating SHA1 collisions. They haven't been merged yet, but the good thing about those mitigation measures is that not everybody needs to even run them: if you host your project on something like http://github.com or kernel.org, it's already sufficient if the hosting place runs the checks every once in a while - you'll get notified if somebody poisoned your well.

And finally, the "yes, git will eventually transition away from SHA1". There's a plan, it doesn't look all that nasty, and you don't even have to convert your repository. There's a lot of details to this, and it will take time, but because of the issues above, it's not like this is a critical "it has to happen now thing".
Add a comment...

Post has shared content
This is awesome. Congrats +Novoda
Watch how @Novoda, a leading UK Deveoloper Agency, benefitted from Early Access Products through #GoogleDevs Agency Program
https://goo.gl/qFl3GL
Add a comment...

Post has shared content
Wohoo! 🎉 New SDK releases are always exciting. #AndroidWear #AndroidDev https://t.co/zEhL72Nu3E
Launching Android Wear 2.0 🚀: SDK adds support for new hardware features & fixes

Today, we are releasing the final SDK for Android Wear 2.0. In this release, we have added support for new hardware features announced yesterday. If you have not done so already, it really is time to publish your apps so as to not miss the consumer hardware launch tomorrow.

https://goo.gl/8y9rOx

#AndroidWear
Add a comment...

Post has attachment
I was looking at this page where we have update info on developer preview. But it is not updated yet.
https://developer.android.com/wear/preview/support.html

Is that going to be updated? Should we flash back to the non-preview Wear 1.0 to get the OTA? Or are you guys going to put system image for 2.0 to flash?

/cc +Hoi Lam +Wayne Piekarski
Wait while more posts are being loaded