Skip to content

Commit

Permalink
Set apex_available property
Browse files Browse the repository at this point in the history
The marked library(ies) were available to the APEXes via the
hand-written whitelist in build/soong/apex/apex.go. Trying to remove the
whitelist by adding apex_available property to the Android.bp of the
libraries.

Bug: 150999716
Test: m
Change-Id: I54db09314c7236a227f04281a439c1d5dc56ef2c

Former-commit-id: a2606921b2003991e8f58444c869a26e2426d92c
  • Loading branch information
jiyongp committed Apr 29, 2020
1 parent 1671c23 commit 76179cc
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libprocinfo/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ cc_library {
enabled: false,
},
},

apex_available: [
"//apex_available:platform",
"com.android.art.debug",
"com.android.art.release",
],
}

// Tests
Expand Down
6 changes: 6 additions & 0 deletions libunwindstack/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,12 @@ cc_library {
exclude_shared_libs: ["libdexfile_support"],
},
},

apex_available: [
"//apex_available:platform",
"com.android.art.debug",
"com.android.art.release",
],
}

// Static library without DEX support to avoid dependencies on the ART APEX.
Expand Down
6 changes: 6 additions & 0 deletions libziparchive/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,12 @@ cc_library {
enabled: true,
},
},

apex_available: [
"//apex_available:platform",
"com.android.art.debug",
"com.android.art.release",
],
}

// Tests.
Expand Down

0 comments on commit 76179cc

Please sign in to comment.