Better HN
topnewbestaskshowjobs
Log inSign up

codedokode

9,867 karma · joined Aug 20, 2015 (11y ago) · 5,528 submissions

PHP developer from Russia.
Submissions

comment 8y ago · link · parent

Ok, I looked through old files and found the details. First, you need to get the file Uber_v3.86.5_apkpure.com.apk (Uber app) and decompile it. You can decompile a later version but I cannot guarantee that all the files are still there. In case you don't have decompiling tools around, I found that someone has uploaded files from the directory 'classes/com/baidu/' here: http://rgho.st/8WlHPJC8g

To find the code that scans WiFi networks, grep the files for getScanResults which is the method name from Android API. You will find a file classes/com/baidu/android/pushservice/util/l.java (and several other files). Someone posted this file here: https://pastebin.com/6cXv2itK

If you look at the method

    public static String a(Context paramContext, String paramString)
at line 114 you'll see that it gets WiFi scan results and then does something that looks like composing a POST request to https://cp01-rdqa-dev404.cp01.baidu.com:8443/rest/2.0/zwifi/... (which doesn't resolve currently).

I didn't have time to examine the code thoroughly.

By the way, the code in a paper [1] mentions a shared property named "pst":

    SharedPreferences localSharedPreferences = paramContext.getSharedPreferences("pst", 0);
If you search Uber sources for "pst", you'll find a file classes/com/baidu/frontia/a/d/b$b.java (here: https://pastebin.com/4zDp8dSz ) that also uses this property:

    localObject1 = "pst";
    ...
    localObject1 = paramContext.getSharedPreferences((String)localObject1, 0);
You can also search for "push_sync", which was mentioned in the paper, and you'll find that several files contain this string:

classes/com/baidu/android/pushservice/c/b.java

classes/com/baidu/android/pushservice/PushLightapp.java

classes/com/baidu/android/pushservice/PushManager.java

classes/com/baidu/android/pushservice/util/i.java

You can also search for other keywords, for example 'http' and you'll find interesting URLs like 'http://127.0.0.1:7777/native'.

Finally, you can search for getSubscriberId which is an Android API method that returns an IMSI and you'll also find several matches:

classes/com/baidu/location/h/b.java

classes/com/baidu/platform/comapi/util/f.java

classes/com/baidu/vi/VDeviceAPI.java

classes/com/baidu/android/pushservice/message/f.java

[1] https://www.virusbulletin.com/virusbulletin/2018/03/vb2016-p...

comment 8y ago · link · parent

Allowing the app to access the contact list doesn't mean that the user allows to upload call history to the server. Maybe they only want to add one of the people from their contact list.

comment 8y ago · link · parent

If you search for Facebook on Google Play then you'll see the word "free" under Facebook icon [1]. It is interesting ,that the app page [2] doesn't have this word, but it doesn't say that Facebook is going to upload your call list to the server either. So they advertise the app as "free".

[1] https://play.google.com/store/search?q=facebook&c=apps&hl=en

[2] https://play.google.com/store/apps/details?id=com.facebook.k...

comment 8y ago · link · parent

It doesn't matter. If an electrian says he will work for free it doesn't give him any special rights to do anything except his job.

It is sad that some people in Silicon Valley find it acceptable and ethical.

comment 8y ago · link · parent

Imagine if you invited an electrician to your house to fix something, but he would secretly search for your documents and copied them. That is what many apps do today. They advertise themselves as a game or as a map app but secretly they spy on you or use your phone for their purposes.

comment 8y ago · link · parent

So the main purpose of new technology is to help corporations spy on people. Google Maps wants to know where you go, Facebook wants to know whom do you call, chinese SDKs want their share of data.

Some time ago I looked into Uber app and saw inside a Baidu SDK if I remember correctly. It had the class that was collecting WiFi network ids and sending them to some server. Of course, I cannot say that this code was really invoked by the app, but anyway this was very suspicious.

Some regulation is definitely necessary. The market cannot do anything with it and it needs help.

comment 8y ago · link · parent

On my chinese noname Android 5.1 phone I didn't register on the initial screen and it just works without using Google account. I don't use Google Play and other Google apps though.

comment 8y ago · link · parent

I don't see any problem here. If you use custom ROM you probably don't want to give information about yourself to Google anyway.

It would be even better if Google reviewed ROMs before certification. I have a noname chinese phone that sends data about the phone including a phone number to China (but Google is not much better - every time you enable geolocation it displays an annoying popup asking to agree to send GPS data to Google. Well, at least they ask for permission).

comment 8y ago · link · parent

There is an easier method: just append AJAX crawling token to the query string: http://blog.stgolabs.net/2018/03/linux-v415-performance-good...

comment 8y ago · link · parent

Link with plain readable HTML: http://blog.stgolabs.net/2018/03/linux-v415-performance-good...

This should work on any blogger page.

Source: deprecate Google technology https://developers.google.com/webmasters/ajax-crawling/docs/...

This is crazy. They serve light HTML page for robots and a slow loading JS app for humans. And if an exception occurs inside their app humans get a blank page.

comment 8y ago · link · parent

Also they block scale change on mobile devices:

    <meta content='initial-scale=1.0, maximum-scale=1.0, user-scalable=no

comment 8y ago · link · parent

I agree. It is just a page with text, why add tons of Javascript just to render it?

Well, it is made by Google, so no wonder they cannot just serve plain HTML page.

comment 8y ago · link · parent

Smarty is something from 15 years ago. Nowadays people use Twig which is inspired by Python's Jinja template engine and has similar syntax.

comment 8y ago · link · parent

You can run multiple Node.JS processes.

comment 8y ago · link · parent

That is the problem of Node.JS, not a problem of React. They can run multiple instanceof of Node.JS. And if it takes 500ms to render on a server with powerful CPU, it will take even more on the client, futhermore every page update can take that much time too.

comment 8y ago · link · parent

I don't really see what are the benefits of using React in an internet shop. SPA are good for interactive and complicated interfaces, but an internet shop is mostly a set of static pages - product lists, search and product pages. I hope they don't use React for the static part of the page and only use it for rendering the cart and other interactive parts.

comment 8y ago · link · parent

Very intersting read, and what's important is that the results of their work are open source and can be used by anyone.

comment 8y ago · link · parent

I might be wrong, but the password you have mentioned is either a "local password" that is used to encrypt locally stored data, or a "cloud password" which is used as a second factor in 2FA.

To log in you have to either confirm your number (receive SMS or a call) or to give a code sent to your previously logged in device. There is no traditional login and password as far as I know.

comment 8y ago · link · parent

If you worked with LIDARs, maybe you know how much noise do they give in the output? Could not it be that Uber software filtered pedestrian image out as a noise, for example because there was no matching object on a camera or because reflections from the bike looked like a random noise?

comment 8y ago · link · parent

First, they didn't give the keys and are preparing to be blocked in Russia, second, the law doesn't mean anything. Once you gave Durov your contact list and messages, he can do whatever he wants without any laws. Governments and corporations always have a lot to offer in exchange for the data.

comment 8y ago · link · parent

It does not even have login and password so you cannot log in without using a phone. I don't understand how is that better than Skype. Skype doesn't require you to have a phone number.

comment 8y ago · link · parent

You cannot be sure that Durov will not share or sell your data to your government. Once you gave him the data you have no control over them.

comment 8y ago · link · parent

Durov already has your contact list and all of your messages on his servers. He can sell it to whoever he wants and you won't be able to prevent this.

comment 8y ago · link · parent

By the way it should not be difficult to take open-source Telegram c++ client and replace its backend to work with any other protocol.

comment 8y ago · link · parent

It doesn't mean anything. Once you have allowed Durov to read your contact list and to store your messages on his server, you cannot control what we will do with them. Even without any laws Durov can voluntarily share this data with any government or corporation and you won't be able to prevent this.

comment 8y ago · link · parent

Of course they have good apps because they hire best developers to make you give them away all of your contacts and messages.

comment 8y ago · link · parent

Telegram is awful. First, it doesn't have logins and passwords so you cannot even log in without having a phone nearby. Second, it collects and uploads all of your contacts to Durov's servers. Third, all the messages are stored on the servers too so Durov can read them at his spare time.

comment 8y ago · link · parent

As I understand once some app gets your data, is USA there is a freedom to do whatever the company wants, and sell or share them with anyone including the governemnt.

At least Wikipedia says [1]:

> In general terms, in the U.S., whoever can be troubled to key in the data, is deemed to own the right to store and use it, even if the data was collected without permission, except to any extent regulated by laws and rules...

[1] https://en.wikipedia.org/wiki/Information_privacy_law#United...

comment 8y ago · link · parent

That is how mobile messengers like Telegram work - when you install them, they upload your contact list to their servers to "improve your experience".

comment 8y ago · link · parent

The LIDAR data look pretty noisy, especially for distant objects. Could not they filter out the pedestrian thinking it is a bush or something like this?
1
157158159
185