Commit graph

292 commits

Author SHA1 Message Date
Jack Wu
4dc5683053 init: add permission for first_usage_date access
Bug: 275441997
Test: write first_usage_date sysfs node successfully
Change-Id: Iaeccf5c16701390e1aedadcb75ce312fcc40d4ce
Signed-off-by: Jack Wu <wjack@google.com>
2023-03-30 19:38:21 +08:00
Jack Wu
559d0c1057 init: add permission for charging_policy access am: fb8fb609b0
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/2418901

Change-Id: Icc2d509be2b0cb7261e3f24db68180f996bed7fb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-03 05:42:30 +00:00
Jack Wu
fb8fb609b0 init: add permission for charging_policy access
Bug: 251425963
Test: write charging_policy sysfs node successfully
Change-Id: I523e27088819c479cd323333729f65aae2e33124
Signed-off-by: Jack Wu <wjack@google.com>
2023-02-02 20:14:34 +08:00
Jack Wu
ed6a5ea035 init: enable dock-defend by default am: f5f9239424
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/20716912

Change-Id: I09132239b942310e4e1fd4485bccb3d2f83cf028
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-13 14:39:10 +00:00
Jack Wu
f5f9239424 init: enable dock-defend by default
dock-defend is enabled in kernel code.

Bug: 262322247
Test: dock-defend is enabled by default
Change-Id: Ibbd83fc2442e2a6d68d7f506ccd29d452947931c
Signed-off-by: Jack Wu <wjack@google.com>
2022-12-13 11:18:47 +08:00
Chungkai Mei
dc8331b958 Remove UClamp Threshold setting am: ef9d0934c6
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/20673904

Change-Id: Ib2c518fccc4f9267dfc2cffbad7aa2b08be38c55
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-09 22:27:19 +00:00
Chungkai Mei
ef9d0934c6 Remove UClamp Threshold setting
the file node was removed so also remove these
dummy setting

Bug: 260806701
Change-Id: I23044f7f32cf4b2b2cc93205ec5751525f05ee7f
Signed-off-by: Chungkai Mei <chungkai@google.com>
2022-12-09 21:43:57 +00:00
Jenny Ho
e4fd1ce422 dumpstate: dump battery defend logbuffer am: 34e66966c7
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/20310168

Change-Id: Ibbc74ada239907e10aeaf9a392cf392a3eee37d4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-03 00:59:48 +00:00
Jenny Ho
34e66966c7 dumpstate: dump battery defend logbuffer
Bug: 242679204
Change-Id: I59c2267105ef093a75c2cac2183c941def70b10f
Signed-off-by: Jenny Ho <hsiufangho@google.com>
2022-11-03 00:39:32 +00:00
Chungkai Mei
fbc3f8ab1c init: set teo as cpu idle governor am: 776ba5911d
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/20257690

Change-Id: Ie9589231eb34db91d4e89e10c8a1b365acd3b0fc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-21 19:35:13 +00:00
Chungkai Mei
776ba5911d init: set teo as cpu idle governor
To enhance system performance and save power, chagne idle governor to TEO.

Test: boot to home
Bug: 175800838
Signed-off-by: Chungkai Mei <chungkai@google.com>
Change-Id: I591c1ff8d0c9ed8d5a3b4861c9c5b715ed1c3eae
2022-10-21 18:49:49 +00:00
Speth Chang
9082dc76a8 gs101: create catpipe folder for camera useage am: 2e58ceae22
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/20190404

Change-Id: I9f6ab5649d2c25b133e021df4e8b21b28ef0b338
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-17 06:45:27 +00:00
Speth Chang
2e58ceae22 gs101: create catpipe folder for camera useage
The folder will be used for place the necessary libraries that used by
catpipe functions.

Bug: 249274299
Test: build pass, check the folder with user build
Change-Id: I275af8e716de8dc433f0b43afb20866a9eff8642
2022-10-17 06:13:42 +00:00
Jenny Ho
52fcfba09b init: add permission to adjust wlc fan alarm level am: 926cb2a319
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/19992036

Change-Id: I3568b1fa5f4787b2316a981a22ccfcccd683fd0c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-20 16:30:39 +00:00
Jenny Ho
926cb2a319 init: add permission to adjust wlc fan alarm level
Bug: 246486657
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: I6336a86c1e7cfa8d30f593d1b8fcbe8aba699226
2022-09-20 13:09:58 +08:00
Cheng Chang
1db9781209 gps: raise gps service priority am: b1ea1a74fe
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/19570488

Change-Id: I4984df1009be32bbaa3c2d4cef54a7f30656c0ff
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-06 03:30:41 +00:00
Cheng Chang
b1ea1a74fe gps: raise gps service priority
Bug: 237695224
Test: Test Result 241195410
Change-Id: Ia72596564b3bcf9d9142155cd48ab57beb4c847e
2022-09-06 03:07:09 +00:00
David Chao
59a427c887 thermal: move charger thermal HAL setup into project am: f121ec6625
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/19638879

Change-Id: I886eadc929e77308189aa3b664f97b08608cfb37
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-22 20:11:23 +00:00
David Chao
f121ec6625 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: I0d3b03c9add57b14f255eb66a1a7a46fa6c4b257
2022-08-22 19:54:12 +00:00
Jimmy Chen
e0826531c6 p2p: fix p2p configuration am: 3749b75764
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/19238029

Change-Id: Id8569098c070f42ee02d286a501cf72b3d5ecc51
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-05 04:01:33 +00:00
Jimmy Chen
3749b75764 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
Merged-In: I3c5523626de22c26cb562c03e9fbd7aabf6d98e7
Change-Id: I3c5523626de22c26cb562c03e9fbd7aabf6d98e7
2022-08-04 05:20:13 +00:00
Prasanna Prapancham
a203131d2d Change ownership of charge_stats to system for clearing am: 1dc5d62371
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/19213521

Change-Id: Ia1889f9c95c2e95875f9782e157e6509d10a7008
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-29 00:04:16 +00:00
Prasanna Prapancham
1dc5d62371 Change ownership of charge_stats to system for clearing
Test: Tested with tablet with dock. Userspace is able to read
and clear sysfs node successfully

Bug: 218802317
Signed-off-by: Prasanna Prapancham <prapancham@google.com>
Change-Id: I1e97920ff0e810ce2888102f3971b21aabc55909
2022-07-28 23:17:26 +00:00
Tri Vo
668c982d75 storageproxyd: start storageproxyd as "system" user and group am: db0342fbad am: 3732bf0bc2 am: 07e738908d am: 4c287a190f
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/2154278

Change-Id: I8d779e607ba2de90bd345acbb6126e74eed6cefd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-27 21:44:32 +00:00
Tri Vo
3732bf0bc2 storageproxyd: start storageproxyd as "system" user and group am: db0342fbad
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/2154278

Change-Id: I6f70b459a6cc41ca577d0774674b3ddca83d5ce1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-27 19:59:59 +00:00
Jack Wu
67240b1cdc 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: I25376ce6174e4e09ed4a7ce8f1258dc099da4cd8
2022-07-22 03:58:32 +00:00
Tri Vo
db0342fbad storageproxyd: start storageproxyd as "system" user and group
Bug: 205904330
Test: boot
Change-Id: I7ad81b202e25307e4f49c48e4ae790d0b9ec6801
2022-07-15 13:05:33 -07:00
Robin Peng
21932fae4c init.gs101.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: I17aa42ef0a459c33871891e5036edf7eea57e39a
2022-07-14 13:08:55 +00:00
George Lee
b73054581d bcl/init: Remove unused sysfs write.
SOFT_OCP_TPU/GPU/CPU are no longer used.  Clock divider ratio should
also be set accordingly.

Bug: 234275748
Test: Boot and verify
Signed-off-by: George Lee <geolee@google.com>
Change-Id: Icb45b4f30605efaae72bef3ccd1c3d82df8b71a7
2022-07-06 01:47:21 +00:00
matthuang
4ea4bdb936 Set permission and owner for acd-com.google.usf.non_wake_up.
Bug: 195077076
Test: check file permission.
Change-Id: Id03d489dda97a05a72ebf6a8c2e1987f70159f4f
2022-07-01 02:16:04 +00:00
Daeho Jeong
eb703a418c fstab: disable auto compression for apk,apex and so am: c10d805383 am: 489cd831f2
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/18931177

Change-Id: If01b764df27952b109b44f85c7eb43e5d1e527ad
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-21 22:08:43 +00:00
Daeho Jeong
c10d805383 fstab: disable auto compression for apk,apex and so
Bug: 235480291
Test: check mount option

Signed-off-by: Daeho Jeong <daehojeong@google.com>
Change-Id: I3765847b9c2074e1501646675fed7109a7a73230
2022-06-21 21:14:26 +00:00
David Chao
88fb3bfe07 gs101: move charger thermalHAL setup into common code
To aligned with P22 to move charger thermalHAL setup into common code

Bug: 200615564
Test: build pass and boot to home
Change-Id: Idfe47fe64e4c158f27cd587ca8d768e13292c361
2022-06-20 07:10:50 +00:00
Jack Wu
4a612faaaf 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: I9f92cffdefbeef8e3671812dbc2891d4fef71230
2022-06-14 11:00:53 +08:00
David Chao
38d2997f6a Revert "gs101: move charger thermal HAL setup into common code"
This reverts commit 980650080a.

Reason for revert: Since the vendor.thermal.symlinks is init early than google-module init
such as gpu cooling, the gpu cooling is not ready while creating thermal.symlinks.
Thermal-hal GPU thermal throttling will fail because there is no thermal-gpufreq-0 in thermal.symlinks.

Bug: 200615564
Test: thermal symlinks can be created in dev folder
Change-Id: Ia3b0999c7a8038f7be5e2390926ff74473c0c339
2022-05-26 17:53:01 +08:00
David Chao
980650080a gs101: move charger thermal HAL setup into common code
Bug: 200615564
Test: build pass
Change-Id: I5a32c2b695dc9fd3e29e580c8a82e25f6c3a5f69
2022-05-25 07:46:52 +00:00
Akilesh Kailash
7bb4293087 Revert "gs101: Enable system_dlkm dynamic partition"
This reverts commit 58893b442f.

Reason for revert: OTA failues observed during S -> T

Bug: 228927535
Test: Full and Incremental OTA's.
Change-Id: Iec9e15d60dab92213494c9e679de6702f8d56e37
2022-05-24 18:15:49 +00:00
Kyle Tso
4db75dda18 dumpstate: Dump logs
Bug: 232556226
Test: log dumped in bugreport
Signed-off-by: Kyle Tso <kyletso@google.com>
Change-Id: Iacd4db38dd56c1d5ba6f58c757f023795a9c3a3b
Merged-In: Iacd4db38dd56c1d5ba6f58c757f023795a9c3a3b
2022-05-24 00:00:46 +00:00
Richard Chang
688710d159 gs101: Support Vendor System Native Experiment for cpusets
Let vendor_init adjusted the cpusets by device config from the
server. Allow us to study the performance and power impacts
by various experiment settings.

Bug: 223685902
Test: adb remount ; adb push init.gs101.rc /vendor/etc/hw/ ; adb reboot
Test: change persist.device_config.vendor_system_native.<group>_cpuset and check /dev/cpuset/<group>/cpus is also modified
Change-Id: I73369f2cef7b999cb380278503a4dbfcc4cff3cd
2022-05-23 06:06:15 +00:00
Kyle Tso
d1e76e74ef dumpstate: Dump logs am: 21502f2978
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/2098913

Change-Id: I4a7de39f80fc91443c3405278c66d48cc0a5ff61
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-19 07:56:40 +00:00
Wei Wang
faaa95c900 Remove group_throttle setting
Test: Build
Bug: 233149512
Change-Id: I2416e5d1a401ba401407e46754fa33cacba6942d
Signed-off-by: Wei Wang <wvw@google.com>
2022-05-19 05:14:24 +00:00
Kyle Tso
21502f2978 dumpstate: Dump logs
Bug: 232556226
Test: log dumped in bugreport
Signed-off-by: Kyle Tso <kyletso@google.com>
Change-Id: Iacd4db38dd56c1d5ba6f58c757f023795a9c3a3b
2022-05-19 02:12:58 +00:00
chungkai
f917c52947 devfreq: reset ddr freq after boot
to reduce boot time, boost ddr freq when booting
and reset it after booting.

Bug: 230586904
Test: pass
Signed-off-by: chungkai <chungkai@google.com>
Change-Id: I25b30d22a4803aeb6e27b914e07f6eb8458e0a50
2022-05-14 03:03:13 +00:00
Ray Chi
b1f75858c8 usb: remove set_usb_irq script for irq change
Since the dwc3 irq is moved by USB gadget hal now, the
script is not needed.

Bug: 224699556
Test: build pass
Change-Id: Iea0aed110183d9583db00d9b182d351de41573cd
Merged-In: Iea0aed110183d9583db00d9b182d351de41573cd
(cherry picked from commit a5f995d2f6)
2022-05-05 07:08:19 +00:00
Ray Chi
7da5d4f43f usb: move the permission change to usb rc
Since permission change in hal rc may be late, gadget
hal would enable USB function failed. The solution will
change the permission before USB gadget hal starts.

Bug: 224699556
Test: build pass and verified pass
Change-Id: I45c1318f647220480fa03ba3b813a81b21393d71
Merged-In: I45c1318f647220480fa03ba3b813a81b21393d71
(cherry picked from commit b30924e3599f2e92aeae498a6ae15d3b9a397930)
2022-05-05 07:08:19 +00:00
Will McVicker
ef12b21ded init.gs101.rc: add raw i2c-s2mpg10mfd and i2c-s2mpg11mfd nodes
This fixes the permissions for the [067]-001f and [178]-002f raw i2c
numberings for the P21-mainline driver which doesn't use the i2c vendor
hook to rename these numberings. This is required for the thermal hal to
work.

Bug: 231155356
Signed-off-by: Will McVicker <willmcvicker@google.com>
Change-Id: I2341c78b2ab146713a171eeb436f34c1c8839c6e
2022-05-04 16:10:15 +00:00
Ray Chi
b0e42703dc usb: remove set_usb_irq script for irq change am: a5f995d2f6
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/2086725

Change-Id: Ibb7033758bec0c996ad1f56a3f244f126f54ae22
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-04 06:52:11 +00:00
Ray Chi
35a0d7b464 usb: move the permission change to usb rc am: bc34b8944f
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/2086723

Change-Id: I55a9c5e2b71b07ee88f87c416c7dcb98dcf5b4bf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-04 06:52:04 +00:00
Ray Chi
a5f995d2f6 usb: remove set_usb_irq script for irq change
Since the dwc3 irq is moved by USB gadget hal now, the
script is not needed.

Bug: 194346886
Test: build pass
Change-Id: Iea0aed110183d9583db00d9b182d351de41573cd
2022-05-04 09:43:58 +08:00
Ray Chi
bc34b8944f usb: move the permission change to usb rc
Since permission change in hal rc may be late, gadget
hal would enable USB function failed. The solution will
change the permission before USB gadget hal starts.

Bug: 206902205
Test: build pass and verified pass
Change-Id: I45c1318f647220480fa03ba3b813a81b21393d71
(cherry picked from commit b30924e3599f2e92aeae498a6ae15d3b9a397930)
2022-05-04 09:39:29 +08:00