Commit graph

45 commits

Author SHA1 Message Date
Jacky Liu
78c26013fa Update i2c device paths
Update i2c device paths with static bus numbers.
Also remove some redundant paths.

Bug: 323447554
Test: Boot to home
Change-Id: Ibe1f5060daa45a7d19be08bd60c3f3a615427632
Signed-off-by: Jacky Liu <qsliu@google.com>
2024-02-06 16:20:12 +00:00
André Draszik
e3f5d8ab1c powerhint: provide android-mainline versions for Oriole & Raven
The android-mainline kernel doesn't provide the scheduler vendor hooks,
and therefore the pixel drivers don't expose anything below
/proc/vendor_sched/. This causes powerpower-libperfmgr to emit *a lot*
of warnings to logcat regarding failures to write to nodes below
/proc/vendor_sched/.

As a solution, provide a -mainline version of powerhint.json for the
two platforms supported by android-mainline.
The new files are based on revision f56bbd1bfb ("disable vendor idle
balancer") of powerhint.json and have all nodes and actions referring
to /proc/vendor_sched/ removed using the following jq commands:
    for f in powerhint-oriole.json powerhint-raven.json ; do \
        fdst="$(basename "${f}" .json)-mainline.json"
        names=$(jq '."Nodes"[] | select(."Path" | startswith("/proc/vendor_sched/")).Name' "${f}" \
                | tr '\n' ' ' \
                | sed -e 's|" "|", "|g')
        jq '. | del( ."Actions"[] | select(."Node"==('"${names}"')))' "${f}" > "${fdst}"
        jq '. | del( ."Nodes"[] | select(."Path" | startswith("/proc/vendor_sched/")) )' "${fdst}" > "${fdst}2"
        mv "${fdst}2" "${fdst}"
    done

The -mainline version will be picked based on a boot property set by
the mainline kernel.

Bug: 265961701
Test: adb shell -nT getprop vendor.powerhal.config
      adb logcat -b all -D 'libperfmgr:V powerhal-libperfmgr:V *:S'
      m libperfmgr_test \
      && adb push \
             out/target/product/oriole/data/nativetest64/libperfmgr_test/libperfmgr_test \
             /data/libperfmgr_test \
      && adb shell /data/libperfmgr_test
Change-Id: Ice07444e38194e5fcf2127e935afdd4d29ff8e87
Signed-off-by: André Draszik <draszik@google.com>
2023-09-13 17:04:16 +00:00
Daniel Chapin
cd4d49a637 Revert "Removing faceauth configs"
Revert submission 24039435-cherrypick-FaceHAL-deprecate-raven-yon2bm08mmg

Reason for revert: Droidfood blocking bug b/295449925

Reverted changes: /q/submissionid:24039435-cherrypick-FaceHAL-deprecate-raven-yon2bm08mmg

Change-Id: Iabd85576568ce66718e625607aa0d31dc8b357cc
2023-08-15 18:09:14 +00:00
Habib Moukalled
54a7fd44db Removing faceauth configs
Bug: 268705900
Test: target build
Change-Id: Ie9f7f7b928037e0125b959505db34e609affa932
2023-08-04 17:24:05 +00:00
Matt Buckley
47719a3b62 Remove rt_uclamp_min and sf_uclamp_min
rt_uclamp_min and sf_uclamp_min have been made redundant in Pixel by
ADPF for sf, so we are just going to remove them outright rather than
worrying about overriding them later

Bug: 285248880
Test: manual
Change-Id: I6b26c9e95066b689517352edd9c707cd12afdf67
2023-06-02 16:33:34 +00:00
Adam Shih
2e4a5c646c move insmod script to gs-common
Bug: 243763292
Test: boot to home
Change-Id: I197ed4be5c205e5ca9eadb7a7e237cb1c507c457
2022-09-05 12:37:04 +08:00
Matt Buckley
0f365e08b6 Enable ADPF CPU hints for SF
Allow these devices to send CPU hints to PowerHAL from SF to reduce
drops and save power.

Bug: b/241152899
Bug: b/195990840

Test: manual
Change-Id: I915bf64a669c176e53542752760f21e3a696a57b
2022-08-10 18:59:17 +00:00
Lily Lin
7c6e328a63 Enable read/write access to st33spi_state for euiccpixel_app
Bug: 228655141
Test: Confirm can read/write st33spi_state
Change-Id: I92cf9696c225d4e47c374ea75c78feba8216ca85
2022-05-11 01:23:38 +00:00
Jack Wu
f32310bcce Set retaildemo settings
move the settings from init.gs101.rc

Bug: 204926279
Test: check demo mode functionality
Signed-off-by: Jack Wu <wjack@google.com>
Change-Id: Ie8af13aef2c1d9921f20e31f916e1b3ecf4c7441
2022-01-10 11:06:23 +00:00
TeYuan Wang
bc7c206aaa thermal: disable usbc protection for EVT1.0 and PROTO
We have USBC thermistor change after EVT1.0, so disable the
throttling for earlier HW version to prevent false alarm.

Bug: 197266814
Test: adb shell cat /dev/thermal/tz-by-name/usb_pwr_therm2/temp
Change-Id: Ia829d6a16d8ac390ed213efe2c5e12e24aca4320
2021-11-17 18:41:00 +00:00
Martin Liu
bbb311acfc zram: add zram size property
Bug: 200899926
Test: check zram swap and backing device
Signed-off-by: Martin Liu <liumartin@google.com>
Change-Id: Ife748938f5e7cfb34c343a3f568c93824f33e8fe
Merged-In: Ife748938f5e7cfb34c343a3f568c93824f33e8fe
2021-10-07 09:31:43 +00:00
Martin Liu
2ae086f9a8 Zram: set zram size
Apply 3G zram size settings

Bug: 200899926
Test: boot
Signed-off-by: Martin Liu <liumartin@google.com>
Change-Id: I94e9390719833ae54be56ca3c2aeba4bd9cd9d27
Merged-In: I94e9390719833ae54be56ca3c2aeba4bd9cd9d27
2021-10-01 07:16:42 +00:00
George Chang
c84c460f51 Enable eSE2 and ctsmode settings
turn on st33spi when persist.vendor.se.ese2.mode is set to ctsmode

Bug: 193417907
Test: VtsHalSecureElementV1_2TargetTest,
      VtsHalSecureElementV1_1TargetTest,
      VtsHalSecureElementV1_0TargetTest,
      CtsOmapiTestCases
Change-Id: I38d9d4c44bb5fd59e2f709b3046f74c1b2483eea
2021-09-30 11:52:51 +00:00
Robert Lee
c269c8a695 init.raviole.rc: remove world writable on speaker.cal am: 1d75fb3ce6 am: 4f45c7e9ae am: 7a16bd5187
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/15659823

Change-Id: I51936103399666e1820b0b7df7abd364db013fb0
2021-08-24 06:33:23 +00:00
Robert Lee
40b3941f80 init.raviole.rc: remove world writable on speaker.cal
Bug: 197039088
Test: do re-calibration and check the speaker.cal is updated.
adb shell crus_sp_cal -d -s -a --device 5 --ambient 27 --num-speaker 2 --verbosity 7

Change-Id: I7d8c43c5feaab4d0337590f268f0b59aa7f3e6fd
2021-08-24 03:35:33 +00:00
Robert Lee
b17183e1d6 init.raviole.rc: chmod for speaker.cal am: ba0d4bea8a am: f9faf2ee63 am: 098b3b8d90
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/15634498

Change-Id: I1be370dfec2d663484408404985ae118f997f5a6
2021-08-20 13:05:43 +00:00
Robert Lee
bedf39fb89 init.raviole.rc: chmod for speaker.cal
The speaker calibration step is changed in factory and the speaker
calibration file's permission is incorrect. Then audio hal cannot read
speaker.cal file to apply it and only apply default cal value.

Correct the file mode when init.

Bug: 197039088
Test: push the script into device and check file mode after rebooting device

Signed-off-by: Robert Lee <lerobert@google.com>
Change-Id: I1339f006f4477288cb41d07cb32caba0921b6e09
2021-08-20 04:17:17 +00:00
George Chang
b256283d73 Move NFC/eSE settings
Bug: 196825539
Test: build pass
Merged-In: I590f069139f641d886e1252e3acdb19483b7fcaa
Change-Id: I590f069139f641d886e1252e3acdb19483b7fcaa
2021-08-19 06:42:29 +00:00
Andrew LeCain
8340b00c0e Revert "raviole: allow UDFPS to read mfg_data blk device"
This reverts commit 2d2e597690f3e2fc06ffeb3749599fe5b8521959.

Bug: 193549276
Test: FP app doesn't report permissions error reading cal partition.
Change-Id: I8b982dec8bd5920eac69b48d6bd1de8cfc989003
2021-07-27 21:32:11 +00:00
Andrew LeCain
b40e3550aa raviole: allow UDFPS to read mfg_data blk device
Bug: 189135413
Test: fastboot stage cal_file; fastboot oem udfps update-cal; HAL sends CAL
Change-Id: Ib9f236bb49d3aa961edcc113c6e6aaa94927f454
2021-07-19 17:46:17 +00:00
Ken Huang
876864edfe raven: control panel_idle via kernel idle property
Bug: 190572787
Test: force refresh rate to peak or 60Hz
Change-Id: I5f25e2e8a79420bbcc74d047aa9234ad21911255
2021-06-28 06:04:49 +00:00
Ilya Matyukhin
a8f6e24b37 Remove access to the LHBM node from SystemUI
Bug: 183223359
Test: on device
Change-Id: I56cdc5ab4654ac523b4a80f270d5567aac16cdc7
2021-06-25 01:12:52 +00:00
Ted Lin
317f221521 Remove the attribute set from init.rc for debugfs
[    2.993897] audit: type=1400 audit(1623037840.652:4): avc:  denied  { setattr } for
pid=374 comm="init" name="registers" dev="debugfs" ino=9 scontext=u:r:vendor_init:s0
tcontext=u:object_r:vendor_regmap_debugfs:s0 tclass=file permissive=0

Bug: 190337297
Test: check bugreport
Change-Id: I0a2375bb5c3e1eef63eeaec65093ad53cf8fe02d
Signed-off-by: Ted Lin <tedlin@google.com>
2021-06-15 02:51:32 +00:00
Cyan_Hsieh
f3cb3c16fd Set audio.camerasound.force for JP devices
Test: set to JP sku and check No camera sound option
Bug: 188396079
Change-Id: Ic89a150701de17fb29130206c2e25ec929972e25
2021-06-08 16:46:27 +08:00
Andrew LeCain
21159fdf01 Move fp app-loading to same stage as storageproxyd
Bug: 189911666
Test: R4 boot, unlock.
Change-Id: I88ec478bec27070d7d2ceb2ab7fcfe9a98fd423d
2021-06-02 19:13:22 -07:00
Ted Wang
866b981755 Change Timesync nodes owner to be Bluetooth
This patch change owner of Bluetooth Timesync node to be Bluetooth to
allow Bluetooth HAL to read controller timestamp data via this node.
And also enable timesync for raven.

Bug: 172616898
Test: ccc_test
Change-Id: Id3663f058415cc3f5b50d88b7c70844a53bc9f0f
2021-05-21 06:41:18 +00:00
Kris Chen
665398800b Disable ASP only on PROTO1.0 devices
Bug: 188193525
Test: ASP is disabled on PROTO1.0.
Test: ASP is enabled on PROTO1.1 and newer.
Change-Id: Ib01547cdf27431f3c475cff3830f077b044fcea5
2021-05-17 17:06:00 +00:00
Kris Chen
74dfc0cf92 Add property for UDFPS antispoof
Bug: 187394838
Bug: 187562932
Test: Antispoof is disabled by default.
Test: Use the following adb command to manully turn on antispoof.
      "setprop persist.vendor.fingerprint.disable.fake.override 0"
Change-Id: I56d1129af7e73a901ea5f3258517e68545c38894
2021-05-12 21:45:43 +00:00
Robin Peng
7cc6cca546 raviole: fix $(ro.hardware) not works in "on property:"
use ro.vendor.factory to replace ro.build.flavor

Bug: 187391068
Change-Id: I85f880bd4ada673655afd91cd092dbd2f1f0fec3
2021-05-06 20:09:29 +08:00
Robin Peng
334022f5c6 raviole: centralize common part of init.<DEVICE>.rc into init.raviole.rc
Bug: 167996145
Change-Id: I1e12d64295ffd4f990ad97455dc8a1ab965b6133
2021-05-05 05:55:46 +00:00
TeYuan Wang
60d11bce2f thermal: update raviole thermal table
Test: verified thermal throttling with emul temp
Bug: 183571707
Bug: 170653634
Bug: 170670750
Change-Id: Iebfc11483e2ebbf0d7fe59edf8818ccb4325457e
2021-04-21 15:44:39 +00:00
Tai Kuo
cb7d8ddca3 raven: Launch twoshay during boot
Bug: 174189880
Test: twoshay is launched
Signed-off-by: Steve Pfetsch <spfetsch@google.com>
Change-Id: I9c4b2c760d4b004944728a3ebdeb4c0da937c10f
Signed-off-by: Tai Kuo <taikuo@google.com>
2021-04-16 20:47:53 +00:00
Ilya Matyukhin
71b5c99a7f raven: use GHBM for PROTO1.0 devices
Bug: 185421174
Test: manual on R4 P1.0
Change-Id: Ic731b5ae3b45241906f3a51e02fbcd1d368fbddb
2021-04-15 06:55:53 +00:00
Ilya Matyukhin
8e2b19558f oriole: use GHBM for PROTO1.0 devices
Bug: 185421174
Test: manual on O6 P1.0
Change-Id: I7bbb04e7c894d8dd1014e6f16f25643e208edd3c
2021-04-15 06:55:42 +00:00
Benjamin Schwartz
eeaf5ea672 powerstats: Add Uwb stats
Bug: 180956351
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: Ib528558b2efae9a35494bafcf2c675325cbcf6fe
2021-04-14 22:14:44 -07:00
gillianlin
0a5b5bb2aa factory: rename vendor property with a prefix
rename the property with vendor prefix

Bug: 182954248
Test: Local verified
Change-Id: I9858ef62e32f3167e36fdc612f6850f1ec1d45cd
2021-04-06 06:35:26 +00:00
Ilya Matyukhin
369d53cb09 raven: grant write access to the LHBM node
Bug: 182520014
Test: on device
Change-Id: I2de9933f7a7c13a5b278220ca54d3c89c0865f4f
2021-03-19 23:27:56 +00:00
Ilya Matyukhin
c0695517bc oriole: grant write access to the LHBM node
Bug: 182520014
Test: on device
Change-Id: I5c23c93ee0aa5fad745bf2344581d07e2e64b01c
2021-03-19 20:07:47 +00:00
Tai Kuo
2fe803e23d oriole: Launch twoshay during boot
Bug: 173330899
Test: twoshay is launched
Signed-off-by: Steve Pfetsch <spfetsch@google.com>
Change-Id: I189f32e0fcb6b5880bc188971cc847603aafa4dc
Signed-off-by: Tai Kuo <taikuo@google.com>
2021-03-18 12:29:27 +00:00
Ilya Matyukhin
98d9dd1e00 raven: run trusty_apploader from system shell for faceauth
Bug: 182953825
Test: on device
Change-Id: I27ec828b4c8e80e2b1dcfdc480bca069e18ebf22
2021-03-16 20:17:14 -07:00
Tai Kuo
7c202b299e raviole: support touch sensitivity mode switching
Use a persist system property to control the touch driver attribute
file glove_mode.

0: default sensitivity mode (default)
1: high sensitivity mode

Bug: 173330977
Bug: 174189638
Test: manual test
Signed-off-by: Tai Kuo <taikuo@google.com>
Change-Id: Id5e31bd335f8872993ea82ad9a7e7217ed9de5c6
2021-03-13 11:28:33 +08:00
Ilya Matyukhin
105bb1e432 Merge "raven: load the faceauth.app on boot" into sc-dev 2021-03-12 21:04:40 +00:00
Ilya Matyukhin
a6dca6e3ab raven: load the faceauth.app on boot
Bug: 182207615
Test: log trusty_apploader
Change-Id: I4de8dedcaba966ade080216237dcca8231da613b
2021-03-08 18:48:57 -08:00
Kris Chen
0ccb1ab0b3 trusty_apploader: Fix avc errors
Fix the following avc denial:
trusty_apploade: type=1400 audit(0.0:3): avc: denied { dac_override } for capability=1 scontext=u:r:trusty_apploader:s0 tcontext=u:r:trusty_apploader:s0 tclass=capability permissive=1

Bug: 180874342
Test: Verify no avc denied when trusty app is loaded.
Change-Id: I4f54fb70c92ba47027cc8bd19b4fe9c2ff9e5a03
2021-03-08 16:47:01 +08:00
Robin Peng
cd374d8ea9 Move slider into gs101 and <device>
from: 026342771c6642980cb4653b1ec4d857a5d8be54

Bug: 167996145
Change-Id: I08376762c559b3a7fd2cd2d743d090269ed52c94
2021-03-06 16:30:54 +08:00