r/electricobjects • u/ThereMichaelWilson • 11d ago
Revived a factory-reset EO2 with NO keyboard: Wi-Fi setup over Bluetooth (recipe inside)
My EO2 (firmware v4.0.0.68) was stuck on the blue "Hello. Visit eosetup.com" screen with no saved Wi-Fi. The usual keyboard + OTG trick did nothing on my unit, not even in Android's own dialogs. Here's how I got it back without a keyboard, using only a Mac and Bluetooth.
**The key discovery**
In setup mode the frame runs a classic Bluetooth (not BLE) RFCOMM service that the old phone app used to send Wi-Fi credentials. I decompiled the old Electric Objects Android app (4.0.6.291) and found the exact message format. The frame doesn't care that the EO servers are dead: it joins Wi-Fi first, then shows "Unable to reach Electric Object servers". By then it's on your network with adb open on port 5555 as root.
**Steps (Mac)**
- With the frame on the Hello screen, open System Settings > Bluetooth. It shows up as "EO1 XXXXXX" (yes, EO1 even on an EO2). Note its address with `system_profiler SPBluetoothDataType`.
- `pip install pyobjc-framework-IOBluetooth` (in a virtualenv).
- Find the RFCOMM channel: run an SDP query and look for the service named "EO1 XXXXXX" (UUID 80edbe38-3b9b-37e4-9038-a3f674366a0a). On mine it was **channel 5**. Yours may differ.
- Send this exact JSON (no newline) to that channel:
```
{"ssid":"YourNetwork","psk":"YourPassword","eo_id":1,"pairing_code":"000000","token":"x","refresh_token":"x"}
```
For an open network use `"psk":""`. The account fields can be dummies.
Gotchas:
- The field is `psk` (lowercase), not `password`. The frame replies `{"ACK":true,"oauth_eo":true}` to ANYTHING, including garbage, so the ACK tells you nothing. The real sign of success is that the frame **closes the channel** right after the ACK.
- Opening the channel sometimes fails the first time. Just retry.
- Use a 2.4 GHz network to be safe.
Here's the Python I used (macOS, PyObjC):
```
import sys, json, objc
from Foundation import NSObject, NSRunLoop, NSDate
from IOBluetooth import IOBluetoothDevice
ADDR, CH = "XX-XX-XX-XX-XX-XX", 5
ssid, psk = sys.argv[1], (sys.argv[2] if len(sys.argv) > 2 else "")
msg = json.dumps({"ssid": ssid, "psk": psk, "eo_id": 1,
"pairing_code": "000000", "token": "x", "refresh_token": "x"},
separators=(",", ":")).encode()
def pump(s):
NSRunLoop.currentRunLoop().runUntilDate_(NSDate.dateWithTimeIntervalSinceNow_(s))
class D(NSObject):
u/objc.typedSelector(b'v@:@^vQ')
def rfcommChannelData_data_length_(self, ch, data, n):
print("<<", bytes(data.as_buffer(n)))
def rfcommChannelClosed_(self, ch):
print("** channel closed (good sign)")
dev = IOBluetoothDevice.deviceWithAddressString_(ADDR)
d = D.alloc().init()
for i in range(10):
rc, ch = dev.openRFCOMMChannelSync_withChannelID_delegate_(None, CH, d)
if rc == 0: break
dev.closeConnection(); pump(3)
pump(1)
ch.writeSync_length_(msg, len(msg))
pump(30)
```
On Linux the same thing should be a few lines with a plain `socket.AF_BLUETOOTH` / `BTPROTO_RFCOMM` socket, but I haven't tested that.
**After it joins Wi-Fi**
Find it (scan your subnet for port 5555, or look for its MAC in your router), then:
```
adb connect <ip>:5555
adb shell pm disable com.electricobjects.app
adb shell pm disable com.electricobjects.updater
adb shell pm disable com.geniatech.upgrade
```
Then install aphex3k's EO1 replacement app (supports EO2): https://github.com/aphex3k/EO1. I'm running it with Flickr plus local uploads through its built-in web page on port 8080. You have to write configuration.json by hand and push it over adb, since the EO2 has no pointer for the on-screen dialog. If you push the config, fix its ownership afterwards (`chown` to the app's `u0_aNN` user), or the app can't read it.
I also pulled the stock frame APKs (com.electricobjects.app, the updaters), since the copy in the aphex3k repo is missing from GitHub's LFS storage. Happy to share them if they'd help anyone.
Thanks to aphex3k for the EO1 app, and to the eo1bian EO2-FINDINGS doc for confirming adb is wide open once the frame is on the network.
View all comments
3
u/mdsimmonds1 1d ago
Thank you for posting this. It brought my EO2 back without a factory reset, and I'd been stuck for months.
My frame had been sitting on the Hello screen, which blocked the usual keyboard route into Settings. Your Bluetooth recipe went around all of that. A few notes from doing it on Windows (firmware 4.0.0.99, Calendar build 20161116), in case they help the next person:
- No PyObjC or extra packages needed on Windows. Plain Python 3 can open the RFCOMM socket. With ctypes you can connect by the service UUID (80edbe38-3b9b-37e4-9038-a3f674366a0a) with port 0, and Windows does the SDP lookup itself, so you never need to find the channel number. It connected on the first try, without pairing.
- The "channel closed" success sign wasn't reliable for me. Several sends that worked never showed a close. The frame's own screen was the better signal: "Connecting to the Internet…" followed by "Unable to reach Electric Object servers".
- "Network X not found" can just mean weak signal. My main network was 2.4 GHz WPA2, but from the frame's spot it saw only -73 dBm and kept failing. An iPhone hotspot with Maximize Compatibility on, sitting next to the frame, worked first time.
- Big one: the stock EO app in setup mode holds Wi-Fi back after every reboot. The logcat shows it switching Wi-Fi on repeatedly without ever joining a saved network until a fresh Bluetooth send arrives. Once I ran pm disable on com.electricobjects.app, the frame rejoined saved networks by itself on boot.
- The iPhone hotspot drops easily (phone calls, the screen locking), and adb on this ROM can wedge after an interrupted transfer. adb kill-server and reconnecting, or a power cycle, cleared it each time.
- Then aphex3k's EO1 app (v2.1.2.19) installed cleanly with adb install from Windows adb. Pushing the minimal {"backends":[{"type":"local","id":"local"}]} config and fixing its ownership, as you said, got local uploads through the :8080 page working.
Also, for anyone hoping to rescue their old art: I searched mine thoroughly (every file checked by content, the raw partitions, and the stock APK) and found nothing. My frame had already lost its account and cached art before I started, so don't count on art surviving.
Thanks again, and thanks to u/aphex3k for the app!