{"id":208,"date":"2019-03-23T03:41:11","date_gmt":"2019-03-23T07:41:11","guid":{"rendered":"http:\/\/roy.vanegas.org\/thoughts\/?page_id=208"},"modified":"2019-03-23T13:12:10","modified_gmt":"2019-03-23T17:12:10","slug":"copy-images-and-movies-from-google-glass-using-the-terminal","status":"publish","type":"page","link":"https:\/\/roy.vanegas.org\/thoughts\/copy-images-and-movies-from-google-glass-using-the-terminal\/","title":{"rendered":"Copy Images and Movies from Google Glass Using The Terminal"},"content":{"rendered":"\n<p class=\"has-drop-cap\">On occasion, I\u2019ve needed to use The Terminal over macOS\u2019s GUI to copy images and movies from Google Glass onto my machine. Since upgrading to macOS Mojave, I\u2019ve needed to use The Terminal <em>exclusively<\/em> to copy files from Google Glass, since macOS Photos throws an error, per Figure 1 below.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"480\" src=\"https:\/\/roy.vanegas.org\/thoughts\/wp-content\/uploads\/2019\/03\/photos-error-message.png\" alt=\"Error message generated by macOS Photos when trying to import images\/movies from Google Glass\" class=\"wp-image-209\" srcset=\"https:\/\/roy.vanegas.org\/thoughts\/wp-content\/uploads\/2019\/03\/photos-error-message.png 640w, https:\/\/roy.vanegas.org\/thoughts\/wp-content\/uploads\/2019\/03\/photos-error-message-300x225.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><figcaption><strong>Figure 1<\/strong>: Error message generated by macOS Photos when trying to import images\/movies from Google Glass<\/figcaption><\/figure><\/div>\n\n\n\n<p>Others have had this issue, also: <a href=\"https:\/\/discussions.apple.com\/thread\/8556828\">https:\/\/discussions.apple.com\/thread\/8556828<\/a>. Thus, I discuss below how to setup and use The Terminal in macOS to copy files from Glass onto your local machine.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Install Android\u2019s Platform Tools<\/h2>\n\n\n\n<ol class=\"wp-block-list\"><li>Launch <code>Terminal.app<\/code>, which is in <code>Application\/Utilites<\/code>.<\/li><li>Install the open-source package management tool Homebrew by typing the following into The Terminal: <code>ruby -e \"$(curl -fsSL https:\/\/raw.githubusercontent.com\/Homebrew\/install\/master\/install)\"<\/code><\/li><li>Enter your password when prompted.<\/li><li>Install Android\u2019s Platform Tools: <code>brew cask install android-platform-tools<\/code><\/li><\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Prepare Google Glass<\/h2>\n\n\n\n<ol class=\"wp-block-list\"><li>Turn on Glass and wait for the login screen.<\/li><li>Connect Glass to your computer.<\/li><li>Type <code>adb shell<\/code> in The Terminal. If you are <em>not<\/em> presented with <code>error: device unauthorized<\/code>, continue to step 6.<img loading=\"lazy\" decoding=\"async\" width=\"812\" height=\"147\" src=\"https:\/\/roy.vanegas.org\/thoughts\/wp-content\/uploads\/2019\/03\/adb-shell-device-unauthorized-1.png\" alt=\"\" class=\"wp-image-212\" srcset=\"https:\/\/roy.vanegas.org\/thoughts\/wp-content\/uploads\/2019\/03\/adb-shell-device-unauthorized-1.png 812w, https:\/\/roy.vanegas.org\/thoughts\/wp-content\/uploads\/2019\/03\/adb-shell-device-unauthorized-1-300x54.png 300w, https:\/\/roy.vanegas.org\/thoughts\/wp-content\/uploads\/2019\/03\/adb-shell-device-unauthorized-1-768x139.png 768w\" sizes=\"auto, (max-width: 812px) 100vw, 812px\" \/><\/li><li>Return to Glass, which should be prompting you to <code>Trust this computer?<\/code> Tap to confirm. <img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/roy.vanegas.org\/thoughts\/wp-content\/uploads\/2019\/03\/IMG_1920-1-1024x576.jpeg\" alt=\"\" class=\"wp-image-213\" srcset=\"https:\/\/roy.vanegas.org\/thoughts\/wp-content\/uploads\/2019\/03\/IMG_1920-1-1024x576.jpeg 1024w, https:\/\/roy.vanegas.org\/thoughts\/wp-content\/uploads\/2019\/03\/IMG_1920-1-300x169.jpeg 300w, https:\/\/roy.vanegas.org\/thoughts\/wp-content\/uploads\/2019\/03\/IMG_1920-1-768x432.jpeg 768w, https:\/\/roy.vanegas.org\/thoughts\/wp-content\/uploads\/2019\/03\/IMG_1920-1-1568x882.jpeg 1568w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/li><li>Tap again to <code>Always allow<\/code>. <img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/roy.vanegas.org\/thoughts\/wp-content\/uploads\/2019\/03\/IMG_1921-1-1024x576.jpeg\" alt=\"\" class=\"wp-image-215\" srcset=\"https:\/\/roy.vanegas.org\/thoughts\/wp-content\/uploads\/2019\/03\/IMG_1921-1-1024x576.jpeg 1024w, https:\/\/roy.vanegas.org\/thoughts\/wp-content\/uploads\/2019\/03\/IMG_1921-1-300x169.jpeg 300w, https:\/\/roy.vanegas.org\/thoughts\/wp-content\/uploads\/2019\/03\/IMG_1921-1-768x432.jpeg 768w, https:\/\/roy.vanegas.org\/thoughts\/wp-content\/uploads\/2019\/03\/IMG_1921-1-1568x882.jpeg 1568w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/li><li>From Glass\u2019 home screen, swipe back to the <code>Settings<\/code> page, then tap. <img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/roy.vanegas.org\/thoughts\/wp-content\/uploads\/2019\/03\/IMG_1922-1024x576.jpeg\" alt=\"\" class=\"wp-image-216\" srcset=\"https:\/\/roy.vanegas.org\/thoughts\/wp-content\/uploads\/2019\/03\/IMG_1922-1024x576.jpeg 1024w, https:\/\/roy.vanegas.org\/thoughts\/wp-content\/uploads\/2019\/03\/IMG_1922-300x169.jpeg 300w, https:\/\/roy.vanegas.org\/thoughts\/wp-content\/uploads\/2019\/03\/IMG_1922-768x432.jpeg 768w, https:\/\/roy.vanegas.org\/thoughts\/wp-content\/uploads\/2019\/03\/IMG_1922-1568x882.jpeg 1568w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/li><li>Swipe forward to the <code>Device info<\/code> page, then tap. <img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/roy.vanegas.org\/thoughts\/wp-content\/uploads\/2019\/03\/IMG_1923-1024x576.jpeg\" alt=\"\" class=\"wp-image-217\" srcset=\"https:\/\/roy.vanegas.org\/thoughts\/wp-content\/uploads\/2019\/03\/IMG_1923-1024x576.jpeg 1024w, https:\/\/roy.vanegas.org\/thoughts\/wp-content\/uploads\/2019\/03\/IMG_1923-300x169.jpeg 300w, https:\/\/roy.vanegas.org\/thoughts\/wp-content\/uploads\/2019\/03\/IMG_1923-768x432.jpeg 768w, https:\/\/roy.vanegas.org\/thoughts\/wp-content\/uploads\/2019\/03\/IMG_1923-1568x882.jpeg 1568w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/li><li>Swipe forward to the <code>Turn on debug<\/code> page, then tap. <img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/roy.vanegas.org\/thoughts\/wp-content\/uploads\/2019\/03\/IMG_1924-1024x576.jpeg\" alt=\"\" class=\"wp-image-218\" srcset=\"https:\/\/roy.vanegas.org\/thoughts\/wp-content\/uploads\/2019\/03\/IMG_1924-1024x576.jpeg 1024w, https:\/\/roy.vanegas.org\/thoughts\/wp-content\/uploads\/2019\/03\/IMG_1924-300x169.jpeg 300w, https:\/\/roy.vanegas.org\/thoughts\/wp-content\/uploads\/2019\/03\/IMG_1924-768x432.jpeg 768w, https:\/\/roy.vanegas.org\/thoughts\/wp-content\/uploads\/2019\/03\/IMG_1924-1568x882.jpeg 1568w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/li><\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Copy Files<\/h2>\n\n\n\n<ol class=\"wp-block-list\"><li>In The Terminal, type <code>adb shell<\/code>. You should see something akin to <code>shell@glass-1:\/ $<\/code><\/li><li>Now, navigate to the images\/movies folder by typing <code>cd \/mnt\/sdcard\/DCIM\/Camera\/<\/code><\/li><li>Any images or movies will reside in the <code>Camera<\/code> folder. List them by typing <code>ls<\/code><\/li><li>Open a new Terminal window: <code>\u2318 + N<\/code><\/li><li>Navigate to the Desktop: <code>cd Desktop<\/code><\/li><li>This next command copies files <em>from<\/em> Glass\u2019 <code>Camera<\/code> folder <em>to<\/em> your Mac\u2019s <code>Desktop<\/code> folder, and, in this example, we\u2019ll imagine that a file called <code>FILE.jpg<\/code> exists in the <code>Camera<\/code> folder. To copy this imagined file, we\u2019d type <code>adb pull \/mnt\/sdcard\/DCIM\/Camera\/FILE.jpg .<\/code> \u2190 Note the dot (<code>.<\/code>) at the end of the command preceded by a space. Of course, you\u2019d replace <code>FILE.jpg<\/code> with a file (or files) residing in your Glass\u2019 <code>Camera<\/code> folder.<\/li><\/ol>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>On occasion, I\u2019ve needed to use The Terminal over macOS\u2019s GUI to copy images and movies from Google Glass onto my machine. Since upgrading to macOS Mojave, I\u2019ve needed to use The Terminal exclusively to copy files from Google Glass, since macOS Photos throws an error, per Figure 1 below. Others have had this issue,&hellip; <a class=\"more-link\" href=\"https:\/\/roy.vanegas.org\/thoughts\/copy-images-and-movies-from-google-glass-using-the-terminal\/\">Continue reading <span class=\"screen-reader-text\">Copy Images and Movies from Google Glass Using The Terminal<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-208","page","type-page","status-publish","hentry","entry"],"_links":{"self":[{"href":"https:\/\/roy.vanegas.org\/thoughts\/wp-json\/wp\/v2\/pages\/208","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/roy.vanegas.org\/thoughts\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/roy.vanegas.org\/thoughts\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/roy.vanegas.org\/thoughts\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/roy.vanegas.org\/thoughts\/wp-json\/wp\/v2\/comments?post=208"}],"version-history":[{"count":14,"href":"https:\/\/roy.vanegas.org\/thoughts\/wp-json\/wp\/v2\/pages\/208\/revisions"}],"predecessor-version":[{"id":249,"href":"https:\/\/roy.vanegas.org\/thoughts\/wp-json\/wp\/v2\/pages\/208\/revisions\/249"}],"wp:attachment":[{"href":"https:\/\/roy.vanegas.org\/thoughts\/wp-json\/wp\/v2\/media?parent=208"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}