Commit graph

315 commits

Author SHA1 Message Date
Taeju Park
185653e3a2 vendor_hook: separate uclamp configuration
Bug: 182509410
Test: build
Change-Id: Ide71afdbeb5fd79800823d0d8bb9b2a3a54bcca9
Signed-off-by: Taeju Park <taeju@google.com>
2021-05-12 18:28:50 +00:00
Qinchen Gu
7aafb36f77 Dump GSC info
Bug: 185939493
Test: adb bugreport. Look for GSC-related info.

Change-Id: I17fd4d7ef4c16661312d594c99818233cd0ee76a
2021-05-12 10:02:28 +00:00
Alex Hong
79e81ad478 Add the Product Framework Compatibility Matrix (Level 5)
Follow the previous Pixel settings, add a product FCM to describe the
requirements of device-specific HALs.

TO-DO: (1) Check if we need to replace the product config with
           Android.bp module like ag/14052744
       (2) Check if we need to split the FCM for system_ext/product

Test: m check-vintf-all
      The device is bootable.
Bug: 184714406
Change-Id: Icacace16863cfe1415e3dc4454e8763b8a30b425
2021-05-12 09:06:48 +00:00
Alex Hong
ec0510bd91 Upgrade the Target FCM version to 5 (Android Rvc)
PRODUCT_SHIPPING_API_LEVEL is 30 (Rvc) now.
Upgrade the Target FCM version to match the shipping api level.

TO-DO: Upgrade PRODUCT_SHIPPING_API_LEVEL to 31
       Upgrade the Target FCM version to 6

Test: $ m check-vintf-all
      The device is bootable.
Bug: 184714406
Change-Id: I72c7f490e9cb38d94f98071b302a4f465bf3281b
2021-05-12 09:06:48 +00:00
jonerlin
c2e1e46e2b bthal: Bluetooth owns its logbuffer device nodes
This changes the owner of specific logbuffer device node
dev/logbuffer_btlpm and dev/logbuffer_tty16 to Bluetooth,
so Bluetooth HAL is able to access them in userdebug rom

Bug: 177794127
Test: Manually Test
Change-Id: I17db3e3b8df521946d4358d191695c09ac2c2c3a
2021-05-12 07:06:43 +00:00
terrycrhuang
a2ab8d728c Build flag renaming
Bug: 187242540
Test: Loacal build. Google Dialer and Carrier Settings work.
Change-Id: I206d1b5e2474dfcd35c854e98f133704df472f5f
2021-05-12 06:28:33 +00:00
JJ Lee
298eb28dd0 audio: set ro.audio.offload_wakelock to false
Set ro.audio.offload_wakelock to false to release the wakelock in
AudioFlinger so that the CPU is allowed to sleep to save power during
oflload playback.

Bug: 178789331
Test: build pass
Change-Id: I9cc3fe6db17060c7de2b2df8a49befdbe2aecf29
Signed-off-by: JJ Lee <leejj@google.com>
2021-05-12 05:13:33 +00:00
Krzysztof Kosiński
3da54c3bc2 Update Lyric configuration for gs101.
Bug: 185262804
Test: build and camera preview on oriole
Change-Id: I5f705fde829b5d9d581b6f1306ecccfd6fd01cd1
2021-05-12 02:21:59 +00:00
Jason Lee
07bf326a61 Cap VideoEncoderCap maxFrameRate to 30
Fixes CTS without affecting GCA

Bug: 175830757
Test: GCA, CTS
Change-Id: I5c42e150a5fcc2e6a87b3daa6e1c8c787697168c
2021-05-12 01:33:30 +00:00
Carter Hsu
2e4d1c7d17 audio: add bluenote module
Bug: 186801118
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: Icf676c4de46cd38594bb442fcb8dae29dc23e6dd
2021-05-12 01:09:43 +00:00
Carl Tsai
900316d100 Revert "gs101: add trusty_metricsd"
Revert "Trusty metrics reporter service"

Revert submission 14469740-trusty_metrics

Reason for revert: buildbreakage for pdk
Reverted Changes:
Ifdefdd6cc:gs101: add trusty_metricsd
I641d7a5b7:Trusty metrics reporter service

Bug: b/187769789
Test: Pass
Change-Id: I5fc1ad6773795566ba8a3d87d58219660f469d4c
2021-05-11 23:23:06 +00:00
Long Ling
b2e8b6e82d display: rename adaptive color file name
Bug: 184096624
Test: reboot and verify boosted/adaptive color modes work
Change-Id: Iab15629568a91e1db7f866ca1fc70a44b40fe5aa
2021-05-11 18:54:35 +00:00
Jia-yi Chen
a6889fd404 Revert "Update power hint for camera workload"
This reverts commit 637fc9e8d727121276cf8dea2976ac52f8da8d15.

Reason for revert: Camera EBUF overflow observed after launching GCA.

Bug: 187760882
Change-Id: I2357d943f4b4d96ffa7a156671ac7c790640a5ed
2021-05-11 02:22:56 +00:00
Tri Vo
32d3cde120 gs101: add trusty_metricsd
Bug: 173423860
Test: m
Change-Id: Ifdefdd6cc686748d7fd21550f1bc3ef40c05a3d0
2021-05-10 19:56:00 +00:00
Wei Wang
e895392c27 Update power hint for camera workload
1) Enable prefer_high_cap_enable
2) Set high_capacity_start_cpu to 4
3) Set cpu.uclamp.latency_sensitive to 0
4) Change camera-daemon/cpu.uclamp.latency_sensitive owner to root

Bug: 186564130
Test: Boot & check setting values
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: I4ea14e82bf65f72a1113359cd163230a767e816b
2021-05-10 18:29:41 +00:00
Jia-yi Chen
82acc06cbe gs101: Change uclamp min value for camera
uclamp value is calculated based on the full capacity 1024. Previously
camera-daemon uses 6 which would set the min to 61. This boosts the
camera thread util up and would have power penalty. Change the value
to 1 to have minimum boost.

Bug: 186564130
Test: cat /dev/cpuctl/camera-daemon/cpu.uclamp.min & check power
Change-Id: Ib8f5ae2091848da4ee98211aeae37612ae2b308a
2021-05-07 22:23:28 +00:00
Rick Chen
43206ce7ab Sensor: Support hifi sensor.
Bug: 186108264
Test: CTS batch fifo tests passed.
Signed-off-by: Rick Chen <rickctchen@google.com>
Change-Id: Ie2a3bd31ac463f9a09753486381620cbda3aaa76
2021-05-07 14:55:55 +00:00
Roger Fang
d351a65154 gs101: add audio uevent to report mic status for pixelstats
ACTION=change
  DEVPATH=/devices/virtual/amcs/amcs
  MIC_BREAK_STATUS=1

Bug: 174994440
Test: Manually test passed
Signed-off-by: Roger Fang <rogerfang@google.com>
Change-Id: I2a478167960ea9b2e8cbe732e030fa38757204d7
2021-05-07 08:48:18 +00:00
Wei Wang
df79b08139 Adjust little core rate limit
With recently merged kernel change pa/1916082, down rate limit  will be
adjusted dynamically. Without out this change, we would run into cases
that we too little down rate limit for little.

Bug: 186392111
Bug: 170511089
Test: boot and check rate limit
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: I78d9894301c9f4f888d33010c9fcca20d51d4b20
2021-05-07 07:17:29 +00:00
Adam Shih
f2457f2d1e remove redundant setting
The path does not exist.
Bug: 187128213
Test: build pass and boot to home

Change-Id: I18aa60fafe1538972ad2111bfad483b54c6fab06
2021-05-07 04:31:02 +00:00
Carter Hsu
5bc59075bd haptic: add haptic ampilifer codec
Bug: 178431048
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: Id20663a7469f04fda8dd49651fce88a815450af7
2021-05-07 03:10:19 +00:00
terrycrhuang
0f8dbe476b Add Google Dialer and Enable PARIS in PDK ROM
Use the environment variable USES_GOOGLE_DIALER_PARIS to decide to
replace AOSP Dialer by Google Dialer and enable PARIS.
The variable should be set in PDK release ROM and User could set it
locally as you want the AOSP build with them.

Bug: 187242540
Test: Loacal build. Google Dialer and Paris work

Change-Id: Ib823f5447db5fd593b9044c8cdb766165ce6cedf
2021-05-07 00:25:48 +00:00
Sunil Ravi
2832991570 Wifi: Added supplicant HAL interface declarations 1.3 and 1.4
Bug: 187302501
Bug: 186636898

Test: boot and wifi function is ok
Test: p2p connection and throughput tests.
Change-Id: I599763e8c583f9566833183d4dbec13db1d040bc
2021-05-06 23:33:51 +00:00
Sunil Ravi
3d015b03ab Revert "Wifi: Move supplicant service init to wpa_supplicant"
This reverts commit 788012640b

Reason for revert: Caused throughput issue in p2p b/187302501

Bug: 187302501
Bug: 186636898

Test: boot and wifi function is ok
Test: p2p connection and throughput tests.

Change-Id: I70f4015040f10452acff697ee504b02cfb3c1e27
2021-05-06 23:33:51 +00:00
Lucas Dupin
3f04ce39c9 Revert "Enable blurs"
This reverts commit 52cc3f23c6.

Reason for revert: b/187310427
Bug: 187310427

Change-Id: I0190509dd2a5a3e727bce742e02cd21cf921caee
2021-05-06 22:54:48 +00:00
qinyiyan
24815da75e Add TPU metrics logger library to the device.mk
Test: Forrest build with the commit and the libmetrics_logger.so is
present in the build.
Bug:151063663

Change-Id: Ib5b59acfb6bc929d24884740f593417afe392434
2021-05-06 17:45:00 +00:00
Tri Vo
b39a771980 Revert "Trusty metrics reporter service"
This reverts commit c0dc597e70.

Reason for revert: b/187417029

Change-Id: Ia571b39ef3e5d66c112505bebd323deb2f7cc823
2021-05-06 17:03:37 +00:00
Tri Vo
c0dc597e70 Trusty metrics reporter service
Bug: 173423860
Test: m
Change-Id: Ib54790d883bd797ce1efa98a1cb053b5a4e007f7
2021-05-06 15:52:50 +00:00
Kyle Lin
3a3512c3a3 init.gs101.rc: add memlat settings
Bug: 170479743
Test: build and boot
Change-Id: I1f5f3ebdb2e4aeb3fe76de3b82358ea4783a571b
2021-05-06 07:05:34 +00:00
Alex Hong
5f5a621335 Remove android.hardware.drm@1.0 HAL services
The following interfaces are deprecated for Target FCM version 5
  android.hardware.drm@1.0::ICryptoFactory/default
  android.hardware.drm@1.0::IDrmFactory/default

Test: $ m check-vintf-all
      The device is bootable.
Bug: 186538652
Change-Id: I0babd05f17281406af10e4ea2435aca598910d36
2021-05-06 04:15:49 +00:00
David Li
e3718f2067 audio: remove libdsp_aecns.so from device.mk
Move AEC and NS to the liboffloadeffect

Bug: 187153996
Test: make -j128
Test: run cts --include-filter "CtsMediaTestCases android.media.cts.AudioPreProcessingTest"
Change-Id: Ida949d8ae3c06b4ab6743159cc952cdef3a73de7
2021-05-06 02:28:43 +00:00
Woody Lin
e9f27f4a68 gs101: dumpstate: Dump s2d.lst to dumpstate_board.txt
Gzip s2d.lst and base64 it for dumping to dumpstate_board.txt.

Bug: 187228956
Change-Id: I911145ed6ecc345177cd979262126b7c49194528
2021-05-05 20:37:42 +00:00
Stephane Lee
331796ed8d BatteryDefender: Explicitly set wireless path to reduce errors logs
For gs101 devices, we must detect whether a wireless charger exists at
runtime, otherwise we'd need to create separate Health.cpp for each
product in order to instantiate the wireless path correctly.

Test: Ensure battery defender triggers via wireless connection.
   Ensure there are no warnings for devices that do not have a wireless
   charger
Bug: 165954398
Change-Id: Ibba202293141c017d3048980b643a80b5fb57ca4
2021-05-05 19:39:49 +00:00
Wei Wang
934721c1e0 Disable ADPF hint
Test: boot
Bug: 170650323
BUg: 187212124
Change-Id: Ifa754efa138803c5cc36836b8313e819079e518a
2021-05-05 17:03:23 +00:00
Chris Fries
74a463ecb4 Revert "Revert "Revert "Enable SurfaceFlinger Cache by default"""
This reverts commit eee30bde78.

Reason for revert: b/187193705

Change-Id: I02c2f94149ed59a6078759a65bc30de9a0d68fe2
Bug: 187193705
2021-05-05 16:30:29 +00:00
Alex Hong
2f8fde91a1 Downgrade the PRODUCT_SHIPPING_API_LEVEL from 31 to 30
We should wait for the Android SC SDK finalization.
Remove the unnecessary "BUILD_BROKEN_VENDOR_PROPERTY_NAMESPACE".

Test: Build successfully and the device is bootable
      CtsOsTestCases: android.os.cts.BuildTest#testSdkInt pass
Bug: 187023500
Change-Id: Ib9adbb7a7c913790994a06ae1a57f95eebf84a78
2021-05-05 11:55:09 +00:00
Alex Hong
69bc91e5f0 Replace the HIDL with AIDL for "android.hardware.memtrack"
The HIDL interface of "android.hardware.memtrack" is no longer supported for Android S.

Test: atest VtsHalMemtrackTargetTest pass
Bug: 186539435
Change-Id: Iaafd526fc5a601f7e8189ec764399d99c660beb0
2021-05-05 06:09:11 +00:00
Alex Hong
ad5196c2c2 Update dumpstate HAL to V1.1
This is a manual porting from ag/10344396.
Replace the usage of "persist.vendor.verbose_logging_enabled" since we are not using
this property for Whitechapel.
Use the default property "persist.dumpstate.verbose_logging.enabled" instead.

Test: atest VtsHalDumpstateV1_1TargetTest pass
Bug: 186539439
Change-Id: I3f0d35647c0748d360b12d3be078d514f99d23d5
2021-05-05 06:09:11 +00:00
Jenny Ho
c1c9613145 init.gs101.rc: change TRICKLE/TEMP/DWELL permission to system
For dump these informations into bugreports and debugging

Bug: 186872139
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: I5e4efd83b1ae111a423cb13e1c35f31766f98252
2021-05-05 02:55:28 +00:00
Jenny Ho
c20a7c9603 dumpstate: dump TRICKLE/TEMP/DWELL setting into bugreport
Need setting information for debugging

Bug: 186872139
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: Iaf7345a4f38a67c4134f5cb23050b5f5e6ba7fdd
2021-05-05 02:55:28 +00:00
Chris Kuiper
24b9d29d6d dumpstate: Add USF registry dump.
This collects the output of "usf_reg_edit save -" and adds it to the
bugreport. It is only done on userbuilds for PROTO* and EVT* devices.

Bug: 187081112
Test: Run "adb bugreport <zip>" and verify it contains the output
      from "usf_reg_edit save -".
Change-Id: Ie68b56a3bb211840f33bdb5afbc31b0759641c8e
2021-05-04 15:30:26 -07:00
Daniel Mentz
bbcaf452f8 init.insmod.gs101.cfg: Migrate from insmod to modprobe
modprobe is smarter about locating .ko files if they are stored in
subdirectories. For example, it finds heatmap.ko regardless of whether
it's stored in /vendor/lib/modules/heatmap.ko or
/vendor/lib/modules/extra/heatmap.ko.  modprobe also loads all
dependencies automatically.  Let's migrate from insmod to modprobe.

Bug: 185184472
Change-Id: I810709b8053f3bf3bbec18bcaa37780289388e07
2021-05-04 19:55:59 +00:00
Yu-Chi Cheng
395ae043ba Added EdgeTPU vendor service into P21.
The original edgetpu_service is now split into two, where the
original one stays under /system_ext/ and the new one,
edgetpu_vendor_service, now locates under /vendor/.

This change updates files including device.mk accordingly to
ensure these services are setup properly on P21.

Bug: 185432427
Test: Oriole + GCA
Change-Id: I5b0eff64f2f044a56bc14cf5e1d92ec3463560a9
2021-05-04 19:39:32 +00:00
Sunil Ravi
788012640b Wifi: Move supplicant service init to wpa_supplicant
Bug: 186636898
Test: boot and wifi function is ok
Change-Id: Idb6ebe962e50408c907f9d961a6f75e3ceddf0f2
2021-05-04 17:38:38 +00:00
Edwin Tung
d7678e177c gps: update gps driver 127.20.23.498766
Implement PPS feature
Fix CW multiband issue
Add EarlyFix support to LPP
Added RILC_REQ_GPS_IS_CAMPING_ON_LTE to query network type
Handle RILD error response

Bug: 175086879
Bug: 178148552
Bug: 180696639
Bug: 185198553
Bug: 187008705

Sanity Test: 186827776
Test: build pass

Change-Id: Iaf6493af23dc1f701ae288b707c266a09822e6cf
2021-05-04 06:33:24 +00:00
lucaslin
725f060835 Dump tcpdump into bugreport
Bug: 183467815
Test: 1. Enable tcpdump_logger always-on function
      2. Dump bugreport
      3. Pull dumpstate_board.bin and chagne it to zip
      4. Unzip dumpstate_board.zip and check if tcpdump files
         are there.
Change-Id: If5fc2fe8ff4bfc0beb91ff973cc3d8137fd7cc47
2021-05-04 03:48:04 +00:00
Jenny Ho
8201411a5b Allow setting charge start and stop levels when in Test Harness Mode
Bug: 180511460
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: I02b64c1f386ba6fe299e63dfb8f12c18549c861f
2021-05-04 02:48:40 +00:00
Daniel Mentz
5888eed0d1 init.insmod.sh: Find modules in different directories
Currenlty, kernel modules are only looked for in /vendor/lib/modules/.
With this change, we enable kernel modules to be stored under paths that
contain the kernel version string e.g.
/vendor/lib/modules/5.10.31-gd527c4be4795-dirty/
This aligns better with the kernel build system.

Bug: 185184472
Change-Id: I40db76f0409808700acd2d5524f8f3d606b3114f
2021-05-04 00:02:41 +00:00
Zhijun He
51d3d2e56f Remove unnecessary GPU clock access permissions
Test: Camera
Bug: 162236627
Change-Id: Icfbb56a9d282b69c780600ab621975fb9da2db42
2021-05-03 23:32:39 +00:00
Blake Kragten
2b6d710544 Remove Gnss Outage System Apk
Bug: 186759659
Test: Compiled
Change-Id: I478c44ea64004a23eebbe77e06420f686821ec62
2021-05-03 21:11:43 +00:00