-
-
Notifications
You must be signed in to change notification settings - Fork 12
Transferring Data
Wristkey supports importing data from multiple sources (such as Bitwarden, andOTP and Aegis). With Bitwarden, a JSON file is parsed and the totp
field is extracted from each account. For website QR codes, the QR Code is scanned and the resulting otpauth://
URL is parsed.
For Bitwarden, andOTP and Aegis, make sure you export data as an unexported JSON file, then place it on your device storage and follow the steps below to import or transfer data. You can use it as a standalone app on your phone too this way.
If you have an older Android Wear watch is paired to an Android phone, you can use a third-party Wear OS file manager like myWear File Explorer or Nav Explorer to transfer JSON files from your phone's storage to your watch.
If your device has a camera, you can just use that to scan a 2FA QR code.
If you're using Wristkey on your Wear OS watch, or on a non-Wear OS Android device (such as an Android phone or an Android-based smartwatch), you can transfer data via Wi-Fi easily. This does not require the devices to be paired via Bluetooth.
If you want to transfer data from your phone to your watch, make sure both devices are on the same Wi-Fi network. Then follow the following steps:
- Open the app on your phone and tap on Add data. Make sure you have some data added already to transfer it. You can import from a file, enter data manually or scan a 2FA QR code.
- If you have some data added on your phone, go to Add data → Transfer via Wi-Fi on both devices. If you are sending from your phone, select the 'Send' option on your phone and the 'Receive' option on your watch and scroll down to view the QR code and IP address.
-
If you're sending from your phone, use the camera on it to scan the QR code displayed on the receiving device. If you're sending from a watch or your device has no camera, just enter the IP and port displayed on the receiver in the text box.
-
Wait for a few seconds for the transfer to finish. The app will restart on both devices upon completion.
If you want to transfer from your watch to your phone, simply reverse the above process.
-
Enable ADB Debugging on your watch by going to Settings → System → About and tapping 'Build Number' 7 times.
-
Go back and tap on Developer Settings, then scroll down and enable 'ADB Debugging'.
-
Make sure Wristkey has storage permissions. On your watch, go to Settings → Apps & notifications → App info → Wristkey → Permissions and enable 'Storage'.
- Connect your watch to your computer via USB. When prompted on watch, tap 'Always allow from this computer'.
-
Make sure both devices are on the same Wi-Fi network. Enable 'ADB over Wi-Fi' on your watch by going to Settings → System → About and tapping 'Build Number' 7 times.
-
Connect your Android phone / tablet to your computer via USB. Then open a new terminal and run the following commands
adb connect <device ip>:5555
-
Enable Bluetooth Debugging on your watch in Developer Options.
-
Now on your Android phone / tablet, open the Wear OS app and tap the top right menu button and tap on 'Settings'.
-
Enable 'Debugging over Bluetooth'. You’ll should see
Host: disconnected Target: connected
-
Connect your Android phone / tablet to your computer via USB. Then open a new terminal and run the following commands
adb forward tcp:4444 localabstract:/adb-hub adb connect localhost:4444
-
On your phone, the Wear OS app should display
Host: connected Target: connected
Place your exported JSON file on the main directory of your watch (/sdcard/) via the following commands
adb push <file>/data/local/tmp/
adb shell run-as app.wristkey cp /data/local/tmp/<file> files/
If you get an error such as the one below:
cp: files/<file>: No such file or directory
or
cp: files/: Is a directory
simply create the directory by typing
adb shell run-as app.wristkey mkdir files/
delete the file when done
adb shell rm /data/local/tmp/<file>
or
adb shell run-as app.wristkey rm -rf files/
Wristkey is looking for funding. Click here to donate.
I wrote this app in college so that I could log into GitLab and back up my projects from the on-campus computer labs (and to flex my UI skills a bit).
Please don't judge too harshly. 😇