Search code examples
androidandroid-layoutandroid-studioandroid-tvleanback

Modify Android Leanback Library


I need to modify the android support v17 leanback library to make my Android TV app be more inline with requirements. I have read that if the library is available to download I can import it as a module to make a local copy. Unfortunately I cannot find it on github and only see that google is providing the leanback sample instead.

What options do I have here? Is there another way I can bring the code local and make changes? The version I am using is leanback-v17-23.1.1

Thanks!


Solution

  • AOSP code is only updated on major platform releases (i.e., the release of API 23). You'll need to go to <android-sdk>/extras/android/m2repository/ to get the latest code for any release besides the 23.0.0 release.

    Look for the sources.jar file located in the leanback-v17 directory (specifically <android-sdk>/extras/android/m2repository/com/android/support/leanback-v17/23.2.1/leanback-v17-23.2.1-sources.jar) and open it with any program that opens zip files.