{"id":1760,"date":"2014-06-10T23:42:31","date_gmt":"2014-06-10T14:42:31","guid":{"rendered":"http:\/\/daily.belltail.jp\/?p=1760"},"modified":"2014-06-10T23:53:28","modified_gmt":"2014-06-10T14:53:28","slug":"linux%e4%b8%8a%e3%81%aeandroid%e9%96%8b%e7%99%ba%e3%81%a7%e3%81%ae%e7%ab%af%e6%9c%ab%e4%b8%8a%e3%81%a7%e3%83%87%e3%83%90%e3%83%83%e3%82%b0%e5%ae%9f%e8%a1%8c%e3%81%95%e3%81%9b%e3%82%8b%e8%a8%ad","status":"publish","type":"post","link":"https:\/\/daily.belltail.jp\/?p=1760","title":{"rendered":"Linux\u4e0a\u306eAndroid\u958b\u767a\u3067\u5b9f\u6a5f\u5b9f\u884c\u3059\u308b\u969b\u306eudev\/adb\u8a2d\u5b9a"},"content":{"rendered":"<p>\u304a\u4e45\u3057\u3076\u308a\u3067\u3059\uff0e\u4eca\u5e74\u5ea6\u304b\u3089\u540d\u53e4\u5c4b\u306e\u304a\u9b5a\u3055\u3093\u304b\u308f\u3063\u3066\u6771\u4eac\u306e\u304a\u9b5a\u3055\u3093\u306b\u306a\u3063\u305f\u304a\u9b5a\u3055\u3093\u3067\u3059\uff0e<\/p>\n<p>\u9b5a\u985e\u306e\u4e2d\u3067\u6700\u5c0f\u306e\u7a2e\u306f\uff0c<a href=\"http:\/\/en.wikipedia.org\/wiki\/Paedocypris_progenetica\" title=\"Paedocypris progenetica - Wikipedia, the free encyclopedia\">Paedocypris progenetica<\/a>\u3068\u8a00\u3044\uff0c\u6210\u9b5a\u3067\u4f53\u95777.9\u301c10mm\u7a0b\u5ea6\u306a\u3093\u3060\u305d\u3046\u3067\u3059\u306d\uff0e<br \/>\n\u6700\u5c0f\u306e\u9b5a\u985e\u3067\u3042\u308b\u3070\u304b\u308a\u304b\uff0c\u6700\u5c0f\u306e\u810a\u690e\u52d5\u7269\u3068\u306e\u3053\u3068\u3067\u3059\uff0e<\/p>\n<p>\u3055\u3066\uff0cLinux PC\u4e0a\u3067Android\u30a2\u30d7\u30ea\u958b\u767a\u3059\u308b\u3068\u304d\uff0cAndroid\u7aef\u672b\u3092PC\u306b\u8a8d\u8b58\u3055\u305b\u308b\u305f\u3081\u306b\u8a2d\u5b9a\u304c\u5fc5\u8981\u3067\u3059\uff0e<br \/>\n\u30b0\u30b0\u308c\u3070\u51fa\u308b\u60c5\u5831\u3067\u3059\u304c\u3088\u304f\u5fd8\u308c\u308b\u306e\u3067\u30e1\u30e2\uff0e<\/p>\n<p>\u3084\u308b\u3053\u3068\u306f\u5358\u7d14\u3067\u3059\uff0e<br \/>\n(1)\u7aef\u672b\u306e\u30d9\u30f3\u30c0ID\u3092udev\u306e\u30eb\u30fc\u30eb\u306b\u8ffd\u52a0<br \/>\n(2)adb\u3092\u518d\u8d77\u52d5<br \/>\n\u3064\u3044\u3067\u306b\uff0c\u30a2\u30d7\u30ea\u3092\u7aef\u672b\u4e0a\u3067\u5b9f\u884c\u3059\u308b\u3068\u3053\u308d\u307e\u3067\u8aac\u660e\u3057\u307e\u3059\uff0e<\/p>\n<p>*udev\u8a2d\u5b9a<br \/>\nAndroid\u7aef\u672b\u3092USB\u3067Linux PC\u3068\u3064\u306a\u304e\u307e\u3059\uff0e<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n% lsusb\r\n...\r\nBus 002 Device 018: ID 0fce:619e Sony Ericsson Mobile Communications AB\r\n...\r\nBus 002 Device 021: ID 0bb4:0ff9 HTC (High Tech Computer Corp.)\r\n...\r\n<\/pre>\n<p>\u3053\u3093\u306a\u304b\u3093\u3058\u3067\uff0cSONY Ericsson\u306e\u30d9\u30f3\u30c0ID\u306f0fce\uff0cHTC\u306e\u30d9\u30f3\u30c0ID\u306f0bb4\uff0c\u2026\u3068\u3044\u3046\u304b\u3093\u3058\u3067\u898b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\uff0e<\/p>\n<p>\u30d9\u30f3\u30c0ID\u3092\u8abf\u3079\u305f\u3089\uff0c<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nSUBSYSTEM==&quot;usb&quot;, ATTRS{idVendor}==&quot;\u3053\u3053\u306b\u30d9\u30f3\u30c0ID\u3092\u5165\u308c\u308b&quot;, MODE=&quot;0666&quot;, GROUP=&quot;plugdev&quot;\r\n<\/pre>\n<p>\u3068\u3044\u3046\u6587\u5b57\u5217\u3092\uff0c\u4ee5\u4e0b\u30d5\u30a1\u30a4\u30eb\u306b<strong>\u8ffd\u8a18<\/strong>\u3057\u307e\u3059\uff0e\u7aef\u672b\u3092\u8907\u6570\u304a\u6301\u3061\u306a\u3089\u30d9\u30f3\u30c0\u3054\u3068\u306b\u8a18\u8ff0\u3057\u3066\u304f\u3060\u3055\u3044\uff0e<br \/>\n\/etc\/udev\/rules.d\/51-android.rules<\/p>\n<p>\u7d42\u308f\u3063\u305f\u3089\uff0c\u5ff5\u306e\u305f\u3081\u306budev\u306b\u8a2d\u5b9a\u3092\u30ea\u30ed\u30fc\u30c9\u3055\u305b\u307e\u3059\uff0e\u3067\uff0cadb (android debug bridge)\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059\uff0e<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n% sudo udevadm control --reload-rules\r\n% adb kill-server\r\n% adb start-server\r\n<\/pre>\n<p>\u3061\u306a\u307f\u306badb\u306f\uff0cAndroid SDK\u306e\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4e0b\u306eplatform-tools\u306b\u3042\u308a\u307e\u3059\uff0e<br \/>\n\u3053\u3053\u307e\u3067\u3067\u8a2d\u5b9a\u306f\u5b8c\u4e86\u3067\u3059\uff0e<\/p>\n<p>*\u30a2\u30d7\u30ea\u52d5\u304b\u3059\u307e\u3067<\/p>\n<p>\u3053\u3053\u3067\u4e00\u65e6Android\u7aef\u672b\u3092USB\u304b\u3089\u5f15\u3063\u3053\u629c\u3044\u3066\uff0c\u307e\u305f\u63a5\u7d9a\u3057\u307e\u3059\uff0e<br \/>\n\u3053\u308c\u3092\u3057\u306a\u3044\u3068udev\u304c\u7aef\u672b\u3092\u8a8d\u8b58\u3057\u3066\u304f\u308c\u306a\u3044\u306e\u3067\uff0e<\/p>\n<p>\u3067\u306f\uff0c\u5b9f\u969b\u306b\u30a2\u30d7\u30ea\u3092\u52d5\u304b\u3057\u3066\u307f\u307e\u3057\u3087\u3046\uff0e<br \/>\n\u958b\u767a\u74b0\u5883(Eclipse+SDK+ADTPlugin)\u306b\u3064\u3044\u3066\u306f\u5c0e\u5165\u6e08\u307f\u3068\u3044\u3046\u3053\u3068\u306b\u3057\u3066\uff0c\u307e\u305fAndroid\u7aef\u672b\u306eUSB\u30c7\u30d0\u30c3\u30b0\u30e2\u30fc\u30c9\u3082\u6709\u52b9\u306b\u3057\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\uff0e<\/p>\n<p>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3082\u3059\u3067\u306b\u4f5c\u3063\u3066\u3042\u308b\u3068\u3057\u307e\u3059\uff0e<br \/>\nEclipse\u306eRun as\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\uff0c<\/p>\n<p><a href=\"http:\/\/daily.belltail.jp\/wp-content\/uploads\/2014\/06\/eclipse_click_run_as.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/daily.belltail.jp\/wp-content\/uploads\/2014\/06\/eclipse_click_run_as.png\" alt=\"eclipse_click_run_as\" width=\"308\" height=\"218\" class=\"aligncenter size-full wp-image-1766\" srcset=\"https:\/\/daily.belltail.jp\/wp-content\/uploads\/2014\/06\/eclipse_click_run_as.png 308w, https:\/\/daily.belltail.jp\/wp-content\/uploads\/2014\/06\/eclipse_click_run_as-300x212.png 300w\" sizes=\"auto, (max-width: 308px) 100vw, 308px\" \/><\/a><\/p>\n<p>\u7aef\u672b\u3092\u9078\u629e\u3057\u3066\uff0c<br \/>\n<a href=\"http:\/\/daily.belltail.jp\/wp-content\/uploads\/2014\/06\/eclipse_choose_real_device.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/daily.belltail.jp\/wp-content\/uploads\/2014\/06\/eclipse_choose_real_device.png\" alt=\"eclipse_choose_real_device\" width=\"376\" height=\"218\" class=\"aligncenter size-full wp-image-1765\" srcset=\"https:\/\/daily.belltail.jp\/wp-content\/uploads\/2014\/06\/eclipse_choose_real_device.png 376w, https:\/\/daily.belltail.jp\/wp-content\/uploads\/2014\/06\/eclipse_choose_real_device-300x173.png 300w\" sizes=\"auto, (max-width: 376px) 100vw, 376px\" \/><\/a><\/p>\n<p>OK\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u7aef\u672b\u3067\u52d5\u304d\u307e\u3059\uff01<br \/>\n<a href=\"http:\/\/daily.belltail.jp\/wp-content\/uploads\/2014\/06\/execution_result_htcj.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/daily.belltail.jp\/wp-content\/uploads\/2014\/06\/execution_result_htcj.png\" alt=\"execution_result_htcj\" width=\"540\" height=\"385\" class=\"aligncenter size-full wp-image-1769\" srcset=\"https:\/\/daily.belltail.jp\/wp-content\/uploads\/2014\/06\/execution_result_htcj.png 540w, https:\/\/daily.belltail.jp\/wp-content\/uploads\/2014\/06\/execution_result_htcj-300x213.png 300w\" sizes=\"auto, (max-width: 540px) 100vw, 540px\" \/><\/a><\/p>\n<p>Android\u306b\u9650\u3089\u305a\uff0c\u3082\u3063\u3068\u307f\u3093\u306aLinux PC\u3067\u958b\u767a\u3059\u308c\u3070\u3044\u3044\u306e\u306b\uff01\uff08\u30de\u30b5\u30ab\u30ea\u899a\u609f\uff09<\/p>\n<p>**\u53c2\u8003<br \/>\n-[http:\/\/developer.android.com\/training\/basics\/firstapp\/index.html:title=Building Your First App | Android Developers] : \u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u62dd\u501f<br \/>\n-[http:\/\/www.kkaneko.com\/rinkou\/js\/udevadm.html:title=Ubuntu \u3067 Android \u306e\u5b9f\u6a5f\u306e\u63a5\u7d9a\u306b\u95a2\u3059\u308b\u8a2d\u5b9a] : \u4eca\u56de\u306e\u30e1\u30a4\u30f3\u30c8\u30d4\u30c3\u30af\u306e\u53c2\u8003\u6e90<br \/>\n-[http:\/\/www43.atwiki.jp\/p10an01\/pages\/30.html:title=P10AN01 \u307e\u3068\u3081 wiki &#8211; adb \u306e\u4f7f\u3044\u65b9(Linux \u7de8)] : \u4eca\u56de\u306e\u30e1\u30a4\u30f3\u30c8\u30d4\u30c3\u30af\u306e\u53c2\u8003\u6e90<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u304a\u4e45\u3057\u3076\u308a\u3067\u3059\uff0e\u4eca\u5e74\u5ea6\u304b\u3089\u540d\u53e4\u5c4b\u306e\u304a\u9b5a\u3055\u3093\u304b\u308f\u3063\u3066\u6771\u4eac\u306e\u304a\u9b5a\u3055\u3093\u306b\u306a\u3063\u305f\u304a\u9b5a\u3055\u3093\u3067\u3059\uff0e \u9b5a\u985e\u306e\u4e2d\u3067\u6700\u5c0f\u306e\u7a2e\u306f\uff0cPaedocypris progenetica\u3068\u8a00\u3044\uff0c\u6210\u9b5a\u3067\u4f53\u95777.9\u301c10mm\u7a0b\u5ea6\u306a\u3093\u3060\u305d\u3046\u3067\u3059\u306d\uff0e \u6700\u5c0f\u306e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[33,7,10],"class_list":["post-1760","post","type-post","status-publish","format-standard","hentry","category-1","tag-android","tag-linux","tag-10"],"_links":{"self":[{"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=\/wp\/v2\/posts\/1760","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1760"}],"version-history":[{"count":0,"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=\/wp\/v2\/posts\/1760\/revisions"}],"wp:attachment":[{"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1760"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1760"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1760"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}