Commit graph

2176 commits

Author SHA1 Message Date
Android Build Coastguard Worker
34a0008fc4 Snap for 11853201 from d1a07d0197 to 24Q3-release
Change-Id: Idf399f606d440c1b306db6f79cfe5af1c9aea1bd
2024-05-17 01:02:02 +00:00
YiKai Peng
d1a07d0197 Merge "WLC: service: add configuration and contexts for sepolicy" into main 2024-05-16 06:41:52 +00:00
Android Build Coastguard Worker
b5e0efd733 Snap for 11847214 from ff3b853a7e to 24Q3-release
Change-Id: Icb4ded5a6a61c716be22d9eb2c1b1b56dbf1b63d
2024-05-16 01:02:40 +00:00
Feiyu Chen
ff3b853a7e Merge "Add missing SEPolicy for audio HAL to use EdgeTpu lib" into main 2024-05-15 21:32:54 +00:00
feiyuchen
93c25dcb0d Add missing SEPolicy for audio HAL to use EdgeTpu lib
Some policies were missing. This CL adds them.

Bug: 340369535
Test: Default presubmit. To be tested on device
Change-Id: I8a124d644906ffc622598ac0bf6079d704197a33
2024-05-15 18:08:31 +00:00
Midas Chien
cd14b2ad4d Dump bts information am: 15538c9845
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs-common/+/27232582

Change-Id: I07bcaf815b664ab36a17eb19bd5c1ae6238685e2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-15 02:16:45 +00:00
Midas Chien
15538c9845 Dump bts information
Get BTS information when capturing bugreport.

Bug: 335422086
Test: capture bugreport
Change-Id: I5ae9be35a3fc3c975ccc843e9daee6d4e0ac130a
2024-05-14 07:40:58 +00:00
Android Build Coastguard Worker
e9c2ec792c Snap for 11834877 from 12d68d3ff0 to 24Q3-release
Change-Id: I63a28159716141caa9535bccd8bd2c10c1920b49
2024-05-13 23:02:27 +00:00
Treehugger Robot
12d68d3ff0 Merge "sepolicy: allow hal_gnss_pixel create fifo node" into main 2024-05-13 08:09:14 +00:00
Android Build Coastguard Worker
870611c992 Snap for 11828632 from 6c1885ee19 to 24Q3-release
Change-Id: I30e861681f8f821051302ae02f80274bdf455048
2024-05-11 01:02:28 +00:00
Dinesh Yadav
6c1885ee19 Merge "Limit maxGxpDebugDumps to 4" into main 2024-05-10 13:43:19 +00:00
Cheng Chang
84fdceb8b4 sepolicy: allow hal_gnss_pixel create fifo node
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: 339391267
Test: Verified the boot health at b/339391267#comment21.
Test: Verified the boot health at b/339391267#comment22.
Change-Id: I9f0b0939aa2bc3af0049067edaa17bc507be9fe7
2024-05-10 09:42:14 +00:00
Treehugger Robot
62056d470e Merge "Add a different implementation of insmod.sh" into main 2024-05-10 02:41:11 +00:00
Martin Liu
d400630a10 allow powerhal to access PA_KILL knobs am: 2522590c40
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs-common/+/27256041

Change-Id: I1e2ae9ee0b8e1744d3be313645c496947b76e7a1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-10 02:00:29 +00:00
Android Build Coastguard Worker
9dc2d05dc4 Snap for 11822896 from 5ca6b7496d to 24Q3-release
Change-Id: I87cf77594c3ef7d4e0ae1dfefb02dc23d6bcba5d
2024-05-09 23:07:01 +00:00
Kelvin Zhang
99f848ed48 Add a different implementation of insmod.sh
Use soong namespace to branch a implementation of insmod.sh .
The newly added implementation is only added to PRODUCT_PACKAGE
for dev option enabled devices. The only change to the script is
skip loading kernel modules from vendor|system_dlkm when under 16K
mode.

Test: Dev option works
Bug: 319335586

This reverts commit 11eb02562d.

Change-Id: I5f5d4ee79be7f872ec321e93f58f6516974d0cad
2024-05-09 09:46:55 -07:00
Feiyu Chen
5ca6b7496d Merge "Add SELinux policy for apps to use Tachyon lib" into main 2024-05-09 16:19:57 +00:00
Achigo Liu
ea3763c1c4 Merge "Revert "Add a different implementation of insmod.sh"" into main 2024-05-09 15:58:31 +00:00
Juan Yescas
11eb02562d Revert "Add a different implementation of insmod.sh"
This reverts commit 60cc378f18.

Reason for revert: thermal-service.pixel native crash many times

Bug: 339337171
Change-Id: Ibd228ea6a0950c2ff8449f7fd55a405fe9a0a99f
2024-05-09 13:24:05 +00:00
nischaljain
2dbfad9f6f Limit maxGxpDebugDumps to 4
DSP multicore workload can run atmost on 4 cores(in case of
amalthea) thus in case of crash we will need atmost 4 core
dumps. Thus limiting maxGxpDebugDumps to 4 to make sure that
we will be capturing all the required core dumps for the
recent crash and at the same time not inflating the bugreport
size.

Bug: 338583087
Change-Id: I76c5b1199c0d89f2bd9a2720dc24a7c86d057b4c
2024-05-09 12:33:01 +00:00
Android Build Coastguard Worker
bd241e1bb4 Snap for 11816316 from 2c4594cc71 to 24Q3-release
Change-Id: Ibaf82e764c6136c38bbdca0a5ba47df8ad9369c8
2024-05-08 23:02:21 +00:00
feiyuchen
12b799b125 Add SELinux policy for apps to use Tachyon lib
Bug: 339133130
Test: Verified apps can now open Tachyon client lib
Change-Id: I8ca9f08517ae8fc1deb5f97ce2823cd5eb5fafb6
2024-05-08 18:48:03 +00:00
Martin Liu
2522590c40 allow powerhal to access PA_KILL knobs
Bug: 322916612
Test: check avc logs
Change-Id: I637c6ad454b668f807b8d0eb4f66a83ca26dfa18
Signed-off-by: Martin Liu <liumartin@google.com>
2024-05-08 08:37:21 +00:00
Treehugger Robot
2c4594cc71 Merge "Add a different implementation of insmod.sh" into main 2024-05-08 04:21:52 +00:00
Kelvin Zhang
60cc378f18 Add a different implementation of insmod.sh
Use soong namespace to branch a implementation of insmod.sh .
The newly added implementation is only added to PRODUCT_PACKAGE
for dev option enabled devices. The only change to the script is
skip loading kernel modules from vendor|system_dlkm when under 16K
mode.

Test: Dev option works
Bug: 319335586
Change-Id: Ice77c19cad47f299db113f11878182f37e0b6f91
2024-05-07 20:04:33 -07:00
Android Build Coastguard Worker
ef0149eb28 Snap for 11811809 from 7b342c14ea to 24Q3-release
Change-Id: I57d7d19b40e9a5fa2505d38cddaa31eea9378da5
2024-05-07 23:02:41 +00:00
Enzo Liao
7b342c14ea Merge "Remove unused apps (RamdumpService and SSRestartDetector) from factory build targets." into 24D1-dev am: 480bc0ce65
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs-common/+/27232581

Change-Id: I6b9452a8c1195b4e71cea19b661cd44f41cd8568
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-07 08:14:07 +00:00
Enzo Liao
480bc0ce65 Merge "Remove unused apps (RamdumpService and SSRestartDetector) from factory build targets." into 24D1-dev 2024-05-07 07:57:09 +00:00
Feiyu Chen
a8d31d2a27 Merge "Allow edgetpu_tachyon_service to call mlock()" into main 2024-05-07 06:22:48 +00:00
feiyuchen
0ea3b6ccd1 Allow edgetpu_tachyon_service to call mlock()
Tachyon AIDL service is the new Darwinn runtime v3. It needs mlock capability to support the GenAI effort, allowing file backed large models to be mlocked, satisfying the memory accounting on Android, similar to what we just did for edgetpu_app_service ag/26481028

Bug: 337949682
Test: On-device tested that tachyon service can now lock large memories.
Change-Id: I02e4d87adf8a459e88e35f7b965d65b2840adce5
2024-05-07 03:50:02 +00:00
Android Build Coastguard Worker
88efd422f2 Snap for 11806096 from bb873aca3c to 24Q3-release
Change-Id: I78d9104d9583761f446e3a2651da017f8f776788
2024-05-06 23:02:24 +00:00
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
Enzo Liao
882ef5add8 Remove unused apps (RamdumpService and SSRestartDetector) from factory build targets.
After ag/26620507, the two apps are built in factory build targets.
They don't need them so we should not build them.

Bug: 298102808
Design: go/sys-software-logging
Test: Manual
Flag: NONE N/A
Change-Id: Ie442c7a95e7fe764749031281e7740c3a4b5a768
2024-05-06 19:58:06 +08:00
YiKai Peng
3eb5f527cf WLC: service: add configuration and contexts for sepolicy
binder setting is for callback by and access to hal_wireless_charger

Bug: 311315038
Test: authentication
Change-Id: Ieaf93c4736b7381be35bfcf12e83977762a3de5d
Signed-off-by: YiKai Peng <kenpeng@google.com>
2024-05-06 10:11:44 +00:00
Android Build Coastguard Worker
c3bc0936b4 Snap for 11803239 from d9a247ac35 to 24Q3-release
Change-Id: I69775205af27651cb2dcaab40b32837533a4a8f4
2024-05-05 21:07:04 +00:00
Kyle Zhang
d9a247ac35 Merge "Respect RELEASE_PACKAGE_WIDEVINE back in device.mk" into main 2024-05-04 21:26:33 +00:00
Android Build Coastguard Worker
390075f152 Snap for 11800966 from cf6bac7558 to 24Q3-release
Change-Id: Id3279ae02c4f1b2bcc4988edeb33b2e826b54ff1
2024-05-04 01:02:31 +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
Android Build Coastguard Worker
1161ba4d6b Snap for 11794304 from a7d1cea1ef to 24Q3-release
Change-Id: Ia3d5dadbc876654dcccd905660681009454fb5ef
2024-05-02 23:02:21 +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
Android Build Coastguard Worker
f29c18c8da Snap for 11766482 from 417a0fbfcd to 24Q3-release
Change-Id: I64771d4e2befa5dc55b34f06a517811b79468a25
2024-04-25 23:02:22 +00:00