OWF12/PAUG Conf Days Google tv part2 (commande and control) matt gaunt, advocate at google
OWF12/PAUG Conf Days Android tools for developpeurs, paul marois, design and development engineer,...
-
Upload
open-world-forum -
Category
Documents
-
view
889 -
download
2
description
Transcript of OWF12/PAUG Conf Days Android tools for developpeurs, paul marois, design and development engineer,...
![Page 1: OWF12/PAUG Conf Days Android tools for developpeurs, paul marois, design and development engineer, genymobile](https://reader034.fdocuments.us/reader034/viewer/2022042613/54873d955906b5c90c8b4582/html5/thumbnails/1.jpg)
Paul Marois - GenYmobile
Android Tools for Developers
![Page 2: OWF12/PAUG Conf Days Android tools for developpeurs, paul marois, design and development engineer, genymobile](https://reader034.fdocuments.us/reader034/viewer/2022042613/54873d955906b5c90c8b4582/html5/thumbnails/2.jpg)
Who Am I ?● Android Developer.● Android GENYMOBILE employee.
What this presentation will be ? ● A totally subjective presentation about official tools I find
interesting or useful.● Not about tools presented elsewhere in OWF.
Introduction
![Page 3: OWF12/PAUG Conf Days Android tools for developpeurs, paul marois, design and development engineer, genymobile](https://reader034.fdocuments.us/reader034/viewer/2022042613/54873d955906b5c90c8b4582/html5/thumbnails/3.jpg)
Emulator
![Page 4: OWF12/PAUG Conf Days Android tools for developpeurs, paul marois, design and development engineer, genymobile](https://reader034.fdocuments.us/reader034/viewer/2022042613/54873d955906b5c90c8b4582/html5/thumbnails/4.jpg)
Latest addition
GPU Support● SDK tools > 17● emulator -avd <avd_name> -gpu on
Improved CPU performance
More hardware feature emulation● SDKController in tools/apps/● adb forward tcp:1970 localabstract:android.sdk.controller
○ MultiTouch Input Emulation○ Sensor Emulation
Emulator
![Page 5: OWF12/PAUG Conf Days Android tools for developpeurs, paul marois, design and development engineer, genymobile](https://reader034.fdocuments.us/reader034/viewer/2022042613/54873d955906b5c90c8b4582/html5/thumbnails/5.jpg)
Emulator
Emulator Telnet Interface
![Page 6: OWF12/PAUG Conf Days Android tools for developpeurs, paul marois, design and development engineer, genymobile](https://reader034.fdocuments.us/reader034/viewer/2022042613/54873d955906b5c90c8b4582/html5/thumbnails/6.jpg)
Emulator
Telephony DDMS / Emulator
Camera Webcam
Sensor Tethered Device
Multitouch Tethered Device
NFC / Bluetooth Future ?
![Page 7: OWF12/PAUG Conf Days Android tools for developpeurs, paul marois, design and development engineer, genymobile](https://reader034.fdocuments.us/reader034/viewer/2022042613/54873d955906b5c90c8b4582/html5/thumbnails/7.jpg)
New Wizard & Layout Configuration
![Page 8: OWF12/PAUG Conf Days Android tools for developpeurs, paul marois, design and development engineer, genymobile](https://reader034.fdocuments.us/reader034/viewer/2022042613/54873d955906b5c90c8b4582/html5/thumbnails/8.jpg)
Lint
● Available in ADT > 16.● Bug detector.● Multiple Inputs file types : xml, java, ...● Multiple Output file types : text, html, xml, ...● Multiple Front-Ends : Eclipse, IntelliJ, command line.● Multiple severity warnings.● Jenkins Plugin.
○ https://wiki.jenkins-ci.org/display/JENKINS/Android+Lint+Plugin
● API to write additional checks.
![Page 9: OWF12/PAUG Conf Days Android tools for developpeurs, paul marois, design and development engineer, genymobile](https://reader034.fdocuments.us/reader034/viewer/2022042613/54873d955906b5c90c8b4582/html5/thumbnails/9.jpg)
Lint
Create Your Own Rules
● Import lint_api.jar
● Create a detector which can identify one or more different types of "issues" that you'll create too.○ public class MyDetector extends ResourceXmlDetector
● Provide your own registry. ○ public class MyIssueRegistry extends IssueRegistry
● Create your manifest○ Lint-Registry: owf.demo.MyIssueRegistry
● Put the jar into ~/.android/lint folder
![Page 10: OWF12/PAUG Conf Days Android tools for developpeurs, paul marois, design and development engineer, genymobile](https://reader034.fdocuments.us/reader034/viewer/2022042613/54873d955906b5c90c8b4582/html5/thumbnails/10.jpg)
Device Monitor
HierarchyViewer
![Page 11: OWF12/PAUG Conf Days Android tools for developpeurs, paul marois, design and development engineer, genymobile](https://reader034.fdocuments.us/reader034/viewer/2022042613/54873d955906b5c90c8b4582/html5/thumbnails/11.jpg)
Device Monitor
HierarchyViewer
● Do not work on devices for security reason○ https://github.com/romainguy/ViewServer○ Requires Internet Permission○ Mode Debug only
● onCreate :○ ViewServer.get(this).addWindow(this);
● onDestroy ○ ViewServer.get(this).removeWindow(this);
● onResume ○ ViewServer.get(this).setFocusedWindow(this);
● Customizable○ @ViewDebug.ExportedProperty
![Page 12: OWF12/PAUG Conf Days Android tools for developpeurs, paul marois, design and development engineer, genymobile](https://reader034.fdocuments.us/reader034/viewer/2022042613/54873d955906b5c90c8b4582/html5/thumbnails/12.jpg)
Device Monitor
adb command lines
● Adb bugreport○ Complete log of the system.
● adb shell dumpsys : log of services○ ex : adb shell dumpsys meminfo <pid>
Exs : SurfaceFlingermeminfoalarmnetwork_managementappwidgetnfcaudionotificationbattery
permissionbatteryinfophonebluetoothpowergfxinfovibratorhardwarewallpaper...
![Page 13: OWF12/PAUG Conf Days Android tools for developpeurs, paul marois, design and development engineer, genymobile](https://reader034.fdocuments.us/reader034/viewer/2022042613/54873d955906b5c90c8b4582/html5/thumbnails/13.jpg)
Device Monitor
Ex : adb shell dumpsys meminfo <pid>
![Page 14: OWF12/PAUG Conf Days Android tools for developpeurs, paul marois, design and development engineer, genymobile](https://reader034.fdocuments.us/reader034/viewer/2022042613/54873d955906b5c90c8b4582/html5/thumbnails/14.jpg)
Device Monitor
Systrace
● Settings > Developer Options > Enable Traces● sdk/tools/systrace● python ./systrace.py
![Page 15: OWF12/PAUG Conf Days Android tools for developpeurs, paul marois, design and development engineer, genymobile](https://reader034.fdocuments.us/reader034/viewer/2022042613/54873d955906b5c90c8b4582/html5/thumbnails/15.jpg)
Device Monitor
Traceview
![Page 16: OWF12/PAUG Conf Days Android tools for developpeurs, paul marois, design and development engineer, genymobile](https://reader034.fdocuments.us/reader034/viewer/2022042613/54873d955906b5c90c8b4582/html5/thumbnails/16.jpg)
Device Monitor
Monkey
● Generate pseudo-random streams of user events on an emulator or device
● adb shell monkey [options] <event-count>○ ex : adb shell monkey -p com.google.android.apps.iosched -v
500
![Page 17: OWF12/PAUG Conf Days Android tools for developpeurs, paul marois, design and development engineer, genymobile](https://reader034.fdocuments.us/reader034/viewer/2022042613/54873d955906b5c90c8b4582/html5/thumbnails/17.jpg)
And more...
● Draw9patch● OpenGLTracer● Procrank
● DexGuard● AndroVM● AndroidAnnotations● RenderScript
● ETC...
![Page 18: OWF12/PAUG Conf Days Android tools for developpeurs, paul marois, design and development engineer, genymobile](https://reader034.fdocuments.us/reader034/viewer/2022042613/54873d955906b5c90c8b4582/html5/thumbnails/18.jpg)
Q & A
Thanks
![Page 19: OWF12/PAUG Conf Days Android tools for developpeurs, paul marois, design and development engineer, genymobile](https://reader034.fdocuments.us/reader034/viewer/2022042613/54873d955906b5c90c8b4582/html5/thumbnails/19.jpg)
Bonus
MAT