summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build/apex/Android.bp11
-rwxr-xr-xbuild/apex/runtests.sh19
2 files changed, 3 insertions, 27 deletions
diff --git a/build/apex/Android.bp b/build/apex/Android.bp
index 9bf65512b3..aa199d3c92 100644
--- a/build/apex/Android.bp
+++ b/build/apex/Android.bp
@@ -85,15 +85,6 @@ libcore_native_shared_libs = [
"libopenjdk",
]
-// Java libraries
-libcore_target_java_libs = [
- "core-oj",
- "core-libart",
- "okhttp",
- "bouncycastle",
- "apache-xml",
-]
-
apex_key {
name: "com.android.runtime.key",
public_key: "com.android.runtime.avbpubkey",
@@ -117,7 +108,6 @@ apex {
name: "com.android.runtime.release",
compile_multilib: "both",
manifest: "manifest.json",
- java_libs: libcore_target_java_libs,
native_shared_libs: art_runtime_base_native_shared_libs
+ bionic_native_shared_libs
+ libcore_native_shared_libs,
@@ -147,7 +137,6 @@ apex {
name: "com.android.runtime.debug",
compile_multilib: "both",
manifest: "manifest.json",
- java_libs: libcore_target_java_libs,
native_shared_libs: art_runtime_base_native_shared_libs
+ art_runtime_debug_native_shared_libs
+ bionic_native_shared_libs
diff --git a/build/apex/runtests.sh b/build/apex/runtests.sh
index 83c42bcf9a..4c0e772ccd 100755
--- a/build/apex/runtests.sh
+++ b/build/apex/runtests.sh
@@ -144,10 +144,6 @@ function check_library {
|| fail_check "Cannot find library '$1' in mounted image"
}
-function check_java_library {
- [[ -x "$mount_point/javalib/$1" ]] || fail_check "Cannot find java library '$1' in mounted image"
-}
-
# Check contents of APEX payload located in `$mount_point`.
function check_release_contents {
# Check that the mounted image contains an APEX manifest.
@@ -193,15 +189,6 @@ function check_release_contents {
# ...
#
# ?
-
- # TODO: Enable for host
- if [ $1 != "com.android.runtime.host" ]; then
- check_java_library core-oj.jar
- check_java_library core-libart.jar
- check_java_library okhttp.jar
- check_java_library bouncycastle.jar
- check_java_library apache-xml.jar
- fi
}
# Check debug contents of APEX payload located in `$mount_point`.
@@ -299,7 +286,7 @@ maybe_list_apex_contents "$mount_point"
# Run tests on APEX package.
say "Checking APEX package $apex_module"
-check_release_contents "$apex_module"
+check_release_contents
# Clean up.
trap - EXIT
@@ -332,7 +319,7 @@ maybe_list_apex_contents "$mount_point"
# Run tests on APEX package.
say "Checking APEX package $apex_module"
-check_release_contents "$apex_module"
+check_release_contents
check_debug_contents
# Check for files pulled in from debug target-only oatdump.
check_binary oatdump
@@ -403,7 +390,7 @@ maybe_list_apex_contents "$mount_point"
# Run tests on APEX package.
say "Checking APEX package $apex_module"
-check_release_contents "$apex_module"
+check_release_contents
check_debug_contents
# Clean up.