Home United States USA — software Next version of Android could restrict access to hidden APIs

Next version of Android could restrict access to hidden APIs

289
0
SHARE

With most of us wondering what flavor of pudding the next version of Android will run with, some interesting changes have been spotted in the AOSP that could make its way to the final product.
Recent commits to the Android Open Source Project (AOSP) have pointed to some interesting changes that could potentially feature in the next version of Android. Modifications to how developers get access to the Application Programming Interfaces – or APIs for short – may have some dire implications for your favorite apps.
Discovered by senior Recognized Developer rovo89 at XDA Developers, credited for his work on the Xposed Framework, the two commits introduced a new tool called ‘hiddenAPI’. The first commit modifies the access flags of all class members within the DEX file if they appear on the so-called ‘grey or blacklist’. If so, the marked methods will be treated as internal APIs, and access to them will be restricted. The second commit, simply describes how the aforementioned lists work. According to the report, it prevents access to boot class methods and fields marked by the first commit we mentioned.
This change will have a negative impact on apps on Android that use these hidden APIs, according to rovo89:
The reason this change is significant is quite simple. In the Android Software Development Kit (SDK), developers for the open-source operating system from Google gain access to a library of APIs that allow them to code specific functionality into their apps. However, sometimes a developer might need a specific set of tools, which Google kept hidden because they might not be ready. Although this is not recommended, several developers find them quite useful when building a specific feature set.
These APIs help some create stunning applications on Android, but can also be abused by those with nefarious plans. So it might not be so surprising to see Google actively working to limit access to them. Until the next version launches, it will be difficult to ascertain just how this change will affect the biggest apps for Android. It is, however, suggested that developers reconsider using these hidden APIs in future.
Source: XDA Developers

Continue reading...