Live data from Hacker News

Apple Is Sending URLs to Tencent?

twitter.com

61–70 of 154 posts

Re: Apple Is Sending URLs to Tencent?

#61
post #58

Took a quick look, and this appears to be enabled if [NSLocale.currentLocale.countryCode isEqualToString:@"CN"]: char ____ZN7Backend6Google12SSBUtilities24shouldConsultWithTencentEv_block_invoke_2(void * _block) { rax = [NSLocale currentLocale]; rax = [rax retain]; r14 = [[rax countryCode] retain]; [rax release]; rbx = [r14 isEqualToString:@"CN"] != 0x0 ? 0x1 : 0x0; [r14 release]; rax = rbx; return rax; } Update: the…

> ____ZN7Backend6Google12SSBUtilities24shouldConsultWithTencentEv_block_invoke_2 I'm glad I don't use Objective-C... That's some Java level function naming there. Edit: may have spoke too soon, appears to be possible reverse engineered / decompiled?

This is a block invoke for a mangled C++ function. You'd know it as a lambda inside of Backend::Google::SSBUtilities::shouldConsultWithTencent().

Re: Apple Is Sending URLs to Tencent?

#62
post #58

Took a quick look, and this appears to be enabled if [NSLocale.currentLocale.countryCode isEqualToString:@"CN"]: char ____ZN7Backend6Google12SSBUtilities24shouldConsultWithTencentEv_block_invoke_2(void * _block) { rax = [NSLocale currentLocale]; rax = [rax retain]; r14 = [[rax countryCode] retain]; [rax release]; rbx = [r14 isEqualToString:@"CN"] != 0x0 ? 0x1 : 0x0; [r14 release]; rax = rbx; return rax; } Update: the…

> ____ZN7Backend6Google12SSBUtilities24shouldConsultWithTencentEv_block_invoke_2 I'm glad I don't use Objective-C... That's some Java level function naming there. Edit: may have spoke too soon, appears to be possible reverse engineered / decompiled?

[deleted]

Re: Apple Is Sending URLs to Tencent?

#63

I'm curious if, as @thefalken brought up [0], this is illegal under the GDPR, given that it's a hidden opt out and should apply to EU citizenry with browser language set to Chinese. [0] https://mobile.twitter.com/thefalken/status/1183445477645312...

The code is checking the region part of the locale, which is CN for china. The language code for chinese is zh.

Re: Apple Is Sending URLs to Tencent?

#64
post #58

Took a quick look, and this appears to be enabled if [NSLocale.currentLocale.countryCode isEqualToString:@"CN"]: char ____ZN7Backend6Google12SSBUtilities24shouldConsultWithTencentEv_block_invoke_2(void * _block) { rax = [NSLocale currentLocale]; rax = [rax retain]; r14 = [[rax countryCode] retain]; [rax release]; rbx = [r14 isEqualToString:@"CN"] != 0x0 ? 0x1 : 0x0; [r14 release]; rax = rbx; return rax; } Update: the…

> ____ZN7Backend6Google12SSBUtilities24shouldConsultWithTencentEv_block_invoke_2 I'm glad I don't use Objective-C... That's some Java level function naming there. Edit: may have spoke too soon, appears to be possible reverse engineered / decompiled?

It appears to be the symbol in the binary. C++ also does similar things. It's called mangling. https://itanium-cxx-abi.github.io/cxx-abi/abi.html#mangling

It's also the reason you sometimes need to extern c or otherwise mark symbols being exported via a c-abi in c++ so that they don't get mangled.

Re: Apple Is Sending URLs to Tencent?

#65
post #51

I'm curious if, as @thefalken brought up [0], this is illegal under the GDPR, given that it's a hidden opt out and should apply to EU citizenry with browser language set to Chinese. [0] https://mobile.twitter.com/thefalken/status/1183445477645312...

If it's illegal under the GDPR to send the data of EU citizens with browser language set to Chinese to Tencent, it's also illegal to send the data of EU citizens with browser language set to anything else to Google. Chrome, Firefox, Safari and probably all Chromium-based browsers (unless they disable Safe Browsing by default) use Google's API and would be in violation, too.

That's not necessarily true, since the GDPR imposes extra restrictions to sending data to countries not covered by the GDPR (essentially, outside the EEA) or that are deemed by the EU to offer equivalent protection. I don't know where Tencent has these servers, but Google has servers in the EU and managed by an EU-based subsidiary.

Re: Apple Is Sending URLs to Tencent?

#66
post #58

Took a quick look, and this appears to be enabled if [NSLocale.currentLocale.countryCode isEqualToString:@"CN"]: char ____ZN7Backend6Google12SSBUtilities24shouldConsultWithTencentEv_block_invoke_2(void * _block) { rax = [NSLocale currentLocale]; rax = [rax retain]; r14 = [[rax countryCode] retain]; [rax release]; rbx = [r14 isEqualToString:@"CN"] != 0x0 ? 0x1 : 0x0; [r14 release]; rax = rbx; return rax; } Update: the…

> ____ZN7Backend6Google12SSBUtilities24shouldConsultWithTencentEv_block_invoke_2 I'm glad I don't use Objective-C... That's some Java level function naming there. Edit: may have spoke too soon, appears to be possible reverse engineered / decompiled?

  bash$ c++filt 
Edit: what are downvotes for? That is the standard way to decipher C++ mangling, using built-in (binutils) tools.

Re: Apple Is Sending URLs to Tencent?

#67
post #58

Took a quick look, and this appears to be enabled if [NSLocale.currentLocale.countryCode isEqualToString:@"CN"]: char ____ZN7Backend6Google12SSBUtilities24shouldConsultWithTencentEv_block_invoke_2(void * _block) { rax = [NSLocale currentLocale]; rax = [rax retain]; r14 = [[rax countryCode] retain]; [rax release]; rbx = [r14 isEqualToString:@"CN"] != 0x0 ? 0x1 : 0x0; [r14 release]; rax = rbx; return rax; } Update: the…

> ____ZN7Backend6Google12SSBUtilities24shouldConsultWithTencentEv_block_invoke_2 I'm glad I don't use Objective-C... That's some Java level function naming there. Edit: may have spoke too soon, appears to be possible reverse engineered / decompiled?

You’re looking at the method name after the compiler got done mangling type information into it for the linker. The human-readable name that (what appears to be an anonymous block) likely appears within in the source code appears to be “shouldConsultWithTencent” in a namespace (class?) “Backend::Google::SSBUtilities”.

The other line noise encodes return and argument types via the process of Name Mangling: https://en.wikipedia.org/wiki/Name_mangling

Re: Apple Is Sending URLs to Tencent?

#69
post #40

Wait, Apple is Sending URLs to Google ?

Default configuration of Chrome sends whatever you type, while you are typing it, in the location bar to Google. And Firefox can do that too, no idea what their default configuration is.

In Firefox, search suggestions are only enabled by the default in the Search field, not in the URL bar.

Re: Apple Is Sending URLs to Tencent?

#70

Took a quick look, and this appears to be enabled if [NSLocale.currentLocale.countryCode isEqualToString:@"CN"]: char ____ZN7Backend6Google12SSBUtilities24shouldConsultWithTencentEv_block_invoke_2(void * _block) { rax = [NSLocale currentLocale]; rax = [rax retain]; r14 = [[rax countryCode] retain]; [rax release]; rbx = [r14 isEqualToString:@"CN"] != 0x0 ? 0x1 : 0x0; [r14 release]; rax = rbx; return rax; } Update: the…

> if [NSLocale.currentLocale.countryCode isEqualToString:@"CN"]:

So even for US and EU based users the data is send to Tencent just because they enabled Chinese language support? Who programmed that?

Post reply on HN