windows环境下android源码阅读⽅法⼀:
⽅法⼆:本地阅读
⼀.获取源码
通过Git去官⽹下载Android源码。
步骤1:
git clone lesource/platform/frameworks/base.git
步骤2:
git base
ls -l
步骤3:linux怎么读文件内容
git tag //查看发⾏版本
img.blog.csdn/20131224194006609?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvZGVuZzB6aGFvdGFp/font/5a6L5L2T/fontsize/步骤4:
git checkout android-4.4_r1
这样我们就得到了Android4.4的源码。
但是我再下6.0.1的时候出现了两个⽂件名字忽略⼤⼩写相同的情况,就导致了有个⽂件丢失了,本地代码有修改,怎么也checkout 6.0的情况。于是我就去⽹上随便了个6.0的源码,。
⽹上⼤部分还是推荐使⽤Ubantu环境来看搞android和看源码的,资料也⽐较多,但是个⼈电脑并不是很想刷。
步骤5:
如果你只想下载部分源代码(例如Launcher)可以执⾏以下命令:
git clone lesource/platform/packages/apps/Launcher.git
img.blog.csdn/20131224200022109?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvZGVuZzB6aGFvdGFp/font/5a6L5L2T/fontsize/所有代码下载的列表
git clone android./kernel/common.git
git clone lesource/platform/external/webkit.git
git clone lesource/platform/development.git
git clone lesource/platform/system/bluetooth.git
git clone lesource/platform/external/freetype.git
git clone lesource/platform/system/vold.git
git clone lesource/platform/system/extras.git
git clone lesource/platform/system/core.git
git clone lesource/platform/frameworks/ex.git
git clone lesource/platform/system/media.git
git clone lesource/platform/frameworks/base.git
git clone lesource/platform/system/netd.git
git clone lesource/platform/packages/apps/AlarmClock.git
git clone lesource/platform/packages/apps/Nfc.git
git clone lesource/platform/system/wlan/ti.git
git clone lesource/platform/packages/providers/ImProvider.git
git clone lesource/platform/packages/apps/CertInstaller.git
git clone lesource/platform/packages/apps/Tag.git
git clone lesource/platform/packages/apps/Tag.git
git clone lesource/platform/packages/providers/TelephonyProvider.git
git clone lesource/platform/hardware/qcom/media.git
git clone lesource/platform/packages/providers/WebSearchProvider.git git clone lesource/platform/frameworks/opt/carddav.git
git clone lesource/toolchain/manifest.git
git clone lesource/toolchain/mpc.git
git clone lesource/toolchain/build.git
git clone lesource/device/sample.git
git clone lesource/toolchain/gmp.git
git clone lesource/toolchain/gold.git
git clone lesource/toolchain/gcc.git
git clone lesource/toolchain/mpfr.git
git clone lesource/toolchain/benchmark.git
git clone lesource/toolchain/gdb.git
git clone lesource/kernel/omap.git
git clone lesource/platform/packages/apps/Sync.git
git clone lesource/platform/prebuilt.git
git clone lesource/platform/dalvik.git
git clone
git clone lesource/platform/external/tinyxml.git
git clone lesource/platform/external/srec.git
git clone lesource/platform/external/neven.git
git clone lesource/platform/external/dhcpcd.git
git clone lesource/platform/external/skia.git
git clone lesource/platform/external/clearsilver.git
git clone lesource/platform/external/elfutils.git
git clone lesource/platform/hardware/ril.git
git clone lesource/platform/external/icu4c.git
git clone lesource/platform/external/netperf.git
git clone lesource/platform/external/sqlite.git
git clone lesource/platform/external/ping.git
git clone lesource/platform/external/googleclient.git
git clone lesource/platform/external/tremor.git
git clone lesource/platform/packages/apps/Settings.git
git clone lesource/platform/packages/providers/MediaProvider.git
git clone lesource/platform/packages/apps/Email.git
git clone lesource/platform/packages/providers/ContactsProvider.git
git clone lesource/platform/packages/apps/Contacts.git
git clone lesource/platform/packages/apps/Updater.git
git clone lesource/platform/packages/apps/Stk.git
git clone lesource/platform/packages/apps/Camera.git
git clone lesource/platform/packages/apps/Launcher.git
git clone lesource/platform/external/safe-iop.git
git clone lesource/platform/packages/providers/DrmProvider.git
git clone lesource/platform/external/bluetooth/bluez.git
git clone lesource/platform/packages/apps/Mms.git
git clone lesource/platform/packages/apps/Browser.git
git clone lesource/platform/packages/providers/CalendarProvider.git
git clone lesource/platform/packages/apps/Calculator.git
git clone lesource/platform/frameworks/le.android.git
git clone lesource/platform/packages/apps/AccountsAndSyncSettings.git git clone lesource/platform/packages/apps/HTMLViewer.git
git clone lesource/platform/packages/apps/GlobalSearch.git
git clone lesource/platform/packages/providers/ManagementProvider.git git clone lesource/platform/packages/apps/PackageInstaller.git
git clone lesource/platform/packages/providers/UserDictionaryProvider.git git clone lesource/platform/packages/apps/Provision.git
git clone lesource/platform/packages/apps/Gallery3D.git
git clone lesource/platform/frameworks/opt/emoji.git
git clone lesource/platform/packages/apps/Phone.git
git clone lesource/platform/packages/apps/Gallery.git
git clone lesource/platform/external/svox.git
git clone lesource/platform/system/vold.git
git clone lesource/platform/system/wlan/ti.git
git clone lesource/platform/packages/providers/ImProvider.git
git clone lesource/platform/packages/providers/GoogleSubscribedFeedsProvider.git
git clone lesource/platform/packages/apps/Launcher2.git
git clone lesource/platform/packages/providers/DownloadProvider.git
git clone lesource/platform/packages/apps/DeskClock.git
git clone lesource/platform/packages/apps/SoundRecorder.git
git clone lesource/platform/packages/apps/Protips.git
git clone lesource/platform/packages/apps/Stk.git
git clone lesource/platform/packages/apps/SpeechRecorder.git
git clone lesource/platform/packages/apps/Music.git
git clone lesource/platform/packages/apps/VoiceDialer.git
git clone lesource/platform/packages/providers/GoogleContactsProvider.git
git clone lesource/platform/packages/apps/IM.git
git clone lesource/platform/packages/apps/QuickSearchBox.git
git clone lesource/platform/packages/apps/GoogleSearch.git
git clone lesource/platform/packages/providers/ApplicationsProvider.git
git clone lesource/platform/frameworks/lelogin.git
⼆ 使⽤Source InSight 阅读 Android 源码
步骤2:导⼊ Android 源码
– 创建⼯程 : Project -> New Project, 输⼊⼀个⼯程名, ⽂件路径设置为 Android 源码路径, 这个⼀定要注意, 否则会拷贝整个 Android 源码。
– 设置⼯程 : 默认即可;
– 导⼊源码 : 选择全部导⼊, 前提是电脑配置好, 如果电脑配置⼀般, 可以⼀个⼀个导⼊.
– 选择导⼊⼦⽬录 : 不仅导⼊⽬录, ⼦⽬录迭代导⼊.
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论