工具 Source Insight 查看Android源码

1. 安装 Source Insight

下载地址 : https://www.sourceinsight.com/download/;
*** : SI3US-361500-17409

2. 导入 Android 源码

Android 源码路径

Android的源码首先需要你从Android SDK Manager里面下载,然后在你的sdk中才看得到。

  • 如下图,找到对应的source for Android sdk项,选中然后下载:

工具 Source Insight 查看Android源码

  • 下载完成后,在你的sdk目录总就可以看得到了,比如我的是:E:\androidstudio\sdk\sources\android-23

工具 Source Insight 查看Android源码

导入 Android 源码 :

创建工程 : Project -> New Project, 输入一个工程名, 文件路径设置为 Android 源码路径, 这个一定要注意, 否则会拷贝整个 Android 源码, 几十个 G …

工具 Source Insight 查看Android源码

设置工程 : 默认即可;

工具 Source Insight 查看Android源码
导入源码 : 选择全部导入, 前提是电脑配置好, 如果电脑配置一般, 可以一个一个导入.

工具 Source Insight 查看Android源码

选择导入子目录 : 不仅导入目录, 子目录迭代导入.

工具 Source Insight 查看Android源码

扫描源码文件 :

工具 Source Insight 查看Android源码

扫描完成 : 只有 22万个文件.

工具 Source Insight 查看Android源码

开始导入 :

工具 Source Insight 查看Android源码

3. 查找阅读源码

查找阅读源码 :
查找 IBinder 源码 :

工具 Source Insight 查看Android源码

查找 init.rc 源码 : 工具 Source Insight 查看Android源码

Source Insight 参考快捷键 : http://www.cnblogs.com/mengdd/p/3506526.html.

相关文章:

  • 2022-12-23
  • 2021-08-16
  • 2022-12-23
  • 2021-12-21
  • 2022-01-05
  • 2022-12-23
  • 2021-12-31
  • 2021-12-21
猜你喜欢
  • 2021-12-02
  • 2021-04-30
  • 2021-11-06
  • 2021-05-06
  • 2022-02-05
  • 2021-12-21
  • 2021-05-03
相关资源
相似解决方案