Android’s provide code resides on the Android Open Source Project Git repositories, and by extension, the place the supply code for each new Android model is uploaded. Whereas having the availability code open-sourced and on the market freely is actually a critical plus, searching by AOSP has not been a delightful and straightforward affair to this point. Should you want to search for the way positive classes and methods are constructed, you presumably can each clone the repository and search manually using a instrument like grep, or it is essential to depend upon on-line devices like AndroidXRef or Opersys. Google is making it even easier to search within AOSP with the new public Android code search tool for the Android Open Source Project.

Cloning AOSP and searching an space mannequin should not be doable for everyone, as a result of the AOSP could be very massive and constantly updated. The net devices are moreover not the correct reply, as they sometimes is not going to be updated with the newest provide code releases. Google’s new Android code search tool, nonetheless, works with code correct after it is merged to certainly one of many public AOSP Git repositories. This makes it useful for not solely discovering out how positive choices work inside Android, nevertheless it’s going to moreover help in providing hyperlinks in bug opinions, and making quick searches on non-development devices. The instrument moreover incorporates cross-referencing help, allowing builders to hunt for when one factor is used elsewhere inside AOSP. Android code search instrument moreover helps further superior search devices, and yow will uncover all of them documented over here.

As of correct now, the Android code search instrument can solely search by the grasp division of AOSP, i.e. primarily probably the most up-to-date launch of AOSP, which does present a limitation in that you just simply cannot see how AOSP behaved at positive totally different releases. However, Google notes that the instrument will grow to be further delicate over time, so we rely on it to attain further utility in the end.


Provide: Android Developers Blog

Leave a Reply

Your email address will not be published. Required fields are marked *