由于AOSP 项目太大,我只修改了一个模块,比如设置. 那么只需要单独编译设置这个模块就可以了. 首先执行Source: source build/envsetup.sh 执行之后,就会有一些额外的命令可以使用: - croot: Changes directory to the top of the tree. - m: Makes from the top of the tree. - mm: Builds all of the modules in the current director
1. git the AlarmClock source code on AOSP 2. select 'import project' by android-studio & we will revise this code AlarmKlaxon.java L89 //mVibrator = new Vibrator(); mVibrator = (Vibrator)getSystemService(VIBRATOR_SERVICE); L20