summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rust/rust.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/rust/rust.go b/rust/rust.go
index f068b3d7b..46c8f250c 100644
--- a/rust/rust.go
+++ b/rust/rust.go
@@ -619,6 +619,10 @@ func (mod *Module) CoverageFiles() android.Paths {
}
func (mod *Module) installable(apexInfo android.ApexInfo) bool {
+ if !mod.EverInstallable() {
+ return false
+ }
+
// The apex variant is not installable because it is included in the APEX and won't appear
// in the system partition as a standalone file.
if !apexInfo.IsForPlatform() {