可以通过运行 make update-api 后,自动更新此文件,检查确认正确后,跟代码一起提交即可。
Note: 本周碰到这样case ,是因为修改了: M frameworks/base/core/java/android/provider/Contacts.java
Install: out/host/linux-x86/bin/apicheck
Checking API: checkapi-last
Checking API: checkapi-current
*******************************************************************************
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.xml by executing the following commands:
p4 edit frameworks/base/api/current.xml
make update-api
To check in the revised current.xml, you will need OWNERS approval.
******************************************************************************************
本文介绍在修改Android源码中API时的注意事项及流程。强调修改原有API后需更新current.xml文件,并通过make update-api命令自动完成更新。此外,还提到了提交变更时所需的审批流程。
1544

被折叠的 条评论
为什么被折叠?



