Commit graph

593 commits

Author SHA1 Message Date
Etienne Ruffieux
0ba1150d9c Added new vendors for Bluetooth config migration am: 1307232779 am: 3059d2c5c5 am: 0f06739b7f
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/1956200

Change-Id: Ia9b527630b51453b176ac01dd1bf867ceac9e77b
2022-01-25 15:02:13 +00:00
Etienne Ruffieux
0f06739b7f Added new vendors for Bluetooth config migration am: 1307232779 am: 3059d2c5c5
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/1956200

Change-Id: Icd747ae44f7be923cef419a9d992212c3b5f3067
2022-01-25 14:44:55 +00:00
Etienne Ruffieux
1307232779 Added new vendors for Bluetooth config migration
Tag: #feature
Test: manual
Bug: 211570675
Change-Id: I4e0c211b4a176fc9161b079d2799bfefbaf4651f
2022-01-25 09:47:04 +00:00
Badhri Jagan Sridharan
3c97a6bb68 Migrate IUsb implementation to AIDL
This change migrates IUsb implementation to AIDL.
Also, IUsb and IUsbGadget now run in its own processes
to improve stability and isolation.

Bug: 200993386
Bug: 199357330
Change-Id: I02753af4a41916b77ce110f9531504bf8c6a4691
2022-01-22 01:20:15 +00:00
Sasha Smundak
968f0e8f10 Use soong_config_ macros to set Soong config variables. am: 454cb66a74 am: db090bdc82
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/1932105

Change-Id: I3d06f2ab16c451cfff5dbbc14283e9da7cdbce7f
2022-01-21 22:29:51 +00:00
Nicole Lee
920e1edc35 Separate modem logging configs for each project
As the modem logging configs have different group ID from
s5123 and s5300 platform, we need to use different config files
for each projects, move them from Pixel Logger to device
specific folders

Bug: 210784859
Change-Id: I1ec4386a31e175f8dfe8404cbfc70c221e51d71c
2022-01-21 10:56:51 +00:00
Cole Faust
db339d7ccb Revert "Use BOARD_HAS_DTLS instead of BOARD_WITHOUT_DTLS"
Revert "Remove BOARD_WITHOUT_DTLS"

Revert "Use BOARD_HAS_DTLS instead of BOARD_WITHOUT_DTLS"

Revert "Use BOARD_HAS_DTLS instead of BOARD_WITHOUT_DTLS"

Revert "Use BOARD_HAS_DTLS instead of BOARD_WITHOUT_DTLS"

Revert submission 16603844-colefaust_dauntless

Reason for revert: Broke other products that didn't set BOARD_WITHOUT_DTLS
Reverted Changes:
I3b4ab3ed2:Use BOARD_HAS_DTLS instead of BOARD_WITHOUT_DTLS
Iee95550f4:Use BOARD_HAS_DTLS instead of BOARD_WITHOUT_DTLS
I1b210d8ab:Make BOARD_WITHOUT_DTLS work without an override
I80bfec988:Use BOARD_HAS_DTLS instead of BOARD_WITHOUT_DTLS
I5f51cf010:Use BOARD_HAS_DTLS instead of BOARD_WITHOUT_DTLS
If6592aa18:Remove BOARD_WITHOUT_DTLS

Change-Id: Ibb34b7d0f36ffc1ddfa60fa8a23483891c89a78d
2022-01-14 02:43:01 +00:00
Pat Tjin
dae7d3ea02 Move tangor to 64-bit only
Bug: 213924541
Test: Build
Signed-off-by: Pat Tjin <pattjin@google.com>
Change-Id: I8e237ab1bf387608331375bee18dbf9b4912e5c1
2022-01-12 21:44:31 +00:00
Cole Faust
a3737c7b08 Use BOARD_HAS_DTLS instead of BOARD_WITHOUT_DTLS
Bug: 201700692
Test: Verified ninja files are unchanged
Change-Id: Iee95550f4cec940e1d2535ba44f89126c3b04d68
2022-01-12 20:14:30 +00:00
Ankit Goyal
97d1b5aff0 Revert^4 "Add gralloc switch"
35de89e675

Change-Id: Ib8047a3a62674b4abc8501d00dd7a1138eaae2ea
2022-01-12 18:55:58 +00:00
Terry Huang
eed4ae2a53 Revert "Revert "[s5123][device] Change vendor telephony code path""
This reverts commit 479f361d77.

Reason for revert: Restore 16405845-t-codebase-seperate

Change-Id: Id7f5e8b7e4470416da0002768c3960e554c0cf6c
2022-01-11 08:54:47 +00:00
Cyan Hsieh
35de89e675 Revert^3 "Add gralloc switch"
9f0eac1cb9

Bug: 213540102
Change-Id: I7f7fe674cfcc6641dcaa9ac54f164adeb8c9fce8
2022-01-10 07:44:50 +00:00
Ankit Goyal
9f0eac1cb9 Revert^2 "Add gralloc switch"
9d9f9a7a54

Change-Id: Ie0681839ff3c961b58668cca97100b23b24cd218
2022-01-07 19:57:37 +00:00
Shubham Dubey
9d9f9a7a54 Revert "Add gralloc switch"
Revert "Namespace gralloc"

Revert "Add gralloc switch"

Revert "Namespace gralloc"

Revert "Namespace gralloc"

Revert "Gralloc - Update build rules with namespaces"

Revert "Gralloc - Update build rules with namespaces"

Revert "Namespace gralloc"

Revert submission 16356594-pixel-gralloc-build

Reason for revert: Breaks build_test2 target on master

BUGID: b/213540102

Reverted Changes:
Ia998ca7f1:Namespace gralloc
I644f46ade:Add gralloc switch
I3689a27c2:Namespace gralloc
Iea1bf2ce2:Clone gralloc4 to GrallocHAL
I083cfa4f0:Namespace gralloc4
If8c40cd13:Namespace gralloc
I464236fea:Namespace gralloc
Icaac6d24f:Add gralloc switch
I92b7212b8:Gralloc - Update build rules with namespaces
Ic8741d4ba:Gralloc - Update build rules with namespaces
I507cbbc73:Namespace gralloc

Change-Id: If196d063b0b3a6514e8c4941e1daf7da8b2face2
2022-01-07 15:25:17 +00:00
Ankit Goyal
e9bb0f3128 Add gralloc switch
Fix: 207452098
Test: Boot to home
Change-Id: I644f46ade12e8226a1448119a25cb8ec2b06742f
2022-01-06 23:04:24 +00:00
Yifan Hong
a636457b5a Implement health AIDL HAL.
Test: VTS
Test: manual charger mode
Test: recovery
Bug: 213273090

Change-Id: Ie02d7bc1e1c6e39bbab22f008b7767c5de620a73
2022-01-06 23:01:30 +00:00
Darren Hsu
1c13f40625 powerstats: remove common data providers in specific directory
The common data providers will be moved to gs common directory. So
I removed them in this directory and used gs common library to get
the APIs.

Bug: 206576142
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: Ic4c1379af912fecb2e74c6c8303bf57f27e49246
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-01-05 07:32:47 +00:00
Adam Wright
479f361d77 Revert "[s5123][device] Change vendor telephony code path"
Revert "[s5300][google] Merge remote-tracking branch 'remotes/go..."

Revert "[s5123][shannon-rcs] Rename shannon_rcs_version"

Revert "[s5123][shannon-iwlan] Seperate source code by platform"

Revert "[s5123][google_device] Vendor telephony code assignment"

Revert "Add extra folders on vendor telephony codebase"

Revert "[modem-logging] Change vendor code folder path"

Revert "[s5300][device] Change vendor telephony code path"

Revert "[s5123][common] Seperate source code by platform"

Revert "[s5300][exynos-ril] Merge remote-tracking branch 'remote..."

Revert "Disable USE_LASSEN_OEMHOOK"

Revert "[s5300][shannon-iwlan] Merge remote-tracking branch 'rem..."

Revert "[zebu_zuma] Disable USE_LASSEN_OEMHOOK"

Revert "[s5123][packetrouter] Seperate source code by platform"

Revert "[s5300][common] Merge remote-tracking branch 'remotes/go..."

Revert "[s5300][shannon-ims] Merge remote-tracking branch 'remot..."

Revert submission 16405845-t-codebase-seperate

Reason for revert: Manifest changes have broken master builds
Reverted Changes:
I9bdd0eb06:[zebu_zuma] Disable USE_LASSEN_OEMHOOK
Ia811a3a06:[s5300][shannon-ims] Merge remote-tracking branch ...
I5b403ac84:[s5300][google] Merge remote-tracking branch 'remo...
I846bff687:[s5300][common] Merge remote-tracking branch 'remo...
I1f2977519:[s5300][packetrouter] Merge remote-tracking branch...
Ie9bf8d56a:[s5300][shannon-rcs] Merge remote-tracking branch ...
If09bed38e:[s5300][shannon-iwlan] Merge remote-tracking branc...
Ib05d1e76c:[s5300][exynos-ril] Merge remote-tracking branch '...
I678984712:Disable USE_LASSEN_OEMHOOK
I40370edcf:Add extra folders on vendor telephony codebase
I27bfb046d:[s5123][google_device] Vendor telephony code assig...
Ie41ecb085:[s5300][google_device] Vendor telephony code assig...
I666871fc7:[s5300][shannon-iwlan] Rename iwlan_version
Ibb5874125:[s5300][shannon-iwlan] Seperate source code by pla...
I93ef81871:[s5300][packetrouter] Seperate source code by plat...
Id664fdd7a:[s5123][shannon-rcs] Rename shannon_rcs_version
I62caeeb78:[s5123][shannon-iwlan] Rename iwlan_version
Ib72d6f2ff:[s5300][exynos-ril] Seperate source code by platfo...
Ibc7e7221d:[modem-logging] Change vendor code folder path
If822ecef2:[s5123][packetrouter] Seperate source code by plat...
Ia86317fd0:[s5123][common] Seperate source code by platform
I9e047c89e:[s5123][device] Change vendor telephony code path
I7b08ed2c3:[cat] Change vendor code folder path
I42a4a0e46:[s5123][shannon-iwlan] Seperate source code by pla...
I66360e4e1:[s5300][common] Seperate source code by platform
I58fc8ce33:[s5300][shannon-rcs] Rename shannon_rcs_version
Ibbcb2254a:[s5123][exynos-ril] Seperate source code by platfo...
I4a88242ce:[s5300][device] Change vendor telephony code path

Change-Id: I6df01ee6419c50a52f77fd97973b6b8a54897399
2022-01-04 13:35:29 +00:00
Terry Huang
f0e200b9f9 [s5123][device] Change vendor telephony code path
Add extra folder for different platforms

Bug: 199954706
Test: Build pass

Change-Id: I9e047c89e8ae4db5854ac00a1c7fcdc1319af19d
2022-01-04 01:36:35 +00:00
Roger Liao
5467fac081 Scale the flexibility for camera flash/autofocus settings
Let clients determine the configuration of camera flash/autofocus
features.

Bug: b/211840489
Change-Id: Id52529ea8985c02a8a93ebea0dbd2f619cf0cca9
2021-12-30 07:34:03 +00:00
Ocean Chen
c90627420b gs101: new Android.bp for non-modem projects
Separating fstab to avoid boottime regression

Bug: 210551190
Test: reboot and compare TotalBootTime

Change-Id: I2ad92d8640b2cc25383c5cf5755001f73a5f8861
2021-12-28 10:12:44 +00:00
Albert Wang
98b1199f80 device.mk: usb: remove redundant property
This property is found no used and causes a SELinux avc denial error,
so remove it accordingly.

auditd  : type=1107 audit(0.0:4): uid=0 auid=4294967295 ses=4294967295
subj=u:r:init:s0 msg='avc: denied { set } for
property=dev.usbsetting.embedded pid=1 uid=0 gid=0

Bug: 184103246
Test: forrest test build
Signed-off-by: Albert Wang <albertccwang@google.com>
Change-Id: I746fc21d8520b69312d90b9ae0ee447d297b4b35
2021-12-23 06:12:24 +00:00
Sasha Smundak
6c7267518e Use soong_config_ macros to set Soong config variables.
Bug: 198503843
Test: treehugger
Change-Id: If913e8165d8e1a51386c82cc57190890093ab3f2
2021-12-22 16:50:04 -08:00
Sasha Smundak
454cb66a74 Use soong_config_ macros to set Soong config variables.
Bug: 198503843
Test: treehugger
Change-Id: Ifd1aed04267d952a13cfd9b93933e500ba07dbad
Merged-In: Ifd1aed04267d952a13cfd9b93933e500ba07dbad
2021-12-22 14:33:16 -08:00
Cyan_Hsieh
c1227aa062 Include gs common in makefile build flow
Bug: 211723080
Change-Id: I8e1cefa396d494e73634da8620153c7a9a5693ee
2021-12-22 11:30:36 +00:00
Sasha Smundak
05823dde05 Use soong_config_ macros to set Soong config variables.
Bug: 198503843
Test: treehugger
Change-Id: Ifd1aed04267d952a13cfd9b93933e500ba07dbad
Merged-In: Ifd1aed04267d952a13cfd9b93933e500ba07dbad
2021-12-20 10:52:28 -08:00
Sasha Smundak
b44a662861 Use soong_config_ macros to set Soong config variables.
Bug: 198503843
Test: treehugger
Change-Id: Ifd1aed04267d952a13cfd9b93933e500ba07dbad
2021-12-16 18:03:47 +00:00
Adlai Holler
35230cc1af Remove redundant build property for reduceOpsTaskSplitting
This flag is true for everyone now. No need for it here. Change has no effect.

Bug: 183612348
Bug: 185920634
Change-Id: Ia264cfceb5cea4230a1c459fbd3c3f8c99a35bdf
(cherry picked from commit 8661e6ae13af04eb4aa299327134d7185b563e24)
2021-12-15 08:16:49 +00:00
matthuang
db2723b1b5 Don't copy unsupported sensor xml.
Use findstring to filter the factory target.

Bug: 209918222
Test: Verify the unsupported  xml files are not in the device.
Change-Id: I1383b18825ad06e88dedc9b4950bc5e5f676ecb8
2021-12-14 17:20:08 +00:00
Ocean Chen
c9cde396de gs101: create fstab.modem for project with modem
Non-modem project does't inlucde the fstab.modem
It can avoid long boot time from fs_mgr mount fail

Bug: 209694809
Test: reboot test

Change-Id: I3f1499f0c3767ba61895699e618856e41844b4bf
Signed-off-by: Ocean Chen <oceanchen@google.com>
2021-12-13 22:24:16 +00:00
Alex Hong
c2c3cc6240 Update PRODUCT_SHIPPING_API_LEVEL for gs101 devices
ueventd.rc now can only placed to /vendor/etc when
PRODUCT_SHIPPING_API_LEVEL equals to 32.
Now correct the destination path of ueventd.rc.

Test: adb shell getprop ro.product.first_api_level
Bug: 202921268
Change-Id: I1dcda5472278c03c546f3cf1eec26c92d138f2bb
Signed-off-by: Alex Hong <rurumihong@google.com>
2021-12-10 11:28:55 +08:00
Alex Hong
70ee94b740 [DO NOT MERGE] Update PRODUCT_SHIPPING_API_LEVEL for gs101 devices
ueventd.rc now can only placed to /vendor/etc when
PRODUCT_SHIPPING_API_LEVEL equals to 32.
Now correct the destination path of ueventd.rc.

Test: adb shell getprop ro.product.first_api_level
Bug: 202921268
Change-Id: I1dcda5472278c03c546f3cf1eec26c92d138f2bb
Signed-off-by: Alex Hong <rurumihong@google.com>
2021-12-09 17:33:12 +00:00
neoyu
8b443b6912 Remove cdma feature because not all gs101 based devices support it am: e6bb2caf47 am: 001cf7c36e
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16373218

Change-Id: I2c27550a1528767da8f4af4bd145a3f2312f97c4
2021-12-02 05:42:10 +00:00
neoyu
e6bb2caf47 Remove cdma feature because not all gs101 based devices support it
Bug: 207398695
Test: inspect build artifacts - result is expected
Change-Id: Ic8098e036d5e58ec1b1cd0fcd13ef64a4d12b668
2021-12-02 05:06:33 +00:00
Carter Hsu
5cc978ea98 audio: run audio hardware as 64bit
Bug: 205240941
Test: regression test is passed. (b/207432169)
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: Ieb6ff80aa61108e18fed65ad02f9754f59a2812c
2021-12-01 08:19:52 +00:00
Alice Kuo
29c5d3a71a Default disable LE audio policy in gs101
Bug: 205514628
Test: connect with the LE audio headset, play music
Change-Id: I711898a6b3443a29d354edd1b0424b9864dc4dd8
2021-11-29 00:21:06 +00:00
Jakub Pawlowski
cfda47b843 Use bluetooth audio policy with LE Audio on gs101
Bug: 205103681
Test: play music using LE Audio device
Change-Id: I3e2787251c6aa3d59a18e945fbb6b82b79485d81
2021-11-05 00:39:32 +00:00
Krzysztof Kosiński
1be9cf8a51 Add Lyric camera IQ tuning configuration.
Bug: 200221875
Test: build and check camera HAL APEX content for affected devices
Change-Id: Ic3b9c50fa63b656f7e5a42d2687f4e6775720e55
Merged-In: Ic3b9c50fa63b656f7e5a42d2687f4e6775720e55
2021-11-04 21:58:06 +00:00
Krzysztof Kosiński
c846e4cc66 Add Lyric camera IQ tuning configuration.
Bug: 200221875
Test: build and check camera HAL APEX content for affected devices
Change-Id: Ic3b9c50fa63b656f7e5a42d2687f4e6775720e55
2021-11-04 07:41:04 +00:00
Andrew Scull
4e18aa73ea Start the pKVM experiment
Reflect the pKVM experiment status from the property into the misc
partition so the bootloader can apply it next boot. This is only done on
builds that don't have pKVM enabled by default by pkvm_enabler.

Bug: 192819132
Test: set property and observe change in pKVM state at reboot
Change-Id: Ief85fa196f630867d0a0ced7fa4744f0241d41ea
2021-11-02 11:37:17 +00:00
David Brazdil
ae3c59fc0b Revert^2: pKVM: Include pvmfw and virt APEX in gs101 builds
Support for pKVM is being added to all gs101 builds starting with T,
disabled by default. So far, the userspace components have been included
only in special _pkvm builds. Include them unconditionally.

Also move BOARD_* variables specifying location and partition size of
pvmfw from vendor board config file here.

This adds 89MB to the size of the system image.

Bug: 192819132
Test: build a gs101 target, check /apex/com.android.virt exists
Change-Id: Ie46b0ad5f45bd4757570b72cb275d002df7b4616
2021-10-12 16:12:39 +00:00
David Brazdil
efcaa740ad Revert "pKVM: Include pvmfw and virt APEX in gs101 builds"
Revert "Include pvmfw variables in all gs101 builds"

Revert submission 16007088-pkvm-apex-gs101

Reason for revert: Fails on checkouts without vendor
Reverted Changes:
I238181780:Include pvmfw variables in all gs101 builds
Iefd7e1dc5:pKVM: Include pvmfw and virt APEX in gs101 builds

Bug: 202827425
Bug: 192819132
Change-Id: I08b0b2ac09f68847ad9bfabc39423de408fa6632
2021-10-12 13:21:18 +00:00
David Brazdil
625b010c8a pKVM: Include pvmfw and virt APEX in gs101 builds
Support for pKVM is being added to all gs101 builds starting with T,
disabled by default. So far, the userspace components have been included
only in special _pkvm builds. Include them unconditionally.

This adds 89MB to the size of the system image.

Bug: 192819132
Test: flash, check /apex/com.android.virt exists
Change-Id: Iefd7e1dc5e0c1f23ff66e8b282c94a3b85f7cc3e
2021-10-12 09:31:30 +00:00
David Brazdil
c439f780ee Enable hypervisor on pKVM builds
gs101 builds are getting experimental support for pKVM which can be
enabled either using fastboot or with misc_writer. For _pkvm builds we
want the device to automatically enable pKVM for testing. This patch
adds a new early-init service which checks for the presence of /dev/kvm
and if not found, writes to /misc and forces a reboot.

Bug: 192819132
Bug: 202484976
Test: flash a _pkvm build, observe double-reboot, check /dev/kvm exists
Change-Id: I3834b3e4c6118b3f6e4093ce52d5b94117eca29c
2021-10-08 11:20:14 +00:00
Pierre-Clément Tosi
b7662784fc gs101: Build pvmfw.img through the Android framework
Enable building pvmfw.img through PRODUCT_BUILD_PVMFW_IMAGE for products
that currently enable pKVM. Note that the board-provided
BOARD_PREBUILT_PVMFWIMAGE may still overshadow that flag.

Bug: 199831815
Test: m ${ANDROID_PRODUCT_OUT}/pvmfw.img
Change-Id: I47713648b795fd7e0f4c0d5a868a1abafea47588
2021-10-07 08:40:15 +00:00
Bill Lin
97f9208e1b Revert "Add support One-handed mode in B3" am: 61d08f043f am: 98a2ef085f
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15987855

Change-Id: I753eeea4487a647f0aa15154f5ee74b01beecf7d
2021-10-06 06:49:00 +00:00
Bill Lin
b5f66163aa Revert "Add support One-handed mode in B3"
Note : We should customize in specific device for B3, instead of
override gs101

This reverts commit d326059d567690c4b2ffbaaf3e5c3fd51e5a69aa.

Reason for revert: 201962520

Change-Id: I2be3f5bebf52ee4be4b7bf8c0ce50bb83380f8ee
2021-10-06 06:08:44 +00:00
Adam Shih
a588f06652 centralize wifi_ext config
Bug: 201599426
Test: boot with wifi_ext started
Change-Id: I5da62a4972dcabd66336ff3a6ca05c28c90ae8a0
2021-10-05 01:38:45 +00:00
Jason Chang
95b1d93b75 Add support One-handed mode in B3 am: d326059d56 am: 9af9305080
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15919524

Change-Id: I2b5eb2a12d23b97b374b84387aaaf914a9ead446
2021-09-29 07:29:47 +00:00
Jason Chang
6a1ecb3ed2 Add support One-handed mode in B3
Add support One-handed mode system properties flag to enable B3
project.

Bug: 200899897

Test: Build a new ROM build to manually test
Change-Id: Ia511f9a298f76589780f258daf657d36c666e206
2021-09-29 06:59:55 +00:00