Commit graph

430 commits

Author SHA1 Message Date
Michael Bestas
23c4b461c1
gs101: Remove userdebug/eng configuration
Change-Id: Ie1e8b6bbebdfac97f8bc382e41c70cc8a32caf07
2025-06-26 10:13:11 +03:00
Michael Bestas
b619bb97bc
gs101: Remove AOSP gerrit configuration
Change-Id: I3bf3987b08a710ddf278cae5243946fae70fce6a
2025-06-23 06:18:59 +03:00
Michael Bestas
d35ae071e7
gs101: Update init scripts from BP2A
Change-Id: I9e36e0faec4860fe714c0151b3cb7f373cbcf0ea
2025-06-23 06:18:04 +03:00
Michael Bestas
a7ada3bcea aml_tz6_351400020 (13155446,com.google.android.go.tzdata6,com.google.android.tzdata6)
-----BEGIN PGP SIGNATURE-----
 
 iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCZ9i73wAKCRDorT+BmrEO
 eE0jAJ9LUlDeVJV2JVbzsyWRdWRRhpFGkwCfbEbrFRYUgH7HHshxtjQlrRTLJ/U=
 =bAod
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN SSH SIGNATURE-----
 U1NIU0lHAAAAAQAAADMAAAALc3NoLWVkMjU1MTkAAAAgPpdpjxPACTIhnlvYz0GM4BR7FJ
 +rYv3jMbfxNKD3JvcAAAADZ2l0AAAAAAAAAAZzaGE1MTIAAABTAAAAC3NzaC1lZDI1NTE5
 AAAAQKbZFn9A2+Vqax//krl8KOKH948OcStI/TNfz2IkyoLz1xzEZcssWL38FiuVK0dTdk
 J+X3VntP2QgehBQFDvQgY=
 -----END SSH SIGNATURE-----

Merge tag 'aml_tz6_351400020' into staging/lineage-23.0_merge-aml_tz6_351400020

aml_tz6_351400020 (13155446,com.google.android.go.tzdata6,com.google.android.tzdata6)

# -----BEGIN PGP SIGNATURE-----
#
# iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCZ9i73wAKCRDorT+BmrEO
# eE0jAJ9LUlDeVJV2JVbzsyWRdWRRhpFGkwCfbEbrFRYUgH7HHshxtjQlrRTLJ/U=
# =bAod
# -----END PGP SIGNATURE-----
# gpg: Signature made Tue Mar 18 02:18:39 2025 EET
# gpg:                using DSA key 4340D13570EF945E83810964E8AD3F819AB10E78
# gpg: Good signature from "The Android Open Source Project <initial-contribution@android.com>" [ultimate]

# By Piotr Klasa (4) and others
# Via Android Build Coastguard Worker (9) and others
* tag 'aml_tz6_351400020': (21 commits)
  Enable usb state update via udc sysfs
  usb: fix usb state path in host mode
  usb: migrate UsbDataSessionMonitor to libpixelusb
  Use 2025-03-01 deqp level for GLES
  Use 2025-03-01 deqp levels for Vulkan
  Revert "Use 2025-03-01 deqp levels for GLES and Vulkan"
  Use 2025-03-01 deqp levels for GLES and Vulkan
  move common init perf settings to gs_common
  Revert "move common init perf settings to gs_common"
  move common init perf settings to gs_common
  Enable open source multi akm for specific Broadcom project
  pixelstats: gs101: remove firmware update path
  init-display-sh: Allow writing to kmsg
  Remove ResetUclamp profiles
  Update IDisplay to V13-V14
  display-dump: make display dump project-specific
  Refactor: Use googleDeviceConfig namespace in gs101 BoardConfig
  dump_power: add battery caretaker dump into bugreport
  Set initial value for foreground_window group
  Move all vendor_sched parameters and permissions to init.pixel.perf.rc
  ...

Change-Id: I296bc05a0b9bc48ee3ca478f305e7ab76f5941ee
2025-06-23 05:21:04 +03:00
Michael Bestas
1382844ae3 Android 15.0.0 Release 20 (BP1A.250305.019)
-----BEGIN PGP SIGNATURE-----
 
 iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCZ8eo6wAKCRDorT+BmrEO
 eAiMAJwKoTVsPgds031Rdi11ZDZR0sHrUwCfQiM0q3/561pqrsmmLP9YPULFyzc=
 =YB0/
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN SSH SIGNATURE-----
 U1NIU0lHAAAAAQAAADMAAAALc3NoLWVkMjU1MTkAAAAgPpdpjxPACTIhnlvYz0GM4BR7FJ
 +rYv3jMbfxNKD3JvcAAAADZ2l0AAAAAAAAAAZzaGE1MTIAAABTAAAAC3NzaC1lZDI1NTE5
 AAAAQNuEaggqmmDVT3BZ2H+rws+V6I7yxcdLQgEHNCxkO+mTy5pdke7GXeL/liuaiDYVOF
 /P6D6ymiRzH14f8J6JEgc=
 -----END SSH SIGNATURE-----

Merge tag 'android-15.0.0_r20' into staging/lineage-22.2_merge-android-15.0.0_r20

Android 15.0.0 Release 20 (BP1A.250305.019)

# -----BEGIN PGP SIGNATURE-----
#
# iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCZ8eo6wAKCRDorT+BmrEO
# eAiMAJwKoTVsPgds031Rdi11ZDZR0sHrUwCfQiM0q3/561pqrsmmLP9YPULFyzc=
# =YB0/
# -----END PGP SIGNATURE-----
# gpg: Signature made Wed Mar  5 03:29:15 2025 EET
# gpg:                using DSA key 4340D13570EF945E83810964E8AD3F819AB10E78
# gpg: Good signature from "The Android Open Source Project <initial-contribution@android.com>" [ultimate]

# By Herbert Xue (3) and others
# Via Android Build Coastguard Worker (30) and others
* tag 'android-15.0.0_r20': (30 commits)
  dump_power: add battery caretaker dump into bugreport
  update health HAL dependency
  Add sched qos support
  Change TARGET_RECOVERY_UI_LIB to use fully qualified names in gs101
  Change TARGET_RECOVERY_UI_LIB to use fully qualified names in gs101
  Clean up unnecessary data_connection_5g_plus overlay
  init: gs101: move sched rate limit to late init
  Set soong config variables for libExynosC2H263Dec and libExynosC2H263Enc
  Disable Wifi BugReport for subsystem restart
  init: make pmu_poll_enable node readable
  Set soong config variable "board_use_dec_sw_csc" for libExynosVideoCodec
  Switch to using gs101 instead of valhall for GPU UMD
  Update ldaf sensor device filename
  dump_power: gs101: correct dump path
  Move video_codec soong config variables into board config
  dumpstate: gs101: fix dump path
  Revert "Add IGoodixFingerprintDaemon aidl interface"
  Add IGoodixFingerprintDaemon aidl interface
  Set BOARD_LIBACRYL_G2D_HDR_PLUGIN for soong
  Add a soong config variable for CitadelProvision
  ...

Change-Id: Id9e92997364278af84bc79ca08631451f93c2123
2025-03-09 11:06:40 +02:00
Piotr Klasa
b2592019c9 move common init perf settings to gs_common
compared to ag/31352563 I did not transfer the settings for "write /sys/devices/system/cpu/cpuidle/current_governor teo", which caused the problem

Test: Verified if all values ​​of transferred settings are as they should be after rebooting the device, and and checked that there are no new selinux errors for hal_power_default, verified all metrics that caused power regression in the previous commit on abtd

Bug: 335874870

Flag: EXEMPT not supported by this component yet

Change-Id: I7ad8dbd7fd2783017c5bae8181008db32b95e9b7
2025-01-23 03:36:14 -08:00
Piotr Klasa
b60a6a9f89 Revert "move common init perf settings to gs_common"
Revert submission 31215196-move_common_init_perf_settings_to_gscommon

Reason for revert: Power Regression

Reverted changes: /q/submissionid:31215196-move_common_init_perf_settings_to_gscommon
Bug: 390502171
Change-Id: I9e88aecf6ed56d1d2171d379f16f215b4a135547
2025-01-21 01:27:04 -08:00
Yi-Yo Chiang
210d42804b init-display-sh: Allow writing to kmsg am: 6864f9f43b am: 7ff9bca803
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/3442471

Change-Id: I97ba2eaa1e1d68b3b2bfb5ea593eae57491c18e6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-01-20 21:43:41 -08:00
Piotr Klasa
992d32e318 move common init perf settings to gs_common
Test: Verified if all values ​​of transferred settings are as they should be after rebooting the device, and and checked that there are no new selinux errors for hal_power_default
Bug: 335874870
Flag: EXEMPT not supported by this component yet

Change-Id: I7054fb3ab6f8fce9cf06c7691e8e1aea2453ca88
2025-01-16 01:38:28 -08:00
Yi-Yo Chiang
6864f9f43b init-display-sh: Allow writing to kmsg
modprobe would log errors to /dev/kmsg, need to explicit allow this.

Bug: 388717752
Test: DeviceBootTest#SELinuxUncheckedDenialBootTest
Change-Id: Iecb9d45e5ef08edc04c87d8f1375803c1df11621
2025-01-09 18:42:06 +08:00
Paulsu Su
dbdb448c8b Set initial value for foreground_window group
For multi-window foreground app group.

Bug: 200769420 
Change-Id: I2b65feb4732e33b27155dcfaf0b64a38b1b01026
Test: build pass
Flag: NONE vendor init file does not support flag
2024-12-16 04:23:58 -08:00
Piotr Klasa
71c878d984 Move all vendor_sched parameters and permissions to init.pixel.perf.rc
Bug: 335874870
Test: Checked that permissions and values ​​for all affected files are correct (ls -l, cat)
Flag: EXEMPT not supported by this component yet

Change-Id: I00fa4d3c3f1d7bb3e7c19f94c87dc8c541ebdc85
2024-12-12 04:08:53 -08:00
Michael Bestas
36437719d2 Android 15.0.0 Release 6 (AP4A.241205.013)
-----BEGIN PGP SIGNATURE-----
 
 iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCZ1IssQAKCRDorT+BmrEO
 eGa9AJ9S393zD4Z4CQI9oOclVnRfCsHaLgCfbXxKi0MvtDq9g45UD8Ky0b+lJWU=
 =4D5T
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQJLBAABCgA1FiEEHrBYPudH862glXQBzJUERRm+ZmkFAmdY8Z0XHG1rYmVzdGFz
 QGxpbmVhZ2Vvcy5vcmcACgkQzJUERRm+ZmklPhAAhZV6dxMRtQT+K8Zvs2zyz9X/
 C6bqJbIwSty8VSUMKzUunRyFjmU12WBtF9rIyPoytFBhECT/YVPMKFrqruJz/1Q3
 ZcdzdUoyYam3NxeYAG2y9Rj2QDgjZpqGgWZvCacpqp4pdPX8/8orI8e4HP3z83eE
 JBm0sxWkh9Azifss4avV+eMzQuqsWiMoxcLJpQmCB3JkNYwpyjtriZtmPTaOTrxN
 Jv6Y6q5QSpQUJ1VbfKEmqavtTYlc0I9EzSfmzywvmTAvpRQAkaHRs8H7k3EsoNOB
 pyLiCC7ihsu5DgTAvZj/+dgnG6+JbYllmhvkG6bhbcZp89WFuKTojV4bOOBgLkFP
 94zCAzn+H+F0yUJjZB3G0GwLAT2La8Mwy4AChLMtLgXDyyaYF45DxSqx+jFEDAdH
 EF0HjpimUbzna+hTuWmfNFaCaqu71IzKf45Nopr/cxfj/b/qztMkTWH3D3GdTy5a
 6w69q7T0e1mBEUmjs6xC+srw21YPduV/L3B2IX0y+8XP3pznlUYG7eUSbHfLiMYT
 YE0I6A/bsSHuxv+BmwRl4bDwozwOnIuA3hRQEO1H73XryZxboi1+Lb4zdmTTl778
 MlPFJ+Kj7x3J6ae34B5FP6JZgHY7YHDiGbFZ02p4GDUet7y0P1iInoS2mUasmdbT
 jy3UXPuj1/neHkMMDzQ=
 =LjWU
 -----END PGP SIGNATURE-----

Merge tag 'android-15.0.0_r6' into staging/lineage-22.0_merge-android-15.0.0_r6

Android 15.0.0 Release 6 (AP4A.241205.013)

# -----BEGIN PGP SIGNATURE-----
#
# iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCZ1IssQAKCRDorT+BmrEO
# eGa9AJ9S393zD4Z4CQI9oOclVnRfCsHaLgCfbXxKi0MvtDq9g45UD8Ky0b+lJWU=
# =4D5T
# -----END PGP SIGNATURE-----
# gpg: Signature made Fri Dec  6 00:44:01 2024 EET
# gpg:                using DSA key 4340D13570EF945E83810964E8AD3F819AB10E78
# gpg: Good signature from "The Android Open Source Project <initial-contribution@android.com>" [marginal]
# gpg: initial-contribution@android.com: Verified 2484 signatures in the past
#      3 years.  Encrypted 4 messages in the past 2 years.
# gpg: WARNING: This key is not certified with sufficiently trusted signatures!
# gpg:          It is not certain that the signature belongs to the owner.
# Primary key fingerprint: 4340 D135 70EF 945E 8381  0964 E8AD 3F81 9AB1 0E78

# By Krzysztof Kosiński (3) and others
# Via Android Build Coastguard Worker (31) and others
* tag 'android-15.0.0_r6': (30 commits)
  Delete TARGET_CPU_VARIANT_RUNTIME.
  Add input event profile to mitigate input latency of input threads
  gs101: avoid vector<const T>
  Delete PRODUCT_FULL_TREBLE_OVERRIDE.
  Switch from the BFQ to the mq-deadline I/O scheduler
  bcl: remove charging debugfs data logging
  extended_log: update directory permissions for gs101
  Delete mapper4 manifest
  Define use_hwc2 variable
  usb: correct sys.usb.controller sysprop
  bcl: revision for kernel6.1
  Revert "Enable KUnit testing on raviole userdebug & eng build target."
  BoardConfig-common.mk: Enable Lazy RCU
  Remove BCL from thermal
  Add FSTAB_OWNERS and update OWNERS to include Android.bp
  Use modules.load for vendor ramdisk modules
  Upgrade IDisplay to V13
  Add soong config variable for PowerAnomalySitril
  [Pixel RR] Apply reviewed default permissions
  gs101: video: change to use c2 "default" AIDL service
  ...

 Conflicts:
	BoardConfig-common.mk
	dumpstate/dump_gs101.sh

Change-Id: I765d41354f48b0ebd60411935d591da961e9167c
2024-12-11 03:57:49 +02:00
Rick Yiu
4981fc30f8 Add sched qos support
Add task profiles and set permissions.

Bug: 355612114
Flag: NONE init rc file does not support flag
Test: build pass
Change-Id: I44ab2097bbf919c1487d40ee68e74100c11b8891
2024-12-06 08:19:59 +00:00
Will Song
dda0174645 init: gs101: move sched rate limit to late init
Since pixel performance has a shared configuration,
we need to move override values into late init.

Bug: 381100494
Test: Boot
Flag: EXEMPT bug fix
Change-Id: I28ce81103249f30046d6e22b57be77441bc910b0
2024-11-27 14:58:10 +00:00
Paulsu Su
bab24fc479 init: make pmu_poll_enable node readable
Bug: 378509589
Change-Id: I1904fab932deaf6b50b7c1cfcaa29724b3b1c00d
Flag: EXEMPT init config for read permission
2024-11-19 10:42:30 +00:00
Boon Jun
a3eb6a6500 Update ldaf sensor device filename
LDAF sensor device filename changed after kernel upgrade
from v5.10 to v6.1 in some of our in-market devices.
We need to update the device filename to access the LDAF
with this new kernel version.

Bug: 378045567
Test: Open camera, and observe available LDAF sensor in logs
Flag: EXEMPT bugfix
Change-Id: I4bed0358263910d1312238a8e109afb75517d8c2
2024-11-18 03:36:18 +00:00
Ethan Chen
30885811ec
Disable userdebug diagnostics
* We can't make use of most of the debug features on userdebug builds.

Change-Id: I31df2090b31243b742c4e82dc08cd8491dada54f
2024-10-20 05:01:11 +03:00
Jerry Chang
b6da7df66e Add input event profile to mitigate input latency of input threads
Bug: 347122505
Test: check the priority and latency of input thread in Perffeto
Flag: NONE early device setting updates
Change-Id: I0c0a39e3fc03d8df4e9e87cf61fb8e1dafcfc996
2024-09-18 12:08:38 +00:00
Ocean Chen
5c249e52ce Switch from the BFQ to the mq-deadline I/O scheduler
The mq-deadline I/O scheduler is more stable than BFQ. Additionally, the
boot time is shorter with the mq-deadline I/O scheduler. It only changes the scheduler on new kernel.

Bug: 186902601
Test: forrest build

Change-Id: I9433d73e7ed4bfd5e72a0f8318e959373e76202e
Signed-off-by: Ocean Chen <oceanchen@google.com>
2024-09-05 13:00:16 +00:00
carmenyip
0c84b40b00 extended_log: update directory permissions for gs101
Bug: 336638376

Test: $ cd data/vendor/radio
$ ls -la
Flag: NONE changing directory permissions only

Change-Id: Id6a76769e84f778e730cfcdffcd6779b5d8c89ce
2024-09-05 02:58:55 +00:00
Roy Luo
8d0a51e591 usb: correct sys.usb.controller sysprop
system/core/init/init.cpp SetUsbController picks the first udc device if
there're multiple udc devices present on the system to populate
sys.usb.controller system property.
CONFIG_USB_DUMMY_HCD enabled in kernel-5.10 GKI would introduce a
dummy udc device named "dummy_udc.0". Depends on timing, the dummy
device might be picked up by the init process and incorrectly populate
sys.usb.controller.
This issue only applies to devices on kernel-5.10 GKI, the WAR is to
overwrite the sysprop if it's incorrectly populated by the dummy udc.

Bug: 333778731
Test: tested on Cheetah
Flag: EXEMPT bugfix
Change-Id: Idefd1a5d8154a51792c6cb52ee6d11cbb7f6df78
2024-08-27 23:39:18 +00:00
samou
6c2502279f bcl: revision for kernel6.1
- Migrate dump_gs101.sh to dump_power
- Enable battery_mitigation
- Correct ocp_cpu1 threshold

Flag: EXEMPT refactor
Bug: 349935208
Change-Id: I7e7f155ba7722dc5c24c2795c2840395ed4f9043
Signed-off-by: samou <samou@google.com>
2024-08-23 10:58:20 +00:00
samou
ad78871644 Remove BCL from thermal
Flag: EXEMPT tuning changes
Bug: 349935208
Change-Id: Id34dc3bb1895c28cf3c3a146ef9fc7a742a73044
Signed-off-by: samou <samou@google.com>
2024-08-12 12:32:21 +00:00
Cyan_Hsieh
44c8f95a60 Add FSTAB_OWNERS and update OWNERS to include Android.bp am: 0da2a72457 am: f18667374f
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/3212451

Change-Id: If3a455861967ee0531252fc0069b4809c0dd3dc1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-08-09 11:07:34 +00:00
Cyan_Hsieh
f18667374f Add FSTAB_OWNERS and update OWNERS to include Android.bp am: 0da2a72457
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/3212451

Change-Id: I555f5fdd633108e2a4dfeea58faf2fb03dea3aff
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-08-09 10:49:02 +00:00
Cyan_Hsieh
0da2a72457 Add FSTAB_OWNERS and update OWNERS to include Android.bp
Flag: EXEMPT only changing OWNERS
Bug: 357036384
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:bf13fdd5c229e61326dc1cba78c1309a16ac084e)
Merged-In: I8a15eb2401d41ac74988f3a5d8028fbeeb28cc2d
Change-Id: I8a15eb2401d41ac74988f3a5d8028fbeeb28cc2d
2024-08-09 08:33:31 +00:00
Krzysztof Kosiński
8244f563e6 Delete PDX sockets for legacy VR services.
Remove irrelevant copy and paste content. None of the gs101
devices ever included these services and these sockets are
not doing anything.

Bug: 234559097
Test: presubmit
Flag: EXEMPT dead code removal
Change-Id: I6fdab1e2232f83c0286d5f33773aaa17f9da3f7a
2024-07-11 04:41:53 +00:00
Qais Yousef
2340e91ebd init.gs101.rc: Apply sched tuning to improve sched latencies
Bug: 340860065
Flag: NONE not supported for init.rc scripts
Signed-off-by: Qais Yousef <qyousef@google.com>
Change-Id: I87b17dce903762b2c498d3631bf9b7e02cc2ebfe
2024-07-10 11:51:20 +00:00
YiKai Peng
60bd04557f gs101: wlc: add authstart permission
Bug: 348272247
Test: Build/Flash
Flag: EXEMPT bugfix
Change-Id: I8bbdce42984aa8da6abd000c06d6a5df37447914
Signed-off-by: YiKai Peng <kenpeng@google.com>
2024-06-21 04:05:35 +00:00
Limon Mia
5fa0e12ada bt: set rfkill device nodes permission setting on early_boot stage
move the rfkill permission setting from post-fs-data to early_boot
stage because the kernel/net/rfkill/rfkill.ko may not be loaded on
post-fs-data stage and cause the permission setting failed.

Bug: 277148159
Test: m
Change-Id: I65f0593caddbe659528877f583917cdaead1756b
2024-03-11 12:34:13 +00:00
Qais Yousef
908d73a76a init.gs101.rc: Increase uclamp_min at boot time by 1.25
With uclamp changes against margins, we need to bump this value by 1.25
to retain previous boost.

Bug: 314123492
Signed-off-by: Qais Yousef <qyousef@google.com>
Change-Id: I0b001772116bdbc2285e942b5795451dee925eda
2024-02-19 18:29:07 +00:00
George Lee
e3ec636b99 bcl: Adjust GPU clk divider ratio
Revert GPU clk divider ratios.

Bug: 324534203
Test: Confirm no DATA_INVALID_FAULT while running GFXBench under stress
Change-Id: I9379988d68665924de72441bc0ea24f5fc12be4d
Signed-off-by: George Lee <geolee@google.com>
2024-02-15 18:39:33 +00:00
Jacky Liu
06501969ec 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: I90a723018f6628c825e97ff75a80350843684959
2024-02-06 16:17:25 +00:00
Spade Lee
ad7f854c34 dumpstate: add SoC residency dump
Bug: 319536756
Change-Id: Ied43b9b5bd13a4b36d73399e4dd2fc389ecaa276
Signed-off-by: Spade Lee <spadelee@google.com>
2024-01-22 16:52:23 +00:00
Midas Chien
8133e314e8 display: allow hwcomposer to access allow_wakeup_by_state_change
Bug: 311495944
Test: check permission
Change-Id: Ie7dc6cdbd2290272cbf8bab820739b234d7c0b3f
2024-01-17 07:50:19 +00:00
Mahesh Kallelil
0b113f5208 Set owner as system for logbuffer_cpif
Setting the owner of /dev/logbuffer_cpif as system to allow the
dump_modem script to read the logs as part of bugreport

Test: Tested bugreport on device
Bug: 305600375
Change-Id: I20c1a843edadbc4ed2da51af3e242957b5849d6b
Signed-off-by: Mahesh Kallelil <kallelil@google.com>
2024-01-12 06:36:47 +00:00
Jaegeuk Kim
eb637fe036 Migrate to gs-common/storage/init.storage.rc
Bug: 311655524
Change-Id: I084717957a3bdf0bcbdca06502867d8e108ac139
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
2023-12-20 10:27:15 -08:00
Jenny Ho
7766f6743c Adjust bd_state to system for read
Bug: 316432531
Change-Id: I07aa6aa400acc7db718e0201e61fa6a4f8e4eebb
Signed-off-by: Jenny Ho <hsiufangho@google.com>
2023-12-19 03:24:22 +00:00
Kuen-Han Tsai
93d9eb0a8f usb: enable media-presence polling for SD cards
After USB enumeration, some SD card readers do not send signals to the
device when the SD card is inserted or removed.

To support SD card hotplugging, this patch enables in-kernel
media-presence polling, which will check the SD card status every 2
seconds after a SD card reader is attached.

Bug: 186479576
Test: SD card insertion/removal and data copy (see b/301566595)
Change-Id: I29c352696cd9d31168a8eac8c58d23adb484f5d0
Signed-off-by: Kuen-Han Tsai <khtsai@google.com>
2023-12-12 14:07:27 +08:00
Hiroshi Akiyama
0c4376b098 bcl: adjust heavy clk divider ratios
Bug: 314168856
Test: TBD
Change-Id: I40627648d01161bfbeb873f92ec1a3f22318285a
Signed-off-by: Hiroshi Akiyama <hiroshiakiyama@google.com>
2023-12-04 21:52:04 +00:00
Will McVicker
4bec6c0bf4 fstab: allow unlocked devices to boot with AVB test key am: 662e1bc915 am: 4fa15052cf
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/25300777

Change-Id: Ib1293b9afe7a948d840e3377bf574c3f7e05979e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-08 05:58:24 +00:00
Will McVicker
662e1bc915 fstab: allow unlocked devices to boot with AVB test key
Set `avb_keys=no_such_key` for the vendor_dlkm dynamic kernel partition
to allow booting unlocked devices with a custom kernel. This allows a
few things:

1) Dogfooders can flash a custom kernel without wiping their device.
   This can help developers track down hard-to-reproduce bugs without
   rolling out a patch to the whole dogfooder population.
2) Developers can uprev their device's kernel without wiping their
   device or packaging the kernel with an Android platform build.

Note: we are using "no_such_key" to ensure an AVB keys file doesn't
accidentally get created.

Test: Flash CI build. Then flash custom kernel on top.
Bug: 274825778
Change-Id: Iee542cf5ab4973ee9cb2c1fe66d00b642fdf525b
2023-11-07 10:15:11 -08:00
guibing
e9d930291a init: gs101: update vendor_sched procfs paths
Vendor sched procfs path hierarchy gets updated in kernel.
Update the paths in init rc file and task profiles to match the change.

Bug: 289151587
Test: UIbench ab test
Change-Id: I6f8aa26587578860483d6ededf88e9c04a926644
2023-10-13 17:19:09 +00:00
Will McVicker
b1662cade2 init: update i2c bus numbers and move initialization to ueventd
Update the i2c bus numbers to use the statically assigned numbers
configured in the kernel device tree. In addition, use ueventd to set
the ACL for the i2c devices.

Bug: 291606723
Test: performance boot testing
Test: verify selinux labelling with ls -Z on the modified device nodes
Change-Id: Ib412510e4b6c086c978ad5487486323685732cae
2023-10-02 16:28:59 +00:00
Midas Chien
184fc05293 display: allow hwcomposer to access DRM module debug file
Change the owner and group of the DRM module debug file to system to
grant permission for hwcomposer.

Bug: 301599195
Test: check HWC can access it
Change-Id: I76cb73cf9149347d486354abf8c9fc7d165e1bea
2023-10-02 01:52:28 +00:00
Roy Luo
7bd4fdd98f Revert "init: update i2c bus numbers and move initialization to ..."
Revert submission 24855741-gs101-i2c-bus-fixes

Reason for revert: DroidMonitor-triggered revert due to breakage https://android-build.corp.google.com/builds/quarterdeck?branch=git_main&target=bluejay-trunk_food-userdebug&lkgb=10876543&lkbb=10876988&fkbb=10876587, bug b/302549624.

Reverted changes: /q/submissionid:24855741-gs101-i2c-bus-fixes

Change-Id: I1c87ea91d0a2eaf441c554b8f4729cefd0eca068
BUG: 302549624
2023-09-28 18:00:06 +00:00
Will McVicker
d9c462fc17 init: update i2c bus numbers and move initialization to ueventd
Update the i2c bus numbers to use the statically assigned numbers
configured in the kernel device tree. In addition, use ueventd to set
the ACL for the i2c devices.

Bug: 291606723
Test: performance boot testing
Test: verify selinux labelling with ls -Z on the modified device nodes
Change-Id: I579143fa38bc2e9b3bf7dc618b10e63001263e2e
2023-09-28 16:08:00 +00:00
Avichal Rakesh
9d936fe835 usb.rc: Advertise 360p and 480p support through UVC
Many host applications expect and ask for lower resolution streams when
streaming from a USB webcam. To support those applications, this CL
adds support for 640x480 and 640x360 streams.

Bug: 301170431
Test: Manually tested that the resolution is advertised and streamed.
Change-Id: I78e9f97575784996aac94e576c7f23b0874a8d09
2023-09-21 21:00:10 -07:00
Amit Sunil Dhamne
b2232b52bb usb: Modify sdp enumeration timeout value in charger mode
Write to /sys/class/typec/port<...>/device/update_sdp_enum_timeout
to reduce SDP enumeration timeout value when device is in charger
mode. This will enable faster detection of a DCP port.

ported from 6710e31a629f81cf308e1099f75a01c82db6d006

Test: Validate (in charger mode) that the sysfs attribute is 1
      (meaning lower sdp timeout value is being used). Read dmesg to
      see print showing timeout value is 5000ms.
Bug: 275687235
Change-Id: I1bc872911d7f1eab26e62fe6f12fba05608e0f83
Signed-off-by: Amit Sunil Dhamne <amitsd@google.com>
2023-09-19 14:01:34 -07:00