Commit graph

197 commits

Author SHA1 Message Date
Kyle Tso
2307196bb8 Disable USB contaminant detection when the disable flag is true
(ported from 6b1106498e1164f46b9a895ed2258a20a0c7a7b5)

Bug: 244658328
Signed-off-by: Kyle Tso <kyletso@google.com>
Change-Id: I9d17748d24f3c402deaddb8a9bca89f8ef606056
Merged-In: I9d17748d24f3c402deaddb8a9bca89f8ef606056
2022-09-30 08:56:59 +00:00
Jeremy Kemp
6ef57bda36 GPU: Remove write to ifpo sysfs node.
As part of pa/2288829, this node becomes unsupported.

Prevents -ENOTSUPP errors when trying to write to Mali's ifpo sysfs
node.

Test: Boot to homescreen
Bug: 247571932
Change-Id: I0b579728a5b2a4355d648020113dda0592f904aa
Signed-off-by: Jeremy Kemp <jeremykemp@google.com>
2022-09-23 16:55:20 +00:00
Jenny Ho
47adfbe5fa init: add permission to adjust wlc fan alarm level
Bug: 246486657
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: Id02b6e415aad9f5dae081c45e4db667c27966130
2022-09-20 12:42:38 +08:00
Sayanna Chandula
b8acf39ef0 Revert "thermal: remove gxp cooling device dependency"
This reverts commit 617f8719f5.

Re-enable gxp cooling device

Bug: 238273184
Test: build and boot on device
Signed-off-by: Sayanna Chandula <sayanna@google.com>
Change-Id: I3787c11e674b6781b81d01aad2abc88d99c1d1d0
Merged-In: I3787c11e674b6781b81d01aad2abc88d99c1d1d0
2022-09-19 20:33:20 +00:00
Cheng Chang
034981b6e5 gps: raise gps service priority
Bug: 237695224
Test: Result 241195410
Change-Id: I9106b8ba3111296225985b4c9f3c2365c23d445d
2022-09-06 03:07:18 +00:00
David Chao
0d14937aef thermal: move charger thermal HAL setup into project
Move charger pixel-thermal-symlink from common to project folder
to prevent the GKI version dependencies from blocking init.

Bug: 240897207
Test: thermal_symlinks worked properly in charging mode
Change-Id: I46a4fe59fe62845f8197d3a59b18af0945a163f4
2022-08-22 19:54:12 +00:00
Rick Yiu
b0718b6702 Modify rt_uclamp_min value am: 97064d1b58
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/19576151

Change-Id: I540f259d1da61ef8dda59978ce49a0c075993342
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-10 17:42:01 +00:00
Rick Yiu
97064d1b58 Modify rt_uclamp_min value
Change the value so that it will map to 910 MHz on mid cores, which
aligns the result of P21.

Bug: 234561004
Test: build pass
Change-Id: I372462d240c5de295959878322c62cc3657cce7c
2022-08-10 17:07:21 +00:00
TeYuan Wang
f14529ed67 thermal: allow system to overwrite the skin_therm's trip point
Bug: 236787614
Test: ls -al dev/thermal/tz-by-name/skin_therm/trip_point_0_*
Change-Id: I382214c4942a4f29ee13bf85c8900d131067ae39
2022-08-09 03:08:54 +00:00
Randall Huang
a245c22458 Enable scsi error recovery log for debugging
Bug: 239451498
Test: run storage-qa pixel/039
Signed-off-by: Randall Huang <huangrandall@google.com>
Change-Id: I4031bd245d8b22762a5fe5a678bc8568ff4eb0c5
2022-08-04 01:33:48 +00:00
Edmond Chung
2b0b2ca387 Camera: Create video_bokeh_node folder at boot am: 38305941b6
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/19499376

Change-Id: I80d7754b6d6eaf90172bd923cad31a0ffb22314e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-03 00:50:49 +00:00
Edmond Chung
38305941b6 Camera: Create video_bokeh_node folder at boot
Bug: 241054363
Test: Build, run on user-build
Change-Id: I8403c58ed5e9fa6f9bb68012298855d84cfec23e
2022-08-03 00:03:32 +00:00
Ananth Raghavan Subramanian
423562d561 init: Change pm_freeze_timeout
Reduce /sys/power/pm_freeze_timeout to 1s from default of 20s.
Data shows that the 20s timeout is rarely hit before suspend is aborted
due to a wakeup/interrupt. Reducing the timeout will help with
diagnosing task freezing issues and will reduce time spent attempting
suspend.

Bug: 239743579
Test: Successfuly boot to home, verify change in node
Signed-off-by: Ananth Raghavan Subramanian <ananthrs@google.com>
Change-Id: I839764dd06ebd66110c11953baf13c06e598dd80
Merged-In: I839764dd06ebd66110c11953baf13c06e598dd80
(cherry picked from commit e84f3603d1)
2022-08-02 16:43:51 +00:00
Jaegeuk Kim
74ff274895 Use EXT4 for /persist am: 83e0b84caf
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/19388119

Change-Id: Ic16b53341152a794ae2591e4a7fb25df26b41cd9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-01 18:17:28 +00:00
Konstantin Vyshetsky
bab4345e6b gs201: add script to migrate persist to ext4 am: 214b76abd3
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/19391442

Change-Id: Ia821dfb32ba14e9610d63cc83653408fc80d20d1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-01 18:17:27 +00:00
Jaegeuk Kim
83e0b84caf Use EXT4 for /persist
Bug: 239632964
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: Idf41e3b71fec50029b77951550def1b8c750a42d
2022-08-01 18:00:49 +00:00
Konstantin Vyshetsky
214b76abd3 gs201: add script to migrate persist to ext4
Bug: 239632964
Signed-off-by: Konstantin Vyshetsky <vkon@google.com>
Change-Id: If3ac021dec5b25968e83f926518e2881c92d2275
2022-08-01 18:00:49 +00:00
Jack Wu
ed1fa3ae48 init: disable dock-defend
User will enable/disable this feature from UI setting

Bug: 239889098
Test: dock-defend is disabled by default
Signed-off-by: Jack Wu <wjack@google.com>
Change-Id: I1b0dd49208f345d4edeee81f9b07d2de93f97d45
2022-07-22 03:58:20 +00:00
Cheney Ni
a150e72f05 Bluetooth: correct logbuffer_btpower owner to Bluetooth
Bug: 229691092
Test: Pass file permission check
Change-Id: I62c0c32124859db36b530a861bcc554d9a9d6c33
2022-07-20 19:05:20 +00:00
Robin Peng
6f754fdde9 init.gs201.rc: remove vendor.device.modules.ready from 'on init' section
1) for projects with device specific modules, this property should only
   be set while device modules been loaded.
2) also remove "wait_for_prop vendor.device.modules.ready 1" to prevent
   infinite wait
3) migrate vendor.all.modules.ready/vendor.all.devices.ready to
   init.insmod.<DEVICE>.cfg and set these proprieties while .cfg not
   exist

Bug: 238853979
Signed-off-by: Robin Peng <robinpeng@google.com>
Change-Id: Ie5a2b939191947c4fce154dde48859a28fe86329
2022-07-15 14:43:48 +00:00
TeYuan Wang
938a1692d5 thermal: allow system to overwrite the usb_pwr_therm2's trip point
Bug: 233003074
Test: ls -al /dev/thermal/tz-by-name/usb_pwr_therm2/
Change-Id: I2ac803d455ebd7240bedf70bbcf98ef3c9e1d8c3
2022-07-15 07:12:25 +00:00
Kyle Tso
e31dc795f1 dumpstate: Dump logs
Bug: 237082721
Test: log dumped in bugreport
Signed-off-by: Kyle Tso <kyletso@google.com>
Change-Id: I8dfcbb397581644b6daf1a4c0aa45d53b5662dcd
2022-07-09 07:22:55 +00:00
Jenny Ho
4c0d4e0364 set dev_sn for battery pairing am: 96ef4de2a7
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/19209955

Change-Id: I1158076554d24f0d61525d665bd3a9cdd6cdb765
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-08 02:28:48 +00:00
Jenny Ho
96ef4de2a7 set dev_sn for battery pairing
Bug: 238307181
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: I8b1c0de4b57e6475627e279bd890fe66ca8e92c5
2022-07-08 02:01:29 +00:00
SalmaxChang
259c65daff conf: create dedicated init rc for modem
Create dedicated init rc for modem stuffs and only included for modem
projects.

Bug: 236909975
Change-Id: I08be8a95cfe86c1e01b6193d47d717e7835a6af6
2022-07-06 16:04:13 +08:00
Ted Lin
f451b3b7c3 Remove the unused attribute set from init.rc
06-08 13:13:07.488   383   383 I auditd  : type=1400 audit(0.0:4): avc: denied { setattr } for comm="init" name="registers" dev="debugfs" ino=29509 scontext=u:r:vendor_init:s0 tcontext=u:object_r:vendor_regmap_debugfs:s0 tclass=file permissive=0
06-08 21:13:07.488   383   383 I auditd  : type=1400 audit(0.0:4): avc: denied { setattr } for comm="init" name="registers" dev="debugfs" ino=29509 scontext=u:r:vendor_init:s0 tcontext=u:object_r:vendor_regmap_debugfs:s0 tclass=file permissive=0

Bug:235395130
Test: check bugreport
Change-Id: Ie199f29d034c705b4f0a0d7e5ad178b9e8dcc282
Signed-off-by: Ted Lin <tedlin@google.com>
2022-07-06 07:31:43 +00:00
George Lee
fc3bf6340b bcl/init: Remove unused sysfs write. am: 1ea0a6316b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/19173702

Change-Id: Ia9249b338b68cad8971d96a22eabaabe8ea61782
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-05 19:38:46 +00:00
George Lee
1ea0a6316b bcl/init: Remove unused sysfs write.
SOFT_OCP_TPU/GPU/CPU are no longer used.

Bug: 234275748
Test: Boot and verify
Signed-off-by: George Lee <geolee@google.com>
Change-Id: I4c6a4063ef25c23d88d2b45601a2bafbe2f3d089
2022-07-05 19:14:08 +00:00
Ted Lin
097f0b8ae3 Remove the unused attribute set from init.rc
06-08 13:13:07.488   383   383 I auditd  : type=1400 audit(0.0:4): avc: denied { setattr } for comm="init" name="registers" dev="debugfs" ino=29509 scontext=u:r:vendor_init:s0 tcontext=u:object_r:vendor_regmap_debugfs:s0 tclass=file permissive=0
06-08 21:13:07.488   383   383 I auditd  : type=1400 audit(0.0:4): avc: denied { setattr } for comm="init" name="registers" dev="debugfs" ino=29509 scontext=u:r:vendor_init:s0 tcontext=u:object_r:vendor_regmap_debugfs:s0 tclass=file permissive=0

Bug:235395130
Test: check bugreport
Change-Id: Ie199f29d034c705b4f0a0d7e5ad178b9e8dcc282
Signed-off-by: Ted Lin <tedlin@google.com>
2022-07-05 13:24:04 +00:00
matthuang
4608b93094 Set permission and owner for acd-com.google.usf.non_wake_up.
Bug: 195077076
Test: check file permission.
Change-Id: I98aadb9bb2735a9ebc4eed4cd49c01b9bbef392e
2022-07-01 02:16:02 +00:00
Vincent Palomares
782c4f9bdd Suspend/resume: Optimize suspend/resume callbacks. am: 219f46b9a9
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/18977286

Change-Id: Ieadc8ace3ac28bddfc07d3ebadccec89cdd22040
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-30 20:39:51 +00:00
Vincent Palomares
219f46b9a9 Suspend/resume: Optimize suspend/resume callbacks.
Bug: 235135485
Test: boot / hints applied correctly
Change-Id: I2f2200611698a9971eb3885ab81be02d105d2aa2
Signed-off-by: Vincent Palomares <paillon@google.com>
2022-06-30 20:16:57 +00:00
Jack Wu
1cb6abcdc6 init: disable dock-defend in charger mode
Need to meet energy certification test requirement which needs to
be able to charge FULL.

Bug: 235437635
Test: can charge to full on dock in charger mode
Signed-off-by: Jack Wu <wjack@google.com>
Change-Id: Ifc99a3c48c129c68bf69a9832c0df0cd14b796e0
2022-06-28 16:27:31 +08:00
xiaofanj
4bdbbe6d70 ueventd: create oem test iodev
Bug: 231380480

Signed-off-by: Xiaofan Jiang <xiaofanj@google.com>
Change-Id: Ie96c8aec0897b97f5e65f02e57eeffa149805178
Merged-In: Ie96c8aec0897b97f5e65f02e57eeffa149805178
2022-06-28 03:16:08 +00:00
Jesse Hall
0defa6d923 Disable GPU firmware logging am: 9497487826
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/19067922

Change-Id: I9c6ce8b50314ae6eb2757237c110892e9da4aa15
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-24 23:31:44 +00:00
Jesse Hall
9497487826 Disable GPU firmware logging
Test: check sysfs node value after boot
Bug: 237080441
Change-Id: I27d2896ad57ab9245fe78839722d8fe62fb148bb
2022-06-24 14:25:05 -07:00
Sayanna Chandula
9f66710fc9 thermal: remove gxp cooling device dependency am: 617f8719f5
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/19023636

Change-Id: I51b5c047923cbec2c6b648ffeab64295ba960a4d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-23 23:28:08 +00:00
Sayanna Chandula
617f8719f5 thermal: remove gxp cooling device dependency
Bug: 236296247
Test: Build and boot on device
Signed-off-by: Sayanna Chandula <sayanna@google.com>
Change-Id: I336ac5eee16771c59a66776f71b9a4e1b5c76461
2022-06-23 23:11:18 +00:00
Jenny Ho
e3a70263b6 init.rc: add permission to dump battery debugging data
Bug: 205259954
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: I6d71cc6fb11e1881d78a81f36162e3d9493654bd
2022-06-21 06:33:43 +00:00
Jack Wu
59f0266f32 add permission for pca charge_stats access
Bug: 235050913
Test: no Permission denied while accessing the file node
Signed-off-by: Jack Wu <wjack@google.com>
Change-Id: I078990fe143d46f30eb0fdf22985c193dcde240d
2022-06-17 02:52:08 +00:00
Daeho Jeong
53b5f98e5f fstab: disable auto compression for apk,apex,so,vdex and odex am: b9e1ca36f8
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/18877458

Change-Id: I0772e8130cf8544d92dcedc4ed63fc4707d822e8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-16 16:39:14 +00:00
Daeho Jeong
b9e1ca36f8 fstab: disable auto compression for apk,apex,so,vdex and odex
Bug: 235480291
Test: check mount option
Signed-off-by: Daeho Jeong <daehojeong@google.com>
Change-Id: I6ca2c41563dd63c88b96672a40b57c12b4533c74
2022-06-16 16:14:11 +00:00
Dave Chen
7f0347e6a0 Add folder needed to hold camera calibration files am: 482a3c1562
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/18884381

Change-Id: Ib8b4a3b2b616308ef9d522aae71644a2c94c0086
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-15 00:56:43 +00:00
Dave Chen
482a3c1562 Add folder needed to hold camera calibration files
Test: run on P10
Bug: 233716733

Change-Id: Ic627d73d6d9a604bda71bf2f2a91c19fc9bb1437
2022-06-14 23:52:49 +00:00
Jack Wu
d10e415cd9 init: disable dock-defend in charger mode
Need to meet energy certification test requirement which needs to
be able to charge FULL.

Bug: 235437635
Test: can charge to full on dock in charger mode
Signed-off-by: Jack Wu <wjack@google.com>
Change-Id: I727e2596928dc8f95d7aeba775241419ddd78273
2022-06-14 05:11:51 +00:00
David Chao
2b483be348 thermal: allow system to overwrite the skin_therm1's trip point
/dev/thermal/tz-by-name/skin_therm1 # ls -l
total 0
-rw-r--r-- 1 system system 4096 2022-06-06 13:41 trip_point_0_hyst
-rw-r--r-- 1 system system 4096 2022-06-06 13:41 trip_point_0_temp

Bug: 233972622
Test: ls -al /dev/thermal/tz-by-name/skin_therm1/
Change-Id: I347c645c7ce23e6e26ea7ef20db9d6f0a66b6498
2022-06-09 03:17:57 +00:00
Kean Mariotti
41329324a4 Revert "init: fix incorrect pca94xx sysfs node path"
This reverts commit 0d15498d3e.

Reason for revert: 235332394

Change-Id: I50e46d66f33b1b29917f6827fc9cb51da9fe293a
2022-06-08 12:51:36 +00:00
Jack Wu
0d15498d3e init: fix incorrect pca94xx sysfs node path
Bug: 235050913
Test: can parse pca stats in pixelstats-uevent
Signed-off-by: Jack Wu <wjack@google.com>
Change-Id: I4b921102bd46544adfc049816ba31b3188859973
2022-06-08 09:24:39 +00:00
TeYuan Wang
879b29aea1 thermal: allow system to overwrite the usb_pwr_therm's trip point
Bug: 222577017
Test: ls -al /dev/thermal/tz-by-name/usb_pwr_therm/
Change-Id: Ic7807bb67808a55e56ae65367729d083df672225
2022-05-24 17:24:41 +00:00
Jaegeuk Kim
453105b5cc Revert "use erofs for RO partitions" am: 0c024a7f2b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/18494501

Change-Id: If2a1d4fde080cd0c838494812933196e1114abf2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-23 22:31:03 +00:00