Android’s present code resides on the Android Open Supply Undertaking Git repositories, and by extension, the place the provision code for every new Android mannequin is uploaded. Whereas having the supply code open-sourced and available on the market freely is definitely a essential plus, looking by AOSP has not been a pleasant and simple affair so far. Must you need to seek for the best way constructive lessons and strategies are constructed, you presumably can every clone the repository and search manually utilizing a instrument like grep, or it’s important to depend on on-line gadgets like AndroidXRef or Opersys. Google is making it even simpler to go looking inside AOSP with the new public Android code search device for the Android Open Supply Undertaking.
Cloning AOSP and looking an house model shouldn’t be doable for everybody, on account of the AOSP might be very huge and always up to date. The online gadgets are furthermore not the right reply, as they often is just not going to be up to date with the latest present code releases. Google’s new Android code search device, nonetheless, works with code appropriate after it’s merged to definitely considered one of many public AOSP Git repositories. This makes it helpful for not solely discovering out how constructive decisions work inside Android, however it may furthermore assist in offering hyperlinks in bug opinions, and making fast searches on non-development gadgets. The instrument furthermore incorporates cross-referencing assist, permitting builders to hunt for when one issue is used elsewhere inside AOSP. Android code search instrument furthermore helps additional superior search gadgets, and yow will uncover all of them documented over right here.
As of appropriate now, the Android code search instrument can solely search by the grasp division of AOSP, i.e. primarily in all probability probably the most up-to-date launch of AOSP, which does current a limitation in that you just simply merely can not see how AOSP behaved at constructive completely totally different releases. Nonetheless, Google notes that the instrument will develop to be additional delicate over time, so we depend on it to achieve additional utility ultimately.
Present: Android Builders Weblog