It’s been five months since the release of Android 8.0, and whether or not your Android device has been updated with the new operating system, many Android fans and developers are wondering what features Android 9.0 will bring. However, XDA activists have made a discovery in AOSP (Android Open Source Project) code submission records.

Recent commits from AOSP indicate that apps that use non-public APIs (APIs that use the @hide tag) that are not described in the Android SDK are restricted.

As we all know, Android system is open source, everyone can participate in the development, and contribute their own strength. Although the source code is managed and distributed by Google, there is always some code submitted that has not been certified by Google, or is not yet complete, and is temporarily marked with @hide. Google doesn’t want this code to be used by developers.

For example, the WifiManager Class in the Android.net.wifi package contains a lot of @hide code, variables, or methods:

/**
 * Broadcast intent action indicating whether Wi-Fi scanning is allowed currently
 * @hide* /
public static final String WIFI_SCAN_AVAILABLE = "wifi_scan_available";
Copy the code

Then you might ask, if Google doesn’t recommend it, why do some developers use it anyway?

** Because it can be used for special functions or as a programming trick. ** Ancillary functions like those developed by niche apps in the market are mostly made use of these hidden APIs. This includes apps from some big companies, some of which may look fancy or unknown features. But they must tell outsiders how they did it. Because this is likely to be one of the more powerful than competing products, how can it leak?

However, it is not always safe. Developers can use these non-public APIs to create viruses or other features that harm users. Google must have taken this into account and forced the ban on the hidden APIs. After all, Google has worked hard to improve security and performance on Android.

In other news, XDA enthusiasts also found the code for the next version of Android in recent AOSP submissions: Pi, the name of the Android P version.

Based on the naming conventions of older versions of Android, Google is particularly fond of using gourmet or dessert names. The Internet has been left wondering if Pi stands for Pie.

The recent recommendation

One line command, teach you easy to fix the android open source project installation problems!

About me: Yifeng, blog address: Yifeng. Studio /, Sina Weibo: IT Yifeng

Scan the QR code on wechat, welcome to follow my personal public account: Android Notexia

Not only share my original technical articles, but also the programmer’s workplace reverie

Easter egg: public number reply keyword “interview information”, obtain BAT interview bull for you to prepare a full set of interview information!