在Android Studio中阅读Android系统源代码
【参考链接】
AndroidStudio查看Android5.x源码的步骤详解https://yq.aliyun.com/ziliao/139952
1.
cd android-2.3.3_r1/
mmm development/tools/idegen/
生成out/host/linux-x86/framework/idegen.jar文件
2.
sh ./development/tools/idegen/idegen.sh
会在源码根目录下生成Android Studio工程配置文件android.ipr
3.
在Android Studio中,File->Open->Existing,选择android.ipr,开始indexing
index完成以后会弹出Frameworksdetected的提示,点击Configure选择默认选项即可
然后就可以在Android Studio中阅读系统源代码了