platform_build_soong/apex
Gurpreet Singh a76f874d55 Geneate AndroidManifest file if the apex_test module does not have one.
If the build file contains the apex_test module, but the apex_test
module does not contain the AndroindManifest file, then create the
AndroidManifest file.

In such case, the apexer tool is already generating an AndroidManifest
file. In order to handle the testOnly attribute for apex_test modules, a
--test_only flag is appended to the opt flags.

The apexer tool reads the opt flags and if the --test_only flag is
present then it generate the AndroidManifest file with testOnly
attribute.

Bug: 213310150
Test: m nothing && m test_com.android.sdkext
Test: manually checked the generation of AndroidManifest file in the
unsigned zip file mentioned in the description.
This command allows to read the attribute of the binary xml file -
aapt2 dump xmltree test_com.android.sdkext.apex.unsigned --file
AndroidManifest.xml

Verified the presence of testOnly flag in the output.

Change-Id: Ic47378428b2dba51d73e75d912546c2374f68d57
2022-02-09 16:06:15 +00:00
..
Android.bp Add partial bp2build support for APEX targets (second try). 2021-07-02 07:36:07 -04:00
androidmk.go Remove InstallBypassMake and ToMakePath 2021-12-15 15:22:53 -08:00
apex.go use_vndk_as_stable APEX shouldn't include VNDK lib 2022-02-04 13:07:11 +09:00
apex_singleton.go Merge "Update error message for new policy." am: bf49705608 am: 775f9e37c7 2021-08-04 10:20:47 +00:00
apex_test.go VNDK libs use "unique" APEX variants 2022-02-04 13:07:14 +09:00
bootclasspath_fragment_test.go Allow installing boot images outside of APEX for prebuilt. 2022-01-28 15:08:06 +00:00
builder.go Geneate AndroidManifest file if the apex_test module does not have one. 2022-02-09 16:06:15 +00:00
classpath_element_test.go Make sure that classpath fragment contents appear in make vars. 2021-08-16 12:00:25 +01:00
deapexer.go Consolidate the code to resolve a deapexer module dependency. 2021-09-23 17:19:55 +01:00
key.go Use one mutator for all bp2build conversion. 2021-12-14 09:37:45 -05:00
OWNERS Move allowed_deps.txt to packages/modules/common. 2021-03-17 15:26:16 +00:00
platform_bootclasspath_test.go Retry: Separate hidden API flags needed in sdk snapshots for S and T 2021-10-05 15:27:42 +01:00
prebuilt.go Allow installing boot images outside of APEX for prebuilt. 2022-01-28 15:08:06 +00:00
systemserver_classpath_fragment_test.go Add entries for STANDALONE_SYSTEMSERVER_JARS to systemserverclasspath.pb 2021-11-30 10:51:10 +00:00
TEST_MAPPING Add TEST_MAPPING for build/soong/apex 2019-08-07 17:33:24 +09:00
testing.go Java APIs used by Mainline modules. 2021-11-12 23:39:35 +00:00
vndk.go Remove the compat symlinks to ART binaries. 2021-12-14 17:56:26 +00:00
vndk_test.go Don't use incorrect version names like VER or BOARD even in tests 2021-04-05 09:32:06 +09:00