Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign up[iOS 11+12] Please fix cydia-no-network error for China devices #136
Comments
This comment has been minimized.
This comment has been minimized.
waterun
commented
Dec 6, 2018
|
大神说的没错,我最开始从Electra Rollectra,再用Unc0ver越狱,更新过两个插件后,Cydia就没有联网权限了,只能通过ConditionalWifi3来打开,确实这是个问题。如果Pwn能解决就方便了。 |
This comment has been minimized.
This comment has been minimized.
Halo-Michael
commented
Dec 6, 2018
|
非常棒的解决方法 你能fork一下unc0ver并且将其添加进去吗 |
This comment has been minimized.
This comment has been minimized.
liuxuan30
commented
Dec 27, 2018
•
|
go to /Library/Preferences/, remove com.apple.network*.plist, reboot your device and JB again, Cydia should be able to have internet. This is a workaround for China Models. README before you try this on iOS12:Since someone starts acting like a kid giving down thumbs only because my workaround does not work on iOS12..(if you really see the date I post this workaround, there was even no iOS12 JB yet), the workaround I mentioned is only tested on pre-iOS12 devices. and here's a free new workaround for now: buy a non-China model. |
This comment has been minimized.
This comment has been minimized.
|
@liuxuan30 thanks, but we are talking about solution rather than |
This comment has been minimized.
This comment has been minimized.
liuxuan30
commented
Dec 27, 2018
|
I understand that. and above is just FYI. I hope it can be fixed as well. |
This comment has been minimized.
This comment has been minimized.
liuxuan30
commented
Jan 2, 2019
|
@laoyur I just tried a new phone, it seems my workaround is not working. any idea? |
This comment has been minimized.
This comment has been minimized.
|
@liuxuan30 I don't know, the workaround itself is very tricky :( |
This comment has been minimized.
This comment has been minimized.
liuxuan30
commented
Jan 2, 2019
|
after trying reinstall Cydia and deleting those plist several times, it worked again... weird. But I strongly support you and @pwn20wndstuff and maybe @saurik can help add this. It has been painful for Chinese devices! |
Cryptiiiic
added
enhancement
need more info
labels
Jan 16, 2019
This comment has been minimized.
This comment has been minimized.
liuxuan30
commented
Jan 23, 2019
|
@Cryptiiiic what more info you need? I'm intersted in this |
This comment has been minimized.
This comment has been minimized.
|
@liuxuan30 pwn doesn't fully understand what this is, neither do I. |
This comment has been minimized.
This comment has been minimized.
|
@Cryptiiiic Hope you can understand now. :) |
This comment has been minimized.
This comment has been minimized.
liuxuan30
commented
Jan 24, 2019
•
|
@Cryptiiiic @pwn20wndstuff So let me repeat what @laoyur said from an user perspective: The iPhone sold officially in mainland China has a special feature since iOS 10.3, that when you first time download the app and open it, iOS will prompt a popup to ask you do you wish to allow the app to have internet access. Some iOS built-in apps will also have this popup, like calendar ( I guess they are those apps can be delete and reinstall from AppStore). Here are some screenshots to help you understand: 2. in settings -> WLAN, there is a page to list all apps using WLAN & cellular: 3. if you click: 4. and if you choose Settings: So this is how it looks and functions. I was told this feature is dedicated only for mainland China because laws demand this. It seems like the iOS is reading the iPhone's hardware info to decide if the phone would have this feature. Only devices with Cellular are impacted. I have WIFI only iPad, which is fine. But I didn't have a cellular iPad, so I cannot confirm whether Cellular iPad has this feature. About Cydia:If you open Cydia for the first time, it will not have the prompt, nor the internet access. It's not even shown up in the above settings. Just like a ghost. I'm gussing it's because Cydia is installed in /Applications rather than the AppStore apps path in The current workaround I'm using is to JB and ssh into the device, delete all Note if you upgrade the Cydia bundle, it will be blocked again, and you have to repeat above steps to make it work again. Hope this can help you understand. |
This comment has been minimized.
This comment has been minimized.
JQ555888
commented
Feb 7, 2019
•
|
Yep. Can confirm all Chinese devices have this issue. Just FYI an indication that the device is a Chinese one is if you go to Settings, in the section where it should say “Wi-Fi”, it shows “WLAN” instead. Also if the device is SIM-compatible, let it be an iPhone or an iPad, in the tab Cellular it gives you the option to choose whether an app can use WLAN or both. Source: have an iPhone purchased in China and looks like all iDevices whose serials end with CH/A have this problem. Just want to add that if your device has this issue, using a VPN app that sets up a SOCKS server on localhost may help (possibly). It has to be on localhost so it won’t work if you add a VPN configuration directly in Settings. Dunno why but /var/preferences/com.apple.networkextension.cache.plist seems to have something to do with it as well. My workaround when this was troubling my iPhone 5S on yalu used to be to SSH into the device first and then rm -rf /var/preferences/com.apple.networkextension.cache.plist, reboot and dang, everything worked. And when this is happening again on unc0ver I was like bugger it and boom, it works. So maybe anyone of greater knowledge than me can look into that file to see what’s going on (not sure whether it’ll be present on non-Chinese devices as well tho). |
This comment has been minimized.
This comment has been minimized.
JQ555888
commented
Feb 7, 2019
|
In case anyone’s curious about what’s in /var/preferences on a Chinese device, here you go :) https://drive.google.com/file/d/1-Byz3QcZc3c_jFBqSWTo5ZyO1IJc10Ec/view The other guy suggested /Library/Preferences which is actually a symbolic link to /var/preferences so we were talking about the same files. The cancerous authority here blocks access to Google so it took me bit of time to upload it but still. I’m constantly available on Reddit u/Stephen555888 if you have any questions. Worth to mention that I have a Chinese test device so please do contact me if you wish to test anything via VNC or whatever. More than pleased to help. |
This comment has been minimized.
This comment has been minimized.
JQ555888
commented
Feb 9, 2019
|
Just now I tried out the latest unc0ver v3.0.0 b21, and the new Cydia (1.1.32 b12) seems to have got rid of the problem. I'm not entirely sure though because I can't seem to remember whether I have used ConditionalWiFi on this test device. Yes, Cydia is having internet access now but strange though it's still not showing up in the "Apps Using WLAN & Cellular" section (therefore "weird" because it's not supposed to have internet if it's not showing up there). Probably going to need more people testing this, and btw I didn't test whether Cydia has internet access under Cellular data (currently don't have a compatible SIM with data plan) but can confirm it's working under Wi-Fi. |
This comment has been minimized.
This comment has been minimized.
liuxuan30
commented
Feb 11, 2019
•
|
I don't believe it has been resloved under WIFI without any reply from Saurik nor the authors. |
This comment has been minimized.
This comment has been minimized.
vcarus
commented
Feb 17, 2019
•
|
Encounter the same issue here on my Chinese Models of iPhone X. |
This comment has been minimized.
This comment has been minimized.
CoolPersonMaam
commented
Feb 19, 2019
|
Get a VPN and then try it see if it works |
This comment has been minimized.
This comment has been minimized.
JQ555888
commented
Feb 19, 2019
•
|
@CoolPersonMaam Well the issue is not about bypassing their shitass firewall. Apple implemented a fucking nasty on device feature that limits per app network usage to comply with the motherfucker authority's requests. I'd wish to leave the goddamn country but that wouldn't solve the issue. Edit: was drunk and sorry for the swear words. loathe the way the government does things so bad I couldn't help it. |
laoyur
changed the title
Please fix cydia-no-network error for China devices
[iOS 11+12] Please fix cydia-no-network error for China devices
Feb 23, 2019
This comment has been minimized.
This comment has been minimized.
|
Code for iOS 12 updated. We can make a NetworkFix.deb and people can scp it to the device and then exec for Cydia. |
This comment has been minimized.
This comment has been minimized.
JQ555888
commented
Feb 23, 2019
|
OP has edited the main post to reflect the changes required for Cydia to properly support networking. This probably needs modifications in the source code for Cydia.app, so maybe @saurik could you please look into this? The reasoning is that if this can be done within Cydia, the only thing needed is to push an update to Cydia Installer and problem solved for not only devices running unc0ver, but also the previous jailbreaks. |
This comment has been minimized.
This comment has been minimized.
DerackHJ
commented
Feb 25, 2019
Tried this method with the latest release on iOS12, didn't work. |
This comment has been minimized.
This comment has been minimized.
JQ555888
commented
Feb 25, 2019
|
Might want to specify where you were stuck at a bit. Just saying it doesn’t work doesn’t help anything. Also after deleting the preferences files in /var/preferences and the reboot, you might have to go to settings to manually enable network access for Cydia. It’s not going to work if you directly open Cydia without choosing that “Allow WLAN and Cellular”. Hope everything will work out for you :) If it’s still not working, could you kindly please detail a little more on the steps you did. That may help a lot. |
This comment has been minimized.
This comment has been minimized.
bfrggit
commented
Mar 7, 2019
|
This seems to be the oldest open issue as of now but still unresolved after several months. I confirm the problem still persists with iOS 12.1 on iPhone 6 with unc0ver v3.0.0%b42. Symptoms: Cydia does not connect; network permission dialog does not pop up; no "Cydia" in network settings (under Cellular where you can assign network access for apps). What is worse is that the removing plist trick does not work either @JQ555888. Tried multiple times, no luck. Installing @laoyur Network Fix deb files does not seem to have any effect either (his fork of unc0ver does not support iOS 12 so I tried to install the deb file with |
This comment has been minimized.
This comment has been minimized.
bfrggit
commented
Mar 7, 2019
|
Restoring network settings does not seem to have any effect. |
This comment has been minimized.
This comment has been minimized.
|
@bfrggit the deb in my fork is for iOS 11 only -- I haven't update it with iOS 12 support |
This comment has been minimized.
This comment has been minimized.
JQ555888
commented
Mar 10, 2019
|
@hyl946 yep that’s exactly what happens when you’ve been staying in China for a prolonged period of time. Can’t be more bothered by the stupidity of their govt. Sorry if I sounded rude, but I’m really not in the mood the moment I commented, especially when most people replying to this topic are saying nonsense and just don’t get the actual issue here. Glad to help if it’s still not working for you on iOS 12. Maybe somehow you missed the steps. Please provide more information so that we can help you. |
This comment has been minimized.
This comment has been minimized.
JQ555888
commented
Mar 10, 2019
This comment has been minimized.
This comment has been minimized.
hyl946
commented
Mar 10, 2019
|
@JQ555888 Already solved, thank you |
This comment has been minimized.
This comment has been minimized.
Hdot1
commented
Mar 12, 2019
|
@laoyur sorry, all of you people are a bit too technical, idk what scp deb is :( |
This comment has been minimized.
This comment has been minimized.
DerackHJ
commented
Mar 12, 2019
Never expected such comment on Github. |
This comment has been minimized.
This comment has been minimized.
DerackHJ
commented
Mar 12, 2019
|
@laoyur 's method works just fine on iOS 12.1.1~12.1.2, across my Chinese region devices, should forget about deleting those plist files. |
This comment has been minimized.
This comment has been minimized.
JQ555888
commented
Mar 12, 2019
|
@Hdot1 so essentially it’s a way to copy files from your PC to your phone via SSH (secure shell) and “scp” is the terminal command to do so. “deb” stands for debian package and it’s the installation file format for jailbroken iOS used by dpkg. You can switch to a graphical interface by using apps like Cyberduck (if on mac) or WinSCP (Windows). Both should do :) |
This comment has been minimized.
This comment has been minimized.
Hdot1
commented
Mar 12, 2019
|
@JQ555888 so I download WinSCP, connect my iPhone to my pc and paste ‘https://github.com/pwn20wndstuff/Undecimus/files/2948085/com.laoyur.network-fixer-0.1-2.deb.zip’ into the WinSCP?? |
This comment has been minimized.
This comment has been minimized.
|
@Hdot1 if you have Filza installed, you can upload deb via webdav, and then install the deb in Filza |
This comment has been minimized.
This comment has been minimized.
Hdot1
commented
Mar 12, 2019
|
@laoyur do I download Filza off safari? What’s webdev? |
This comment has been minimized.
This comment has been minimized.
JQ555888
commented
Mar 12, 2019
|
@Hdot1 actually you don’t have to connect your phone to the PC; just make sure it’s in the same network as your PC. Also you’ll need to get your phone’s internal IPv4 address, and in WinSCP use that IPv4 for host, “root” for username and “alpine” for password so that the client can correctly identify the host |
This comment has been minimized.
This comment has been minimized.
Hdot1
commented
Mar 12, 2019
|
@JQ555888 IPv4? So once the host has been identified I just paste that code into it or something? |
This comment has been minimized.
This comment has been minimized.
JQ555888
commented
Mar 12, 2019
|
@Hdot1 Yeah that’s pretty much it. Just enter the IPv4 string in the text box for “host” |
This comment has been minimized.
This comment has been minimized.
Hdot1
commented
Mar 12, 2019
|
@JQ555888 much appreciated |
This comment has been minimized.
This comment has been minimized.
Hdot1
commented
Mar 12, 2019
|
@JQ555888 im stuck here https://gyazo.com/334fa68ee7f39e2b99f78aac0af81478 |
This comment has been minimized.
This comment has been minimized.
Hdot1
commented
Mar 12, 2019
|
@JQ555888 idk what ipv4 is, i thought it was the ip address of my network that everything is connected to |
This comment has been minimized.
This comment has been minimized.
Hdot1
commented
Mar 12, 2019
|
@laoyur how do i use filza i have it downloaded from tweekbox ios 12 |
This comment has been minimized.
This comment has been minimized.
|
@Hdot1 Filza - Preferences - Enable WebDav server - browse PHONE_IP:11111 on your PC - upload deb file to /var/mobile - install deb file in Filza |
This comment has been minimized.
This comment has been minimized.
Kidsmile88
commented
Mar 15, 2019
•
|
I am Vietnamese. I bought a Chinese iphone during a trip in China. . Have you fixed the error? @Hdot1 |
This comment has been minimized.
This comment has been minimized.
Orgmist
commented
Mar 18, 2019
|
@laoyur the trouble i'm having is my iphone doesnt have "Open SHH" installed because Cydia dosent have a network connection to download it. How else can i enable my SHH so when i open WinSCP it can find my device ? |
This comment has been minimized.
This comment has been minimized.
|
@Orgmist unc0ver - settings - check |
This comment has been minimized.
This comment has been minimized.
Orgmist
commented
Mar 19, 2019
|
@laoyur Thank you, ive copied the file into my temp folder, now how can i install it ? i pressed CTRL T then what ? |
This comment has been minimized.
This comment has been minimized.
Kidsmile88
commented
Mar 19, 2019
|
@Orgmist 2-CSP .deb file into the var/mobile path (in fact, anywhere) 3-command: For example install the application 4- Reboot machine -> enjoy Cydia |
This comment has been minimized.
This comment has been minimized.
Orgmist
commented
Mar 19, 2019
|
@laoyur @Kidsmile88 Thanks for the help guys i managed ! |
This comment has been minimized.
This comment has been minimized.
Kidsmile88
commented
Mar 19, 2019
|
@Orgmist |
This comment has been minimized.
This comment has been minimized.
cirnoingensoukyou
commented
Mar 25, 2019
|
First of all, Chinese people is jailed by their gov. I think they must jailbreak first. lol |
This comment has been minimized.
This comment has been minimized.
Kidsmile88
commented
Apr 9, 2019
|
long time no one cared about this problem. I don't know if any official bug fixes have been released for "ordinary people" in China. ??? I look forward to it even though I'm not a Chinese citizen. I'm sorry if I bother people again for this comment. |
This comment has been minimized.
This comment has been minimized.
zekunyan
commented
Apr 26, 2019
|
I have the same problem... |
This comment has been minimized.
This comment has been minimized.
OldTiger
commented
Apr 30, 2019
•
|
IOS12.1 Solution
|






laoyur commentedDec 3, 2018
•
edited
Hi, you may not know the fact that iOS asks network permission for an app when it get the first launch on all China device models. Network for that app is not available until user grant the permission.
However, with some reason, after the initial JB, Cydia just get no chance to show that alert. Users can not even find Cydia item in Preferences app. As a result, Cydia just not work after the initial JB.
A workaround is to delete some Network Extensions files or using a VPN to bypass, but that's very tricky and dirty.
The best method is to call
AppWirelessDataUsageManager(link to /System/Library/PrivateFrameworks/Preferences.framework/Preferences) for Cydia explicitly.code for iOS 11:
code for iOS 12:
and the entitlements required for iOS 11 & 12:
The code is required to call only once after the initial JB.
Could you guys consider adding that piece of code?