从服务器上更新代码后编译文件并打包

1.更新代码

git push origin 分支名

2.更新新的版本后,需要执行make update -api.
不然会出现如下错误:

You have tried to change the API from what has been previously approved.

To make these errors go away, you have two choices:
   1) You can add "@hide" javadoc comments to the methods, etc. listed in the
      errors above.

   2) You can update current.txt by executing the following command:
         make update-api

      To submit the revised current.txt to the main Android repository,
      you will need approval.

3.编译

make -j8

4.打包

   mkimage.sh  

5.载入机子
如果串口已经设置好:

    minicom
    reboot loader
    . download.sh

如果串口没有设置好:

cd out/host/linux-x86/bin
. adb shell
reboot loader

你可能感兴趣的:(ubuntu)