{"id":116,"date":"2016-07-03T20:34:30","date_gmt":"2016-07-03T20:34:30","guid":{"rendered":"http:\/\/credelius.com\/credelius\/?p=116"},"modified":"2018-04-21T01:47:23","modified_gmt":"2018-04-21T01:47:23","slug":"how-to-import-google-codes-from-file","status":"publish","type":"post","link":"https:\/\/credelius.com\/credelius\/?p=116","title":{"rendered":"How to Import Google Codes from File"},"content":{"rendered":"<h1>Creating Account Init File (gac-codes)<\/h1>\n<p>You&#8217;ll need either gac-codes.txt or gac-codes.mp3 file to init accounts on your Gear device. They both have the same format, but gac-codes.mp3 makes everything easier since Samsung&#8217;s Android Gear app has capability to transfer MP3 files from a phone to your Gear device out of the box. After Android&#8217;s GAC Services app has been released, the easiest way to create the MP3 file is to use this app, since it has many features including QR Bar Code scan.<\/p>\n<h1>Creating Account Init File\u00a0with Android App<\/h1>\n<p>Creating gac-codes.mp3 file with the GAC Services Android app is easy:<\/p>\n<ol>\n<li>Install the Android app from here:\u00a0<a href=\"https:\/\/play.google.com\/store\/apps\/details?id=info.gryb.gaservices\">https:\/\/play.google.com\/store\/apps\/details?id=info.gryb.gaservices<\/a><\/li>\n<li>Create account(s), e.g. by using camera and scanning QR Bar code<\/li>\n<li>Navigate the Android app to Backup page<\/li>\n<\/ol>\n<p><a href=\"https:\/\/credelius.com\/credelius\/wp-content\/uploads\/2016\/07\/Screenshot_20180420-182357.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-317 aligncenter\" src=\"https:\/\/credelius.com\/credelius\/wp-content\/uploads\/2016\/07\/Screenshot_20180420-182357-169x300.png\" alt=\"\" width=\"224\" height=\"398\" \/><\/a><\/p>\n<p>4. Press MP3 button on the bottom or select &#8220;Legacy backup&#8221; menu from the toolbar on the top of the screen.<\/p>\n<p>5. Now you can use Samsung Android Gear&#8217;s App to transfer the MP3 file from your phone to a Gear device.<\/p>\n<p>After you have the MP3 file on the Gear device use &#8220;Init from file&#8221; menu to initialize all your accounts.<\/p>\n<h1>Creating Account Init File Manually<\/h1>\n<p>Get your code from a Google&#8217;s 2-step verification website. Check<a title=\"How to get Google\u2019s 2-step verification code\" href=\"https:\/\/credelius.com\/credelius\/?p=108\"> this link<\/a> for details. Now you can create a simple file on your PC with the code (or codes). The file can contain up to 20 lines looking\u00a0as follows:<\/p>\n<p><strong>Account:Code<\/strong><\/p>\n<p>where &#8216;Account&#8217; is an arbitrary short name that will allow your to memorize where this code should be used and code is the one that your retrieved from the Google&#8217;s 2-step verification web site. Example is provided below:<\/p>\n<p><strong>Google:wr2t ghj5 xz7y a64b yu34 hjkl uiop 45df<\/strong><\/p>\n<p>Code is usually a 32-char long string. You can use spaces for a better readability, but they will be removed by the program anyway.<\/p>\n<p>After the file is created there are three ways of importing it to your Gear device:<\/p>\n<p>1. <strong>Simplest Way &#8211; Creating gac-codes.mp3 File and Using Gear App.<\/strong><\/p>\n<p>Create the file as described above with the name &#8211; it gac-codes.mp3. You need the mp3 extension, because Gear App on your smartphone doesn&#8217;t transfer text files, so it&#8217;s a trick, but it does work.<\/p>\n<p>Transfer\u00a0 gac-codes.mp3 file to a Music folder on your smartphone that can be connected to your Gear device using Gear App.<\/p>\n<p>Use your Gear App to transfer the file to your Gear Device:<\/p>\n<p>Gear App -&gt; Send Content to Gear -&gt; Music -&gt; Send Tracks to Gear<\/p>\n<p>2. <strong>Using Gear&#8217;s Documents Folder<\/strong><\/p>\n<p>This approach will work if you can connect your Gear to a device to a Windows PC through a USB port . It works for all Gear devices except Gear S2, which doesn&#8217;t support a USB connection to a PC.<\/p>\n<p>You gac-codes file should be named as gac-codes.txt in this case.<\/p>\n<p>Simply connect your device to the PC and copy the file to your device&#8217;s &#8216;Documents&#8217; folder.<\/p>\n<p>3. <strong>Using SDB tool<\/strong><\/p>\n<p>If don&#8217;t mind installing <a href=\"http:\/\/developer.samsung.com\/gear\/develop\/sdk\">Gear SDK<\/a> with &#8216;sdb&#8217; tool in it, you can use it to transfer you gac-codes.txt file to a device&#8217;s \/tmp folder:<\/p>\n<blockquote><p>sdb connect<\/p>\n<p>sdb push gac-codes.txt \/tmp\/.<\/p><\/blockquote>\n<p>After either of these steps is done you can import your codes on your Gear device from Client for Google Authentication App &#8211; just tap on &#8220;Init from File&#8221; menu item<\/p>\n<p><strong>GAC-CODES File Restrictions<\/strong><\/p>\n<p>The following rules are enforced when a file is imported. The lines, which are not compliant with these rules will be ignored and an error will be reported.<\/p>\n<ul>\n<li>Account name should not be too long<\/li>\n<li>Account name is not a menu item<\/li>\n<li>Account code is in base32 notation<\/li>\n<li>Code length is 16 chars or more<\/li>\n<li>Number of accounts in the file is not bigger that 20<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Creating Account Init File (gac-codes) You&#8217;ll need either gac-codes.txt or gac-codes.mp3 file to init accounts on your Gear device. They both have the same format, but gac-codes.mp3 makes everything easier since Samsung&#8217;s Android Gear app has capability to transfer MP3 files from a phone to your Gear device out of the box. After Android&#8217;s GAC [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/credelius.com\/credelius\/index.php?rest_route=\/wp\/v2\/posts\/116"}],"collection":[{"href":"https:\/\/credelius.com\/credelius\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/credelius.com\/credelius\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/credelius.com\/credelius\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/credelius.com\/credelius\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=116"}],"version-history":[{"count":9,"href":"https:\/\/credelius.com\/credelius\/index.php?rest_route=\/wp\/v2\/posts\/116\/revisions"}],"predecessor-version":[{"id":319,"href":"https:\/\/credelius.com\/credelius\/index.php?rest_route=\/wp\/v2\/posts\/116\/revisions\/319"}],"wp:attachment":[{"href":"https:\/\/credelius.com\/credelius\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=116"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/credelius.com\/credelius\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=116"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/credelius.com\/credelius\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=116"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}