{"id":298,"date":"2022-05-10T17:34:22","date_gmt":"2022-05-10T08:34:22","guid":{"rendered":"https:\/\/software.satoshis.jp\/?p=298"},"modified":"2023-04-11T14:13:59","modified_gmt":"2023-04-11T05:13:59","slug":"pine64%e3%81%ab-adb-%e3%81%a7%e6%8e%a5%e7%b6%9a%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/software.satoshis.jp\/?p=298","title":{"rendered":"PINE64\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305fAndroidOS\u306b adb \u3067\u63a5\u7d9a\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/software.satoshis.jp\/wp-content\/uploads\/2022\/05\/pine64-log-300x100.jpg\" alt=\"\" width=\"300\" height=\"100\" class=\"alignnone size-medium wp-image-300\" srcset=\"https:\/\/software.satoshis.jp\/wp-content\/uploads\/2022\/05\/pine64-log-300x100.jpg 300w, https:\/\/software.satoshis.jp\/wp-content\/uploads\/2022\/05\/pine64-log-1024x342.jpg 1024w, https:\/\/software.satoshis.jp\/wp-content\/uploads\/2022\/05\/pine64-log-768x257.jpg 768w, https:\/\/software.satoshis.jp\/wp-content\/uploads\/2022\/05\/pine64-log.jpg 1089w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p><a href=\"https:\/\/software.satoshis.jp\/?p=290\">\u524d\u306e\u8a18\u4e8b<\/a>\u3067\u3001microSD \u306b OS \u30a4\u30e1\u30fc\u30b8\u3092\u713c\u304f\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u3067\u3001\u3053\u308c\u304b\u3089\u304c\u672c\u756a\u3067\u3059\u3002<\/p>\n<p>\u3084\u308a\u305f\u3044\u3053\u3068\u306f\u3001\u904e\u53bb\u306b\u5225\u306e\u4eba\u304c\u4f5c\u3063\u305f\u3001\u5225\u306e Android \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3067\u52d5\u304b\u3057\u3066\u3044\u305f\u30a2\u30d7\u30ea\u3092\u3001PINE64 \u4e0a\u306e AndroidOS \u3067\u52d5\u304f\u3088\u3046\u3057\u305f\u3044\u306e\u3067\u3059\u3002<\/p>\n<p>\u958b\u767a\u7528\u306a\u306e\u3067\u3001PINE64 \u3067\u52d5\u304b\u3059 AndroidOS \u306e\u30a4\u30e1\u30fc\u30b8\u306f\u3001rooted \u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u306f\u3001AndroidOS \u4e0a\u3067\u30b7\u30a7\u30eb\u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u3057\u3066\u304a\u304f\u3068\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<p>Play\u30b9\u30c8\u30a2\u30a2\u30d7\u30ea\u3092\u8d77\u52d5\u3057\u3066\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u30a8\u30df\u30e5\u30ec\u30fc\u30bf\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<p>\u30ad\u30fc\u30ef\u30fc\u30c9\u300cterminal\u300d\u3067\u691c\u7d22\u3059\u308c\u3070\u3059\u3050\u306b\u300cAndroid Terminal Emulator\u300d\u304c\u898b\u3064\u304b\u308a\u307e\u3059\u306e\u3067\u3001\u3053\u308c\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<p>\u8d77\u52d5\u3059\u308b\u3068\u3001Linux\u30b7\u30a7\u30eb\u304c\u4f7f\u3048\u307e\u3059\u3002<\/p>\n<p>Android\u4e0a\u3067 Linux\u30b7\u30a7\u30eb\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308b\u306e\u3067\u3001CLI \u306b\u89aa\u3057\u3093\u3067\u3044\u308b\u4eba\u306b\u3068\u3063\u3066\u306f\u6fc0\u3057\u304f\u4fbf\u5229\u3067\u3059\u3002<br \/>\ngrep \u3068\u304b find \u3068\u304b\u3000sed \u306f\u4f7f\u3048\u307e\u3059\u3002<br \/>\n\u3067\u3082 vi \u306f\u5165\u3063\u3066\u306a\u3044\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u307e\u3042\u3001\u305d\u308c\u306f\u7f6e\u3044\u3068\u3044\u3066\u3002<\/p>\n<p>adbd \u3092\u8d77\u52d5\u3057\u3066\u3001\u5225\u306e\u30d1\u30bd\u30b3\u30f3\u304b\u3089 PINE64 \u306b adb \u3067\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u63a5\u7d9a\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<br \/>\n\uff08\u3053\u3061\u3089\u306f PINE64\u4e0a\u3067\u52d5\u304b\u3057\u3066\u3044\u308b Android Terminal Emulator \u3067\u306e\u64cd\u4f5c\u3067\u3059\uff09<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ su\r\n# setprop service.adb.tcp.port 5555\r\n# stop adbd\r\n# start adbd\r\n<\/pre>\n<p>adbd \u3092\u518d\u8d77\u52d5\u3059\u308b\u3068\u3001\u5225\u306e\u30d1\u30bd\u30b3\u30f3\u304b\u3089 PINE64\u4e0a\u306e\u3000adbd \u306b\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u7d4c\u7531\u3067\u63a5\u7d9a\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<br \/>\n\u6700\u521d\u306b adb devices \u3067\u63a5\u7d9a\u6e08\u307f\u30c7\u30d0\u30a4\u30b9\u3092\u8abf\u3079\u3066\u307f\u308b\u3068\u3001\u4f55\u3082\u63a5\u7d9a\u3067\u304d\u3066\u306a\u3044\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<br \/>\n\u6b21\u306b adb connect \u3057\u3066\u304b\u3089\u3000adb devices \u3057\u3066\u307f\u308b\u3068\u3001\u63a5\u7d9a\u3067\u304d\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ adb devices\r\nList of devices attached\r\n$ adb connect 192.168.0.10  \u2190 PINE64 \u306b\u5272\u308a\u5f53\u3066\u3089\u308c\u305f IP\u30a2\u30c9\u30ec\u30b9\r\nconnected to 192.168.0.10:5555\r\n$ adb devices\r\nList of devices attached\r\n192.168.0.10:5555\tdevice\r\n\r\n<\/pre>\n<p>Android Studio \u3067\u30d3\u30eb\u30c9\u3057\u305f\u30a2\u30d7\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ adb install app\/debug\/app-debug.apk\r\nPerforming Push Install\r\napp\/debug\/app-debug.apk: 1 file pushed, 0 skipped. 3.4 MB\/s (45043313 bytes in 12.820s)\r\n\tpkg: \/data\/local\/tmp\/app-debug.apk\r\nSuccess\r\n<\/pre>\n<p>\u554f\u984c\u306a\u304f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u305f\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>apk \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u6210\u529f\u3057\u305f\u306e\u3067\u3001\u3053\u306e\u5148\u306f\u52d5\u4f5c\u78ba\u8a8d\u306a\u308a\u3001\u30c6\u30b9\u30c8\u3057\u3066\u554f\u984c\u70b9\u3092\u6d17\u3044\u51fa\u3057\u3066\u30c7\u30d0\u30c3\u30b0\u3057\u3066\u3044\u3051\u3070\u3088\u3055\u305d\u3046\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u306e\u8a18\u4e8b\u3067\u3001microSD \u306b OS \u30a4\u30e1\u30fc\u30b8\u3092\u713c\u304f\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002 \u3067\u3001\u3053\u308c\u304b\u3089\u304c\u672c\u756a\u3067\u3059\u3002 \u3084\u308a\u305f\u3044\u3053\u3068\u306f\u3001\u904e\u53bb\u306b\u5225\u306e\u4eba\u304c\u4f5c\u3063\u305f\u3001\u5225\u306e Android \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3067\u52d5\u304b\u3057\u3066\u3044\u305f\u30a2\u30d7\u30ea\u3092\u3001 &#8230; <\/p>\n","protected":false},"author":1,"featured_media":300,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[31],"tags":[117,116,119,120,118],"class_list":["post-298","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-android","tag-adb","tag-pine64","tag-root","tag-shell","tag-tcp-ip"],"nelio_content":{"autoShareEndMode":"never","automationSources":{"useCustomSentences":false,"customSentences":[]},"efiAlt":"","efiUrl":"","followers":[1],"highlights":[],"isAutoShareEnabled":true,"networkImageIds":[],"permalinkQueryArgs":[],"series":[],"suggestedReferences":[]},"views":517,"_links":{"self":[{"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=\/wp\/v2\/posts\/298","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=298"}],"version-history":[{"count":5,"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=\/wp\/v2\/posts\/298\/revisions"}],"predecessor-version":[{"id":304,"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=\/wp\/v2\/posts\/298\/revisions\/304"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=\/wp\/v2\/media\/300"}],"wp:attachment":[{"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=298"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=298"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=298"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}