Commit Graph

86 Commits

Author SHA1 Message Date
Paul Crowley
5cb44010b2 Remove device-specific metadata policy that's now in platform.
Bug: 79781913
Test: compiles
Change-Id: Ie632d1a4c44f491415ae9bb2ceb1264f0cfa5096
2018-05-21 12:01:22 -07:00
Andrew Chant
4eb8b24b07 Change USB autosuspend delay to 7s by commandline.
b/71936484 has audio accessories failing to connect
when there's a transition to suspend when they're attempting
to enumerate.

Avoid this problem by increasing autosuspend delay
from the default 2s to 7s.

The longest I've seen a device take to enumerate after
vbus is ~3 seconds, this gives a 2x margin.

Test: booted on Walleye, saw no more messages:
[  472.412555] c0   5675 msm-dwc3 a800000.ssusb: DWC3 in low power mode
between device connection and enumeration.

Bug: 71936484
Change-Id: Ic655f2ce6dec429510cc7c00452da4d49f2392b0
2018-05-09 11:28:00 -07:00
Yifan Hong
fb257f8c76 Revert "health HAL: overrides healthd."
This reverts commit 6c41af4807.
This is a partial revert; CleanSpec.mk is not reverted.

Reason for revert: prevents boot with O-MR1 vendor + P system

Test: boots

Change-Id: Ib573f525da836f12201fd0f9793441a9fed31969
Fixes: 78550051
2018-04-25 14:18:57 -07:00
Yifan Hong
6c41af4807 health HAL: overrides healthd.
healthd should not be installed on the device

Test: lshal -i | grep IHealth/backup fails
Test: lshal debug android.hardware.health@2.0::IHealth/backup
      shows nothing
Test: vts_treble_vintf_test shows nothing about /backup
      instance

Bug: 77541952
Change-Id: I1479da3394ee7bb0f3fba8b6bcb4e12b50ed8190
2018-04-05 19:06:54 -07:00
Yifan Hong
0569fc6852 Specify DEVICE_FRAMEWORK_COMPAT_MATRIX
Test: builds (check vintf metadata)
Bug: 65028233

Change-Id: I6a0b6b7377a511be5a35a013712fd28795861b93
2018-03-23 17:00:27 -07:00
Petri Gynther
e176b1e9d1 Walleye/Taimen: switch to QCOM BT HAL
The flag definition:
BOARD_USES_SDM845_BLUETOOTH_HAL := true

adds SDM845 Bluetooth components to the build:
vendor/qcom/sdm845/proprietary/bluetooth/hidl_transport/Android.mk
vendor/qcom/sdm845/proprietary/bt/hci_qcomm_init/Android.mk

and removes MSM8998 Bluetooth components from the build:
vendor/qcom/msm8998/prebuilts/grease/target/product/msm8998/Android.mk
vendor/qcom/msm8998/proprietary/proprietary/bt/hci_qcomm_init/Android.mk

Effectively, Walleye/Taimen switch to the same QCOM BT HAL as B1/C1.

Bug: 73968979
Test: Manual build and test with BT A2DP headphones

(cherry picked from commit 7c2dc1679d)

Change-Id: I4d6444932a807e573f6e8d88c6ad4ba4de8f277a
2018-03-09 13:07:02 -08:00
Ajay Nambi
87b0264022 Move AtFwd hal from device to framework manifest.
AtFwd hal is implemented as an android service and
it stars from system partition, that is, it's not
a traditional vendor hal and hence it should be
declared in the framework manifest and not in the
device manifest.
This commit introduces new device specific framework
manifest (framework_manifest.xml) and moves AtFwd hal
from device to framework manifest.

Bug: 68662838
Test: vts_treble_vintf_test atcmdfwd service is served

Change-Id: I9df05206fbe067ddf19a96fc52aba6b2cc922172
(cherry picked from commit b2895ddbcf1cc0b8986b4a80a43a3f0b6eb9fd66)
2018-02-16 23:59:40 +00:00
Nicolas Geoffray
7108ed5b85 Remove copy/pasta code around DEX_PREOPT.
Test: m
Change-Id: I4300eb093ece3293071b81a7f908fa181fbdaacd
2018-01-17 11:23:33 +00:00
Chenjie Luo
d2afaced27 Revert "Use TARGET_EASEL_VARIANT := amber for Pixel 2017"
This reverts commit 2426e17acb.

Reason for revert: moved to vendor

Change-Id: I0971b89ad22599f01b3406fe4641bea9d2f721f5
2017-12-28 18:58:59 +00:00
Chenjie Luo
2426e17acb Use TARGET_EASEL_VARIANT := amber for Pixel 2017
Bug: 70639754
Test: Build pass
Change-Id: Ie2127b936318acd516deba975b1b37a45d4b1190
2017-12-27 10:01:25 -08:00
Isaac Chen
b74b44f09e Set TARGET_2ND_ARCH_VARIANT to armv8-a
Taimen and Walleye are armv8 devices. Setting TARGET_2ND_ARCH_VARIANT
to armv8-a, instead of armv7-a-neon, can silence the related warning
during build.

Bug: 68012286
Test: lunch aosp_taimen; make -j
      lunch aosp_walleye; make -j

Change-Id: I9c81e614a7f103cd93c9c2d915d53577e8d19d2d
Merged-In: I9c81e614a7f103cd93c9c2d915d53577e8d19d2d
(cherry picked from commit 2195c105e5)
2017-12-23 11:43:12 +00:00
Jiyong Park
53590fd551 Revert "Disable VNDK runtime enforcement temporarily"
VNDK is enforced at runtime for wahoo.
This reverts commit dfcb2806f2.

Bug: 37192038
Test: wahoo boots to the UI
Test: basic functionalities work (camera, camcorder - including slow-mo,
wifi, bt, youtube, call, message)
Test: No regression on VTS and CTS (http://b/64817148)
2017-08-22 13:56:29 +09:00
Jiyong Park
dfcb2806f2 Disable VNDK runtime enforcement temporarily
Bug: 37192038
Test: /system/etc/ld.config.txt is without the [vendor] section.
Test: build and boot
Change-Id: I1432df091f9e5f8539a18c4c93f5d5cc459f3ef9
2017-08-22 13:16:13 +09:00
Wei Wang
0866dda0f8 Merge "Skip RAID autodetect" into oc-mr1-dev 2017-08-19 01:43:31 +00:00
Wei Wang
e4205e7558 Skip RAID autodetect
Bug: 64848151
Test: Boot
Change-Id: Ic174b3c07ac71f94f08d13507805ddb02fde0f28
2017-08-18 15:02:33 -07:00
Steven Moreland
3ad11b9d1f Enable BOARD_VNDK_VERSION=current.
Test: boots to UI, camera (incl video and slow motion)
Test: YouTube works, wifi works
Bug: 37342627
(cherry picked from commit 374c6b66fa)
Change-Id: I9ab52c1002733c6757614dfd888167742ddb0127
2017-08-15 16:27:46 +00:00
Naveen Kalla
3f15848b9e Merge "Add selinux domain for verizon OBDM app" into oc-dr1-dev
am: 2a1b7561d9

Change-Id: I7a7e17f7bb1f47359ae9e48a7636ba0c5cea27c8
2017-08-10 21:51:43 +00:00
Naveen Kalla
cdddc5171c Add selinux domain for verizon OBDM app
Bug: 64546277
Test: Build and carrier testing
Change-Id: Ia2a996e6e726765b7452ee369f770acf295430c5
2017-08-10 16:20:45 +00:00
Fabrizio Basso
f2977020ec Switch to Easel build.
BUG: 36403152.

Merged-Id: Ic76aef8b6d966f130c7154c08b8b52f7d1dbc577
Change-Id: Ic76aef8b6d966f130c7154c08b8b52f7d1dbc577
2017-08-02 17:56:15 -07:00
Fabrizio Basso
f865e16939 Switch to Easel build.
BUG: 36403152.
Change-Id: Ic76aef8b6d966f130c7154c08b8b52f7d1dbc577
2017-08-02 09:40:19 -07:00
Wei Wang
d621cbbb07 Merge "init.hardware.rc: disable bus-dcvs during boot" into oc-dr1-dev
am: 64e0268253

Change-Id: I4227453b5b234febe7b20c3cec71943b1ddd921e
2017-07-22 08:19:26 +00:00
TreeHugger Robot
64e0268253 Merge "init.hardware.rc: disable bus-dcvs during boot" into oc-dr1-dev 2017-07-22 08:14:36 +00:00
Wei Wang
1dcf62a310 init.hardware.rc: disable bus-dcvs during boot
This CL will save 100ms towards system_server_ready and 200ms towards
BootComplete,  and also reduces the fluctuation per experiment.

- Enable powersaving in charger mode
- Enable bus-dcvs in boot_complete but not during boot
- Start perfd after init.power.sh completes
- Enable powerhint after perfd is started

Before
starting_zygote               : 3.4446  0.24937
nonencrypted                  : 3.678   0.23805
SystemServer_start            : 4.8719  0.25874
SystemUi_start                : 6.3992  0.36695
system_server_ready           : 6.7353  0.34765
BootAnimStopRequest           : 7.5966  0.3806
BootAnimEnd                   : 9.5259  0.399
BootComplete                  : 9.6221  0.42225

After:
starting_zygote               : 3.4261  0.22712
nonencrypted                  : 3.665   0.22334
SystemServer_start            : 4.8406  0.23445
SystemUi_start                : 6.2765  0.23754
system_server_ready           : 6.6392  0.23679
BootAnimStopRequest           : 7.7449  0.25752
BootAnimEnd                   : 9.2631  0.43299
BootComplete                  : 9.409   0.44021

Bug: 63644084
Test: 10 boot with packages/services/Car/tools/bootanalyze/bootanalyze.py
Change-Id: I975974dedea0cce23f74f15d842e7308e9797868
2017-07-21 22:23:54 -07:00
Siqi Lin
0c64a4f1ab Merge changes Id97d7cdf,I8743a2bb into oc-dr1-dev
am: fc754502a7

Change-Id: I9d7efde780cebdd7b90a6d93bbb5836dd3cd139e
2017-07-20 22:44:18 +00:00
Siqi Lin
14983536bf Remove no_console_suspend=1 from kernel command line
console_suspend defaults to Y in the kernel and we want
to control it in an init script where we set
console_suspend = Y if serial console is enabled and
console_suspend = N if serial console is disabled.

Bug: 63857173
Test: boot with serial console enabled / disabled
Change-Id: I8743a2bbda0d09596d46b9376c901e854677a0e5
2017-07-20 13:05:21 -07:00
Vineeta Srivastava
630e74c606 Merge "Remove USE_SENSOR_MULTI_HAL for wahoo." into oc-dr1-dev am: 121ad8516c
am: 0e73a3a329

Change-Id: I65512fd3ea8e6aff0c0e9c3727c35607e334c33b
2017-07-13 04:41:19 +00:00
Vineeta Srivastava
abe32c07d6 Remove USE_SENSOR_MULTI_HAL for wahoo.
Bug: 62973052
Test: verified on a device
Change-Id: Ib0780be3916b97e11278118f6231dc1aa9323495
2017-07-12 18:13:30 -07:00
Xin Li
79ca13fe71 Enable building easel libraries.
Bug: 36403152
Test: build
Change-Id: I23320a12ca3fe5442624b1ca55dc1bd7bd0605a4
2017-07-07 10:19:41 -07:00
Elliott Hughes
3c5d93de61 Remove obsolete ENABLE_CPUSETS.
Bug: N/A
Test: builds
Change-Id: I050189fe9ce2b4ee04e1e2fd5d3165c122296280
2017-06-27 13:28:45 -07:00
Vishwath Mohan
690f2543c7 Increase the size of the userdata partition.
This CL increases the size of the user-data partition, roughly
doubling the 10GB that it's currently set to and bringing it in line
with the size that's set for Angler. This gives ASAN builds (which
load sanitized libraries into userdata) more space to work with.

Bug: 62911335
Test: Userdata size is larger.
Change-Id: If34d74263f9715665621a4f1572ee430a5f74553
2017-06-23 15:35:59 +00:00
Vishwath Mohan
1a1e0b2402 Increase the size of the userdata partition.
This CL increases the size of the user-data partition, roughly
doubling the 10GB that it's currently set to and bringing it in line
with the size that's set for Angler. This gives ASAN builds (which
load sanitized libraries into userdata) more space to work with.

Bug: 62911335
Test: Userdata size is larger.
Change-Id: If34d74263f9715665621a4f1572ee430a5f74553
2017-06-23 08:31:57 -07:00
Patrick Tjin
c77349a45e Move system/vendor partition sizes to wahoo
Bug: 62445676
Test: OTA
Change-Id: I1d83190c7e5a5a237e5d9991505cfbdfa9ab11d5
2017-06-19 15:00:51 -07:00
Chia-I Wu
0e086ad976 Copy vsync phase offsets from marlin
2ms/6ms is a better starting value than 1ms/1ms.

Bug: 62039896
Test: boots
Change-Id: I189d34d4204854980044546aa5c45498b979e2f9
(cherry picked from commit 14467ef106)
2017-06-08 19:12:07 +00:00
Wei Wang
e9bed2b908 Use mke2fs to create ext4 images
Set TARGET_USES_MKE2FS := true to use new EXT4 tool chain

Bug: 62421233
Test: walleye boots with new parition
Change-Id: Id6e5c68b2d7854e5330ad87443b974361a4bff9d
2017-06-07 14:06:47 -07:00
Siyuan Zhou
365ebdfa91 Merge "Modified boardconfig to have different offset for kasan kernel." 2017-06-05 20:51:39 +00:00
Siyuan Zhou
745d38a07e Modified boardconfig to have different offset for kasan kernel.
Change-Id: I5590b4cc2a135cd2c130bf647df5388aaf791311
2017-06-05 11:05:50 -07:00
Dan Cashman
051bcb3713 Add BOARD_PLAT_[PUBLIC|PRIVATE]_SEPOLICY_DIR
Move vendor policy to vendor and add a place for system extensions.
Also add such an extension: a labeling of the qti.ims.ext service.

Bug: 38151691
Bug: 62041272
Test: Policy binary identical before and after, except plat_service_contexts
has new service added.
Change-Id: Ie4e8527649787dcf2391b326daa80cf1c9bd9d2f
2017-06-02 13:45:16 -07:00
Etan Cohen
2a30014ecc [AWARE] Enable Wi-Fi Aware feature support
Enable Wi-Fi Aware feature support and system service.

Bug: 37674519
Test: unit tests, integration test suite
This reverts commit 7cef570f79.

Change-Id: I045ad95fac178cbdda3c0343fde7c6c76bcd1ffc
2017-05-31 08:56:33 -07:00
Yueyao Zhu
2ca922e51b Add dtbo partition information
- M/W/T have the same dtbo partition size of 8MB.
 - register dtbo.img as being part of the A/B OTA

Bug: 32969430
Change-Id: I1c8fef131f96d7c842e231560a9be59f86cd444f
Signed-off-by: Yueyao Zhu <yueyao@google.com>
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2017-05-23 14:09:13 -07:00
Christopher Ferris
f1cf814639 Change to cortex-a73 for target arch.
Bug: 37647380

Test: Did a checkbuild for a walleye target.
Test: Ran bionic unit tests, ran art target tests on walleye.
Change-Id: I301b4995b232ab3a3521cc14dbcf803468197685
2017-05-15 14:44:46 -07:00
Isaac Chen
b635787205 Move configuration files to vendor for build split
The following configuration files need to reside in vendor
partition to work with generic AOSP system image.

Move uevent.*.rc to /vendor
Move fstab.* to /vendor/etc
Move init.*.rc and init.wahoo.usb.rc to /vendor/etc/init.

Also the following two make file variables need to be set:
  - BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true
  - PRODUCT_ENFORCE_RRO_TARGETS := framework-res

Change path (to /vendor/bin) for init.*.sh, and add
path (to /vendor/etc) for fstab.* in init.hardware.rc.

Bug: 37927875
Test: These files are under /vendor instead of / or /system,
paths (in rc files) are changed to vendor accordingly,
and the resulted system/vendor images work on the device.

Change-Id: I64c8a899ab1c6837d51853e289160e35910b5b9a
2017-05-12 11:16:45 +08:00
TreeHugger Robot
0740b8cb91 Merge "Add device compatibility matrix." 2017-05-10 19:54:57 +00:00
Yifan Hong
ffe4e0f348 Add device compatibility matrix.
Test: device boots
Bug: 37954458
Change-Id: I437a4506c17908e3107641bf6f1f0b25e4b17248
2017-05-09 15:29:38 -07:00
Thierry Strudel
36d09bf13f move fstab and BOARD_AVB_ENABLE to wahoo
Change-Id: I057403bb22241cc756f714019f4c2d2efeb4cd3e
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2017-05-09 12:20:01 -07:00
Paul Lawrence
ee620e7882 Enable metadata encryption
Bug: 26778031
Test: Boots, reboots, sector 0 of userdata encrypted
Change-Id: I741f177056e1493fa5bf3e37353ca177e91d6b54
2017-05-02 08:18:49 -07:00
Guang Zhu
940ef509ca Merge "Revert "Enable metadata encryption"" 2017-04-29 00:01:34 +00:00
Guang Zhu
d4416d55a6 Revert "Enable metadata encryption"
Bug: 37792477

This reverts commit 0494fb84bc.

Change-Id: I119f97f1141ee69fa2902ef9931dde4b01492831
2017-04-28 23:59:15 +00:00
Nick Desaulniers
b219c5e86e Merge "Enable metadata encryption" 2017-04-28 21:29:30 +00:00
TreeHugger Robot
111304d628 Merge "Add userdata partition size for Wahoo." 2017-04-27 21:58:04 +00:00
Vishwath Mohan
ded7f88275 Add userdata partition size for Wahoo.
This CL define BOARD_USERDATAIMAGE_PARTITION_SIZE in the Wahoo
BoardConfig. This allows userdata.img to be generated, which is
necessary for sanitized target (like ASAN).

Bug: 37740897
Test: m -j40 userdataimage
Change-Id: Ib8972696a4fd1da3f792883bfd7f61431adc3da4
2017-04-27 09:03:14 -07:00