Commit graph

468 commits

Author SHA1 Message Date
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
Nicole Lee
c932836b3f device.mk: enable modem always on logging by default
Bug: 185629421
Change-Id: Id870f832cea30e43b819892cc0c6107cbb12bafa
2021-04-23 15:24:21 +00:00
Remi NGUYEN VAN
1e3469f18c Add connectivity overlay to gs101
As resources were moved from the android package to the connectivity
resources package, migrate resources to a new overlay for the new
package.

Bug: 185850634
Test: m
Change-Id: Iea8bf912e750375724421945103bcc58ece11f1b
2021-04-23 08:22:42 +00:00
Alex Buynytskyy
820d0ed766 Enable Incremental on new pixel devices.
Bug: 185298880
Fixes: 185298880
Test: atest IncrementalFeatureTest
Change-Id: I06dcb75307d71e693ad58150889b208c063c664a
2021-04-22 22:40:36 -07:00
Labib
b293830afb Move radioext service declaration to VINTF fragment
Bug: 185105182
Test: atest VtsHalRadioExtV1_3TargetTest
Change-Id: I537957dcb6c7fdfc99dc962ef248a283728bb6e2
2021-04-23 03:33:55 +00:00
Rick Chen
891c1fdd80 gs101: Remove sensor HAL 1.0 config
Also clean up unused sensor HAL config.

Bug: 184720736
Test: Verify basic sampling on O6
      Run VtsHalSensorsV1_0TargetTest and see no test items.
Signed-off-by: Rick Chen <rickctchen@google.com>
Change-Id: I9ba18473132f4bfa37a9fe2bbae4bb3dc015cc0e
2021-04-23 01:57:59 +00:00
Benjamin Schwartz
e171ad07f5 powerstats: Move NFC stats to device specific
Bug: 184722506
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I99b82c52d0dee1cf3b7eda7e4985d9b40db162d0
2021-04-22 15:28:23 -07:00
Oleg Matcovschi
982119744c gs101: remove init.ramoops.sh
Ramoops encryption/decryption is handled by bootloader now.

Bug: 173808916
Signed-off-by: Oleg Matcovschi <omatcovschi@google.com>
Change-Id: If98ca902728e2fc7674f5f18615de685dcebd488
2021-04-22 00:16:00 -07:00
qinyiyan
a45f9156ad Add the DarwiNN NNAPI AIDL service to the device.mk.
Test: `m` and checked the $OUT/vendor/bin/hw/
Bug: 180454236
Change-Id: Ia0131494966dcb922eaf7c66d8d6a12ce58e0762
2021-04-21 19:52:48 +00:00
Ocean Chen
d91dde1d52 pixelstats: start service on boot completed
Sometimes the init needs to take more time to
change the compr_saved_block and compr_new_inode
from root:root to system:system

Otherwise, pixelstats cannot write these two sysnode

Bug: 173399386
Test: pixel/022
Signed-off-by: Ocean Chen <oceanchen@google.com>
Change-Id: I35625b94540baf637db07db3147839a79536378c
Merged-In: I35625b94540baf637db07db3147839a79536378c
2021-04-21 11:54:10 +00:00
Jenny Ho
9e468ac2f7 init.gs101.rc: add adaptive charge node permission
Bug: 185751788
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: I9173d9e5ce00f6d5df1e4fe1ef20e7c073e90e19
2021-04-21 05:47:40 +00:00
Steve Pfetsch
32b504ddca gs101: restore ITouchContextService to the device manifest
ITouchContextService entries were accidentally removed from
manifest*.xml, which prevented the touch context information
from reaching twoshay.

Bug: 185881875
Signed-off-by: Steve Pfetsch <spfetsch@google.com>
Change-Id: Ife0e55d179c5e91beae73081a2c3e8891bdf15e5
2021-04-20 23:15:32 +00:00
Wenhao Wang
30ddea9d11 Add restorecon for new label (persist_ss_file)
We create a new label for /mnt/vendor/persist/ss.
So add restorecon for the label.

Bug: 173971240
Bug: 173032298
Test: Trusty storage tests
Change-Id: I98267ba6c4472c2c0ae186b576ffc18de86e0378
2021-04-20 17:20:49 +00:00
Long Ling
59fed5ee6c device.mk remove displaycolor_service from user build
displaycolor_service is a development tool.

Bug: 185724500
Change-Id: I939dc99fd7e01f773c4cb3d794a6c6b477dcc544
2021-04-20 16:17:14 +00:00
Blake Kragten
8ed616d088 Remove location access
Location access is not needed for physical channel configuration changes
anymore

Bug: 185247832
Test: On Device
Test: atest ConnectivityThermalPowerManagerTests
Change-Id: Ic14b958b191324205ff916d7aff718ddfb3cee04
2021-04-20 15:06:38 +00:00
eddielan
c143d3746d fpc1540: Configure fingerprint as SW33
Bug: 182257152
Test: Build Pass
Change-Id: I2c12847ea5b4709219aa47cc3b578478b8f72dfc
2021-04-20 12:34:35 +00:00
Tai Kuo
eba083050f BoardConfig: filter cl40l26 probe during the first stage init
Bug: 184610991
Test: probe timing was delayed
Signed-off-by: Tai Kuo <taikuo@google.com>
Change-Id: I8f90697112160849091b8347079c9590c8e18099
2021-04-20 11:49:50 +00:00
ichihlu
fbd55ffa06 Update to use secure share memory
Bug: 148421469
Test: TUI VTS pass

Change-Id: I17f5c9daa05bf8aed0f4dcda9a57557581945800
2021-04-20 10:58:13 +00:00
Victor Liu
2207cb4b9f gs101: don't load uwb module at boot
Uwb power controls are still being implement.  Disable
the uwb module from loading automatically until uwb power
controls are implemented.

Bug: 185471298
Change-Id: Ie7021f6015c564613ded10dec2c9b92ff619af81
2021-04-20 03:00:17 +00:00
Taeju Park
3323441408 Boosting application launch time using uclamp boost and increasing memory bandwidth
Bug: 170510392
Change-Id: I50719ba090ac5ec079ed4fe73131e6f749dcf8c0
Signed-off-by: Taeju Park <taeju@google.com>
2021-04-20 02:14:17 +00:00
Daniel Solomon
51c9d02193 Revert "Enable SurfaceFlinger Cache by default"
This reverts commit cfaf39f1de.

Reason for revert: Causes display to blank out in some use cases.

Bug: 185398025
Change-Id: I0dc5761561b6b34d785e9d877460096e106f3e85
2021-04-20 01:45:30 +00:00