我的目标是使用带有一些补丁的 android 4.0.3 为设备构建 CTS。
我准备如下环境。
带有命令 repo init + repo sync 的 android 源代码 4.0.3R1(分支 4.0.3r1.1)
我检查了 android 源代码,发现这里有一个 cts 目录。我使用 git branch android-cts-4.0.3_r3 切换到该分支
然后做cts
之后我收到的结果是 CTS 4.0_r1
我再次尝试了新的步骤 2:通过删除 android 源代码中的 cts 目录来创建 cts 源代码。然后 git clone cts 源代码,标签为 android-cts-4.0.3_r3
当我构建它时,我收到了这些失败。
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?