我的目标是使用带有一些补丁的android 4.0.3为设备构建CTS。
我准备如下的环境。
android源代码4.0.3R1,带命令repo init + repo sync(分支4.0.3r1.1)
我检查了android源代码,看到这里有一个cts目录。我使用git branch android-cts-4.0.3_r3切换到那个分支
然后制作cts
之后我收到的结果是CTS 4.0_r1
我再次尝试了新的第2步:通过android源代码中的delete cts目录创建cts源代码。然后使用标签android-cts-4.0.3_r3
git clone cts源代码当我构建它时,我会收到这些失败。
bison -d -o out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_y.cpp frameworks/base/tools/aidl/aidl_language_y.y
Lex: aidl <= frameworks/base/tools/aidl/aidl_language_l.l
frameworks/base/tools/aidl/aidl_language_l.l:54: warning, rule cannot be matched
logtags: out/target/common/obj/JAVA_LIBRARIES/services_intermediates/src/com/android/server/am/EventLogTags.java <= frameworks/base/services/java/com/android/server/am/EventLogTags.logtags
make: *** No rule to make target `com.replica.replicaisland', needed by `out/host/linux-x86/cts/all_cts_files_stamp'. Stop.
make: *** Waiting for unfinished jobs....
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
build/tools/signapk/SignApk.java:19: warning: sun.misc.BASE64Encoder is Sun proprietary API and may be removed in a future release
import sun.misc.BASE64Encoder;
Note: build/tools/signapk/SignApk.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
22 warnings
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
所以我的问题是如何获得正确的cts版本4.0.3_R3?