Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Android Dev Tools Knowledge

11,229 views

Published on

DroidKaigi 2016
https://droidkaigi.github.io/2016/

Android Dev Tools Knowledge

Published in: Technology
  • Be the first to comment

Android Dev Tools Knowledge

  1. 1. Android Dev Tools Knowledge DroidKaig 2016
  2. 2. About Me Shinobu Okano @operandoOS Mercari, Inc.
  3. 3. shinobu.apk http://hack-it-iron.hatenablog.com/entry/ 2016/02/08/142322 shinobu.apk #1 のパネルディスカッション 録音データとShow Notesを公開しました!
  4. 4. まったりAndroid Framework Code Reading http://hack-it-iron.hatenablog.com/entry/ 2015/11/28/185529 まったりAndroid Framework Code Reading #2 を開催しました
  5. 5. はじめに • 標準のDev Toolの話は少なめかも • 色んなツールがあることを知ってほしい • さらにいいツールを作ってほしい • 俺も頑張る(๑•̀ㅂ•́)‫✧و‬ • 知ってて使わないのと、知らないで使わないのは違う • 機会の損失
  6. 6. 便利なコマンド ※Nexus 5 -version 6.0で動作確認! マシュマロマシュマロ!!
  7. 7. adb
  8. 8. 簡単にadbの環境を用意する
  9. 9. 簡単にadbの環境を用意する brew install android-sdk
  10. 10. まずは adbの使いやすさを向上させる
  11. 11. adb-peco
  12. 12. adb-peco • 複数のAndroid端末を同時繋いでる時に便利 • adb-peco • alias adb='adbp' • https://github.com/tomorrowkey/adb-peco
  13. 13. 感謝っ・・・・! 圧倒的感謝っ・・・・! ※絵は出せません
  14. 14. adb-peco • 複数のAndroid端末を同時につないで困ってま せんか?それadb-pecoで選択できるよ! • http://techlife.cookpad.com/entry/ 2014/09/09/172449
  15. 15. input text • 入力が楽にできる • スマホのキーボードで入力するとかないわー • adb shell input text droidkaigi
  16. 16. dumpsys • dump system services status • adb shell dumpsys | grep "DUMP OF SERVICE"
  17. 17. dumpsys activity • Activityの状態をDumpできる
  18. 18. dumpsys activity • adb shell dumpsys activity top • adb shell dumpsys activity | grep -B 1 "Run #[0-9]*:" • adb shell dumpsys activity activities | grep apk
  19. 19. Settings • 設定にどんな値が入っているか確認できる • adb shell settings list [system/global/secure]
  20. 20. screenrecord • 画面録画機能 • adb shell screenrecord /sdcard/launch.mp4 • adb shell screenrecord --bugreport /sdcard/launch.mp4 • adb pull /sdcard/launch.mp4
  21. 21. Systrace The Systrace tool helps analyze the performance of your application by capturing and displaying execution times of your applications processes and other Android system processes
  22. 22. Systrace • generate an HTML report • http://developer.android.com/intl/ja/tools/ help/systrace.html
  23. 23. Systrace • python systrace.py • /sdk/platform-tools/systrace
  24. 24. Analyzing UI Performance with Systrace • Analyzing UI Performance with Systrace • http://developer.android.com/tools/ debugging/systrace.html
  25. 25. atrace • atrace = Android System Trace • adb shell atrace --list_categories
  26. 26. atrace • adb shell atrace --async_start -a com.kouzoh.mercari -c -b 16000 res • adb shell atrace --async_stop -a com.kouzoh.mercari -c -b 16000 res
  27. 27. atrace source code http://tools.oesf.biz/android-6.0.0_r1.0/xref/ frameworks/native/cmds/atrace/atrace.cpp
  28. 28. adb / adb shell etc.
  29. 29. それで50分話せるくらい... 正直、話そうと思ったら 無限にあるのね...
  30. 30. Android-Command-Note https://github.com/operando/ Android-Command-Note
  31. 31. AndroidShell https://github.com/cesards/ AndroidShell
  32. 32. Gradle plugin
  33. 33. dexcount-gradle-plugin • 名前そのまま • メソッド名数えてくれる • https://github.com/KeepSafe/dexcount- gradle-plugin
  34. 34. gradle-versions-plugin • 使っているライブラリに新しいバージョンが あるかどうかをチェックできる • dependencyUpdates • https://github.com/ben-manes/gradle- versions-plugin
  35. 35. build-time-tracker-plugin • build時間をトラックしてくれる • https://github.com/passy/build-time-tracker- plugin
  36. 36. gradle-slack-plugin • タスクが終わったらSlackに通知してくれる • https://github.com/Mindera/gradle-slack- plugin
  37. 37. gradle-android-command- plugin • gradle-android-command-plugin • https://github.com/novoda/gradle-android- command-plugin
  38. 38. gradle-android-ribbonizer- plugin • gradle-android-ribbonizer-plugin • https://github.com/gfx/gradle-android- ribbonizer-plugin
  39. 39. Android Studio Plugin
  40. 40. AndroidWiFiADB • AndroidWiFiADB • https://github.com/pedrovgs/AndroidWiFiADB
  41. 41. ADB Idea • ADB Idea • https://github.com/pbreault/adb-idea
  42. 42. Android-DPI-Calculator • Android-DPI-Calculator • https://github.com/JerzyPuchalski/Android- DPI-Calculator
  43. 43. android-parcelable-intellij-plugin • android-parcelable-intellij-plugin • https://github.com/mcharmas/android- parcelable-intellij-plugin
  44. 44. AdbCommander for Android • AdbCommander for Android • https://plugins.jetbrains.com/plugin/7578
  45. 45. Genymotion Plugin • Genymotion Plugin • https://plugins.jetbrains.com/plugin/7269
  46. 46. eventbus-intellij-plugin • eventbus-intellij-plugin • https://github.com/kgmyshin/eventbus- intellij-plugin
  47. 47. eventbus3-intellij-plugin • eventbus3-intellij-plugin • https://github.com/kgmyshin/eventbus3- intellij-plugin
  48. 48. android-postfix-plugin • android-postfix-plugin • https://github.com/takahirom/android- postfix-plugin
  49. 49. Android File Grouping Plugin • Android File Grouping Plugin • https://github.com/dmytrodanylyk/folding- plugin
  50. 50. GsonFormat(おまけ) • GsonFormat • https://github.com/zzz40500/GsonFormat
  51. 51. Android Studio おまけ
  52. 52. Google Developers color scheme • Google Developers color scheme • https://github.com/LouisCAD/ GoogleDevelopersColorScheme
  53. 53. その他開発で便利なツール
  54. 54. androidtool-mac • androidtool-mac • https://github.com/mortenjust/androidtool- mac
  55. 55. tonkotsu • tonkotsu • https://github.com/operando/tonkotsu • http://www.slideshare.net/shinobuokano7/ ss-52089397
  56. 56. vysor • vysor • https://chrome.google.com/webstore/detail/ vysor-beta/ gidgenkbbabolejbgbpnhbimgjbffefm
  57. 57. Android SDK Search • Android SDK Search • https://chrome.google.com/webstore/detail/ android-sdk-search/ hgcbffeicehlpmgmnhnkjbjoldkfhoin
  58. 58. DPI Calculator • DPI Calculator • https://chrome.google.com/webstore/detail/ dpi-calculator/ dldofgjemhkpilajnlenfijjpkabilcg • http://jennift.com/dpical.html
  59. 59. Android Resource Navigator • Android Resource Navigator • https://chrome.google.com/webstore/detail/ android-resource-navigato/ agoomkionjjbejegcejiefodgbckeebo
  60. 60. Material Terminal • Material Terminal • https://play.google.com/store/apps/details? id=yarolegovich.materialterminal
  61. 61. materialdoc.com • materialdoc.com • https://play.google.com/store/apps/details? id=com.materialdoc • http://www.materialdoc.com/ • Material Design化する時に便利!!
  62. 62. DesignOverlay • DesignOverlay • https://github.com/Manabu-GT/DesignOverlay- Android • https://play.google.com/store/apps/details? id=com.ms_square.android.design.overlay • Material Design化する時に便利!! • やばい!神!
  63. 63. デバッグに便利なライブラリ
  64. 64. stetho • stetho • https://github.com/facebook/stetho
  65. 65. ViewDebug • Viewの中身をLogで確認できるViewDebugの dumpCapturedViewが便利 • http://developer.android.com/intl/ja/ reference/android/view/ViewDebug.html
  66. 66. KLog • KLog • timberでも同じことできる?? • https://github.com/ZhaoKaiQiang/KLog
  67. 67. IntentLogger • IntentLogger • 普通に便利(笑) • https://github.com/Drivemode/IntentLogge
  68. 68. どこで情報を集めるのか? • コードを読む • Google+ • Twitter • Github • などなど….
  69. 69. まとめ
  70. 70. Thanks!!

×