yi-hack-v5 icon indicating copy to clipboard operation
yi-hack-v5 copied to clipboard

[ Yi Home 1080p ] No recording being made - v0.3.0 - v0.3.2

Open Shourai opened this issue 4 years ago • 21 comments

Same as issue: https://github.com/alienatedsec/yi-hack-v5/issues/2

  • Updated to 0.3.0
  • Formatted the SDcard with the Yi app.
  • Recordings are being made while the cloud functionality was still on.
  • After turning off the cloud functionality (and turning on recording without cloud), no recordings are being made.
  • Enabling watch_process enabled recording.

Shourai avatar Apr 11 '21 18:04 Shourai

Thanks for testing @Shourai

Has the watch_process enabled cloud?

alienatedsec avatar Apr 11 '21 19:04 alienatedsec

Unfortunately I think it does. After enabling watch_process it also enabled p2p_tnp. Furthermore the cloudAPI is connecting to https://api.eu.xiaoyi.com/v4/ipc/on_line

Shourai avatar Apr 11 '21 19:04 Shourai

Furthermore the cloudAPI is connecting to https://api.eu.xiaoyi.com/v4/ipc/on_line

@Shourai this could be fixed in another way. Something for the next release

alienatedsec avatar Apr 11 '21 19:04 alienatedsec

Oh I meant that watch_process also enables cloudAPI which then connects to xiaoyi. Doesn't happen when the cloud setting has been disabled though.

So watch_process seems to enable something that allows recording. Or is it just necessary to have cloud enabled?

Shourai avatar Apr 11 '21 19:04 Shourai

I renamed the files /home/app/cloud, /home/app/cloudAPI and /home/app/cloudAPI_real and then started watch_process again. Then the records are available and no connections are made to the cloud.

murphymorph avatar Apr 12 '21 15:04 murphymorph

@murphymorph renamed to what?

alienatedsec avatar Apr 12 '21 16:04 alienatedsec

I booted the cam with the cloud activated. Then rename it to /home/app/cloud.bak to keep a backup. Then the video are saved and no connection to the cloud is made. But I recognized that it doesn't work after a reboot. :/

murphymorph avatar Apr 13 '21 16:04 murphymorph

I started to implement fake cloudAPI. With my Yi Outdoor it is working so far. The videos will be saved and no connections to the cloud are made (as far as I have seen). The script returns fake responses from the cloud.

Cloud anyone test the script?

Replace /home/app/cloudAPI_real with the attached one and the name "cloudAPI_real". At the moment the cloud feature have to enabled.

cloudAPI.txt

murphymorph avatar May 09 '21 12:05 murphymorph

@murphymorph thanks. I will commit and test soon.

alienatedsec avatar May 09 '21 14:05 alienatedsec

Replace /home/app/cloudAPI_real with the attached one and the name "cloudAPI_real". At the moment the cloud feature have to enabled.

@murphymorph I will try to incorporate your change to update this code, so if the no cloud settings, it would run your code. I think its better, and it would not require changing cloudAPI_real

There is also a way to create /etc/hosts file and any calls to yi cloud host would be redirected to 127.0.0.1

What are your thoughts?

alienatedsec avatar May 09 '21 21:05 alienatedsec

As far as I have seen all calls to the cloud are made through the cloudAPI. So I don't think there is a need for /etc/hosts.

murphymorph avatar May 11 '21 15:05 murphymorph

As far as I have seen all calls to the cloud are made through the cloudAPI. So I don't think there is a need for /etc/hosts.

Calls are going through cloudAPI but if you block the domain at the host level (camera), it will not connect but still record(?)

I just need time to test but it is challenging at the moment

alienatedsec avatar May 12 '21 20:05 alienatedsec

If you block the domains at host level with /etc/hosts, the camera doesn't store the videos (at least in my case). cloud keeps calling cloudAPI, but nothing more happens.

murphymorph avatar May 14 '21 07:05 murphymorph

Any news on that issue ?

l-Legacy-l avatar Sep 20 '21 22:09 l-Legacy-l

Not at the moment - another build is likely to fix it

alienatedsec avatar Oct 02 '21 09:10 alienatedsec

Hi thanks for your work. I am still not able to record video to SD with having cloud disabled. V0.3.2 Outdoor Cam

Rushmed avatar Oct 20 '21 14:10 Rushmed

Hi @Rushmed that would be correct. Pull request #50 should fix it but there were more important issues to fix with 0.3.2.

Thanks for your patience

alienatedsec avatar Oct 20 '21 16:10 alienatedsec

Still watching this issue, my 27US is also crashing overnight but havent determined reason.

bluehz avatar Feb 27 '22 05:02 bluehz

Is this project still in alive? Just curious. I have 2 yi outdoor 1080p 9CUS cams that won't record unless the cloud is enabled. I've read through the comments on a possible solution, but I'm not sure where to start. Any insight would be much appreciated.

papagdog avatar Apr 05 '22 00:04 papagdog

@papagdog

https://github.com/alienatedsec/yi-hack-v5/issues/88#issuecomment-1088595542

alienatedsec avatar Apr 05 '22 11:04 alienatedsec

Try to have a look here #164 It worked for me.

g1za avatar Aug 26 '22 19:08 g1za

fixed with 0.3.5 - please upgrade to 0.3.6

alienatedsec avatar Dec 05 '22 20:12 alienatedsec