Censorship at his best...
In the deepest of Android, in the @OnePlus 5T, there is a special treatment if you are in China...pic.twitter.com/SRBaDGU5zc
You can add location information to your Tweets, such as your city or precise location, from the web and via third-party applications. You always have the option to delete your Tweet location history. Learn more
I don't see what's wrong with this. The context should make it clear: this code is all related to Captive Portal stuff. In China, the standard Google URL used to determine if the device has network access won't resolve, so they use a different one.
Yes, this is what I said in my tweets. What is wrong for me is that due to the China firewall there is a specific treatment for them. There is nothing wrong from OnePluas here
Sorry, but I think a lot of people would misinterpret your tweets given that you've been focused lately on finding malpractices in OEM software. Glad to see that's not where you're taking this one though.
Yep, you right. I need to be careful in my wording :D
really interesting. So you're locked even on roaming.
So no matter what country code, as long as it's 2 characters it's definitely China?
No, it seems to compare with "CN" (returning true while matching "CN", "Cn", "cN" and "cn" else returning false) only if there's at least 2 chars. They just save the comparison if the code is shorter than 2, directly returning false.
just looked at it again, it seemed like the function would be used like if(isCountryChina() ){ } but obviously it's returning a boolean or comparison would be hard so I guess equalsIgnoreCase(str) just returns a t/f value instead of returning "CN" as a string? think i make sense?
Yes, equalsIgnoreCase returns a boolean
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.