發表文章

目前顯示的是 6月, 2019的文章

使用 Android Studio 開啟 AOSP

1. 編譯 idegen.jar make idegen 或 mmm development/tools/idegen/ 2. 產生 android.iml 和 android.ipr development/tools/idegen/idegen.sh 3. 在 android.iml 加入以下內容,避免載入不必要的模組(這邊只保留 frameworks 和 packages) <excludeFolder url="file://$MODULE_DIR$/.repo" /> <excludeFolder url="file://$MODULE_DIR$/art" /> <excludeFolder url="file://$MODULE_DIR$/bionic" /> <excludeFolder url="file://$MODULE_DIR$/bootable" /> <excludeFolder url="file://$MODULE_DIR$/build" /> <excludeFolder url="file://$MODULE_DIR$/compatibility" /> <excludeFolder url="file://$MODULE_DIR$/cts" /> <excludeFolder url="file://$MODULE_DIR$/dalvik" /> <excludeFolder url="file://$MODULE_DIR$/developers" /> <excludeFolder url="file://$MODULE_DIR$/development" /> <excludeFolder url="file://$MODULE_DIR$/device" /> <excludeFolder url="file://$MODULE_DIR$