Commit graph

27 commits

Author SHA1 Message Date
Rajeev Kumar
591d2e93fb Get rid of inprocess network stack product packages from Go defaults.
Moved this to gms_base.mk

Bug: 241180471
Fixes: 241180471
Test: atest android.net.EthernetTetheringTest
Change-Id: I4e1b4b99a008a36230a125953a20248208c5c623
2022-08-09 09:07:59 +00:00
Jiyong Park
ad810b6dae Organize product vars for adding properties
Properties for <partition>/build.prop are now added via
PRODUCT_<PARTITION>_PROPERTIES.

PRODUCT_SYSTEM_PROPERTIES is added. PRODUCT_SYSTEM_DEFAULT_PROPERTIES
will be deprecated.

PRODUCT_VENDOR_PROPERTIES is added. PRODUCT_PROPERTY_OVERRIDES and
PRODUCT_DEFAULT_PROPERTY_OVERRIDES will be deprecated in favor of the new
variable.

For other partitions (odm, system_ext, product), there is no change.

Bug: 117892318
Test: m
Change-Id: I98f3b5d0da661b3ad75260a23754e655103b7a44
2020-06-09 22:52:56 +09:00
markchien
d70896c24a Build com.android.inprocess.tethering for Go variant
Bug: 155604224
Test: build
Change-Id: I1c5ac07e72068a617fa20797496dd022f279d88e
2020-05-07 20:07:42 +08:00
markchien
8c3ae62e12 [Tether16] Build Tethering package
Create com.android.tethering apex to pack Tethering.apk and
framework-tethering.jar together.
For go devices, tethering would run in system server process by
InProcessTethering.apk

Bug: 144320246
Test: -build, boot
Change-Id: Id2d68117e99173682908168e99ee28670bd71871
2019-12-18 20:49:46 +08:00
Lalit Maganti
37b5bf8aea build: enable Perfetto by default
Perfetto has been enabled by default on Pixel devices since P and has
proved to be stable and helped find performance issues on both P and Q.

On R+, iorapd has a dependency on Perfetto and thus we need to be enabled
by default.

Note that CTS tests have ensured that any downstream consumers of Android
have not accidentally broken Perfetto in old releases so this should be
safe to introduce and maintain going forward.

The two daemons of Perfetto (traced and traced_probes) are located on the
/system partition so for consistency, we have chosen to also enable the
build property on the system partition.

Googlers can see the below link for more context and detailed info.

Change-Id: I00fa7d4c97eda4d0ab83520d0f428bca83707d8a
Context (Googlers only): go/perfetto-by-default
Bug: 137963570
Test: checking product/build.prop in Treehugger builds
2019-12-16 15:15:29 +00:00
Roshan Pius
2cea7f9417 base_system.mk: Switch back to wifi-service.jar
Reason for revert: Wifi services no longer plan to be a separate
APK/process for mainline. Will instead become a jar loaded from Apex.

Bug: 144722612
Test: Device boots up & connects to wifi networks.
Change-Id: I80dd27aae3bb8de372c210d6d16adfcdd9458017
2019-11-25 20:56:54 -08:00
Chen Xu
002c77903c Create a cellbroadcast apex
create a single com.android.cellbroadcast apex to pack two apks
together: com.android.cellbroadcastreceiver and
com.android.cellbroadcastservice.

Bug: 135956699
Test: m com.android.cellbroadcast && adb install
com.android.cellbroadcast

Change-Id: I01dd26b12411e79a36be9a579f3ef14d1ee2544b
2019-11-11 21:05:42 -08:00
Chen Xu
cd196c8b64 Merge "prepare cellbroadcastreceiver to be a mainline module" 2019-09-10 16:34:45 +00:00
Vic Yang
373cc79d51 Merge "Set TARGET_VNDK_USE_CORE_VARIANT for Go devices" am: 63696709ba am: 2e9839d040 am: 9f9a710e24
am: c7935bb1a9

Change-Id: Ib64e12fda96bde4072e37dad4ec196f4cf1be3bd
2019-09-06 14:44:03 -07:00
Vic Yang
0408a6e182 Set TARGET_VNDK_USE_CORE_VARIANT for Go devices
Bug: 119423884
Test: Build a Go device, boot, and check ld.config.txt.
Change-Id: Id996b7b77991ee3db184c780f5822f231426f508
2019-09-05 11:09:25 -07:00
Chen Xu
612a4ac2f7 prepare cellbroadcastreceiver to be a mainline module
1. prepare two build targets one for updatable module another
for the legacy platform module with diferent config
2. a new cellbroadcastpermissionconfig module to expose
a signature permission.
3. by default, the build include the legacy version.
Later we will switch to the updatable module after more validation
e.g, usre data migration due to uid change
4. for go devies, always include the platform cellbroadcast to
to avoid creating new process

Bug: 135956699
Test: unit test and test app

Change-Id: I4d757e27b1e36fbf4890d08afbd45a141bccfc7c
2019-08-18 20:02:24 -07:00
Roshan Pius
804ca70cb7 product: Mainline wifi module
Move wifi services into a separate APK.

For now, the wifi stack will run inside system_server for all devices.

In the future, when the wifi stack becomes a mainline module:
For regular devices, the wifi stack will be loaded into
the network stack process - WifiStack.apk.
For GO (low memory) devices, the wifi stack will be always
loaded into system_server - InProcessWifiStack.apk.

Bug: 113174748
Change-Id: I1a272cbbb6a5284850177db41ec27a6f6035bb03
2019-08-13 09:57:16 -07:00
Tim Joines
84c0d23f75 Enabled traced on Android Go devices by default.
Memory impact of this change: ~1.5MB idle PSS.

Test: build low_ram enabled target
Bug: 123542916
Change-Id: I5afec17cd0b60cab9c6f336df8a09d3861473394
2019-06-07 21:22:31 +00:00
Remi NGUYEN VAN
63ab02ff68 Merge "Move NetworkStack in-process from lib to APK" am: c6bf520424 am: 0dda351bf0
am: 3ea98a1d22

Change-Id: I63d45ae55d5740b0438c3462cec4391387552b98
2019-03-11 19:12:35 -07:00
Remi NGUYEN VAN
e6fcb468d8 Move NetworkStack in-process from lib to APK
This makes the in-process configuration closer to the "standard" module
configuration, by using an APK in both cases, but making sure that
svelte builds use an in-process service to avoid the memory impact.

Bug: 127908503
Test: svelte build boots and has functional WiFi
Change-Id: I59f44df7c23a24429e9fe6be034260373e33a994
2019-03-08 17:42:59 +09:00
Kostya Kortchinsky
027324099f Add option to disable Scudo globally [Make]
This adds an option to turn off Scudo globally, and use it for Go.

Bug: 123228023
Test: verify that Scudo is disabled for a Go build, eg:
lunch marlin_svelte-eng && m -j, check that Scudo is not linked in
out/target/product/marlin/system/bin/mediaextractor
Test: verify that Scudo is enabled otherwise, eg:
lunch marlin-eng && m -j, check that Scudo is linked in
out/target/product/marlin/system/bin/mediaextractor

Change-Id: Idc82d581fade544a474e6f2ff0b54dd191ba0818
Merged-In: Idc82d581fade544a474e6f2ff0b54dd191ba0818
2019-02-04 12:35:04 -08:00
Kostya Kortchinsky
954832632d Add option to disable Scudo globally [Make]
This adds an option to turn off Scudo globally, and use it for Go.

Bug: 123228023
Test: verify that Scudo is disabled for a Go build, eg:
lunch marlin_svelte-eng && m -j, check that Scudo is not linked in
out/target/product/marlin/system/bin/mediaextractor
Test: verify that Scudo is enabled otherwise, eg:
lunch marlin-eng && m -j, check that Scudo is linked in
out/target/product/marlin/system/bin/mediaextractor

Change-Id: Idc82d581fade544a474e6f2ff0b54dd191ba0818
2019-02-04 15:43:18 +00:00
Ng Zhi An
4039feb041 Use go_handheld_core_hardware.xml for Go builds
Test: m, ! grep app_widgets $OUT/vendor/etc/permissions/handheld_core_hardware.xml
Change-Id: I5f1c43add007840356faad848a40b284e774883e
2019-01-24 16:46:33 -08:00
Remi NGUYEN VAN
41d01af00d Merge "Build NetworkStack package" am: 7264a0daab am: 6841fbda60
am: e28b62136b

Change-Id: Id0645332026bc5071d44ccbed121ff508a8293a2
2018-12-25 17:14:44 -08:00
Remi NGUYEN VAN
a329810971 Build NetworkStack package
For go devices, the network stack should not run in a separate process:
NetworkStackLib is used in-process instead.

Test: built & booted a go and non-go config
Bug: b/112869080

Change-Id: I18b0446a0c0d19519ce0ef344f185b54ad7d4ac6
2018-12-13 09:28:10 +09:00
Mathieu Chartier
2781e8ba56 Move ro.config.low_ram back to being a vendor property
(cherry-picked from commit 2fb62c8ea0)

Bug: 110517986
Test: make
Merged-In: I1394ac1220c290533fbe9641d10c5997362577fd
Change-Id: I1394ac1220c290533fbe9641d10c5997362577fd
2018-07-30 20:12:52 +00:00
Mathieu Chartier
732a4cc62f Move go default system properties into prop files
Test: manual
Bug: 110517986

Change-Id: I28f5c18bb9e70c755ece50c49c02434f825878dc
2018-06-26 18:26:21 +00:00
Yao Chen
b76f355f4e Add a system property to indicate if statsd should start
Bug: 79324611
Test: manually tested on marlin_svelte
Change-Id: Id0becd80bd58806b674ac60903bad7fd39d7594b
2018-06-06 17:22:57 -07:00
Suren Baghdasaryan
df1006484d Go: Add defaults for downgrade_pressure and kill_heaviest_task
Explicitly define ro.lmk.downgrade_pressure and ro.lmk.kill_heaviest_task
values for Go so that defaults can be safely changed if needed.

Change-Id: I86d9c7aa52c213c43a25b02844e054dc28a6e512
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2017-12-22 13:32:35 -08:00
Mathieu Chartier
99b2739a66 Add PRODUCT_MINIMIZE_JAVA_DEBUG_INFO to go_defaults_common
Strip the local variable table and the local variable type table to
reduce the size of the system image. This has no bearing on stack
traces, but will leave less information available via JDWP

Bug: 67374015
Test: make and flash
Change-Id: Ie592221b893f7fa7433fe10e8c08ff70b5de4e47
2017-10-24 14:57:08 -07:00
Andreas Gampe
6bb2743b8b Go: Disable libartd by default
Free up some space in userdebug to make consistent with user. Go
doesn't have enough resources, really, anyways.

Frees up about 9M.

Bug: 62087184
Test: lunch gobo-userdebug && m && ls $OUT/system/lib/libartd*
Change-Id: I109bbbc59b71de48ca63ba64142148a50fb0af55
2017-10-19 11:42:44 -07:00
Mathieu Chartier
7267676258 Split go_defaults into a 512 version and a normal version
Added go_defauls_common.mk for settings common to both 512 and other
Go devices. Added go_defaults_512 for 512MB RAM devices.

Bug: 67374015
Test: make, flash, look at properties
Change-Id: I160118e397a2f53d64df4a6d8e77aec3553fa401
2017-10-15 20:13:06 -07:00