Commit graph

654 commits

Author SHA1 Message Date
Kai Shi
98ee53e52a Merge "Increase TCP wmem max size" 2022-01-27 20:08:59 +00:00
Santiago Seifert
1b83520026 Unpin updatable-media from memory on gs101
Bug: 214499288
Change-Id: Icb0ebe5a36e01941cc1318c95a7534c0f20ffa93
Test: Presubmit
2022-01-25 21:28:31 +00:00
Kai Shi
b877da7c69 Increase TCP wmem max size
Increase TCP wmem max size to allow high Tx throughput over wifi.

Bug: 213596972
Test: manual test to confirm TCP memory size is increased and wifi TCP throughput with default TCP window size can reach 700Mbps in HE80 mode.
Change-Id: I6058af03da756aaa63e89eddb674f5b054cecf33
2022-01-25 11:58:30 -08: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
Ocean Chen
71543928ef Pixelstats: add more UFS error count paths
The UFS resume flow also increase the reset count.
It makes the reset count cannot represent the real
error count. So we use other count instead of reset count

Bug: 199459367
Change-Id: I0249d806351a1037f7886368d4df1d22af4c0091
2022-01-13 17:17:49 +00: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
Sasha Smundak
aab103264d Simplify the check
Fixes: 198503238
Test: treehugger
Change-Id: Ia27a4413e42821310d1fe0bcad4cfc78595c6841
2021-12-01 08:59:00 -08:00
Will McVicker
04c94df116 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
2021-11-04 14:36:37 -07:00
Bowgo Tsai
e77021b4c4 Removing 'verity_update_state'
This is not needed in device-specific init.rc file, because it's
is superseded by commit I300265f4af9c2781d40537f391bda9eaf62c27ba.

Bug: 203720638
Test: presubmit
Change-Id: I9798f0fa868e453b62dcdd8d7b4ee7a94c7f148f
2021-11-03 15:11:42 +08:00
Jiyong Park
8df53b2407 Remove ndk_platform backend. Use the ndk backend.
The ndk_platform backend will soon be deprecated because the ndk backend
can serve the same purpose. This is to eliminate the confusion about
having two variants (ndk and ndk_platform) for the same ndk backend.

The prebuilt files had a reference to
android.hardware.gnss-V1-ndk_platform.so. Change it to
android.hardware.gnss-V1-ndk.so by diretly editing the DT_NEEDED entry.

Bug: 161456198
Test: m
Merged-In: I25ec19101c408cc29df38d127f284c7085fe1d1a
Change-Id: I25ec19101c408cc29df38d127f284c7085fe1d1a
(cherry picked from commit 0e4aa8b8a1a5184cdb8330aded181cd7f5fec256)
2021-10-26 14:58:39 +09:00
Jiyong Park
c77442bde5 Remove ndk_platform backend. Use the ndk backend.
The ndk_platform backend will soon be deprecated because the ndk backend
can serve the same purpose. This is to eliminate the confusion about
having two variants (ndk and ndk_platform) for the same ndk backend.

Bug: 161456198
Test: m
Merged-In: Iebc1c5d4c277e96cf7564d882aeecb084adc53ee
Change-Id: Iebc1c5d4c277e96cf7564d882aeecb084adc53ee
(cherry picked from commit 25368375b1759a13cacbfa1a9a183d4eee7381b2)
2021-10-26 14:58:15 +09:00
Edwin Tung
16e8a27f52 gps: update gps driver 129.20.23.513912
Fixed a bug of missing ref location in ME switching
Fixed to report velocity type correctly
Increased PGLOR,6,PWR nmea sentence buffer and GLL will print the error log if the sentence is longer than expected
Added a ring buffer for malloc/free debugging with dump
Fixed ESW patch download issue

Bug: 197716902
Bug: 197711819
Bug: 197620911
Bug: 196499748
Bug: 197916943

Sanity Test: 198605012
Test: build pass

Change-Id: I06e25376c194058404e5d65e463086d3d1e2f1d9
2021-09-02 21:02:27 +08:00
Edwin Tung
09ea2fd293 gps: update gps driver 129.20.23.512827
Set minimum interval 1000ms for CHRE request
Fix position gap in scheduling request
URA value should not be divided by sqrt of 2 regardless of position source
Enable SvPvt logic even the period is less than 1s
Fixed Native crash: Additional check before using gyro mean as VDR measurement.

Bug: 196499748
Bug: 196927451
Bug: 197141478
Bug: 196851941
Bug: 197061041

Sanity Test: 197583040
Test: build pass

Change-Id: I1409f75e50a7b8402c967957fa4148823d22caea
2021-08-25 09:08:11 +00:00
SongFerngWang
b296e9a28d Enable the Connectivity helper Settings UI
Bug: 190018497
Bug: 190017996
Test: build pass
Change-Id: I0970be731d37a25d73ee0cc7e5c147627567b4ed
2021-08-20 16:29:31 +00:00
AleX Pelosi
41fcd9e444 gs101: use CPU4 in charger mode
For charging efficiency certification swap CPU6 with CPU4 while in
off-mode charging.

Bug: 194146139
Signed-off-by: AleX Pelosi <apelosi@google.com>
Change-Id: Ib2bee00b952df65d60534342e20f5d331b839e4c
Merged-In: Ib2bee00b952df65d60534342e20f5d331b839e4c
2021-08-19 23:49:43 +00:00
Chris Fries
ad0409f917 Revert "device.mk: Freeze vendor security patch 2021-09-0x"
Undo this temp hack before launch.

Bug: 187105270
Change-Id: Ieb210d1c713aa4434748af8d6848574f5da7f798
2021-08-19 11:15:06 -05:00
Taehwan Kim
72cccf1d6f firmware: mfc: update release MFC F/W(21/08/13)
- Reverted the "Implemented so that H.264 decoder return
FEATURE_NOT_SUPPORTED error when content is 10-bit" feature

Bug: 196487829
Test: android.mediav2.cts.DecoderColorAspectsTest
Signed-off-by: Taehwan Kim <t_h.kim@samsung.com>
Change-Id: Iaffa77b07d341c973b12abf26250f8c12ce3ce5a
2021-08-18 21:27:09 +00:00
Chris Fries
6d42117462 device.mk: Freeze vendor security patch 2021-09-07
(stopship hack) Roll forward the SPL so that we can test
rollback cases in testing before launch.

Bug: 187105270
Change-Id: Ic0bdb7e3ece264aa42af1965421a485a8f16980b
2021-08-18 12:51:30 -05:00
George Lee
1fd62f31bf bcl: Put OCP_WARN level back to original level
Bug: 196833426
Test: Boot and confirm proper level set
Signed-off-by: George Lee <geolee@google.com>
Change-Id: I3f46c74f35925ee0b31ec719b93d007e93a5a18f
2021-08-17 16:21:12 +00:00
Chris Fries
44b49fdcab device.mk: Freeze vendor security patch 2021-09-06
(stopship hack) Roll forward the SPL so that we can test
rollback cases in testing before launch.

    Bug: 187105270

Change-Id: Ia6e75f0b6699f7967d4b92ef973f5ca6af1b5e6a
2021-08-16 15:29:32 -05:00
Peter Liu
cbb6ccd278 remove camera prefer idle for streaming low
Currently, the streaming low hint is not used yet.
but we plan to use it with 30fps mode or at the modes that can remove
prefer idle.

Bug: 195327798

Signed-off-by: Peter Liu <pingchienliu@google.com>
Change-Id: Ibc75bf596bd05831605643c3fe427154fa626093
2021-08-14 04:50:34 +00:00
Paul Crowley
80db0638d7 Revert^2 "Enable deleteAllKeys from vold"
Revert of cac9588d7ee8d3e5bfa684cd0bb92db80ac3bac4
aka I0a236e0308b9b8354e669b9261fc22a88a01f743
re-landing change Ife779307db0fe161c8889f7aaab34e2899a6c9e6

Bug: 187105270
Change-Id: I2981420841f2ecdc67a36f9a8c7b81bad00bfe96
2021-08-13 22:23:33 +00:00
Edwin Tung
e4f95dfa9c gps: update gps driver 129.20.23.511689
Reduce warmstandby timeout to 15 sec
Add OnChipGpsCarrierType
Disable OnChip notification
Refine RF path loss
Changed to send SUPLEND when interrupted by another NI SUPL
Fixed the replay mismatch issue by modifying LTE filter configuration
Fix incorrectly set period of CP periodic request
Fixed empty provideLocationInformation-r9 when running NI SUPL MSB
Fixed Bias track issue from US
Remove time of flight adjustment for Google SvPvt support
Satellite PVT Info API for google support

Bug: 193222014
Bug: 196013847
Bug: 195895395
Bug: 195066618
Bug: 195723263
Bug: 195638041
Bug: 182438827
Bug: 194637097

Sanity Test: 196184169
Test: build pass

Change-Id: I55b75a827734b9e1ef27c73674dd6c570e14d8e4
2021-08-13 10:16:45 +00:00
Daniel Solomon
454748016f display: make set_idle_timer_ms optional
Allow ro.surface_flinger.set_idle_timer_ms to be overridden by device
makefiles.

Bug: 195699802
Change-Id: Ic4d036a85b4e5705c9c549af9e5a0c17c82f4077
2021-08-13 05:26:26 +00:00
Shawn Willden
dc854af286 Revert "Enable deleteAllKeys from vold"
Revert "Detect factory reset and deleteAllKeys"

Revert "Add deleteAllKeys to IKeystoreMaintenance"

Revert "Enable deleteAllKeys from vold"

Revert "Allow vold to deleteAllKeys in Keystore"

Revert submission 15521094-vold-deleteAllKeys

Reason for revert: Causes infinite loop in Trusty KeyMint
Reverted Changes:
I9c5c54714:Detect factory reset and deleteAllKeys
I2fb0e94db:Allow vold to deleteAllKeys in Keystore
Id23f25c69:Add deleteAllKeys to IKeystoreMaintenance
Ife779307d:Enable deleteAllKeys from vold
I4312b9a11:Enable deleteAllKeys from vold

Bug: 187105270
Change-Id: I0a236e0308b9b8354e669b9261fc22a88a01f743
2021-08-12 01:17:10 +00:00
Minghui Tan
ee3e6daf69 Add CAMERA_CPU_THROTTLE as power hint.
Bug: 195327798
Test: CPU cores max frequencies updated properly
Change-Id: Idaacbfa1b4dca7765e9754d4aff997dd2495c2a9
2021-08-12 00:55:05 +00:00
[6;7~
6c444eebdf Enable deleteAllKeys from vold
If vold detects when setting up metadata encryption that there has been
a factory reset, call deleteAllKeys on Keystore to delete old user data.

Bug: 187105270
Test: booted Oriole twice
Change-Id: Ife779307db0fe161c8889f7aaab34e2899a6c9e6
2021-08-11 21:41:16 +00:00
samou
ed31b7318f powerstats: correct TPU DVFS
Bug: 196161144
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I8ec871afa4ca2050b5ddd59d0ea33b237b2b8a63
2021-08-11 20:50:08 +00:00
Tri Vo
7290750087 Start storageproxyd early
And restart it after /data is mounted.

Bug: 187105270
Test: boot raven, secure storage test com.android.storage-unittest.td
Change-Id: I505e315b58c3e0830d9a1f11d2f8afd549186535
2021-08-11 16:02:34 +00:00
Tri Vo
f29084928b Set /dev/sg1 permissions in ueventd.rc
This way we don't need to guess when we need to chown.

Bug: 187105270
Test: boot raven
Change-Id: I36b17d440ef340e558b10ed3fef03435ec63690f
2021-08-11 16:02:34 +00:00
Aaron Ding
2ca88b86a2 Update ro.soc.model to Tensor
Bug: 194969858
Change-Id: I6cb64d9d0ae08cb71f6c2eefa3700e7bc0a89504
Signed-off-by: Aaron Ding <aaronding@google.com>
2021-08-11 15:53:15 +00:00
Chris Fries
f89fbc87d7 device.mk: Freeze vendor security patch 2021-09-05
(stopship hack) Freeze the SPL so that we can test more
rollback cases in testing before launch.

Bug: 187105270
Change-Id: Icb475d6c3331d26a6b5314cbb0cdf2cbe1428a27
2021-08-11 14:37:57 +00:00
George Lee
ff8a3c60a2 bcl: lower ocp_warn for tpu and gpu
Bug: 181348043
Test: Local test and verify trip point
Signed-off-by: George Lee <geolee@google.com>
Change-Id: I499bcfecf4a0eea7459f8cdd41d4e7c59129ffef
2021-08-11 01:32:04 +00:00
TeYuan Wang
cc9cd89806 thermal: provide permission for user space request TPU throttling
Bug: 188701596
Test: ls -al dev/thermal/cdev-by-name/tpu_cooling/user_vote
Change-Id: I8a53b118b2e8e51603554c5fbb8a085d47422918
2021-08-10 23:18:01 +00:00
Wen Chang Liu
7742985632 Revert "Revert "firmware: mfc: update release MFC F/W(21/08/03)""
This reverts commit f6fcd437fdfd133ce9ebe343bbaa9dbe1b8e9dbd.

Reason for revert: we should upgrade same MFC FW release together with bootloader since we embedded a MFC FW inside LDFW to speed up authentication flow for P21.
 
Bug: 194873668
Test: video playback, video recording

Change-Id: I84f72e07940dc93acb5b26647091e921f4060df2
2021-08-09 23:50:27 +00:00
Jidong Sun
777118c5fe mfc_fw: Update to use unsigned FW binary
Bug: 195214116
Signed-off-by: Jidong Sun <jidong@google.com>
Change-Id: Ic7b065dd65d813cac7792725b31bb7958d1fa76b
2021-08-09 23:50:27 +00:00
Daeho Jeong
bb82be6a2a bfq: set slice_idle to 0
Bug: 191606824
Signed-off-by: Daeho Jeong <daehojeong@google.com>
Change-Id: I6a2e52cdf5a43fb2e74b756eb0f1249761d76b0e
2021-08-09 23:10:42 +00:00
Siqi Lin
1858f3c579 dumpstate: dump recent AP wakeups from AoC DRAM exception
Bug: 186456919
Test: adb bugreport, open Bug Sections "dumpstate_board.txt"
Test: search for "AoC memory exception wake"
Change-Id: I45edeb5138957405f29b9556acb8ff36fdc9310b
2021-08-09 19:52:01 +00:00
Edwin Tung
25b2c66ba9 gps: update gps driver 129.20.23.511166
Reset VDR instead of assert when sensor misalignment is detected
Updated the heading process noise logic
Fixed the issue of unintentional COLD start trigger
Fixed the late acquisition by 1 sec due to missing sat aiding
Fix "libgps  : proxy__gps_start, CP Cold Start is running, skip gps_start"
Change in scheduling capability to treat less than 1000ms interval as 1000ms
and ignore accuracy mask
Relax the magnitude check of L5 bias to write to NVMEM
Added CpLppeHighAcc3DPosInAgnssProvideLoc (default:false) to combine a_gnss
and lppe ProvideLocationInformation
Change LogJava to retry connection to log service
Aiding B2a from B1I measurement was fixed
Fixed not to make assistance data request for CP
Change to allow IgnoreRomAlm to work.
Change the searching strategies.
Cange to use previous SIM card's IMSI
More adjustment for the LTE filter Bias
Added xml attribute OnDemandTimeCapability
SW change for the altitude
Implemented robustness for position loss after position request restarts
Fix SUPL OTDOA capability issue

Bug: 195607949
Bug: 193609637
Bug: 195489111
Bug: 194752965
Bug: 194728243
Bug: 194633864
Bug: 194309353
Bug: 194133982
Bug: 193477020
Bug: 193374889
Bug: 193114467
Bug: 192630262
Bug: 192047043
Bug: 191340913
Bug: 189412038
Bug: 193476205
Bug: 194974278

Sanity Test: 195599028
Test: build pass

Change-Id: I2d0367eb8e736c7e349609532d04d891cd51621e
2021-08-07 03:53:24 +00:00
Edwin Tung
204765d8ff gps: Remove GpsCarrierType from XML
Bug: 195087664
Bug: 193476205
Test: build pass
Change-Id: I6dfd0d7dcc349084eaabff64cbf9d3e813dc515f
2021-08-07 03:53:24 +00:00
Adrian Roos
25eb91fba1 Revert "firmware: mfc: update release MFC F/W(21/08/03)"
This reverts commit 41b4175e030e1bb46805975926a16077c811a4ae.

Reason for revert: Crashes test devices
Bug: 194873668
Fixes: 195743186

Change-Id: Ie857e54138684777c8c402aceccb9181fc090790
2021-08-06 13:49:55 +00:00
ByungGwan Kang
e5938b1e5e firmware: mfc: update release MFC F/W(21/08/03)
- Implemented so that H.264 decoder return FEATURE_NOT_SUPPORTED error
  when content is 10-bit.
- Implemented to support dynamic frame rate change for Hierarchical-B
  encoder.
- Implemented to support the adaptive GOP feature.
- Fix the MinQuality rate control (20210629 release) bug which encoded
  stream is corrupted when Hierarchical-P/B is enabled.

Bug: 194873668
Test: 1 day pretest (ATL0)
Test: DevCam video recording
Test: Hierarchical-B testing
Signed-off-by: ByungGwan Kang <bk0917.kang@samsung.com>
Signed-off-by: wenchangliu <wenchangliu@google.com>
Change-Id: Ic924c0c6479b952c16f5fa4a4a3511f852774aab
2021-08-06 09:13:08 +00:00
George Lee
2107135c90 bcl: Enable Instruction print in bugreport
MPMM/PPM readings, OFFSRC and PWRONSRC will be printed out.

Bug: 195455000
Test: Local Test and confirm its printed.
------ Instruction ... ------
enable_mitigation=1
mpmm_settings=0x1a
offsrc=0x0
ppm_settings=0x0
pwronsrc=0x4
Signed-off-by: George Lee <geolee@google.com>
Change-Id: I1f3e10edc416966f0eba18e0ba94fb56a487eaee
2021-08-05 20:43:54 +00:00
Michael Eastwood
fe6dbce8df Attach more CPA traces to bug reports.
These are small, usually <1MB. Attaching more CPA traces gives us some
buffer to ensure that the relevant trace is actually included in the bug
report. Previously if the user opens one or two more camera sessions
after they observe the performance issue, the trace will be missing.

Bug: 191169822
Test: Build
Change-Id: I4c10217c39991e80f25a7fd90eee9e8b8c5b6cdb
2021-08-04 20:46:57 +00:00
linjoey
3097b78f95 Change prebuild path to gs101
Bug: 181204804
Test: Build passed and boot to home.

Change-Id: I4fdc6032ac16134de53675a5f00ee7e7765c7f32
SigSigned-off-by: linjoey <linjoey@google.com>
2021-08-04 12:17:24 +00:00
Wayne Lin
ebec3cf12a gps: Remove Google SUPL certs from gps.cer and enable Android platform root cert mechanism
Remove below Google SUPL certs from gps.cer
 - GoogleSuplCertificateEquifax
 - GoogleSuplCertificateGeo
 - GoogleSuplCertificateGlobalSignR2
 - GlobalSign Root R1

Bug: 193865889
Test: basic GNSS function test pass and SUPL NI test pass
Change-Id: I2fee22f0832784d20aa055239ac0d92c0d3a671d
2021-08-04 11:35:03 +00:00
Super Liu
d3e2787491 dumpstate: support CM2 data dump for touch.
This also change the sequence of run_rawcap_read_all
and run_self_rawcap_read_all to last. Because these
two commands need to run selftest first to read data,
this will make ambient update to make other raw data with
differen baseline.

Bug: 195111369
Test: check touch data in bugreport.
Signed-off-by: Super Liu <supercjliu@google.com>
Change-Id: I4693b099fbc98d80fbe166525773e3ab803c98d8
2021-08-04 05:28:30 +00:00
Vinay Kalia
4f62d6b733 Support height/width swap
Enable support for height/width swap so that vertical videos
with supported resolution can be played with HW AV1 decoder.

bug: 195409679
Test: AV1 video playback in vertical as well as horizontal orientation.

Signed-off-by: Vinay Kalia <vinaykalia@google.com>
Change-Id: I939f6a0dc432f6b1c92a1e818647afb66c20d856
2021-08-03 17:15:51 +00:00
Ruofei Ma
d2e0f9f79b Publish performance points for 720p video
Publish performance points for 720p video. This fixes
a CTS testcase.

Bug: 195356114
Change-Id: Iddd8e3ed5edbdf35735fa679ab516a5f84bbdb0e
2021-08-03 15:36:09 +00:00
Stephane Lee
75619b9882 Create one-shot clear for Trickle-Defend
Test: Ensure there are no sepolicy/permissions errors
Bug: 194447428
Change-Id: Ie295e33967edc3294e1bf6d2192639d6b0377659
2021-08-03 00:20:07 +00:00