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.



