1

私のターゲットは、Android 4.0.3 といくつかのパッチを使用して、デバイス用の CTS をビルドすることです。

以下のような環境を用意します。

  1. コマンド repo init + repo sync を含む Android ソースコード 4.0.3R1 (ブランチ 4.0.3r1.1)

  2. Android ソース コードをチェックインすると、ここに cts ディレクトリが 1 つあります。git branch android-cts-4.0.3_r3 を使用してそのブランチに切り替えます

  3. 次に、ctsを作成します

その後受け取る結果は CTS 4.0_r1 です

新しいステップ 2 で再試行しました: Android ソース コードの 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 を正しく取得する方法ですか?

4

0 に答える 0