Commit graph

38 commits

Author SHA1 Message Date
Brian Norris
32a1b78620 felix: Pull init.insmod.*.cfg from vendor_dlkm
We've started pushing init.insmod.*.cfg into the kernel prebuilts, and
installing it to /vendor_dlkm/etc, but it may not be available on all
prebuilt variants (e.g., kernel 5.10).

Here, we:
1. conditionally install our common init.*cfg to /vendor_dlkm (only if
   $(TARGET_KERNEL_DIR) doesn't have a copy)
2. point init at /vendor_dlkm/etc

When we've cycled completely off of kernel 5.10, we can drop #1.

Bug: 369686096
Test: build, boot
Flag: EXEMPT refactor
Change-Id: If8f879366645cbe9bf330d136dd7190763b2d6bc
2024-10-08 20:12:15 +00:00
Midas Chien
69a33e25cb display: allow hwcomposer to access allow_wakeup_by_state_change
Bug: 311495944
Test: check permission
Change-Id: I42f2c0bff855f59a9fbd514e4309561867edfb84
2024-01-17 07:54:36 +00:00
Jenny Ho
977f2468ab Add permission for dual battery stats
Bug: 293523710
Change-Id: I0ceca5cab49528110a21e486929c4ec20d1be58f
Signed-off-by: Jenny Ho <hsiufangho@google.com>
2023-10-11 00:43:49 +00:00
TeYuan Wang
b486f5a3ee thermal: modify emergency and shutdown threshold
Bug: 289752109
Test: adb shell cat /dev/thermal/tz-by-name/skin_therm/trip_point_*_temp
Test: adb shell dumpsys android.hardware.thermal.IThermal/default
Change-Id: I619fd5a5ee4e668430b4002c58123525e9b14812
2023-07-18 15:59:57 +00:00
Rick Chen
508fa1bcb4 hall_sensor: Disable hall sensor input when bootmode is unknown
Bug: 284431215
Test: 1. No hall sensor in getevent.
      2. Inner/outer screen can be switched in offmode charging,
      recovery, fastboot mode.
Change-Id: Id9f93b4687898cf23601516cf69d0338df14e2aa
Signed-off-by: Rick Chen <rickctchen@google.com>
2023-06-29 15:10:50 +08:00
Wei Wang
1720a58af9 Merge "Remove rt_uclamp_min and sf_uclamp_min" into udc-dev 2023-06-02 16:33:37 +00:00
Matt Buckley
a11109043b 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: I7a0d90271fd015f92fde5b0ca7f838db98a45331
2023-06-01 20:47:22 +00:00
eddielan
fc277e1894 conf: Move loading 1540.app to HAL rc file
Bug: 280624498
Test: Build pass
Change-Id: I0694cc4483dcd5556f307361a6e9d514d8408549
2023-05-15 18:58:38 +08:00
Wendly Li
c5e5774ae2 touch: move the setup of gti ownership to gs-common
Bug: 278023960
Test: adb bugreport
Change-Id: I6fda146f5fe5d1c0796b409c8bc29ac7bc4306c6
Signed-off-by: Wendly Li <wendlyli@google.com>
2023-05-08 17:09:51 +00:00
TeYuan Wang
ef7a8d52c8 thermal: update experimental thermal config am: fd349fa42c am: 952628d23d
Original change: https://googleplex-android-review.googlesource.com/c/device/google/felix/+/20769078

Change-Id: I36a4b2755e728a4dcdade085c453ac9dc575bb05
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-23 12:46:48 +00:00
TeYuan Wang
fd349fa42c thermal: update experimental thermal config
Bug: 261933386
Test: switch property and check thermal log
Change-Id: Iad5ad7aecc7957a489ed8a1afb1da8e148b46ea7
2022-12-23 15:55:18 +08:00
TreeHugger Robot
81670c4f9a Merge "Init: Set property of GTI file nodes" into tm-qpr-dev am: e472a0245c am: 93ee2ccda8
Original change: https://googleplex-android-review.googlesource.com/c/device/google/felix/+/20559798

Change-Id: I46ceb022e0c50c6c5ec8dff0a78395a8df4fdd68
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-29 08:39:13 +00:00
Mason Wang
fd8a7bc61b Init: Set property of GTI file nodes
1.Set property of GTI file nodes
2.Mapping touch_sensitivity_mode to screen_protector_mode

Bug: 226475119
Test: Verify pass by access file nodes.
Change-Id: I011db849275efa7a6eeb462df0c0743b493b7381
2022-11-25 20:00:48 +08:00
Rick Yiu
52df0577fb Merge "Set dalvik.vm.dexopt.thermal-cutoff to 1" into tm-qpr-dev am: af96122d9a am: 48e4fc3aa8
Original change: https://googleplex-android-review.googlesource.com/c/device/google/felix/+/20403845

Change-Id: Ibea96451ad218d570020d286b63f14c03b277f3c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-09 08:25:28 +00:00
Rick Yiu
c6d5bb3130 Set dalvik.vm.dexopt.thermal-cutoff to 1
Bug: 256753117
Test: build pass
Change-Id: I35ee90954558a937e95196c5f2a947b081aa4886
2022-11-07 13:52:23 +00:00
Rick Yiu
0e6c7f5b36 Merge "Import init.factory.rc" into tm-qpr-dev am: 8b013cbb70 am: d144356dc3
Original change: https://googleplex-android-review.googlesource.com/c/device/google/felix/+/20351990

Change-Id: Idf07d734275440e958955811065aa9a83a16aa5c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-04 04:13:05 +00:00
Rick Yiu
3c6c9d7ca2 Import init.factory.rc
The rc file is missing.

Bug: 256805891
Test: build pass
Change-Id: Idfa2e67bac474aac5199409b3e717e08a9898506
2022-11-03 07:48:38 +00:00
TreeHugger Robot
11623ac92f Merge "Set audio.camerasound.force for JP devices" into tm-qpr-dev am: f9213b1d78 am: bcc612a760
Original change: https://googleplex-android-review.googlesource.com/c/device/google/felix/+/20269970

Change-Id: I75a37d27f39bb7d7cbbec5e9e0a180e6c4a0480a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-24 09:54:59 +00:00
Cyan_Hsieh
d0fe411f84 Set audio.camerasound.force for JP devices
Test: set to JP sku and check No camera sound option
Bug: 255226094
Change-Id: I11050e39a447ac5748a05fd109447866dff5f613
2022-10-24 12:53:31 +08:00
eddielan
92606e269a init: Remove unused g7.app am: 31db954709 am: 62e2d0cbce
Original change: https://googleplex-android-review.googlesource.com/c/device/google/felix/+/20241844

Change-Id: I5dd90c397378ccaf79e438cb75ad8177372e1730
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-21 10:22:46 +00:00
eddielan
31db954709 init: Remove unused g7.app
Bug: 254410096
Test: Build pass
Change-Id: I134ff85f39b0fd69171b202dc7782eb04364147f
2022-10-21 14:06:27 +08:00
Mark Chang
a6791fd88e Merge "Start twoshay service on boot." into tm-qpr-dev am: 8ff8e9a100 am: 83b03127ae
Original change: https://googleplex-android-review.googlesource.com/c/device/google/felix/+/20159049

Change-Id: Ieaf19d696f8d47a8976f8c0ae2f2cb30073a35fb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-18 03:18:16 +00:00
Mark Chang
a73876fe62 Start twoshay service on boot.
Bug: 226474828
Test: Verified twoshay launched successfully.
Signed-off-by: Mark Chang <changmark@google.com>
Change-Id: I3294cfaced458527f6967720f109502d7d9f5ed2
2022-10-11 06:13:20 +00:00
Adam Shih
95ddbd2258 use gs-common insert module script
Bug: 243763292
Test: boot to home
Change-Id: Ife1b17ac377d5d3bdad63bdf3a2d9f98ae603a01
2022-09-06 12:44:21 +08:00
jimmyshiu
6a07310af2 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: If485f2bb12c5e44e58f294807b5085016b148192
(Port from commit 8a419466b86ab07a25fc18d7d6a2a9ee154f6839)
2022-08-29 12:23:54 +00:00
Jimmy Chen
5d98978037 p2p: fix p2p configuration
The correct path should be under /data,
or it is not writable.

wpa_supplicant now support p2p overlay configuration, a unified
wpa_supplicant init entry can be used.

Bug: 238601241
Test: create a group and check this group is persisted
      after reboot
Change-Id: If34d3173bba6d3fe2296d3dd63b05d99221faf42
2022-08-24 08:53:46 +08:00
TeYuan Wang
151785628d thermal: bringup basic thermal config
Bug: 236787506
Test: adb shell lshal debug android.hardware.thermal@2.0::IThermal/default
Change-Id: If12f51a4fe75e1d4487f6e0be0dd74c0e3e72984
2022-06-24 08:27:50 +08:00
Lily Lin
4fa7fee2b6 Merge "Enable read/write access to st33spi_state for euiccpixel_app" into tm-qpr-dev 2022-06-15 03:44:45 +00:00
Lily Lin
8b93bbadd7 Enable read/write access to st33spi_state for euiccpixel_app
Bug: 231522746
Test: Confirm F10 can read/write st33spi_state
Change-Id: I5fe60a3d5eca6c8af443f66e46c97bfeb4bbc742
2022-06-13 20:11:47 +08:00
linpeter
73fc8f18a8 Secondary display sysfs node permission
Grant the permissions for hwcomposer when fs on.

Bug: 232886745
test: check sysfs permissions
Change-Id: I40c8e457d9e3ef1d28c99cbbd4f8ba572dbdf45e
2022-05-26 14:16:28 +08:00
linpeter
0bb86b2b65 Secondary brightness sysfs node permission
Grant the permissions for hwcomposer when fs on.

Bug: 233290553
test: check brightness
Change-Id: I9dfbd830094d1e9c55cfc3eda2006387c3dca399
2022-05-20 02:21:40 +00:00
davidycchen
34ec640b3b F10: Disable twoshay as default.
Temporary disble the twoshay service for bring up stage.

Bug: 232043149
Test: touch is workable after stop twoshay.

Signed-off-by: davidycchen <davidycchen@google.com>
Change-Id: I5a216458b6d8692c530fca31ff44dd53697593c5
2022-05-10 13:01:12 +08:00
eddielan
a8e685cccc conf: init fps driver no post-fs-data stage
--w------- 1 system system 4096 2022-04-27 08:15 clk_enable
--w------- 1 system system 4096 2022-04-27 08:15 hw_reset
-rw------- 1 system system 4096 2022-04-27 08:15 irq
--w------- 1 system system 4096 2022-04-27 08:15 wakeup_enable

Bug: 229685137
Test: make -j112 & check node property changed
Change-Id: Ide6d18dbdaf7faf347615bcdafc18b29778df0da
2022-04-27 17:38:38 +08:00
Isaac Chiou
bc33412014 wlan: initial function bring up
Include necessary definition, service for wlan function.

Bug: 228913716
Test: WiFi can be enabled with "adb shell cmd wifi set-wifi-enabled enabled"
Test: WiFi can scan with "adb shell cmd wifi start-scan"
Test: WiFi can get scan result with "adb shell cmd wifi list-scan-results"
Test: WiFi can connect to an AP with "adb shell cmd wifi connect-network GoogleGuest open"
Test: WiFi can ping with "adb shell ping www.google.com"
Change-Id: I8798cc1662191f72d672d6b40f92d1ce62b84c74
2022-04-13 15:24:51 +08:00
Rick Chen
f73ecea4f5 Disable hall sensor in factory mode.
Bug: 226505523
Test: Set ro.bootmode=factory and see hall sensor is disabled.
Signed-off-by: Rick Chen <rickctchen@google.com>
Change-Id: Ic698c1ed9fde777f5686c1597eee2ec7b8952474
2022-04-08 10:53:01 +08:00
TeYuan Wang
9d3f8fa70c thermal: disable SKIN thermal throttling
Disable SKIN thermal throttling to avoid any side effect until we
receive the device which has the normal HW thermal solution.

Because the Tj thermal throttling is still workable, so there should be
no overheating risk.

Bug: 221077673
Test: no thermalHAL crash found
Change-Id: I88c23527b5add9e6b07a2ea4ab824ea4f699261c
2022-04-06 17:25:36 +08:00
Cyan_Hsieh
687519c606 update felix device
based on pipit   93e38fbd070b55875d9c23e214dff6d26ac0cdf9
based on cheetah cdc1dc5379faf6bb60cf4f8b4b967ae87992b2ed

Bug: 206057564
Change-Id: I68ca7715cf7fd96066d8d517bc4daf236512f501
2022-03-08 10:59:22 +08:00
Cyan_Hsieh
e7cfbb7e37 Initialize device felix
based on pipit 68a0b4b411e8d23dfd966d24a5c35ea4ffb9d5f1
and cheetah 9acaa7507c23ffc7ca5f82a9579dd3a7c56af809

Bug: 206057564
Change-Id: Id59ed48d2a39c9a5a811c41157732914f3568d51
2021-12-08 16:10:12 +08:00