很多情況下,我們都需要去修改framework,如添加一些自己的類(lèi)等.一些情況下可能添加類(lèi)之后,我們并不需要做太多的工作這個(gè)類(lèi)已經(jīng)就build到Android.jar中了.但是有些時(shí)候,是需要去修改一些編譯的mk文件的.
比如當我們在/framework/base/下添加了一個(gè)/test的文件夾,里面有很多我們自己定義的類(lèi).如果想要把它build進(jìn)Android.jar,供其它類(lèi)使用的話(huà),我們還要去修改
/build/core/pathmap.mk
- #
- # A list of all source roots under frameworks/base, which will be
- # built into the android.jar.
- #
- # Note - "common" is included here, even though it is also built
- # into a static library (android-common) for unbundled use. This
- # is so common and the other framework libraries can have mutual
- # interdependencies.
- #
- FRAMEWORKS_BASE_SUBDIRS := /
- $(addsuffix /java, /
- core /
- graphics /
- location /
- media /
- opengl /
- sax /
- telephony /
- test /
- wifi /
- vpn /
- keystore /
- )