The Cultivated Contents中文

14

Where the Words You Type Go

You hear it all the time: someone mentions a thing to a friend, opens a shopping app, and there it is on the home page. So plenty of people are convinced their phone is listening.

There's no evidence of phones secretly recording you and selling the audio to advertisers. In 2018, researchers at Northeastern University and several other universities tested more than 17,000 Android apps, capturing and inspecting everything each app sent out. They didn't find a single real case of an app secretly recording audio and uploading it. What they found was something else: some apps contained third-party tools that took screenshots or recorded the screen without the user knowing, and sent them to other companies' servers.

No microphone needed. What you want to buy, you've mostly typed into your phone with your own hands: in a search box, in a chat, in a review on a shopping app. The words you type most often leave your phone by one of two routes. One runs through your keyboard app. The other is an open business, written up in Apple's developer documentation.

Figure 1: Which route your data takes out

Every word you type on your phone goes through the keyboard app first, and the keyboard app sees all of it. In China, most people type Chinese by entering pinyin, the romanized spelling, into a third-party keyboard, and many of these keyboards go online: you type the pinyin, the keyboard sends it to a server, the server guesses which word you mean and sends the answer back. The guesses get better. Your words also leave your phone.

A lot of those words aren't properly protected on the way. In 2024, the Citizen Lab at the University of Toronto examined pinyin keyboards from nine companies: Baidu, Tencent, iFlytek, Xiaomi, vivo, OPPO, Honor, Samsung and Huawei. Eight of the nine had flaws in their encryption. Anyone on the same network as you, say the same coffee shop Wi-Fi, could read everything you typed.

The ad ID route needs no theft and no security flaw. Every iPhone carries a number called the advertising identifier, there purely for advertising. Apple's developer documentation is clear that it may only be used for ads: to limit how many times you see the same ad, to count how many downloads and purchases an ad brought in, and to estimate how many different people saw it.

Every app on the same phone gets the same number. Whatever you searched for in one app, that app can hand the search history to an ad company along with the number. Another app looks up the same number with the ad company and knows which ads to show you. Apple calls this tracking you across apps and websites.

You search for a pair of running shoes in one app. Some time later you open another app, and there's an ad for those shoes on the home page. What's in the ad is the words you typed into your phone yourself.

The last time you caught yourself thinking, "How does it know I want this?", where had you searched for it, or typed it, just before?

Eavesdropping is a crime. It has to be done in secret, and whoever does it worries about getting caught. The ad ID is a business written into the documentation, carried on in the open every day. What people worry about is the first. What happens to them every day is the second.

Since 2021, Apple has required apps to ask your permission before they can get this number. Say no, and the app gets a string of zeros. Before that, apps could take it without asking.

You can shut both routes in your iPhone's settings. Android settings differ from brand to brand, so only the iPhone is covered here.

The keyboard switch: open Settings, go to General, then Keyboard, then Keyboards, pick the keyboard you installed, and check whether Allow Full Access is on. Apple's documentation says that with it off, the keyboard can't go online, and what you type goes only to the app you're typing in. With it on, the company that makes the keyboard can get what you type.

The ad ID switch: open Settings, go to Privacy & Security, then Tracking, and turn off Allow Apps to Request to Track. Once it's off, every app gets an advertising identifier of all zeros.

To believe your phone is listening is to believe you never said a word. You typed the name of those running shoes into the search box yourself.

Sources

  1. The microphone: Pan, Ren, Lindorfer, Wilson, and Choffnes, Panoptispy: Characterizing Audio and Video Exfiltration from Android Applications, Proceedings on Privacy Enhancing Technologies, 2018. They tested 17,260 Android apps from Google Play, AppChina, the Xiaomi store and Anzhi. The paper reports finding no real audio files, and finding third-party libraries that took screenshots and screen recordings and uploaded them without telling users.
  2. Keyboard apps: Knockel, Wang, and Reichert, The not-so-silent type: Vulnerabilities across keyboard apps reveal keystrokes to network eavesdroppers, Citizen Lab Report No. 175, April 23, 2024. Eight of the nine had vulnerabilities; as of April 1, 2024, Honor and QQ Pinyin had not fixed theirs.
  3. The advertising identifier: Apple developer documentation, advertisingIdentifier and App Tracking Transparency. Since iOS 14.5 (April 2021), apps must request permission to track; if the user declines, the identifier is all zeros. Before that, apps could read it by default, and it became all zeros only if users went into settings themselves and turned on Limit Ad Tracking (per explanations from Adapty and inovex; Apple's original documentation was not opened).
  4. Full Access: Apple developer documentation, Configuring open access for a custom keyboard. With it off, keystrokes go only to the app using the keyboard; with it on, users understand that their keystrokes are available to the keyboard's developer.
  5. The author's inferences: that eavesdropping has to be done in secret while the ad ID is carried on in the open; and that to believe your phone is listening is to believe you never said a word.
Soil Strength