Commit graph

15 commits

Author SHA1 Message Date
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