Commit graph

2290 commits

Author SHA1 Message Date
Cyan_Hsieh
ee9fc2619a Add FSTAB_OWNERS and update OWNERS to include Android.bp am: 70b62a2bcd am: 7c84d4f5d8
Original change: https://android-review.googlesource.com/c/device/google/gs-common/+/3205326

Change-Id: I6dd88ed20fd36d030c05d521c354924f82755378
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-08-05 03:09:21 +00:00
Cyan_Hsieh
7c84d4f5d8 Add FSTAB_OWNERS and update OWNERS to include Android.bp am: 70b62a2bcd
Original change: https://android-review.googlesource.com/c/device/google/gs-common/+/3205326

Change-Id: I2020275cf385bbdc63e2015ed2a91dfafb440c60
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-08-05 02:46:52 +00:00
Cyan_Hsieh
70b62a2bcd 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:838218ded4fee43f7982438487a143f95d29c615)
Merged-In: I55736409ba04b348a75c2934686f9c1328223c1a
Change-Id: I55736409ba04b348a75c2934686f9c1328223c1a
2024-08-02 11:39:01 +00:00
Treehugger Robot
b8dbc2a0df Merge "sensors: Support registry dump on DEV device." into main 2024-07-31 03:37:58 +00:00
Rick Chen
35d4b2bf94 sensors: Support registry dump on DEV device.
Flag: EXEMPT bugfix
Bug: 356344263
Test: adb bugreport on DS.
Change-Id: Ifccf1ed18e01bd54bfbfd421969361734e631a32
Signed-off-by: Rick Chen <rickctchen@google.com>
2024-07-30 20:08:40 +08:00
YiKai Peng
e155aa7c04 WLC: service: add sepolicy for property vendor.wlcservice.test
avc:  denied  { read } for  comm="binder:882_3" name="u:object_r:default_prop:s0" dev="tmpfs" ino=172 scontext=u:r:hal_wlcservice:s0 tcontext=u:object_r:default_prop:s0 tclass=file permissive=0

Test: authentication test mode
Bug: 350830879
Flag: EXEMPT bugfix
Change-Id: Ie9f8fc5cce8e62b06931b77aa8cd16a3c9516fb5
Signed-off-by: YiKai Peng <kenpeng@google.com>
2024-07-30 08:53:50 +00:00
Treehugger Robot
2b3c202bd2 Merge "Adjust name of vendor_camera_image_processing_hal_service" into main 2024-07-22 19:24:18 +00:00
Cheng Gu
9d83f45ffb Adjust name of vendor_camera_image_processing_hal_service
Also removes vendor_camera_isp_service from sepolicy.

Bug: 354335791
Test: make
FLAG: EXEMPT bugfix
Change-Id: I1d1d2dd113676d0df5efc55d3a2fa931e3b9d588
2024-07-20 07:48:58 +00:00
Ernie Hsu
826a8afe4c Merge "mediacodec: fix sepolicy for video playback/recording" into main 2024-07-19 06:47:07 +00:00
Ernie Hsu
cbe40aac4f Merge "Move mediacodec hal setting to gs-common" into main 2024-07-19 05:13:45 +00:00
Feiyu Chen
aab6967f85 Merge "Allow Tachyon service to binder call a shell program" into main 2024-07-19 04:47:25 +00:00
feiyuchen
5c45a3e263 Allow Tachyon service to binder call a shell program
Our Tachyon tests are running as shell program. We need this CL, so we can successfully run the tests without `adb root`.

Bug: 353826183
Test: All tests in `run_tachyon_tests.py` passed after disabling the stress tests (cl/653778337)
Change-Id: I7275029f5a837243c81968d5b53ffc3b00ddf9a5
Flag: EXEMPT bugfix
2024-07-19 04:47:00 +00:00
Ernie Hsu
bbe999c372 mediacodec: fix sepolicy for video playback/recording
07-18 08:46:26.420   925   925 I CodecLooper: type=1400 audit(0.0:404): avc:  denied  { use } for  path="/dev/ashmemf7003569-92c8-48c6-bfdb-b7331af5f4e9" dev="tmpfs" ino=1121 scontext=u:r:mediacodec_google:s0 tcontext=u:r:mediaserver:s0 tclass=fd permissive=1
07-18 08:46:26.468   925   925 I HwBinder:925_3: type=1400 audit(0.0:405): avc:  denied  { use } for  path="/dmabuf:system-uncached" dev="dmabuf" ino=734 scontext=u:r:mediacodec_google:s0 tcontext=u:r:hal_graphics_allocator_default:s0 tclass=fd permissive=1
07-18 08:46:26.664   925   925 I HwBinder:925_4: type=1400 audit(0.0:406): avc:  denied  { use } for  path="anon_inode:sync_file" dev="anon_inodefs" ino=52 scontext=u:r:mediacodec_google:s0 tcontext=u:r:untrusted_app_27:s0:c83,c256,c512,c768 tclass=fd permissive=1
07-18 08:46:26.668   925   925 I HwBinder:925_5: type=1400 audit(0.0:407): avc:  denied  { use } for  path="anon_inode:sync_file" dev="anon_inodefs" ino=52 scontext=u:r:mediacodec_google:s0 tcontext=u:r:surfaceflinger:s0 tclass=fd permissive=1
07-18 08:46:26.696   925   925 I HwBinder:925_5: type=1400 audit(0.0:408): avc:  denied  { use } for  path="anon_inode:sync_file" dev="anon_inodefs" ino=52 scontext=u:r:mediacodec_google:s0 tcontext=u:r:hal_graphics_composer_default:s0 tclass=fd permissive=1
07-18 08:46:29.392   925   925 I HwBinder:925_6: type=1400 audit(0.0:409): avc:  denied  { use } for  path="anon_inode:sync_file" dev="anon_inodefs" ino=52 scontext=u:r:mediacodec_google:s0 tcontext=u:r:hal_graphics_composer_default:s0 tclass=fd permissive=1

Test: video playback, screen recording
Bug: 353638738
Change-Id: I071268d39cedf10b8f7c0ca0c9cb2bd33a367d09
2024-07-19 03:26:55 +00:00
Hongyang Jiao
f26bca6ccb Merge "Apply flag RELEASE_PACKAGE_BETTER_BUG" into main 2024-07-18 18:42:44 +00:00
feiyuchen
4a08cc17a9 Add missing SEPolicy for audio HAL to use EdgeTpu lib am: e0ddd9b2fa am: db1943023e
Original change: https://android-review.googlesource.com/c/device/google/gs-common/+/3180719

Change-Id: I8c05d28aae1053889a4673a4a619c1462d642a16
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-07-18 16:43:38 +00:00
feiyuchen
db1943023e Add missing SEPolicy for audio HAL to use EdgeTpu lib am: e0ddd9b2fa
Original change: https://android-review.googlesource.com/c/device/google/gs-common/+/3180719

Change-Id: I2dcc98a6f61057a525b97e03d42af852a45d9a54
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-07-18 16:13:50 +00:00
Ernie Hsu
3b4a36a573 Move mediacodec hal setting to gs-common
Flag: EXEMPT refactor
Bug: 353638738
Change-Id: Id17997c75e7dc4f44d7ba8a3a98fa241052cbbff
2024-07-18 09:37:16 +00:00
feiyuchen
e0ddd9b2fa Add missing SEPolicy for audio HAL to use EdgeTpu lib
Copied from ag/27351988

Bug: 352789444
Test: Default presubmit. To be tested on device
Change-Id: I8a124d644906ffc622598ac0bf6079d704197a33
2024-07-18 00:28:25 +00:00
Treehugger Robot
4fa1df0c7c Merge "[BT] change # of copy file when crash" into main 2024-07-17 04:44:32 +00:00
shihchienc
37cf26dae4 [BT] change # of copy file when crash
Bug: 353618079
Test: m
Test: make bt crash and check bugreport
Flag: NONE not related to logic change
Change-Id: I20a7e5b27b64f40ffa7ae3ced38f4044f2bf64b9
2024-07-17 03:23:38 +00:00
Minche Li
c4a241c72c Merge "Updates TTS voice packs in gs-common 202407" into main 2024-07-17 02:48:30 +00:00
Hongyang Jiao
a0e5b35936 Apply flag RELEASE_PACKAGE_BETTER_BUG
Flag: build.RELEASE_PACKAGE_BETTER_BUG
Bug: 353584670
Change-Id: I41b3fe23f68d46d29ef12692d00e1c6c1f7f141f
Test: manual test
2024-07-16 23:10:34 +00:00
Dinesh Yadav
3582506fec Allow camera HAL to access tachyon HAL
Bug: 352680961
Flag: EXEMPT updates device sepolicy only
Change-Id: I8383887e36340db67c595a12c11c336d3d9bf974
2024-07-16 04:31:02 +00:00
Richard Chang
1a4e01ef9e sepolicy: allow powerhal to access vendor_mm dir
Error log:
auditd  : type=1400 audit(0.0:79): avc:  denied  { search } for  comm="NodeLooperThrea" name="vendor_mm" dev="sysfs" ino=56518 scontext=u:r:hal_power_default:s0 tcontext=u:object_r:sysfs_vendor_mm:s0 tclass=dir permissive=0

Bug: 322916612
Test: check avc logs
Flag: EXEMPT bugfix
Change-Id: I0fa6ba0a11551646d76b65ec764b25cd697d0364
2024-07-15 06:39:22 +00:00
mincheli
3a090c42f9 Updates TTS voice packs in gs-common 202407
ag/28084993 update GoogleTTS.
So preloaded TTS voice packs should be also updated.

And see doc, Preload Google Text-to-Speech (TTS) Voice Packs:
The voice packs are dowloanded follow the steps.

Flag: EXEMPT update preloaded files
Bug: 333626474
Test: build passed and manual test
Change-Id: Id942b52b763e519b25af9337b913a4599b249193
2024-07-15 04:00:32 +00:00
Steven Tsai
c1c7a5ff41 Merge "Support AR one-shot fuse on the new platform" into main 2024-07-11 04:27:49 +00:00
Baligh Uddin
6344093af4 Merge "Add dist_lyric_apex flag to lyric.mk" into main 2024-07-10 23:06:21 +00:00
Juan Yescas
488cbde222 Merge "Revert "Add a different implementation of insmod.sh"" into main 2024-07-09 23:46:59 +00:00
Juan Yescas
3b484f698e Revert "Add a different implementation of insmod.sh"
This reverts commit 99f848ed48.

Reason for revert: b/350767144#comment8

Bug: 350767144
Change-Id: I169af080656e8e871e3f6322b123eee8e681d530
2024-07-09 23:46:49 +00:00
Baligh Uddin
941dc90593 Add dist_lyric_apex flag to lyric.mk
This flag controls whether Lyric apex can be located in the dist-directory.

Flag: dist_lyric_apex
Change-Id: I7a87b2e0b1c220955aafda28173533bd4f6bcd52
BUG: 352009541
Test: TH
2024-07-09 23:22:59 +00:00
Steven Tsai
c984d655c2 Support AR one-shot fuse on the new platform
Bug: 351059371
Flag: EXEMPT bugfix
Change-Id: I14faf995aa259b607300616ba1a1ea6d24a92d2a
Signed-off-by: Steven Tsai <steventsai@google.com>
2024-07-05 15:34:07 +08:00
Super Liu
bb0d0ca8ff touch: gti support sysfs_wakeup
07-03 02:59:22.526   517   517 W binder:517_5: type=1400 audit(0.0:18): avc:  denied  { read } for  name="wakeup36" dev="sysfs" ino=98946 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs_touch_gti:s0 tclass=dir permissive=0
07-03 02:59:22.531   517  1547 E android.system.suspend-service: Error opening kernel wakelock stats for: wakeup36 (../../devices/virtual/goog_touch_interface/gti.0/wakeup36): Permission denied

Test: TH build pass
Bug: 335839116
Change-Id: I1840dc5433fd2bfd0722852e6b721c20ff14e39b
Signed-off-by: Super Liu <supercjliu@google.com>
2024-07-03 03:02:35 +00:00
David Lin
9e20095889 Merge "audio: add vendor serialno prop" into 24D1-dev am: 07890d909b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs-common/+/28028457

Change-Id: I45639f601462a9400e9c5245429af434cb3d197c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-07-03 02:32:24 +00:00
David Lin
07890d909b Merge "audio: add vendor serialno prop" into 24D1-dev 2024-07-03 02:19:47 +00:00
Super Liu
f61d73580b Merge "Support touch sepolicy for spi20" into main 2024-07-03 01:49:48 +00:00
Super Liu
f897a71294 Support touch sepolicy for spi20
avc denied logs:
07-02 13:17:48.412     1     1 I auditd  : type=1107 audit(0.0:4): uid=0 auid=4294967295 ses=4294967295 subj=u:r:init:s0 msg='avc:  denied  { read } for property=persist.sys.tap_gesture pid=0 uid=0 gid=0 scontext=u:r:vendor_init:s0 tcontext=u:object_r:gesture_prop:s0 tclass=file permissive=0'
07-02 13:17:56.204   315   315 I auditd  : type=1400 audit(0.0:20): avc:  denied  { write } for  comm="init" name="nvt_heatmap" dev="proc" ino=4026536248 scontext=u:r:vendor_init:s0 tcontext=u:object_r:proc:s0 tclass=file permissive=0

vendor_init change to access sysfs_touch from sysfs:
07-02 13:17:56.680     1     1 I init    : Command 'write /sys/devices/virtual/goog_touch_interface/gti.0/vendor_input/nvt_dttw_mode 1' action=vendor.all.modules.ready=1 (/vendor/etc/init/hw/init.rc:127) took 462ms and succeeded
ls -lZ /sys/devices/virtual/goog_touch_interface/gti.0/vendor_input/nvt_dttw_mode
-rw-r--r-- 1 system system u:object_r:sysfs:s0  4096 2024-07-02 13:17 /sys/devices/virtual/goog_touch_interface/gti.0/vendor_input/nvt_dttw_mode

Bug: 335839116
Test: TH pass
Change-Id: If1890defcb9400405071b1c669098d9d62bc56e4
Signed-off-by: Super Liu <supercjliu@google.com>
2024-07-02 14:15:46 +00:00
liangjlee
662ff8069f Create power folder and align pm_freeze_timeout settings with p22 am: 16b70cbf76
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs-common/+/28051339

Change-Id: Ieee24d5babc7d61036cf80e6d0d52d92a2156860
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-07-02 09:36:37 +00:00
Treehugger Robot
a20a805fc0 Merge "gps: Add pps_assert sepolicy" into main 2024-07-02 06:51:49 +00:00
Tim Lin
90ea9b5fca Revert^2 "Support AIDL based radio HALs"
Enable AIDL for V requirement

AVC log in b/281968564#comment208 and go/v-ril-hal-migration
Forrest build result in go/v-ril-hal-migration

Bug: 281968564
Test: telephony function test
Flag: EXEMPT HAL interface change

9a26ed1a9b

Change-Id: I13117df3e25c01026c100207cc0d43aac8b82b7a
2024-07-01 08:32:25 +00:00
Pechetty Sravani
9a26ed1a9b Revert "Support AIDL based radio HALs"
Revert submission 27917806-v_hal_migration_phase3

Reason for revert: Droidmonitor created revert due to b/350390759. Will be verifying through ABTD before submission.

Reverted changes: /q/submissionid:27917806-v_hal_migration_phase3

Change-Id: I466c1b61b86cb7a87f5a1a5ffbc0b4a86438beea
2024-07-01 06:11:17 +00:00
timtmlin
d44c33ec48 Support AIDL based radio HALs
Enable AIDL for V requirement

AVC log in b/281968564#comment208 and go/v-ril-hal-migration

Bug: 281968564
Test: telephony function test
Flag: EXEMPT HAL interface change

Change-Id: I9c1e9aecd8a9704fc290bdb3f66dc94d9e2e5073
2024-06-28 12:49:19 +00:00
liangjlee
16b70cbf76 Create power folder and align pm_freeze_timeout settings with p22
Create a new power folder for adding common settings among projects.
The first usage would be to align pm_freeze_timeout with p22.

Bug: 331612600
Test: cat /sys/power/pm_freeze_timeout and the value is correct.
Flag: EXEMPT (bug 337358613)
Change-Id: Ib8219114ec7d789ea3ee9a44863497d3751c0baf
Signed-off-by: liangjlee <liangjlee@google.com>
2024-06-27 02:27:20 +00:00
liangjlee
21f38c7d0d Create power folder and align pm_freeze_timeout settings with p22
Create a new power folder for adding common settings among projects.
The first usage would be to align pm_freeze_timeout with p22.

Bug: 331612600
Test: cat /sys/power/pm_freeze_timeout and the value is correct.
Flag: EXEMPT (bug 337358613)
Change-Id: Ib8219114ec7d789ea3ee9a44863497d3751c0baf
Signed-off-by: liangjlee <liangjlee@google.com>
2024-06-27 02:36:28 +08:00
Cheng Chang
c9160b5fc2 gps: Add pps_assert sepolicy
avc:  denied  { read } for  name="pps_assert" dev="sysfs" ino=104638 scontext=u:r:gpsd:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0

Bug: 258364350
Test: Verification at b/258364350.
Test: Function verification at b/258364350.
Test: Compile and verify the configuration is correct.
Change-Id: Id5589a798bc8535d069225778982a8be27898477
2024-06-25 10:12:25 +00:00
Rios Kao
875dd78991 audio: add vendor serialno prop
note:
      For some special device usage, the prop
      would be used for special setup.

Test: end-to-end validation.
Bug: 349276230
Flag: EXEMPT bugfix

Change-Id: I3a7fb89b44b8df11d5fd71ed8635576f7d74ff87
2024-06-25 09:24:40 +00:00
Woody Lin
0dd653e624 gs_watchdogd: Use timeout defined by platform
Uses timeout value of watchdog device directly, without modifying it
with ioctl. On some platforms, especially these with multiple watchdog
devices, the timeout values can be strictly defined for the watchdogs to
timeout in a certain order. Leaves timeout value as it is and divides
minimal of them by 2 as watchdog kicking period.

Flag: EXEMPT normal/day-to-day bugfix
Bug: 348318712
Change-Id: Icdcce368f1803cd3b38a48f05e2788d881e3ad6f
2024-06-24 11:45:43 +08:00
Xin Li
b45af4f2a8 [automerger skipped] Merge "Merge 24Q3 (ab/11976889) to aosp-main-future" into aosp-main-future am: ff902d4fd9 -s ours
am skip reason: Merged-In I188263ee9b186736a48fd3a0cfa83745e2e54108 with SHA-1 e15af041dd is already in history

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

Change-Id: I8df31ecdebf037e99707da160528cd43b75fe558
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-20 20:55:48 +00:00
Xin Li
e3eb48f789 [automerger skipped] Merge 24Q3 (ab/11976889) to aosp-main-future am: ba94250476 -s ours
am skip reason: Merged-In I188263ee9b186736a48fd3a0cfa83745e2e54108 with SHA-1 e15af041dd is already in history

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

Change-Id: Ie7c41132cd8b95aef6d6195bddb3046862f52a5e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-20 20:55:43 +00:00
Xin Li
ff902d4fd9 Merge "Merge 24Q3 (ab/11976889) to aosp-main-future" into aosp-main-future 2024-06-20 20:22:34 +00:00
Utku Utkan
bf85fe79bf Merge "Move definition for vendor_camera_lyricconfigprovider_service into product" into main 2024-06-19 02:31:58 +00:00