Restoring cards after September 15, 2016

Help and ask for help on Eye-Fi related problems

Restoring cards after September 15, 2016

Postby TheBrew » Sun Aug 07, 2016 9:17 pm

This post is intended for customers who use the "Eye-Fi classic" option of the Setup Guide in ShutterSnitch.

Eyefi is ending support for their older Eye-Fi branded cards. This means that after September 15, 2016 you won't be able to sign into your Eye-Fi account when setting up / enabling or disabling receiving from these old cards.

ShutterSnitch version 3.6.6 allows you to make a backup of the private keys for the cards, so you can restore them in the future without signing into your Eye-Fi account.

The backup is basically just an email you can send to yourself containing a link for each card that you can tap to restore.

Everything will keep working after September 15th 2016, but if you ever do a fresh install of ShutterSnitch, you'll need this backup email, so make sure you keep it somewhere you won't lose it. After this date you won't need to sign in anymore in the Setup Guide, but will be taken directly to the list of cards you have registered with ShutterSnitch.
Support the development of ShutterSnitch: Rate/review it in iTunes, Tweet about it, make Youtube videos, blog about it.. Get the word out.
TheBrew
The Developer
 
Posts: 4457
Joined: Wed May 05, 2010 8:48 pm
Location: Denmark

Re: Restoring cards after September 15, 2016

Postby TheBrew » Mon Sep 26, 2016 8:18 pm

If you don't have a backup of the keys, you can get them by installing the X2 Utility and extracting them.

Note: If you're too late, the key may not have been saved / be retrievable from your Eye-Fi installation. But if you have transfers working with the Eye-Fi iOS app, there's still a chance you can get the key from there. Read more in this post.

First install and pair your card(s). Then:

Windows users: See the next post. (Win X2 Utility)

Mac users: Press Cmd+Space (opens Spotlight search) and type "term". That should find Terminal - press enter to open it.

Copy and paste this to the terminal:

Code: Select all
dbres=$(sqlite3 ~/Library/Application\ Support/Eye-Fi/Eye-Fi\ X2\ Utility/offline.db 'SELECT o_mac_address, o_upload_key FROM o_devices') && keys=(${dbres//$'\n'/ }) && dbpath=$(find ~/Library/Application\ Support/Eye-Fi/Eye-Fi\ X2\ Utility -regex ".*[0-9]\.db" -maxdepth 1) && if [ ${#dbpath} -gt 0 ]; then dbres=$(sqlite3 "$dbpath" 'SELECT mac_address, upload_key FROM devices'); eckeys=(${dbres//$'\n'/ }); keys=("${keys[@]}" "${eckeys[@]}"); fi && for keyandmac in "${keys[@]}"; do cardmac=${keyandmac:0:17}; cardkey=${keyandmac:18}; ssurl="shuttersnitch://?setKey=${cardkey}%26forMAC=${cardmac}"; open mailto:?body=$ssurl; done;

Press enter to run it.

That should open a mail with a special URL for each card.

Send the mail to the email account you have set up on the iOS device you're running ShutterSnitch on.

On the device, tap the link and it should open ShutterSnitch and add the key.

If you haven't already enabled Eye-Fi transfers, go through the Options -> Setup Guide in ShutterSnitch and pick the Eyefi mobi / mobiPRO option.

That's it. You should now be able to transfer photos over the infrastructure network(s) you've added to the card. ..But make sure the X2 Utility application isn't running in the status bar on your computer - or the card may pick that as the receiver.
Support the development of ShutterSnitch: Rate/review it in iTunes, Tweet about it, make Youtube videos, blog about it.. Get the word out.
TheBrew
The Developer
 
Posts: 4457
Joined: Wed May 05, 2010 8:48 pm
Location: Denmark

Re: Restoring cards after September 15, 2016

Postby TheBrew » Mon Sep 26, 2016 8:18 pm

For PC users, obtain the magic numbers by pressing the Windows-button + r on your keyboard and run this command:

Code: Select all
notepad C:\Users\%username%\AppData\Roaming\Eye-Fi\Settings.xml


That should open the Eyefi settings file in Notepad. Find the MAC address and upload key for your card and send a mail to your device with a line formatted like this:

Code: Select all
shuttersnitch://?setKey=<the key>&forMAC=<the MAC address>


For example:
Image
would be written as:
Code: Select all
shuttersnitch://?setKey=0123456789abcdef0123456789abcdef&forMAC=00-18-56-0a-1b-2c

Note: If your code is just a lot of zeros, you're not done setting up the card. Connect the card to your computer and make sure you set it up to join your wi-fi network.

On the device, tap the link and it should open ShutterSnitch and add the key.

If you haven't already enabled Eye-Fi transfers, go through the Options -> Setup Guide in ShutterSnitch and pick the Eyefi mobi / mobiPRO option.

That's it. You should now be able to transfer photos over the infrastructure network(s) you've added to the card. ..But make sure the X2 Utility application isn't running in the status bar on your computer - or the card may pick that as the receiver.
Support the development of ShutterSnitch: Rate/review it in iTunes, Tweet about it, make Youtube videos, blog about it.. Get the word out.
TheBrew
The Developer
 
Posts: 4457
Joined: Wed May 05, 2010 8:48 pm
Location: Denmark

Re: Restoring cards after September 15, 2016

Postby TheBrew » Wed Sep 27, 2017 10:42 am

If your card is already paired and working with the Eye-Fi app on your iOS device, that's another way to retrieve the key. (Tested with Eye-Fi app version 3.0.23)

This guide is for Mac, but I assume the steps are fairly similar on Windows - except for reading the sqlite database file but this app looks like good way to browse it.

First, install iMazing, connect your device and extract the Eye-Fi app.

The app data is a compressed file. Rename the file extension from 'imazingapp' to 'zip' and double-click it to unzip it.

Inside the extracted folder, navigate to Container -> Documents where you'll find an 'sqlite' file.

Open Terminal (Cmd + spacebar, search for 'Term', press enter) and type in "sqlite3 " (remember the space at the end). Then drag the 'sqlite' file onto the Terminal window. That should add the complete path to the file to the terminal command. Now add 'SELECT ZMACADDRESS, ZUPLOADKEY FROM ZEYEFIDEVICE' including the quotes. You should end up with something similar to this (only with a slightly different path to the sqlite file):

Code: Select all
sqlite3 /Users/username/Desktop/Eye-Fi\ 3.0.23/Container/Documents/EyeFiDataModel_0-09.sqlite 'SELECT ZMACADDRESS, ZUPLOADKEY FROM ZEYEFIDEVICE'

Press enter, and it should print your card Mac address and key separated by a vertical line. Example:

Code: Select all
00-18-53-ab-65-8a|23a1d70d4af91d67427f735cb3ed66f0

Now, on your iOS device, open Safari and type in the following address, replacing the key and mac with the ones you just extracted.

Code: Select all
shuttersnitch://?setKey=23a1d70d4af91d67427f735cb3ed66f0&forMAC=00-18-53-ab-65-8a

That should then open ShutterSnitch and add your key.
Support the development of ShutterSnitch: Rate/review it in iTunes, Tweet about it, make Youtube videos, blog about it.. Get the word out.
TheBrew
The Developer
 
Posts: 4457
Joined: Wed May 05, 2010 8:48 pm
Location: Denmark


Return to Eye-Fi

Who is online

Users browsing this forum: No registered users and 7 guests