Commit graph

588 commits

Author SHA1 Message Date
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
Victor Liu
3f606543d5 Revert "gs101: don't load uwb module at boot"
This reverts commit 2207cb4b9f.

Reason for revert: uwb power controls are in place

Bug: 183896897
Change-Id: Ib52de732dc86f7fe8a3d688a34d32034de26e031
Signed-off-by: Victor Liu <victorliu@google.com>
2021-05-03 16:57:48 +00:00
Taehwan Kim
730c5679fb use debug.stagefright.ccodec_delayed_params
Bug: 184611625
Test: android.media.cts.DecoderTest#testVp9Hdr10PlusMetadata
Signed-off-by: Taehwan Kim <t_h.kim@samsung.com>
Change-Id: Ib6d28d0bc7b7c17a4aaf8690f8ca9493065c9236
2021-05-03 02:37:04 +00:00
Anthony Stange
b764d48dd4 Switch back to generic contexthub HAL
Now that USF can support the default fragment size, we can migrate back
to the generic HAL.

Bug: 168941570
Test: Load nanoapp via HAL
Change-Id: I8ddf892cd7c702ab2a549cfff521b24aadd6cf2c
2021-04-30 16:34:37 +00:00
Aaron Ding
254e03a21c do not mount the debugfs on user builds
keep debugfs on userdebug and factory builds

Bug: 184801854
Change-Id: I6b4b7428b011a87a93d48af63f8dafc2c5d96e23
Signed-off-by: Aaron Ding <aaronding@google.com>
2021-04-30 00:56:07 +00:00
Daniel Mentz
0278f84cf8 init.insmod.gs101.cfg: Remove non-existent modules
Remove three .ko files that appear to no longer exist.

Bug: 169367087
Change-Id: Id570163404454dbcbe03a9d29ecdc640bdc6b356
2021-04-29 22:47:03 +00:00
Lucas Dupin
52cc3f23c6 Enable blurs
Test: manual
Bug: 181092919
Change-Id: I23a50b195b6aada354213f767483eeeab15263a7
2021-04-29 22:44:12 +00:00
Nicole Lee
7311968443 init: grant read permission of always-on log for others
Bug: 186619367
Change-Id: Ie70d9c97d95f4cc90bc3d66d1309087dc3f148e5
2021-04-29 20:42:44 +00:00
Alec Mouri
eee30bde78 Revert "Revert "Enable SurfaceFlinger Cache by default""
This reverts commit 51c9d02193.

Reason for revert: Blocking flicker issues have been fixed.

Bug: 185398025

Change-Id: Ib712967e932cfcce3feca781731aba8264734dcd
2021-04-29 20:26:06 +00:00
Sean Callanan
13c4abd67c Enable Gralloc ion sync
Gralloc ion sync enables a cache sync when Gralloc buffers are
unlocked.  Buffers the GPU wrote don't need this, but buffers the
CPU wrote do.

Bug: 183735780
Test: RealCalc
Change-Id: I67a9ee15b172fb11d262c41723404c5b9cafde82
2021-04-29 16:55:16 +00:00
samou
513c4afaa1 powerstats: Add TPU EnergyConsumer power attribution
Bug: 185564760
Change-Id: I6550ed839599c979ee09492fb8eaabd50f04ebe2
2021-04-29 15:51:11 +00:00
terrycrhuang
41522d011f Enable Shannon IMS and QNS log to debug level
Bug: 185609678
Test: Manual

Change-Id: Ia5be6f3925db93ab097a848b92d3d6df2c52ce10
2021-04-29 07:45:13 +00:00
jyhshiangwang
eaabbacd4c Enable Tips icon on P21/P22 devices
Because Tips app will enable launcher icon on all Pixel device
except Pixel 3/3a devices, use component-override to configure
P21/P22 devices to enable Tips launcher icon to pass PTS test.

Test: PTS https://android-build.googleplex.com/builds/forrest/run/L16600000870874063
Bug: 186497951
Change-Id: I3294812f93a64b74457faf894e1adca7493159e0
2021-04-29 01:36:17 +00:00
Victor Liu
ba22a106b8 device: uwb make
call vendor uwb.mk instead of specific modules

Bug: 184777464
Change-Id: Iaaf9c1735449fc6d2a2212f0f32d03a5bb9b577b
2021-04-28 19:08:51 +00:00
Alex Hong
f2023ff303 Temporarily disable the debugfs restriction on Android S
Bug: 186625519
Change-Id: I7dc3895fbd96f798edd28f315f6cc5b1a79c6637
2021-04-28 15:55:34 +00:00
Roger Fang
1d6c433572 gs101: add audio suez devices
ACTION_SPEAKER_IMPEDANCE
ACTION_HARDWARE_FAILED

Bug: 171854614
Test: manually test
Signed-off-by: Roger Fang <rogerfang@google.com>
Change-Id: I9c4bbde93edb22e65a092cb4a1f1f2eb9839d926
2021-04-28 08:50:40 +00:00
Roger Fang
9b811a56e7 gs101: import audio_amcs_ext library
Bug: 171854614
Test: Manually test
Signed-off-by: Roger Fang <rogerfang@google.com>
Change-Id: Icd843f292eff510d43bc664ddf1a550c19479648
2021-04-28 08:50:40 +00:00
Edwin Tung
335ea2773b gps: update gps driver 127.20.23.497356
Fixed issue that SUPL version is reverted back to 2.0.0
Fixed the long TTFF of warm starts with the LTE filter engaged
Fix wrong context detection issue
Fix a bug in power data callback
Improve SPA packet overrun issue in BBD

Bug: 176464615
Bug: 185203717
Bug: 184247641
Bug: 184922200
Bug: 180985871

Sanity Test: 186403144
Test: build pass

Change-Id: I9aef1697010128ab51502acd6f193440c6deb408
2021-04-28 08:33:44 +00:00
wenchangliu
6a3dcb978f Align video codec max resolution capabilities with block size
Since application(Ex: Youtube) would limit supported quality
list from codec capabilities. We need to align max support resolution
with block size to provide proper codec capabilities.

Bug: 186374258
Test: Playing 2160p video in youtube
Change-Id: I2f26371eb9f22ef7c1f79e2eb193077963cbfc80
2021-04-28 03:23:00 +00:00
Edwin Wong
9e879185f3 Update clearkey plugin to drm HAL v1.4
Test: atest
  atest CtsMediaTestCases:android.media.cts.MediaDrmClearkeyTest#testGetPlaybackComponent

Bug: 182525516
Change-Id: I6d7a953373a4bbff69428e004127d9216a6bff79
2021-04-27 17:12:13 +00:00
Robin Peng
c5b41648b3 shipping level 31, and keep target-level as-is
PRODUCT_SHIPPING_API_LEVEL := 31
kernel target-level="6"
target-level="3" or ="4"

Bug: 167997902
Change-Id: I110e251a108bbca7b63cd90142c82b35e93287b7
2021-04-27 07:14:20 +00:00
Rick Yiu
89f31f39c2 gs101: Change uclamp min value for camera
With a scheduler change that refers to uclamp value of a rq, we need
to change uclamp min value for camera to get better performance.

Bug: 170648224
Test: check fps in video recording
Change-Id: I29e55706b49d5182935209d1d6f3552fb7f5d821
2021-04-27 06:09:06 +00:00
Franklin He
8ac9fa6194 Add a boost to NNAPI DarwiNN HAL for better perf&power
See http://shortn/_X7vYHND2xN for testing with various NN models
faster execution of NNAPI results in less execution time and
in turn, less total power consumed.

Bug: 183576817
Test: adb push'd rc file to a device
      `cat /dev/cpuctl/nnapi-hal/cpu.uclamp.min` == 15.00
      ran MLPerf, got better scores

Change-Id: I398c3741fc46958f95a9b608a27b52da47c69597
2021-04-27 01:22:33 +00:00
Labib
f65dc0799c Move radioext service declaration to VINTF fragment
Bug: 185105182
Test: atest VtsHalRadioExtV1_3TargetTest
Change-Id: Iad15efea4acaa7ae3eb3c79e922e3f2a5888c657
2021-04-26 11:15:24 +00:00
Ray Chi
72ef08cafa gs101: usb: add state of usb extcon to monitorffs
Monitorffs needs to check the state of usb extcon to pull up
USB gadget. Therefore, this patch add state of usb extcon and
send this information to monitorffs.

Bug: 173086594
Test: verified pass
Change-Id: Ib2a1bb01813490185e1901fafdeba02458332e63
2021-04-26 10:00:12 +00:00
Kris Chen
3af08d4f6b gs101: udfps: enable biometric_suez_support
Bug: 186195932
Test: lunch oriole-userdebug; make -j$(nproc);
Test: Confirmed biometric suez code has run observed from logcat.
Change-Id: I1c4342ca3efa0c19b297dec6d911a8e803d0978c
2021-04-26 00:19:01 +00:00
Dmitri Plotnikov
35d31057e7 Add BatteryStatsViewer to GS101-based userdebug and eng builds
Bug: 185952656
Test: build, flash, verify that BatteryStatsViewer is in the app list

Change-Id: I1fbbd21908d515027125aae6b3b7f27a1cd075d5
2021-04-23 21:46:42 +00:00
Jia-yi Chen
311c43f70a powerhint: update default value for target_load
Update the target_load used in ALT_DVFS for CCI PPC counter from
5 to 10 to make it less aggressive to push up the OPP to save power.

Bug: 183950156
Test: Boot & check the value vis sysfs
Change-Id: I9fd51dd616c288f5a97d73d6d80b47a63c2b1f75
2021-04-23 21:20:38 +00:00