Android O introduces several improvements to help users control the use of identifiers. These improvements include:
Device identifier changes Here are some of the changes made to device identifiers in Android O: Android ID In O, the Android ID (Settings.Secure.ANDROID_ID or SSAID) has a different value for each app and each user on the device. Developers who need to use a device-scoped identifier should instead use a resettable identifier, such as the Advertising ID, to give users more control. The Advertising ID also provides a user-facing setting for limiting ad tracking. Additionally, in Android O:
To align with the runtime permissions required to access the IMEI, android.os.Build.SERIAL is now deprecated for apps targeting Android O or later. They can instead use the new Android O API, Build.getSerial(), which returns the actual serial number as long as the caller has the PHONE permission. In a future version of Android, Build.SERIAL queried by apps targeting Android O will show "UNKNOWN". To avoid disrupting the normal operation of older apps, apps targeting previous versions of Android will continue to see the same device serial number as before. Net.Hostname Net.Hostname provides the network hostname of the device. In previous versions of Android, the default value of the network hostname and the value of the DHCP hostname option both contained Settings.Secure.ANDROID_ID. In Android O, net.hostname is empty and the DHCP client no longer sends the hostname (anonymity-protected personal data) following IETF RFC 7844. Widevine ID For new devices running O, the Widevine Client ID will return a different value for each app package name and network origin (for web browsers). Special system and setup properties In addition to Build.SERIAL, there are other settings and system properties that are not available in Android O. These include:
Randomize MAC addresses in WLAN probe requests We worked with security researchers1 to design robust MAC address randomization for Wi-Fi scan traffic generated by the chipset firmware in Google Pixel and Nexus 5X devices. The Android Connectivity team then worked with manufacturers to update the Wi-Fi chipset firmware used in these devices. Android O integrates these firmware changes into the Android Wi-Fi stack, so devices using these chipsets with updated firmware and running Android O or higher will be able to take advantage of these changes. Here are some of the changes we've made to the firmware for Pixel, Pixel XL, and Nexus 5x running Android O and above:
Changes in getAccounts API In Android O and higher, having the GET_ACCOUNTS permission is no longer sufficient to gain access to the list of accounts registered on a device. Apps must use APIs provided by apps that manage specific account types, or the user must grant access to this account through an account chooser activity. For example, Gmail can access Google accounts registered on a device because Google owns the Gmail app, but the user might need to grant Gmail access to information about other accounts registered on the device. To gain account access, apps targeting Android O or higher should use AccountManager#newChooseAccountIntent() or authenticator-specific methods. Apps targeting lower SDK versions can still use the current flow. In Android O, apps can also use the AccountManager.setAccountVisibility()/getVisibility() methods to manage the visibility policy of accounts owned by these apps. Additionally, the LOGIN_ACCOUNTS_CHANGED_ACTION broadcast is deprecated but still works in Android O. Apps should use addOnAccountsUpdatedListener() to get updates on accounts at runtime to get an app-specified list of account types. |
<<: Android uses Retrofit 2 to implement multiple file uploads
>>: Android custom controls: QQ-like unread message drag effect
If electrification is the first half of the autom...
2021 Week 48 Issue 13 Total Issue 359 This week, ...
We know that the threshold for big search oCPC is...
The latest research results from the University o...
At the Samsung Unpacked conference that just ende...
First, let's talk about the light-emitting pri...
On November 12, Tencent released its Q3 financial...
The mascot of this year's Winter Olympics, &q...
Figure 1: The deadliest animals. Ranked by estima...
Overview There are four main operational goals: a...
With the progress of science and technology, huma...
On the eve of May Day, the Cao Cao Gaoling Site M...
In just one or two months during the epidemic, th...
This article was reviewed by Liu Shaowei, food sa...
Recently, according to the latest statistics from...