Coverage in Android rust not covering modules

How can we include modules defined in using pub mod in the line coverage generated . It seems only file is covered while passing flags:[ "-Z instrument-coverage" ] in the Android.bp file

Modules shouldn't have any influence over debugging information. In the generated code it doesn't matter if something was pub or not.

Perhaps the functions you're trying to see were inlined? Try adding #[inline(never)] on functions.