change ERROR to WARNING and update replace package name tool

Change-Id: I19efa194dd454e0284533a8a42e537e5aabf8e81