-
Notifications
You must be signed in to change notification settings - Fork 257
Lumi Aqara Camera root
Dennis Giese edited this page Feb 16, 2019
·
4 revisions
Learn why this works here: https://www.youtube.com/watch?v=DHsqb2poGII or http://dontvacuum.me/talks/DEFCON26/DEFCON26-Having_fun_with_IoT-Xiaomi.html
- This Howto is highly experimental and dangerous
- While there are 2 copies of the app partitions (mtdblock4/mtdblock5), there is only one copy of the system partition (mtdblock3)
- Flashing mtdblock3 while you running the camera is dangerous and will likely brick your device
- Whatever you do, your partition sizes must not exceed these sizes or else your device will be bricked
- After logging in, make copies of your partitions
- Reset Wifi credentials (by pressing the reset button)
- telnet to camera (default ip 192.168.1.1) and login with root:lumi-201 [this password is hardcoded in the system partition]
- [ you have root now, right? stop reading ;) ]
- continue reading the root section
- Connect to the serial ports of the device [pinout]
- The updated versions are killing the telnetd after loading the app, so you would not have telnet access
- If you are quick, you can login using root:lumi-201 ,if you wait too long or if you booted already the device, use root:6SmvyB2n
- continue reading the root section
- extract information from /lumi/conf/device.conf (this file contains your DID, Key, MAC and the P2P ID (for the camera stream))
- insert SD card
- backup all your partitions (mtdblock0 to mtdblock6) by using dd to SD card
- This method gives you the most freedom, survives updates but is dangerous (as you have only one copy)
- You can use my prebuild version of the partition from here
- OR: You can build your own version (skip this if you use my version)
- (This assumes that you have the the backup of your partition on your computer)
unsquashfs mtdblock3
(do your modifications, e.g. patching /etc/passwd or soundfiles)
mksquashfs squashfs-root/ mtdblock3new -force-uid 1000 -force-gid 1000 -comp xz
(make sure that the maximum partition size is not exceeded)
- run "flashcp /mnt/mtdblock3dustcloud /dev/mtd3" (this will likely brick your device at this point)
Navigation
- Home
- Vacuum Robots
- Lumi Aqara Camera (experimental)
- Lumi Aqara Gateway (new Version, without Homekit)
- Documentation
- Dustcloud