Taking the blinders off – The power of Stetho

19
PAGE 1 © 2015 Apio Systems, Inc. Confidential 1 Jared Sheehan @ Driversiti Taking the blinders off The power of Stetho

Transcript of Taking the blinders off – The power of Stetho

PA

GE

1

© 2015 Apio Systems, Inc. Confidential 1

Jared Sheehan @ Driversiti

Taking the blinders off – The power of Stetho

PA

GE

2

© 2015 Apio Systems, Inc. Confidential 2

Who am I

Glass explorer, speech recognition enthusiast and big android nerd

Android Lead @Driversiti - driving safety for the mobile generation

Part of the team that built the Speech Recognition application for the Amazon Fire Phone

Suite of applications - AIM Android, Engadget Android, Distro Android, TechCrunch

Android, AOL HD, AIM Blackberry

Meetup Evangelist

PA

GE

3

© 2015 Apio Systems, Inc. Confidential 3

Overview

Data obscurity

Stetho to the rescue

How it works

Sample code

Questions?

PA

GE

4

© 2015 Apio Systems, Inc. Confidential 4

Data obscurity

Database access and visualization

API Request/Response obscurity

Shared Preferences

Solutions – Root, rebuilding logging over and over

A solution - Stetho

PA

GE

5

© 2015 Apio Systems, Inc. Confidential 5

Stetho – Facebook open source tool

PA

GE

6

© 2015 Apio Systems, Inc. Confidential 6

Web developers have it made

The web has been around for decades

The suite of tools for WebDevs is very robust

Facebook - Lets piggy back off one of them and build a deb bridge to access

Android data

Chrome developer tools - https://developer.chrome.com/devtools

Obviously, this is not secure, never ship this in production

PA

GE

7

© 2015 Apio Systems, Inc. Confidential 7

Stetho - What it does

Database access and visualization – No more Sqlite exporting

Remove API Request/Response obscurity – Network inspection

Easily read and change Shared Preferences

Replacement for Hierarchy Viewer

Dump App – Command line tool

PA

GE

8

© 2015 Apio Systems, Inc. Confidential 8

Enable Stetho - Core

PA

GE

9

© 2015 Apio Systems, Inc. Confidential 9

Enable Stetho – Network Helper

PA

GE

10© 2015 Apio Systems, Inc. Confidential 10

Setup Stetho

PA

GE

11© 2015 Apio Systems, Inc. Confidential 11

Setup Stetho – Interceptors

PA

GE

12© 2015 Apio Systems, Inc. Confidential 12

Chrome Dev tools

PA

GE

13© 2015 Apio Systems, Inc. Confidential 13

Network Inspection

PA

GE

14© 2015 Apio Systems, Inc. Confidential 14

Database Inspection

PA

GE

15© 2015 Apio Systems, Inc. Confidential 15

View Heirarchy

PA

GE

16© 2015 Apio Systems, Inc. Confidential 16

Dump App

PA

GE

17© 2015 Apio Systems, Inc. Confidential 17

JavaScript Console

PA

GE

18© 2015 Apio Systems, Inc. Confidential 18

Driversiti by Apio

Mobile Platform (Software) as a Service

Utilizes mobile device sensor fusion in conjunction with proprietary algorithms

Initial focus: Transportation

Drivers, Fleets, Auto Insurers, Roadside Assistance

Provides drivers with “Situational Awareness”

- improves safety, efficiency, and the driving experience

No easily outdated, expensive embedded equipment, or connection to car

- uses only the smartphones/tablets that drivers already carry

PA

GE

19© 2015 Apio Systems, Inc. Confidential

[email protected]

Android Developer

Tweet: @jayroo5245

THANK YOU