2100 Commits

Author SHA1 Message Date
Wei Wang
bb873aca3c Merge "thermal: allow thermal_hal to read sysfs_gpu" into 24D1-dev am: 861035a42b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs-common/+/27091579

Change-Id: Ic33fe3e6a4bbbbb8a20a9d4de5a8273b5e1a297d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-06 16:41:34 +00:00
Wei Wang
861035a42b Merge "thermal: allow thermal_hal to read sysfs_gpu" into 24D1-dev 2024-05-06 16:24:33 +00:00
Kyle Zhang
d9a247ac35 Merge "Respect RELEASE_PACKAGE_WIDEVINE back in device.mk" into main 2024-05-04 21:26:33 +00:00
Treehugger Robot
cf6bac7558 Merge "audio: pack AIDL haptic gen effect into the image" into 24D1-dev am: 51ca75b081
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs-common/+/27074035

Change-Id: I40f840d9674c6e080fb493f05126ab264564e5df
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-03 04:16:34 +00:00
Treehugger Robot
51ca75b081 Merge "audio: pack AIDL haptic gen effect into the image" into 24D1-dev 2024-05-03 03:54:45 +00:00
Priyanka Advani
98550c6193 Revert "sepolicy: Allow PixelGnss implement PPS function" am: feb41bd23d
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs-common/+/27192521

Change-Id: If61b9a17adeacf89cea31e2a6febfc9e5be44b15
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-02 19:54:21 +00:00
Philip Quinn
a7d1cea1ef Merge "Include vendor/google/interfaces as a transitive dependency of twoshay." into main 2024-05-02 18:12:14 +00:00
Kyle Zhang
56aab3b93d Respect RELEASE_PACKAGE_WIDEVINE back in device.mk
Bug: 338239204
Change-Id: Idd5e1c18947c72442a34f43f6e04b66039cf7946
2024-05-02 17:42:27 +00:00
Priyanka Advani
feb41bd23d Revert "sepolicy: Allow PixelGnss implement PPS function"
Revert submission 27007604-pps_topic

Reason for revert: Droid-monitor created revert due to breakages in b/338407263. Will be verifying through ABTD before submission.

Reverted changes: /q/submissionid:27007604-pps_topic

Change-Id: Icf89f2bd526634daa8ba10f80471b80dab0837f7
2024-05-02 16:28:10 +00:00
Chia-Chi Teng
927816ea1e sepolicy: Allow PixelGnss implement PPS function am: 890796a889
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs-common/+/27007165

Change-Id: I2b6a7d8648f4d62548b17d26d350fdc9de08f0d1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-02 13:36:25 +00:00
Philip Quinn
a19ae3354b Include vendor/google/interfaces as a transitive dependency of twoshay.
Bug: 278909669
Test: presubmit
Change-Id: Ie9f2f76777407183e9e9e3792265cf00c3ecc204
2024-04-30 22:11:25 -07:00
Chia-Chi Teng
890796a889 sepolicy: Allow PixelGnss implement PPS function
avc:  denied  { read } for  name="u:object_r:vendor_chre_hal_prop:s0" dev="tmpfs" ino=401 scontext=u:r:hal_gnss_pixel:s0 tcontext=u:object_r:vendor_chre_hal_prop:s0 tclass=file
avc:  denied  { find } for pid=900 uid=1021 name=android.hardware.contexthub.IContextHub/default scontext=u:r:hal_gnss_pixel:s0 tcontext=u:object_r:hal_contexthub_service:s0 tclass=service_manager
avc:  denied  { call } for  scontext=u:r:hal_gnss_pixel:s0 tcontext=u:r:hal_contexthub_default:s0 tclass=binder
avc:  denied  { call } for  scontext=u:r:hal_contexthub_default:s0 tcontext=u:r:hal_gnss_pixel:s0 tclass=binder
avc:  denied  { search } for  name="gps" dev="dm-54" ino=380 scontext=u:r:hal_gnss_pixel:s0 tcontext=u:object_r:vendor_gps_file:s0 tclass=dir
avc:  denied  { write } for  name="gps" dev="dm-54" ino=380 scontext=u:r:hal_gnss_pixel:s0 tcontext=u:object_r:vendor_gps_file:s0 tclass=dir
avc:  denied  { add_name } for  name=".pps_pipe" scontext=u:r:hal_gnss_pixel:s0 tcontext=u:object_r:vendor_gps_file:s0 tclass=dir
avc:  denied  { create } for  name=".pps_pipe" scontext=u:r:hal_gnss_pixel:s0 tcontext=u:object_r:vendor_gps_file:s0 tclass=fifo_file
avc:  denied  { read } for  name=".pps_pipe" dev="dm-54" ino=11418 scontext=u:r:hal_gnss_pixel:s0 tcontext=u:object_r:vendor_gps_file:s0 tclass=fifo_file
avc:  denied  { open } for  path="/data/vendor/gps/.pps_pipe" dev="dm-54" ino=11418 scontext=u:r:hal_gnss_pixel:s0 tcontext=u:object_r:vendor_gps_file:s0 tclass=fifo_file permissive=1
avc:  denied  { write } for  name=".pps_pipe" dev="dm-54" ino=11418 scontext=u:r:hal_gnss_pixel:s0 tcontext=u:object_r:vendor_gps_file:s0 tclass=fifo_file
avc:  denied  { search } for  name="gps" dev="dm-49" ino=380 scontext=u:r:hal_gnss_pixel:s0 tcontext=u:object_r:vendor_gps_file:s0 tclass=dir
avc:  denied  { write } for  name=".ppspipe" dev="dm-49" ino=18610 scontext=u:r:hal_gnss_pixel:s0 tcontext=u:object_r:vendor_gps_file:s0 tclass=fifo_file
avc:  denied  { write } for  name="gps" dev="dm-54" ino=380 scontext=u:r:hal_gnss_pixel:s0 tcontext=u:object_r:vendor_gps_file:s0 tclass=dir
avc:  denied  { open } for  path="/data/vendor/gps/.ppspipe" dev="dm-49" ino=18610 scontext=u:r:hal_gnss_pixel:s0 tcontext=u:object_r:vendor_gps_file:s0 tclass=fifo_file
avc:  denied  { remove_name } for  name=".pps_pipe" dev="dm-54" ino=11712 scontext=u:r:hal_gnss_pixel:s0 tcontext=u:object_r:vendor_gps_file:s0 tclass=dir
avc:  denied  { unlink } for  name=".pps_pipe" dev="dm-59" ino=6600 scontext=u:r:hal_gnss_pixel:s0 tcontext=u:object_r:vendor_gps_file:s0 tclass=fifo_file

Bug: 330120749
Test: Verify PixelGnss HAL can connect to Chre HAL.
Test: Function test verification b/330120749.
Test: b/330120749#comment24 health boot check.
Test: b/330120749#comment25 health boot check.
Change-Id: I100ae061cfcbba17a26ece79eb552d60aa782d79
2024-04-29 11:41:58 +00:00
Peter (YM)
88203440b2 thermal: allow thermal_hal to read sysfs_gpu
Update the sepolicy for thermalhal to read sysfs_gpu to access the basic
gpu info.

Bug: 336698561
Test: Flash Build and boot to home, run adb shell dumpsys android.hardware.thermal.IThermal/default, check the cdevceiling and hardlimit number for gpu
Change-Id: I6e722e108284ee0d7a0c86a9e50749ecf4b354a5
Signed-off-by: Peter (YM) <peterym@google.com>
2024-04-29 05:37:09 +00:00
Erik Staats
417a0fbfcd dump_umfw_stat: Reduce timeout to 0.5 seconds
Bug: 336359025
Test: Verified bugreport doesn't time out when umfw_stat_tool hangs.
Test: Verified bugreport contains UmfwStat statistics when
 umfw_stat_tool doesn't hang.
Test: See details in testing done comment in
 https://googleplex-android-review.git.corp.google.com/27069067 .
Flag: EXEMPT normal/day-to-day bugfix
Change-Id: Ia7573316a4217dff55cd789ded628cf033e08a89
2024-04-25 16:43:16 +00:00
Enzo Liao
0b1d777cc0 [automerger skipped] Merge "Centralize SELinux policies for deamons and apps related to ramdumps and coredumps according to go/pixel-defrag." into 24D1-dev am: 3b7d90448c -s ours
am skip reason: Merged-In I02c2e1569a95ea90901d9476ef75bca74a4f43e1 with SHA-1 7d7c8ebaeb is already in history

Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs-common/+/27047329

Change-Id: I2ece16bf6574f2cc7e9477fe8d65134897310f99
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-25 08:31:19 +00:00
Enzo Liao
9a578c86d2 [automerger skipped] Centralize SELinux policies for deamons and apps related to ramdumps and coredumps according to go/pixel-defrag. am: 2843f2a79b -s ours
am skip reason: Merged-In I02c2e1569a95ea90901d9476ef75bca74a4f43e1 with SHA-1 7d7c8ebaeb is already in history

Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs-common/+/27047329

Change-Id: I6725fb043bc51551c309f33f303faf4a1fdd60fe
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-25 08:31:13 +00:00
Enzo Liao
3b7d90448c Merge "Centralize SELinux policies for deamons and apps related to ramdumps and coredumps according to go/pixel-defrag." into 24D1-dev 2024-04-25 08:22:06 +00:00
Kelvin Zhang
b1119480f0 Merge "Revert "Skip loading kernel modules for 16K mode"" into main 2024-04-25 01:58:10 +00:00
Kelvin Zhang
03c030cd04 Revert "Skip loading kernel modules for 16K mode"
This reverts commit 959ba11426888cc5dfd054c04151fa69573c9eb5.

Reason for revert: aosp/3050544 breaks this CL

Change-Id: I9dcbcd3b8d6fb8f1e9c468cbca3ea7264bda264d
2024-04-25 00:49:19 +00:00
Kelvin Zhang
d27d373537 Merge "Skip loading kernel modules for 16K mode" into main 2024-04-25 00:00:31 +00:00
Treehugger Robot
2ed1898907 Merge "Fixed a typo in init.storage.rc" into main 2024-04-24 23:22:19 +00:00
Erick Alvarez
68135d2f44 Merge "Attach face detection state tracker files to the bug report" into 24D1-dev am: 0f0e2bed0a
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs-common/+/27060465

Change-Id: Id14fae9a14ce14538b739a272a8369a7320f6f69
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-24 22:09:48 +00:00
Erick Alvarez
0f0e2bed0a Merge "Attach face detection state tracker files to the bug report" into 24D1-dev 2024-04-24 20:59:28 +00:00
Daniel Lee
1a0943166d Fixed a typo in init.storage.rc
"sys" -> "dev"

Change-Id: Ie7103a668cab027fb339762a7f4761b776b431f9
Signed-off-by: Daniel Lee <chullee@google.com>
2024-04-24 12:33:55 -07:00
Randall Huang
e4c7499bcb Merge "storage: tune f2fs to get max performance" into main 2024-04-24 03:21:12 +00:00
Shinru Han
fe1b1aaa14 [automerger skipped] Merge "gps: Update gps makefile" into 24D1-dev am: b61232f24f -s ours
am skip reason: Merged-In I4357e7a7c5c35c9bdfd94fa8c1fd59d21bbcd668 with SHA-1 3647a441ad is already in history

Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs-common/+/26546996

Change-Id: Idb13d5de4919a17d32e2329e63d3be7153a2b0e8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-24 01:15:36 +00:00
Shinru Han
72e1c30f8c [automerger skipped] gps: Update gps makefile am: 84de7535b5 -s ours
am skip reason: Merged-In I4357e7a7c5c35c9bdfd94fa8c1fd59d21bbcd668 with SHA-1 3647a441ad is already in history

Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs-common/+/26546996

Change-Id: Icbd94987a62251140af06909af467ace42fe67ed
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-24 01:15:26 +00:00
Shinru Han
b61232f24f Merge "gps: Update gps makefile" into 24D1-dev 2024-04-24 00:59:36 +00:00
Jaegeuk Kim
8ce08dfc7e storage: tune f2fs to get max performance
max_io_bytes : block will split out, so let's submit asap.

min_hot_blocks : don't mess up the logs per the chunk size.

Change-Id: I0795fea90c3aaee0ef6058fce7f4a3c31fc3fb42
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
2024-04-23 16:07:15 -07:00
David Li
2a7b2bd35b audio: pack AIDL haptic gen effect into the image
Bug: 330686268
Test: mm; haptic playground
Change-Id: I629ebaf0c8aa1c6b92dce781cb9e1416094a8c67
2024-04-24 05:04:24 +08:00
Martin Liu
3b2fde15ef Move compaction_proactiveness rule to system vendor init
Bug: 330670954
Test: boot
Change-Id: I3cb505a76850c9c3b48d127ae93eb03aa3da33d9
Signed-off-by: Martin Liu <liumartin@google.com>
2024-04-23 08:08:50 +00:00
Enzo Liao
2843f2a79b Centralize SELinux policies for deamons and apps related to ramdumps and coredumps according to go/pixel-defrag.
They include the domains:
1. dump_ramdump
2. ramdump
3. ramdump_app
4. sscoredump
5. ssr_detector_app

We copy policies of domains of ramdump and sscoredump from hardware/google/pixel-sepolicy to gs-common but don't remove them there to keep compatibility for other projects.

New SELinux policies:
1. Create a new file context of /data/vendor/ssrdump/logcat for SSRestartDetector to write device logs when it detects new coredumps.
2. RamdumpService will also access the path to compress device logs to zip files of coredumps.

Bug: 298102808
Design: go/sys-software-logging
Test: Manual
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:7d7c8ebaeb07288f43bf507de3cd8919984337da)
Merged-In: I02c2e1569a95ea90901d9476ef75bca74a4f43e1
Change-Id: I02c2e1569a95ea90901d9476ef75bca74a4f43e1
2024-04-23 06:45:07 +00:00
Minche Li
57c639e4ce Merge "Updates TTS voice packs in gs-common" into main 2024-04-23 03:27:14 +00:00
Kelvin Zhang
959ba11426 Skip loading kernel modules for 16K mode
For boot options, 16K kernel modules are all stored under vendor_boot.
So we can skip loading modules from vendor_dlkm/system_dlkm
if device is in 16K mode and boot option is enabled.

Bug: 293313353
Change-Id: I46c440a7ce67dfbd0cce83dadbd908dff144c583
2024-04-22 16:23:46 -07:00
Erick Alvarez
9001eb43e9 Attach face detection state tracker files to the bug report
State tracker proto file size is small, usually ~15KB. Collect 10 most recent
files to the bug reports.

Bug: 311086427
Test: adb bugreport
Change-Id: I5e43c85aaf40e33e9a578749121b0d3a750c209e
2024-04-22 23:23:27 +00:00
Enzo Liao
d8a9aa897d Remove unused apps (RamdumpService and SSRestartDetector) from AOSP.
After ag/26620507, the two apps are built in AOSP.
AOSP doesn't need them so we should not build them.

Bug: 298102808
Design: go/sys-software-logging
Test: Manual
Flag: NONE N/A
Change-Id: I0925fa0bb512a0001bfb46c524c9124128bc5e6e
2024-04-22 16:57:27 +08:00
Enzo Liao
d211011681 Merge "Revert "Remove unsed apps (RamdumpService and SSRestartDetector)..."" into main 2024-04-22 07:52:40 +00:00
Enzo Liao
2a2146024b Revert "Remove unsed apps (RamdumpService and SSRestartDetector)..."
Revert submission 26988480-Remove RamdumpService and SSRestartDetector from AOSP

Reason for revert: Exclude AOSP builds by a condition check instead

Reverted changes: /q/submissionid:26988480-Remove+RamdumpService+and+SSRestartDetector+from+AOSP

Bug: 298102808
Design: go/sys-software-logging
Test: Manual
Flag: NONE N/A

Change-Id: I518af9425d8f808671118c41d1cabd68782c1ff6
2024-04-22 05:10:46 +00:00
Bruce Po
fe72bc0c1d selinux allow aocxd to access AoC buffers
Allow aocxd service to access new device nodes
/dev/acd-aocx_inject*
/dev/acd-aocx_tapout*

type=1400 audit(0.0:88): avc:  denied  { getattr } for  path="/dev/acd-aocx_tapout0" dev="tmpfs" ino=1936 scontext=u:r:aocxd:s0 tcontext=u:object_r:device:s0 tclass=chr_file permissive=0

type=1400 audit(0.0:89): avc:  denied  { getattr } for  path="/dev/acd-aocx_inject0" dev="tmpfs" ino=1937 scontext=u:r:aocxd:s0 tcontext=u:object_r:device:s0 tclass=chr_file permissive=0

BUG: 335884035
Change-Id: Ie4cd637e91f1d9db081bb794a9fb60e3bafe0218
2024-04-19 21:25:41 +00:00
Binhao Lin
d5028db7e3 Merge "Attach multicam CPA to the bug report" into 24D1-dev am: 278620120f
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs-common/+/27030061

Change-Id: I9266fb1b07fbf7a396e37834dc25d1a2084fb192
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-19 21:13:45 +00:00
Binhao Lin
278620120f Merge "Attach multicam CPA to the bug report" into 24D1-dev 2024-04-19 20:47:41 +00:00
Binhao Lin
b1a35566c1 Attach multicam CPA to the bug report
Multicam CPA file size is small, usually <50KB. Collect 10 most recent
files to the bug reports.

Bug: 310389222
Test: adb bugreport
Change-Id: I902fbdfa460a18fb3976d2fbfb4c1c0a716a4ab2
2024-04-19 18:33:56 +00:00
Treehugger Robot
67c14e6e01 Merge changes from topic "gs_mm_common" into main
* changes:
  Set compaction_proactiveness and percpu_pagelist_high_fraction
  allow vendor init to access MM knob
2024-04-19 06:27:54 +00:00
Ravi Jain
a30f1bcfb4 Merge changes from topic "touch_dumpstate_priority-24D1-dev" into 24D1-dev am: 3defa6f8ea
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs-common/+/26926316

Change-Id: I2d0bee71d89fa083110e177ddf4d4f3b06930300
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-19 06:14:22 +00:00
Ravi Jain
44c50aee79 dumpstate: touch: Add touch_predump for gti am: f7bacf5322
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs-common/+/26919214

Change-Id: I29b6676a78c0cd54d50f7f1f8d07dd75518cf197
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-19 06:14:18 +00:00
Ravi Jain
436222de27 dumpstate: touch: Init touch_predump service am: 8a52cae4dd
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs-common/+/26919213

Change-Id: Idb6efba436e5d06eeff611428b2e9bd1f6b6eb0e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-19 06:14:12 +00:00
Ravi Jain
3defa6f8ea Merge changes from topic "touch_dumpstate_priority-24D1-dev" into 24D1-dev
* changes:
  dumpstate: touch: Add touch_predump for syna
  dumpstate: touch: Add touch_predump for gti
  dumpstate: touch: Init touch_predump service
2024-04-19 05:47:46 +00:00
Rios Kao
9be61e9e36 aidl: audio: update external service version am: 905441e15c
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs-common/+/27007170

Change-Id: I429852de4d752f9b2d0be02983f51ffde34d7094
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-18 20:53:18 +00:00
Rios Kao
905441e15c aidl: audio: update external service version
Bug: 332443021
Test: mm
Change-Id: I56f50c5f2ddce80f95af2228e91a1db5757dffbc
2024-04-18 18:38:14 +00:00
Martin Liu
d627901103 Set compaction_proactiveness and percpu_pagelist_high_fraction
Move the settings from project's setting to common folder so
the changes can also apply to the following 6.1 kernel.

Bug: 332916849
Bug: 309409009
Test: boot
Change-Id: I89d0386821e8a47301023aa414998dd76e3bd6b9
Signed-off-by: Martin Liu <liumartin@google.com>
2024-04-18 07:10:14 +00:00