fritz-smh / yi-hack

Xiaomi Yi Ants camera hack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Region ban still an issue?

PJanisio opened this issue · comments

Cameras produced after 11 Nov has a region ban while using firmware newer than "L" version.
I saw that you removed cloud feature so region ban will not happen after flashing with your firmware?


I have no idea how this region ban works... So I would say "try" and tell
us ;)


On Tue, Mar 29, 2016 at 12:48 PM, Pawel Janisio

Cameras produced after 11 Nov has a region ban while using firmware newer
than "L" version.
I saw that you removed cloud feature so region ban will not happen after
flashing with your firmware?

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub

After succesfull flash of firware, camera is connecting and checks camera version. If chinese version is found (serial numer check vs wifi settings or domain or whatever) than it shut down with chinese message that this is hardware for China mainland only :)

I already figured out to have RTSP, telnet, ftp for firmware version "L" working like a charm so im aware to check with your scripts as it overwrites some files permamently. Maybe some other brave user will check that ;-)

I can confirm that Regional ban is still an issue, the attached "M" version only works assuming you're using the US/EU version.

i'm trying to fiddle around with it - trying to bypass this limit by either blocking Xiaomi's sites on host level or emulating the json respond with a localhost copy, if i'll have any actual success i'll make a pull request.

@d3bugg3r keeping fingers crossed.

Nobody got a solution yet?

@fritz-smh i've tried to block communication to "home" server via firewall or host but it didn't help - i might be missing callback addresses or barking the wrong tree.. if anyone has any other idea it would be great.


I happened to get working the camera I bought last week without it turning off automatically because of the region ban.
I blocked the following dns:

I have version installed.

The way I blocked it was pointing to an internal DNS server, pretty much as a local host file.
Once I did that I was able to use the camera again, as factory defaults, next step be able to enable RTSP, telnet and ftp... Will share any success.


Good news indeed! Please share your script when its done. And can you say a litlle more about this DNS server? Did you managed to point to your DNS server to avoid asking xiaoyi servers? If so, than you needed to launch a DNS server on your router or server?


This was a quick and dirty test to confirm how the ban works, I started off checking the traffic that the camera generates once it is turned on until I get the english message saying that the camera is only for use in china and disconnects.

I happened to have a raspberry pi in my internao network which has pi-hole installed, this helps a lot to see the traffic that is being generated by the camera. I saw several dns requests for amazon web services and as you well mentioned and the other one. I first blocked the api but the camera kept turning off then I blocked the second dns (not sure if both need to be blocked), since it worked i left it as it is.

When I say block I really mean when ever the camera makes a dns query to my dns server (rpi) the raspberry will resolve the ip of the raspberry instead of the orginal ip address. I suppose the camera understands this as the site is up but has nothing to report back (luckly).

That is pretty much what i did, as soon as I have some time (which I don't lately) would like to try to adapt the scripts already in place ( thanks to fritz-smh!!!!) to suit our needs with this version. With earlier firmware versions it seems the network adapter is not found therefore it doesn't register an ip.

Any ideas are always welcome.


Thanks for explanation. As you said luckly it is enough to check by camera that the site is up and nothing has to be returned back.

Anyway I think the best solution would be to localize file, or string in the binary where serial number with "CN" is stored (or any flag that says it is chinese version) and replace it with international serial number. Than no blocking of traffic would be needed.


All credit to the original author, looks as if modifying /home/cloud did the trick

p.s. Thanks for the great firmware

Someone posted a reply to solve the problem on this page:

I added your last link in the README.

As I have not this model, could someone summarize what can be done and if it works fine ?


I have the same problem but with a Smart Camera 2 {1080p)

Could the DNS trick work?

Update: I tried to aliases DNS of from my local DNS (dd-wrt) resolving them to with no luck for pairing a Yi Cam 2 (1080p)

Thank you anyway


I have installed and working with rtsp telnet FTP and http. To enable i did the following.

Enable telnet and login.
Enter the following commands

ps | grep /home/watch_process | grep -v "grep" | awk '{print $1}' | xargs kill -9

ps | grep /home/cloud | grep -v "grep" | awk '{print $1}' | xargs kill -9

sed -i 's||api.xiaoyi.cox/v4/ipc/check_did|g' /home/cloud


Everything working

Hi guys, I just bought this camera yesterday, and i still cant connect it to my phone after a lot of hours i put into it. i've tried upgrade and downgrade firmware from B to N, all firmware cant connect to my wireless router and i get this Log in my sd card saying pasword error.
i've tried changing my wireless pasword (in case its too long) to 8 digit, still give the same result.
i've tried using the latest firmware i could find, C and voila, my camera finally can connect to my wireless router, but now it give me a new problem, which is the issue you guys talking about, region banned, its says this device can only be used in china. i keep digging how to fix that issue, and someone post this telnet think which i dont really understand. if someone can help me with my problem i would really apreciate it.. sorry for my bad english since its not my native tongue

Hello pls, someone can create a video tutorial to remove ban region ?

Just quick update - xiaomi moves on - from 17CN**160622 versions there is no way how to downgrade - seems like there is some kind of HW lock. And blocking the above DNS did not help either...

Yep - I just received a CN camera and it is not possible to downgrade. Hoping someone figures it out but it is looking like a bricked device at this stage :(.

@sumnerboy12 May be you can give this method a shot? - .. ignore if you have already tried.

Yes - I had come across that thread and tried it. The problem seems to be the latest version has disabled the ability to load new firmware (either upgrade or downgrade) from the SD card. So there is no way to alter the firmware on the camera.

Well, unless that specific firmware is not dumped or avail for download somewhere, nobody can do/say anything then guess...
I guess is again some new hardware inside, WiFi chip or whatever, and firmware is n00b proof, i.e. it does not allow user to brick the camera flashing wrong firmware...
Disabling the flashing feature would be the dumbest thing ever to do since is the most convenient way to service the camera.

Yep - I have spent ages trying every different method I could find online to re-flash this one and it just won't even attempt to upgrade/downgrade. I had two earlier versions of this camera which I got working fine using the techniques described so something has definitely changed.

I managed to brick one of the originals (which is why I bought this new one) buy stupidly disabling the rss process thinking it was something trying to connect back to base. I was unable to reflash anything on that camera after I broke it either :(.

I bought two of these and stupidly upgraded them to whatever the latest firmware is. None of the SD card methods seem to work. So I opened one up and lo and behold there is what appears to be a serial port.


I ordered some Micro 1.25mm T-1 4-Pin JST Connectors from eBay and am currently tying to see if I can get root / bootloader access. If this works I have a older un-upgraded camera I can dump the root file system from and just copy that over. To be honest though I will probably just build something without Xiaomi's craptastic software.

On a completely unrelated noted Walmart has started stocking this Momentum Camera for $36. Might grab one of these to see how it works, or I might just buy some Nest cameras and be done fucking about with Chinese crap.

17CN hack

the number behind the qrcode is important to determine way to hack or version to be flash.

very smart! i check the code a bit. looks like a bypass but gosh, how do you know what file to change! @heavenf thanks!

@DevinWatson That is the way to go...
I didn't opened mine(no need yet) but is cool they provide a connector for serial!
If the "older un-upgraded camera" is not identical in hardware I don't advise to copy that over, 99.9% it wont work.
Try to find firmware from same model, mount it as described here and use that instead to recover.
I doubt anyone can compete with this "chinese crap" in terms of price/quality, Xiaomi is the best plus is fun to hack it, we know it and they know it as well ;)

I have Xiaomi YI 12CH-version which has "can only be used in China" problem. I tried this hack, but it doesn't seem to work. The camera gets fixed blue light (WiFi connection) for a few seconds, but then it starts to flash yellow again.

I've tried the telnet trick above and several firmwares but I haven't got past this. Excellent hack though, only if it had worked on my device!

Hello @some1563 i have this problem too, i solve with a ready-to-go firmware i downloaded

Download here:

Source comments of:

Hi fritz-smh, I tried adding:

ps | grep /home/watch_process | grep -v "grep" | awk '{print $1}' | xargs kill -9
ps | grep /home/cloud | grep -v "grep" | awk '{print $1}' | xargs kill -9
sed -i 's||api.xiaoyi.cox/v4/ipc/check_did|g' /home/cloud**_

into the top of the file and it worked!

Is there any working hack for 18CN upgraded cam? I've tried everything with no luck.

Hello everybody,
Is this hack compatible with Xiaomi Xiao Fang or is only for Xiaomi Yi Ants?