Commit graph

2 commits

Author SHA1 Message Date
Nelson Li
33473b8486 Convert p24_common/preloaded_nanoapps.json's .mk file to Android.bp.
p24_common includes 5 devices.

Since `preloaded_nanoapps.json` has different configurations for
`factory` products and `non-factory` products, `soong_namespace {}`
needs to be added to the converted Android.bp file to avoid misuse.

Additionally, due to ag/27080050, ag/27081111, ag/27095942, ag/27095945
ag/27095945, ag/27138057, ag/27138236, a common inheritance layer has
been added to all `non-factory` products. Therefore, setting different
`PRODUCT_SOONG_NAMESPACES` in the corresponding `<DEVICE>_generic.mk`
and `factory_<DEVICE>.mk` files will allow factory products and
non-factory products to use different preloaded_nanoapps.json.

Bug: 336452008
Test: 1. lunch <device_name>-trunk_staging-userdebug && \
         m -j preloaded_nanoapps.json
      2. Check ./out/target/product/<device_name>/.../preloaded_nanoapps.json
         It should be the <device_name> version.
      3. lunch factory_<device_name>-trunk_staging-userdebug && \
         m -j preloaded_nanoapps.json
      4. Check ./out/target/product/<device_name>/.../preloaded_nanoapps.json
         It should be the factory version.
Change-Id: I44832b1862da9c000a7baf20ea9d6e4874ed9c54
2024-04-30 07:52:12 +00:00
Nelson Li
631904912e Refactor product inheritance for ripcurrentpro products
Add an additional layer of inheritance for `aosp_ripcurrentpro`, and
`aosp_ripcurrentpro_fullmte`.

This change adds a common layer of inheritance for non-factory
products (ripcurrentpro_generic.mk). This makes it easier to configure
factory and non-factory products differently.

Non-factory `ripcurrentpro` products now inherits from
`device/google/caimito/ripcurrentpro_generic.mk` which inherit from
`device/google/caimito/device-ripcurrentpro.mk`.

aconfig flags: Flag: EXEMPT mechanical refactoring
build flags: Flag: EXEMPT mechanical refactoring

Bug: 336452008
Bug: 336706040
Test: lunch aosp_ripcurrentpro-trunk_staging-userdebug && m
      lunch aosp_ripcurrentpro_fullmte-trunk_staging-userdebug && m

Change-Id: I852a670a40846722274e2232e390d2ce4235bb6c
2024-04-26 07:21:19 +00:00