Is there a way to change a .bp file of an app in AOSP so that is only included in a certain build.
For example I want to include test apps only in userdebug apps?
Is there a way to change a .bp file of an app in AOSP so that is only included in a certain build.
For example I want to include test apps only in userdebug apps?
Copyright © 2021 Jogjafile Inc.
The right way to do it is not changing the Android.bp file, but change the device//.mk file to include the tests apps only in userdebug builds like this:
In Android.bp, you should build the main app and the test app separately, like this: