Commit graph

1084 commits

Author SHA1 Message Date
Wei Wang
2cf22ea5b3 Remove bg group usage
Given the current suspects that the bg throttling may cause extra longer
runnable in P21, remove its usage.

Bug: 208895940
Test: book and check cfs group
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: If7f20646e944eab8d42e6698e08069b608a0ea7a
2021-12-13 22:45:55 +00:00
Stephane Lee
fb6a6e6cbe Ensure aacr_state is writable for google battery
Bug: 205900652
Test: Ensure that there are no permissions denied errors for
google_battery

Change-Id: Icec73159f3686d37fcf91971772ec85d102b92fe
2021-12-11 01:29:57 +00:00
Meng Wang
ab270a8cdc Revert "pregrant coarse and background location permission to scone"
Revert "pregrant coarse and background location permission to scone"

Revert "pregrant coarse and background location permission to scone"

Revert submission 15820535-cherrypick-repregrantLocationToScone-5hvcs25t6g

Reason for revert: Unintended location usage issue not fixed.
Reverted Changes:
I1c2209112:pregrant coarse and background location permission...
I1b9370bdc:pregrant coarse and background location permission...
I0fbb20b3e:pregrant coarse and background location permission...
I2d4681b9a:pregrant coarse and background location permission...

Bug: 210152490
Change-Id: I8f4efa77b20656497999c3afaf4cb7e09081ed8d
2021-12-10 21:30:01 +00:00
Edwin Tung
09409af2d8 gps: enable GNSS PPS feature
Bug: 175086879
Test: Gnss measurement elapsedrealtime work

Change-Id: I959587225dd86a3efa11ecfbdd2b57374f09eef8
2021-12-10 05:51:51 +00:00
Edwin Tung
187392eab8 [DO NOT MERGE] gps: update gps driver 129.20.23.522768
Fix power mode abnormally turned off by setPositionMode
Fix GPS crashing issue
Fix location lagging during driving
Auto switch constellation for on-chip mode

Bug: 207436894
Bug: 206074009
Bug: 204136420
Bug: 201591644
Verify test: 209775831

Test: atest VtsHalGnssTargetTest
atest CtsLocationGnssTestCases
atest GtsLocationTestCases
atest PtsChreTestRunner

Change-Id: I8562af321a6238009127345a591d8bb1f6197fc2
2021-12-10 05:51:39 +00: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
Jenny Ho
2ea166b43c init.gs101.rc: add persist data for ACA
Bug: 208962746
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: I2c67619112746fb589bbff5743fd41632b4f9cf2
2021-12-09 01:21:30 +00:00
Michael Ayoubi
c8e6a6fa0b Fix typo in SE_STATE_REQUEST intent action
Fix typo in SE_STATE_REQUEST intent action to match other
com.qorvo.uwb actions and permissions.

Bug: b/208435525
Test: Flash and verify on R4.
Change-Id: I818db033ee5f54df629a9abfaae2425028e351ee
2021-12-08 23:48:51 +00:00
Shinru Han
d8ce158324 gps: Update EnableOnChipStopNotification
Set EnableOnChipStopNotification=”2”.
Sends on-chip stop notification only when the Host request exists and on-chip request stops.

Bug: 208940846
Test: logging test for case #1, #3 and #4 in b/197196725#comment39

Change-Id: I8a244eb3a705f1cc2884e1a180cb8ad6ebd41ad7
2021-12-08 09:20:44 +00:00
joenchen
50f80d1be1 gs101: declare IDisplay to V4
Bug: 202567084
Test: build pass
Change-Id: I08485ead1c05e8e46611156c76ec4a1d760fbbb0
Merged-In: I08485ead1c05e8e46611156c76ec4a1d760fbbb0
2021-12-08 01:40:05 +00:00
joenchen
26f9f02fb5 init: change owners of sysfs nodes min_vrefresh and idle_delay_ms
init: change file owners of sysfs nodes min_vrefresh and
idle_delay_ms in order to grant permission for hwcomposer

Bug: 202567084
Test: use the following commands
adb shell "vndservice call Exynos.HWCService 1005 i32 0 i32 30"
adb shell "vndservice call Exynos.HWCService 1006 i32 0 i32 1000"

Change-Id: Ia072a9826402bdf23d2577b8dc7f82b5e4d903f6
Merged-In: Ia072a9826402bdf23d2577b8dc7f82b5e4d903f6
2021-12-08 01:40:05 +00:00
vincechiu
f924811f47 Camera: Add CAMERA_LAUNCH_EXTENDED mode
Use CAMERA_LAUNCH_EXTENDED to not limit max CPU frequency.
It improves launch time and buffer allocation latency especially for high memory pressure cases.

Bug: 208362912
Test: GCA
Change-Id: I85df14aaaad56232f6ffaef316adb0c6dde3e06f
2021-12-07 09:19:43 +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
Shinru Han
b35bb78536 gps: Correct ESW crash dump path
Bug: 207587485
Test: ESW crash dump can be found under data/vendor/gps/logs after
running command :
echo Lhe:write=0xFFFFFFFF,4 > /data/vendor/gps/LheConsole.toAsic

Change-Id: Icf3505a8d29e867f81eb513d25bf790085a2819f
2021-11-30 07:26:21 +00:00
Ricky Niu
48b3e5de64 usb: Add dm condition in NCM
Add vid/pid 04e8/6862 for dm condition in NCM

Test: The usb gadget functions work normally
Bug: 206565428
Signed-off-by: Ricky Niu <rickyniu@google.com>
Change-Id: I04fba9fc137848d7f1c97a288bb12d76a613badc
2021-11-26 08:22:03 +00:00
Edwin Tung
e5036ffd10 [DO NOT MERGE] gps: update gps driver 129.20.23.521367
Improve stopping conditions for urban driving
Fix GTS issues
Improve Spirent AGPS drive accuracy
Add PRs and PRRs log
Fix SUPL over WIFI issue
Integrate SatPvt URE fix
Fix SB Lab issue

Bug: 200942298
Bug: 204963837
Bug: 202366378
Bug: 202250827
Bug: 203615018
Bug: 205653853
Bug: 198384193

Sanity Test: 207330491
Test: build pass

Change-Id: If5720611a734d7d76780b22781e8650b779f27f4
2021-11-23 00:37:27 +00:00
David Chao
eaaf1911d1 Revert "Revert "powerhint: thermal: Support powerhint to change tmu control-temp""
This reverts commit e2da019e13.
Since the temperature getting struck at 10 degC b/192030129 has been fixed,
reenable dynamic Tj thresholds.

Bug: 202736847
Test: build and boot on device
Change-Id: I53c62595407ea156ee3aceef0d3723db46096b8f
2021-11-19 23:30:04 +00:00
George Lee
3cf3ce9386 bcl: Increase SMPL_WARN to 3.1V
To mitigate Synthetic load in brownout test, we need to increase
UVLO1 to 3.2V, UVLO2 to 3.0V, and SMPL_WARN to 3.1V.

Bug: 200943374
Test: Local Test
Signed-off-by: George Lee <geolee@google.com>
Change-Id: I182d55f3a898d6e9adc8d86747ae62541a1c8fab
2021-11-18 19:33:20 +00:00
Joe Huang
987378054f Modify gnss device.mk to support new projects
Copy default gps.xml to only specific projects under gs101 and maintain
new projects in their own folders.

Bug: 203745796

Test: Build test and check config

Change-Id: Ic0b6f8a6e41063f5c42573aea91650007963912b
2021-11-15 02:37:35 +00:00
Martin Liu
5bcfdac788 gs101: set swiotlb as noforce
As dma devices are 36bit bounded, we don't need SWIOTLB
bounce buffers. Set swiotlb=noforce to disable this and
make the minimum amount of memory allocation.

Bug: 205246642
Test: check total memory and io_tlb_nslabs
Signed-off-by: Martin Liu <liumartin@google.com>
Change-Id: If9f68b269f326f0f4b8e165593ec5dd4787fbb52
2021-11-11 00:07:28 +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
davidycchen
87c912336a dumpstate: dump touch HDM debug information
HDM debug information already expend to 64 bytes. Dump whole debug
information when bugreport is triggered.
Read HDM debug information twice to check if any status events keep
changing.

Bug: 174191180
Test: trigger bugreport and check the data.

Signed-off-by: davidycchen <davidycchen@google.com>
Change-Id: I9d2f9ed094f85dae303ba47e85a182adcd6954ac
2021-11-03 04:46:03 +00:00
Siddharth Kapoor
3eaed9b170 Add GPU Power-on hint for LAUNCH am: 0b13fa4150
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16091140

Change-Id: I5795ff285434da113542be86ebc77e4d9e84ba16
2021-11-02 05:03:27 +00:00
Siddharth Kapoor
0b13fa4150 Add GPU Power-on hint for LAUNCH
Bug: 201718421
Test: trace while App launch
Change-Id: I5f994cf87a1696f843a2419d52133ccc5951d23c
Signed-off-by: Siddharth Kapoor <ksiddharth@google.com>
2021-11-02 02:31:15 +00:00
George Lee
0a838b3284 bcl: disable SOFT_OCP_WARN HW divider
Bug: 201546866
Test: Local Test to verify readback of register
Signed-off-by: George Lee <geolee@google.com>
Change-Id: I4c303bc18d0a6bcc3b83a4cde9aca9b49e63daa7
2021-11-01 17:54:14 +00:00
Aaron Ding
aad20a2f04 Enable VABC OTA
Bug: 203437381
Change-Id: If9eb8a4b1cefb75cf3d310a27a52aa889b28d0b5
Signed-off-by: Aaron Ding <aaronding@google.com>
2021-10-28 18:45:34 +00:00
Victor Liu
4e79160e93 uwb: remove device name from gs101
Bug: 203746316
Change-Id: I0359a8d2047d39d61d68b32234bfeec5f3440236
Merged-In: I0359a8d2047d39d61d68b32234bfeec5f3440236
2021-10-28 06:29:35 +00:00
Siddharth Kapoor
57e119f053 Add GPU Power-on hint for LAUNCH
Bug: 201718421
Test: trace while App launch
Change-Id: I5f994cf87a1696f843a2419d52133ccc5951d23c
Signed-off-by: Siddharth Kapoor <ksiddharth@google.com>
2021-10-28 00:45:10 +00:00
Edwin Tung
28f628e17c [DO NOT MERGE] gps: update gps driver 129.20.23.518574
Report agnss position even no NLP location
Fix to delete RTO too when delete all aiding received
Add mutex to protect malloc/free
Fix for the bug of power mode logging in ONCHIP_NMEA
Reporting PLMN (MCC+MNC) of SIM and Network
Fix GPS outage when OnChip/Host switching
Fix LPPe UBP issue
Fix gpsd crash issue

Bug: 202366527
Bug: 199818363
Bug: 199048681
Bug: 201582435
Bug: 199114573
Bug: 197716902
Bug: 195383842
Bug: 200107911
Bug: 203068978

Sanity Test: 203854792
Test: build pass

Change-Id: I27f314a4b2b5a82e27186a170f10b1041b7d0650
2021-10-27 14:09:08 +00:00
shawnlin
0aa99d3b57 Remove resource overlays for system bar heights
With the new added APIs, we don't need to overlay status_bar_height that
contains cutout size and quick_qs_offset_height anymore.

Bug: 186604541
Test: make
Change-Id: I474e7272c3240bbc36ddbb43f565e0eaed96b29e
2021-10-27 05:12:16 +00:00
Rick Yiu
1b06962002 Configure dex2oat group settings
Also associate with its vendor group.

Bug: 201223712
Test: build pass
Change-Id: I86a2e2eb628d2f412079e9c8321809f48b1e4be3
2021-10-26 07:09:27 +00:00
Badhri Jagan Sridharan
a25b4d683b pixelstats: Filter "PRODUCT_TYPE" uevent for reporting VID/PID
gs101 has the kernel changes to report "PRODUCT_TYPE" upon plug-in.

Bug: 196104058
Test: adb shell cmd stats print-logs; adb logcat | grep 105011
Signed-off-by: Badhri Jagan Sridharan <badhri@google.com>
Change-Id: Ia61a3b2a693d4f2b630409dd786342743e330ef2
2021-10-26 00:29:14 +00:00
Victor Liu
8144b338f0 move uwb feature to system_ext am: 52317f994b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16088272

Change-Id: Ibdabb697d1e81d5380691e5422ee6e2ad49e7242
2021-10-20 15:49:49 +00:00
Michael Ayoubi
a7f4ef05b5 Add SE State Changed Intents in EuiccSupportPixel
Needed to emit SE_STATE_CHANGED from Thales updater code to clients when
eOS or applets are being updated. Current clients are GMSCore and UWB
Service.

Bug: 189881206
Bug: 183606657

Test: Confirm overlay worked and intents were received.

Change-Id: Ia1106d6fad20797e72c49cfc1f790289d0da0963
2021-10-20 00:32:55 +00:00
Victor Liu
193c85c4ef move uwb feature to system_ext
this prevents the gsi device from starting uwb

Bug: 203052451
Test: nearby-share on uwb device
Signed-off-by: Victor Liu <victorliu@google.com>
Change-Id: Iec21b82dfd79849b2d949f696e59d64f0487edad
2021-10-19 21:57:25 +00:00
Will McVicker
09f583f336 gs101: recovery: add wait for dwc3 device to probe
This patch adds a dependency on the dwc3 device probing before setting
the sys.usb.controller property. Without this, we have a race between
fastbootd starting and the dwc3 device probing. If fastbootd starts
before the dwc3 device probes, then the recovery init.rc will fail to
setup the USB gadget resulting in "fastboot devices" failing to detect
the device.

Bug: 202338035
Test: verify device is detected in fastbootd
Change-Id: I146451eae03f23dde915c00af3028681be41a8c1
(cherry picked from commit f31fad844a7b94ee7c6689afd0b563da00c29118)
2021-10-19 16:58:00 +00:00
Kyle Lin
f5817b68d7 init.gs101.rc: adjust ratio_ceil am: e574d5e7dd
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16074856

Change-Id: I608d4a4a8caa806569ff0b9f598c7c1c5481a815
2021-10-18 19:38:55 +00:00
Kyle Lin
a3c7bc302f init.gs101.rc: adjust ratio_ceil
Test: build , boot and CUJs.
Bug: 201052887
Change-Id: I94158c1f78f937ef93e4e2c31eabcd4d05798870
2021-10-18 19:24:03 +00:00
Wei Wang
0d2642fa60 Use sysbg group for system background jobs am: 4599c16628
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15995425

Change-Id: I3e0059ec5d491b157f460a8f311ba2fe47dc8ddd
2021-10-13 06:16:23 +00:00
Wei Wang
414066f103 Use sysbg group for system background jobs
Bug: 201428466
Test: Build and boot check system_server's sched group
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: I03396b661788de0a5963e29abfd95f609e9dc7ec
2021-10-12 13:50:57 -07:00
eddielan
01459cea67 fingerprint: Enable HIDL fingerprint status flag
Bug: 202485883
Test: Bulid Pass, getprop vendor.fp.status
Change-Id: I67d39a91c24e3d91a029422fd8860de6d74a8422
2021-10-12 02:58:16 +00:00
Edwin Tung
7e1adeaf82 [automerger skipped] [DO NOT MERGE] gps: update gps driver 129.20.23.516938 am: 7fd8cce123 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15993111

Change-Id: Ib247d37517279c4acae596483ece50383299da58
2021-10-08 15:14:29 +00:00
Edwin Tung
7d0d2634ef [DO NOT MERGE] gps: update gps driver 129.20.23.516938
Rescale accuracy confident to 67% for AGPS NI request
Fix velocity URE in SatellitePvt
Fix scd crash
Enhance log mechanism
Fix avc denied
Force 1 sec interval in emergency mode

Bug: 199581865
Bug: 200654813
Bug: 201514516
Bug: 197196725
Bug: 201382800
Bug: 201729040

Sanity Test: 202280989
Test: build pass

Change-Id: I425e3f05e9ffc51ffeaa3f4d3d17a92592097a23
2021-10-08 14:55:53 +00:00
Sayanna Chandula
611e6d7a25 Revert "powerhint: thermal: Support powerhint to change tmu control-temp" am: f319cfc346 am: 7829c88d25
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16009633

Change-Id: I31be22450d7f850a8f8ba274f6ba60c3a0a8a513
2021-10-08 05:27:29 +00:00
Sayanna Chandula
b4d3792d59 Revert "powerhint: thermal: Support powerhint to change tmu control-temp" am: f319cfc346
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16009633

Change-Id: I89c042150bc17229097cfae4a88b122f7f0b395d
2021-10-08 05:13:03 +00:00
Sayanna Chandula
e2da019e13 Revert "powerhint: thermal: Support powerhint to change tmu control-temp"
This reverts commit 7769380db2427d19bbcfad12af08818e75988068.
During debugging of b/192030129, it was observed that setting trip temp
followed by a suspend results in temperature getting struck at 10
degrees. Reverting powerhint change will disable dynamic setting of
trip temp and thus avoiding the 10 degree issue.

Bug: 192030129
Test: build and boot on device
Change-Id: I42ca12be23abf9c48fb2985f1506557d0fb93c1c
Signed-off-by: Sayanna Chandula <sayanna@google.com>
2021-10-07 21:58:17 +00:00
Wei Wang
5a3e0e98e9 Remove DISABLE_TA_BOOST completely am: 0f0f4f6d8a
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16007650

Change-Id: If46b121ad07401849082b2db6557dbe490813b12
2021-10-07 19:29:45 +00:00
Wei Wang
a89970daa6 Remove DISABLE_TA_BOOST completely
Bug: 199292504
Test: Build
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: Ibcdb9b5968268be9765654c691910dfe7ba549ac
2021-10-07 10:30:20 -07:00
eddielan
8f4c51d3b3 fingerprint: Add suez config
Bug: 187663434
Test: Build pass
Test: Check log on logcat
Change-Id: I42026d13dafcfd7d32e37a1e5edb5e7f327d562d
2021-10-07 03:43:01 +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