Commit graph

7697 commits

Author SHA1 Message Date
Matt Buckley
59a7bf0bb7 SEPolicy access issue for hal_graphics_composer_default should be fixed
with ag/16631829

Bug: b/214473134
Test: pts-tradefed run pts -m PtsSELinuxTest

Change-Id: Id790bbfb9db534b86c4c5ae4564cfb2d5771ec4b
2022-01-17 20:51:58 +00:00
joenchen
e625d127ad init change owners of sysfs nodes min_vrefresh and idle_delay_ms
init: change file owners of sysfs nodes min_vrefresh and
idle_delay_ms in order to grant permission for hwcomposer

Bug: 213299701
Test: use the following commands
adb shell "vndservice call Exynos.HWCService 1005 i32 0 i32 30"
adb shell "vndservice call Exynos.HWCService 1006 i32 0 i32 1000"

Change-Id: I57043afd6ac08740775680505ee6f3247d56a956
2022-01-17 10:21:16 +00:00
joenchen
dd55e32ba1 Label min_vrefresh and idle_delay_ms as sysfs_display
Bug: 213299701
Test: Check the files label by "adb shell ls -Z"
Change-Id: I4c10582ec7dee516b54fb8aac77dafa825aaa93d
2022-01-17 10:21:16 +00:00
jonerlin
7d12f0defa bluetooth: correct btuart logger device node path
* modify dev/logbuffer_tty16 to dev/logbuffer_tty18

Bug: 213759828
Test: 1. Enable Bluetooth in P22 devices and check uart log in
android.hardware.bluetooth@1.1::IBluetoothHci.txt
2. Enable Bluetooth in P21 devices and check uart log in
android.hardware.bluetooth@1.1::IBluetoothHci.txt
3. Fake bthal ssrdump and check the coredump log.

Change-Id: I208fae8e5ddf60d7df52311c32249bf3ac401dbc
2022-01-17 09:06:28 +00:00
Adam Shih
56df08e495 fix dumpstate permission
Bug: 208721809
Test: run bugreport under enforcing mode and found  no relevant errors
Change-Id: I106d95fd01b321af815ef8e580305702be716021
2022-01-17 14:54:54 +08:00
Adam Shih
d9a2fb8506 grant systemui app access to touch service
Bug: 204718221
Test: boot with no relevant error
Change-Id: Ic320cf682e481522ef9acad6c4eb63891c84c80c
2022-01-17 11:20:07 +08:00
linjoey
42ac322b3d Add vulkan and gralloc sepolicy.
Bug: 206891640
Test: Test CTS testVulkanHardwareFeatures passed.
Change-Id: Ia14aa691d6dbfad40344895c9e6a63a267754864
2022-01-17 02:21:04 +00:00
Adam Shih
0b322cac3d make GPU mali firmware accessible
Bug: 205779849
Test: boot with no relevant log.

Change-Id: I0cc1c1f84df44b5fbed239d6771937f62861bdb2
2022-01-17 02:11:39 +00:00
Ahmed ElArabawy
cbbc05bf94 wifi: Uprev IWifiExt to 1.3
This commit updates the manifest to use IWifiExt 1.3

Bug: 214108561
Test: Build successfully, and start with right HAL version
Change-Id: Ib1b402ade4bf88039e5862262aa3310cbad3fbca
2022-01-15 18:51:56 +00:00
gwenlin
269b6f5047 Enable Google QNS for internal build
Bug: 208371668
Test: build
Change-Id: Ie99378d6d52d86a18f3991b5eecbfbe883c6a98b
2022-01-15 16:22:01 +00:00
Matt Buckley
5bf8862b01 Allow HWC to get device_config_surface_flinger_native_boot_prop for adpf flags
For the hardware composer and surfaceflinger to coordinate on certain features, it is necessary for the hardware composer to be able to read the surface_flinger_native_boot_prop to know what should be enabled.

Bug: b/214473134
Test: None
Change-Id: If03dae54ea17a8131c489f56092c0edd974ea41b
2022-01-14 20:20:24 +00:00
Xu Han
9633922461 Fix rlsserive selinux denials
Bug: 213817228
Test: check "avc denied" log with camera streaming.
Change-Id: Id255ffab3ca145cb0708b701e2afccdcd76ef4ea
2022-01-14 10:22:40 -08:00
Adam Shih
22786d49a4 update error on ROM 8078837
Bug: 214473134
Bug: 214473005
Bug: 214473093
Bug: 214472867
Bug: 214472869
Test: pts-tradefed run pts -m PtsSELinuxTest
Change-Id: I8a84883655b6b259b0079d947496616974beb944
2022-01-14 05:44:13 +00:00
Jack Yu
cea56bb347 Added default TCP buffer size for Pixels
Bug: 213596972
Test: Manual
Change-Id: Ie7b3ba3714c9d121e95b8eb62c4b02649d7e80e2
2022-01-14 05:04:48 +00:00
Siddharth Kapoor
8b241f5c35 Update selinux for init-insmod-sh needed for gpu probe
Bug: 207062151
Test: related avc denials not noticed in the device logs
Change-Id: I87ff2251fd7d92f8b0eb3fac43889758788b702f
Signed-off-by: Siddharth Kapoor <ksiddharth@google.com>
2022-01-14 04:24:52 +00:00
Cole Faust
7766938364 Revert "Use BOARD_HAS_DTLS instead of BOARD_WITHOUT_DTLS"
Revert "Use BOARD_HAS_DTLS instead of BOARD_WITHOUT_DTLS"

Revert "Use BOARD_HAS_DTLS instead of BOARD_WITHOUT_DTLS"

Revert submission 16603844-colefaust_dauntless

Reason for revert: Broke other products that didn't set BOARD_WITHOUT_DTLS
Reverted Changes:
I3b4ab3ed2:Use BOARD_HAS_DTLS instead of BOARD_WITHOUT_DTLS
Iee95550f4:Use BOARD_HAS_DTLS instead of BOARD_WITHOUT_DTLS
I1b210d8ab:Make BOARD_WITHOUT_DTLS work without an override
I80bfec988:Use BOARD_HAS_DTLS instead of BOARD_WITHOUT_DTLS
I5f51cf010:Use BOARD_HAS_DTLS instead of BOARD_WITHOUT_DTLS
If6592aa18:Remove BOARD_WITHOUT_DTLS

Change-Id: Ic47a1171ee2ebed0e0f78a191a7c21d41fa633e6
2022-01-14 02:43:01 +00:00
chloedai
f442239ffd Remove nfc.te
type=1400 audit(0.0:186): avc: denied { transfer } for
scontext=u:r:nfc:s0 tcontext=u:r:zygote:s0
tclass=binder permissive=1

type=1400 audit(1636594745.812:186): avc: denied { transfer } for
comm="Binder:2617_2" scontext=u:r:nfc:s0  tcontext=u:r:zygote:s0
tclass=binder permissive=1

Bug: 205904208
Test: Run test and check "avc: denied { transfer }" error in avc log
Change-Id: I38f396de7d18eb32cc1c6ff6b30ee51122f4c3b0
2022-01-13 13:00:14 +00:00
Cyan_Hsieh
9fddd3f55b display: make set_idle_timer_ms optional in factory
Allow ro.surface_flinger.set_idle_timer_ms to be overridden by device
makefiles.

Bug: 214336146
Change-Id: Ic7b572529d563aa0d41df25103e478ea3aae0f89
2022-01-13 08:00:50 +00:00
neoyu
38798148df P22: Sync config of silent CP crash handling from P21
Bug: 214226540
Test: manual
Change-Id: I4e915fc08c819d396577ae5a6b8841b632595041
2022-01-13 05:14:08 +00:00
Andrew Chant
3de791256d Add rebalance_interrupts
Add rebalance_interrupts to run at boot and rebalance interrupts.
Run once after modules have loaded and a second time after boot
has completed to ensure all interrupts have been assigned to
individual cores.

Bug: 148403062
Change-Id: I9685807e3028bef509c4064a5c09cbc48b91f7f0
(cherry picked from commit 77ceae1c094ff8ac4352a678457360d430692257)
2022-01-13 05:10:05 +00:00
Cole Faust
6cb8985947 Remove usage of intermediates-dir-for
intermediates-dir-for relies on several variables that
haven't been set at the time the board configuration
runs. The board configuration got around that by using
deferred expansion, but deferred expansion is something
that starlark doesn't support. Remove intermediates-dir-for
and switch to TARGET_RECOVERY_FSTAB_GENRULE.

Bug: 201700692
Test: m RBC_BOARD_CONFIG=1 nothing on gs201 products
Change-Id: I74bf8700161f6519d29b2b3634a286c4e758d136
2022-01-12 22:15:00 +00:00
Wei Wang
2b490ccab5 Start bootanimation explicitly.
Bug: 207573158
Test: build
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: I7e628828062f0203d9aefded94aacf086565ceef
2022-01-12 22:01:07 +00:00
Pat Tjin
e26fbacdd8 Move input surface to CCodec
64-bit only removes OMX, move input surface to CCodec.
(ref b/186447629)

Bug: 213924541
Test: camera
Signed-off-by: Pat Tjin <pattjin@google.com>
Change-Id: Icd35279d1e99bbb2fce3ad0d5c953f921a04548d
2022-01-12 21:44:31 +00:00
Pat Tjin
ab3f2562aa Remove 64-bit-only configs and default to 64-bit-only
Remove option for _64 and default to 64-bit only builds.
Removes the (out of date) manifest_64 files.
Removes OMX since it is not supported for 64-bits.

Bug: 213924541
Test: Build, Boot, YouTube playback, Play store, Camera
Signed-off-by: Pat Tjin <pattjin@google.com>
Change-Id: I1e97903b598a2fff46d912a009b2bc73f1b0f466
2022-01-12 21:44:31 +00:00
Cole Faust
7e72d8c517 Use BOARD_HAS_DTLS instead of BOARD_WITHOUT_DTLS
Bug: 201700692
Test: Verified ninja files are unchanged
Change-Id: I3b4ab3ed289faebd83cbb848aad512ab8cc3458d
2022-01-12 20:14:30 +00:00
Ankit Goyal
26ed2c0dbb Revert^4 "Add gralloc switch"
7a59c25d6b

Change-Id: I382138e5dd1467d01cd4538609f19495ccdfa482
2022-01-12 18:55:58 +00:00
Jasmine Cha
431ba37038 audio: add sepolicy for getting thermal event
type=1400 audit(0.0:15): avc: denied { call } for scontext=u:r:hal_audio_default:s0
tcontext=u:r:hal_thermal_default:s0 tclass=binder permissive=1

type=1400 audit(0.0:16): avc: denied { transfer } for scontext=u:r:hal_audio_default:s0
tcontext=u:r:hal_thermal_default:s0 tclass=binder permissive=1

Bug: 204271308
Test: build pass

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: I73070815b1ab73a58fd776e1301a5d4a8e198109
2022-01-12 11:32:47 +00:00
linpeter
72dc78222f update display sepolicy
Bug: 205073165
Bug: 205656937
Bug: 205779906
Bug: 205904436
Bug: 207062172
Bug: 208721526
Bug: 204718757
Bug: 205904380
Bug: 213133646

test: check avc denied with hal_graphics_composer_default, hbmsvmanager_app
Change-Id: I964a62fa6570fd9056b420efae7bf2fcbbe9fc9f
2022-01-12 08:10:50 +00:00
linpeter
638ece5abc display: atc sysfs node change
Give atc nodes are changed to dqe0 form.

Bug: 213133646
test: check file node permission
Change-Id: Ibe1b9dc6739994342e44b2867827ce0428c6095c
2022-01-12 08:07:30 +00:00
Adam Shih
673d412421 update error on ROM 8069652
Bug: 214121738
Bug: 214122471
Test: pts-tradefed run pts -m PtsSELinuxTest
Change-Id: I8db4e1c7d5a2cf50798c63a3a1eda0fa82b89f5a
2022-01-12 11:14:35 +08:00
Long Ling
907d36781c enable sdr/hdr blending
Bug: 196171661
Change-Id: I4fde7565ffa0285c34c734e05279994a1724b93e
2022-01-12 02:19:07 +00:00
Minchan Kim
c7c0d7c274 P22: set up some MM parameters
What this patch does:

1. prepare zram size to increase 3G by property
2. set up zram writeback params
3. set up lmk filecahe_min_kb

Bug: 207572845
Bug: 207572250
Signed-off-by: Minchan Kim <minchan@google.com>
Change-Id: I5a3376268392ad1360586d2002e4a42feecd83ad
2022-01-12 01:31:27 +00:00
Yifan Hong
d799f2f773 Implement health AIDL HAL.
Test: VTS
Test: manual charger mode
Test: recovery
Bug: 213273090
Change-Id: I823e202f8877ad04e7fb5508358682bc6458f7c1
2022-01-11 21:39:14 +00:00
Yifan Hong
074c7216c4 Implement health AIDL HAL.
Test: VTS
Test: manual charger mode
Test: recovery
Bug: 213273090
Change-Id: If6e730d8dbd7d7ca95cfd4f045ac045d69597568
2022-01-11 21:39:14 +00:00
Taeju Park
07853908da Remove a0 and a1 powerhints
Bug: 208243183
Signed-off-by: Taeju Park <taeju@google.com>
Change-Id: I4a29445e7be74c280ce9d58eb8a1b7782aa9fcb6
2022-01-11 16:40:55 +00:00
Darren Hsu
77fc18937b powerstats: correct CPU DVFS state residency stats
Bug: 213642474
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I7f4cacc3e3c760c6c420c7e5c82e9fe3dbd9d258
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-01-11 12:19:26 +00:00
Terry Huang
cfefc37e7d Revert "Revert "[s5300][device] Change vendor telephony code path""
This reverts commit 5bc64a0b8d.

Reason for revert: Restore 16405845-t-codebase-seperate

Change-Id: I5bdebb6e682939868356a36c6b627bb67117a29c
2022-01-11 08:54:47 +00:00
TeYuan Wang
89bec046aa Label TMU as sysfs_thermal
Bug: 202805103
Test: switch thermal tj property and check thermal threshold
Change-Id: Ie1d20912f6111cbb85c04fce5a39e2be803e530f
2022-01-11 05:52:04 +00:00
horngchuang
5012cf9368 Add camera permission setting files for gs201
It was removed by ag/14655832 for gs201 bring up

Bug: 213395353
Test: launch camera okay, we can turn on/off torch by setting menu bar with L10
Change-Id: If4c7a22de74bf150024b24de7af19d631cb090fc
2022-01-11 02:55:15 +00:00
Hsiu-Chang Chen
3a33edc542 wifi: Add /dev/wlan as driver control interface for qcom
Bug: 209934729
Test: Basic functions tests, SSR tests
Change-Id: I111852ca339dff6cee680b89ae199ce6a628577d
2022-01-11 01:00:21 +00:00
Pat Tjin
0e3a4edf87 display: make set_idle_timer_ms optional
Allow ro.surface_flinger.set_idle_timer_ms to be overridden by device
makefiles.

Bug: 213901890
Test: Build
Signed-off-by: Pat Tjin <pattjin@google.com>
Change-Id: Ica4b88c96fd3dbfd5ae5ed97acfef4be80b1abda
2022-01-10 21:52:18 +00:00
Ray Chi
9b8f698ee8 Fix avc denials for USB hals
Bug: 205073230
Bug: 207062542
Bug: 208527968
Test: no avc log for hal_usb_impl
Change-Id: I840d8cb69ed9189f2697d13ae43b4bdeb25cd616
2022-01-10 18:33:56 +08:00
Cyan Hsieh
7a59c25d6b Revert^3 "Add gralloc switch"
ba34517a55

Bug: 213540102
Change-Id: Ifb1ba1589ca37db74d12f5ae7d201419138316e9
2022-01-10 07:23:54 +00:00
Adam Shih
af12430ab3 update error on ROM 8058425
Bug: 213817227
Bug: 213817228
Test: pts-tradefed run pts -m PtsSELinuxTest
Change-Id: I8d4eaf583b7b012e55705eb99684f97af2dd611f
2022-01-10 06:56:02 +00:00
horngchuang
ebe7b7c9a5 Remove l10 specific camera component sepolicy settings
Move these settings to L10 specific folder

Bug: 210598444
Test: build okay
Change-Id: I517d5414f64a32098fd8e5bfa6554f2272680826
2022-01-10 05:43:46 +00:00
yawensu
4f08892ca1 Fix SELinux errors for vendor_rcs_service_app
avc:  denied  { find } for pid=2194 uid=10193 name=isub scontext=u:r:vendor_rcs_service_app:s0:c193,c256,c512,c768 tcontext=u:object_r:radio_service:s0 tclass=service_manager permissive=1

Bug: 205779869
Test: Manual.
Change-Id: I8589a0178500ee4ced318fbb487aad585758a3f3
2022-01-10 11:22:15 +08:00
Ankit Goyal
ba34517a55 Revert^2 "Add gralloc switch"
6b926a3823

Change-Id: Iad2facec124ec06a212a5cfd0f0bc8fbc34d0d32
2022-01-07 19:57:37 +00:00
Shubham Dubey
6b926a3823 Revert "Add gralloc switch"
Revert "Namespace gralloc"

Revert "Namespace gralloc"

Revert "Gralloc - Update build rules with namespaces"

Revert "Gralloc - Update build rules with namespaces"

Revert "Namespace gralloc"

Revert submission 16356594-pixel-gralloc-build

Reason for revert: Breaks build_test2 target on master

BUGID: b/213540102

Reverted Changes:
Ia998ca7f1:Namespace gralloc
I644f46ade:Add gralloc switch
I3689a27c2:Namespace gralloc
Iea1bf2ce2:Clone gralloc4 to GrallocHAL
I083cfa4f0:Namespace gralloc4
If8c40cd13:Namespace gralloc
I464236fea:Namespace gralloc
Icaac6d24f:Add gralloc switch
I92b7212b8:Gralloc - Update build rules with namespaces
Ic8741d4ba:Gralloc - Update build rules with namespaces
I507cbbc73:Namespace gralloc

Change-Id: I4520034e9d0e494434ae5943a0550c6161b11703
2022-01-07 17:44:34 +00:00
Cheney Ni
a646775bb9 Bluetooth: move A2DP capabilities control to each project
Bug: 194607800
Bug: 203042971
Test: pass A2DP playback manual test
Change-Id: I0d5871bb5cfc6b84cf5c004c782a8007fbf09f43
2022-01-07 12:16:46 +00:00
Ankit Goyal
ebda67edee Add gralloc switch
Bug: 207452098
Test: Boot to home
Change-Id: Icaac6d24f31f3a1eed5a4ad7997301b016274362
2022-01-06 23:04:24 +00:00