How to remake mtk code after adding java source code without rebuild all the project

How to remake mtk code after adding java source code without rebuild all the project

1. add your java marco in file javaoption.pm

2. ./mk javaoptgen

3. ./mk mm mediatek/frameworks/common

4. only need rebuild your module not the whole project

5. adb push the module to your mobile phone

6. adb push out/target/product/<project>/system/framework/mediatek-common.jar /system/framework

7. adb reboot (slow because of dexopt)