Commit graph

2248 commits

Author SHA1 Message Date
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
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
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
Utku Utkan
360765f4f3 Merge "Move definition for vendor_camera_cameraidremapper_service into product" into main 2024-06-19 02:26:11 +00:00
Bart Van Assche
1b0ca637f9 Merge "Make foreground and background I/O priority different" into main am: 56b74041e3 am: a24099e61b
Original change: https://android-review.googlesource.com/c/device/google/gs-common/+/3132360

Change-Id: Id6da9d867acf8fb616f75992757f7bda6083d2d4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-19 00:22:02 +00:00
Bart Van Assche
a24099e61b Merge "Make foreground and background I/O priority different" into main am: 56b74041e3
Original change: https://android-review.googlesource.com/c/device/google/gs-common/+/3132360

Change-Id: I0c8494974e93af1f838bb956fcd887699c5d7f1d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-19 00:05:53 +00:00
Bart Van Assche
56b74041e3 Merge "Make foreground and background I/O priority different" into main 2024-06-18 23:46:59 +00:00
Utku Utkan
1f61691a37 Move definition for vendor_camera_lyricconfigprovider_service into product
Following ag/25368073 as reference with the same justification.

Bug: 312091052
Test: atest PersistentBackgroundCameraServicesTests
Flag: EXEMPT SEPolicy refactoring to make CHD happy
Change-Id: Ie33a6550e0df0fd13271a15afd5beaaccae50e45
2024-06-18 22:13:48 +00:00
Utku Utkan
76783cf7e2 Move definition for vendor_camera_cameraidremapper_service into product
Following ag/25368073 as reference with the same justification.

Bug: 312091052
Test: atest PersistentBackgroundCameraServicesTests
Flag: EXEMPT SEPolicy refactoring to make CHD happy
Change-Id: If8810323750c2149b4624f8deffee1cd5c1ce36e
2024-06-18 22:12:41 +00:00
Xin Li
ba94250476 Merge 24Q3 (ab/11976889) to aosp-main-future
Bug: 347831320
Merged-In: I188263ee9b186736a48fd3a0cfa83745e2e54108
Change-Id: I991fd3f5e3eff2c7c2aa7a0c41c3929755a13244
2024-06-18 14:13:22 -07:00
Xin Li
aaabeedefd [automerger skipped] Merge Android 14 QPR3 to AOSP main am: 47d1753cf8 -s ours am: f7edd705f9 -s ours
am skip reason: Merged-In I92a4a0fcec18e459b899a4da7ed13527197fe64b with SHA-1 8be8b3d6ef is already in history

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

Change-Id: I050334784a9ad1206a6c4cd8dc46654eb52d958c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-18 05:55:28 +00:00
Xin Li
f7edd705f9 [automerger skipped] Merge Android 14 QPR3 to AOSP main am: 47d1753cf8 -s ours
am skip reason: Merged-In I92a4a0fcec18e459b899a4da7ed13527197fe64b with SHA-1 8be8b3d6ef is already in history

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

Change-Id: I82ee04b923ae1f196d1f943ddd9e947d64bce8fe
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-17 20:41:51 +00:00
Bruce Po
e15af041dd Fix aocx selinux dumpstate permissions
After switching aocxd to stable AIDL, we encountered some permissions
issues associated with dumpstate:

dumpstate: type=1400 audit(0.0:548): avc:  denied  { call } for  scontext=u:r:dumpstate:s0 tcontext=u:r:aocxd:s0 tclass=binder permissive=0

dumpstate: type=1400 audit(0.0:17): avc:  denied  { use } for  path="pipe:[214567]" dev="pipefs" ino=214567 scontext=u:r:aocxd:s0 tcontext=u:r:dumpstate:s0 tclass=fd permissive=0

dumpstate: type=1400 audit(0.0:15): avc:  denied  { write } for  path="pipe:[212933]" dev="pipefs" ino=212933 scontext=u:r:aocxd:s0 tcontext=u:r:dumpstate:s0 tclass=fifo_file permissive=0

TEST:
make selinux_policy -j128
adb push $ANDROID_PRODUCT_OUT/vendor/etc/selinux/* /vendor/etc/selinux
adb reboot
adb root
adb bugreport

BUG: 347156752
Change-Id: I188263ee9b186736a48fd3a0cfa83745e2e54108
2024-06-14 15:36:14 -07:00
Bart Van Assche
fbf228931c Make foreground and background I/O priority different
Assign a higher I/O priority to foreground I/O compared to background
I/O to improve responsiveness of the foreground app.

The command below shows that this CL has the intended effect on a device
with kernel 5.10:

    $ adb shell 'cd /dev/blkio && grep -aH . blkio.prio.class background/blkio.prio.class'
    blkio.prio.class:none-to-rt
    background/blkio.prio.class:restrict-to-be

From a device with an Android 6.1 kernel:

    $ grep -aH . blkio.prio.class background/blkio.prio.class'
    blkio.prio.class:promote-to-rt
    background/blkio.prio.class:restrict-to-be

Bug: 347109476
Change-Id: I6f1ea6a89a8dfaa223e8d2a82917b4de2d7bf1cf
Signed-off-by: Bart Van Assche <bvanassche@google.com>
2024-06-14 14:29:23 -07:00
Xin Li
47d1753cf8 Merge Android 14 QPR3 to AOSP main
Bug: 346855327
Merged-In: I92a4a0fcec18e459b899a4da7ed13527197fe64b
Change-Id: Ia64bffd511e67c12349ed2890cba4cac392ebf01
2024-06-13 10:48:23 -07:00
Treehugger Robot
094c853eac Merge "Revert^2 "Add one variable to decide if need TTS voice packs"" into main 2024-06-13 11:17:20 +00:00
Joey Poomarin Phloyphisut
aed49988c4 Merge "sepolicy: add permission for Speaker Version of pixelstats-vend." into main 2024-06-13 05:53:30 +00:00
Krzysztof Kosiński
ac7885c734 Merge "Remove pdk_build Soong variable." into main 2024-06-13 04:04:29 +00:00
Ray Hsu
3e8f843ae7 Revert^2 "Add one variable to decide if need TTS voice packs"
This reverts commit b4a21a0e14.

Reason for revert: <TalkBack issue cause by this patch. We always include the voice_packs.mk for non factory target >

Bug: 140145973
Change-Id: I865ff7b4d2d25d0135d5df742c201fcc00b0525e
2024-06-13 01:37:43 +00:00
David Lin
603e40aa2c Merge "Updates TTS voice packs in gs-common" into 24D1-dev am: 337425f820
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs-common/+/27787080

Change-Id: I382fb9bfb2925019f400ca7f86eb882a98e1e203
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-13 01:06:38 +00:00
David Lin
337425f820 Merge "Updates TTS voice packs in gs-common" into 24D1-dev 2024-06-13 00:47:20 +00:00
Krzysztof Kosiński
35a4e69e89 Remove pdk_build Soong variable.
The hybrid PDK build was replaced with the prebuilt APEX.

Bug: 321848659
Test: presubmit
Flag: EXEMPT build file cleanup
Change-Id: Id4c9275b5777605157a5448896b4b54af29f9383
2024-06-13 00:45:23 +00:00
Cheng Chang
89df9a4c83 gps: Move type declaration to device folder am: 023d43829a
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs-common/+/27576198

Change-Id: Ia516b83db9ed0c3bf2f2ad2abe40925e6ee5ebd9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-12 07:27:17 +00:00
Minche Li
9e5462b025 Updates TTS voice packs in gs-common
TTS voice packs are better to be common for all devices
So the other device configs can have the common TTS voice packs
  for the device build  by "gs-common/device.mk"

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

Bug: 333626474
Bug: 140145973
Test: build passed and manual test
Change-Id: Idebba7ef2e69d0e9d2f30a94cbbcf70d2e3568d5
(cherry picked from commit 68ef072a54)
2024-06-12 06:09:47 +00:00
KRIS CHEN
c66358781a Merge "gs-common: add fingerprint dump" into main 2024-06-12 04:39:32 +00:00
chenkris
fe8968a08a gs-common: add fingerprint dump
Bug: 346450599
Test: adb bugreport
Change-Id: I224171a532bba537c11e53cf46be0042038b7732
2024-06-11 13:35:04 +00:00
Cheng Chang
023d43829a gps: Move type declaration to device folder
Bug: 343280252
Test: b/343280252 compile and abtd test
Change-Id: I1cbcce4452b149764876643722a0b37a18dc1b46
2024-06-11 07:50:47 +00:00
Poomarin Phloyphisut
fdd036bfa3 sepolicy: add permission for Speaker Version of pixelstats-vend.
Bug: 326342880
Test: Manually test passed
Change-Id: I8732e60ef57a2e9d92c53b901fb1695d10131695
2024-06-11 05:53:07 +00:00
Treehugger Robot
d952540c1c Merge "Revert "Add one variable to decide if need TTS voice packs"" into main 2024-06-11 05:17:43 +00:00
Ray Hsu
b4a21a0e14 Revert "Add one variable to decide if need TTS voice packs"
This reverts commit b52878371b.

Reason for revert: <Need preload TTS voice packs. If we need this patch, please just phase in the factory branch>

Bug: 140145973
Change-Id: Iacbe0cac6f7d68eac8b2155795e918edd1e73e25
2024-06-11 04:36:59 +00:00
Wayne Lin
d3819ee3be [automerger skipped] gps: maintain one solution am: ba840e7417 -s ours
am skip reason: Merged-In I730a7af2b8456ae4a350dbd0d6bdbfe7d3484b18 with SHA-1 2ced5f6958 is already in history

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

Change-Id: I1c3c1db87e1057a271780f289036c32e1cd7b522
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-11 02:49:50 +00:00
Klines Jiang
5f01cd2856 [dump_gyotaku] Add collect odpm logs for dump_gyotaku.
Bug: 328551786

Test: Local build and odpm logs collected test passed.

Change-Id: Ic0071e8ee2262c3fa439444a6b90f092749afe43
2024-06-07 03:33:43 +00:00
Xin Li
6fe4471f0b [automerger skipped] Merge 2024-06 Release (ab/AP2A.240605.024) to aosp-main-future am: 8be8b3d6ef -s ours
am skip reason: Merged-In I2c1785105bab74a483bc68893d96a8a88eabfd90 with SHA-1 3133d362a4 is already in history

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

Change-Id: I06ccf9eaf23d8b0820a67ea18968371ba8fff128
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-06 21:36:08 +00:00
Treehugger Robot
1fc96a57bb Merge changes from topic "customgnss" into main
* changes:
  sepolicy: Allow hal_gnss_pixel access sscoredump file
  sepolicy: Allow gnssd access modem_state
2024-06-05 09:05:59 +00:00
Treehugger Robot
406279f274 Merge "Remove obsolete relfector HAL policy." into main 2024-06-05 07:36:52 +00:00
Treehugger Robot
1cae148226 Merge "touch: Add the capability to simulate HW failure" into main 2024-06-05 02:50:17 +00:00
Bruce Po
8b5c7dbb93 Merge "selinux move aocx from vndservice to service" into main 2024-06-04 23:30:43 +00:00
Richard Chou
8b602f29a6 Merge "Recorder: add sepolicy for Google Recorder app" into main 2024-06-04 07:55:02 +00:00
Richard Chou
7d60dc41df Recorder: add sepolicy for Google Recorder app
List of avc-denies:
http://b/338879856#comment3

Test: build pass
Bug: 338879856
Change-Id: I40884f0308f8a77b237c6b588db861b63950a8d8
2024-06-04 14:57:11 +08:00
Super Liu
70f4b0431e touch: Add the capability to simulate HW failure
Usage:
  $> setprop vendor.touch.gti0.ical.override.result RESULT
  The designate RESULT to be used for the designate CMD.
  If no RESULT assign, the default value will be "0 - -2147483648".

  $> setprop vendor.touch.gti0.ical.override.cmd CMD
  The result of designate CMD(e.g. 202 or 301) to be overrode by the
  designate RESULT. If the CMD is "xxx", the result of any CMD will
  be overode with the designate RESULT.

Bug: 341021854
Test: manual test
Change-Id: I3d24618e240b4a966b5a76a33ed9ab96503a3257
Signed-off-by: Super Liu <supercjliu@google.com>
2024-06-04 00:46:26 +00:00
Wayne Lin
ba840e7417 gps: maintain one solution
Move the rules from ag/27080484

Bug: 315915958
Test: build pass and GPS function works
Change-Id: I730a7af2b8456ae4a350dbd0d6bdbfe7d3484b18
Merged-In: I730a7af2b8456ae4a350dbd0d6bdbfe7d3484b18
2024-06-03 09:14:12 +00:00
Wayne Lin
2ced5f6958 gps: maintain one solution
Move the rules from ag/26254728

Bug: 315915958
Test: build pass and GPS function works
Change-Id: I730a7af2b8456ae4a350dbd0d6bdbfe7d3484b18
2024-06-03 08:35:41 +00:00
Cheng Chang
bb3522634e sepolicy: Allow hal_gnss_pixel access sscoredump file
avc:  denied  { read } for  name="ssrdump" dev="dm-48" ino=404 scontext=u:r:hal_gnss_pixel:s0 tcontext=u:object_r:sscoredump_vendor_data_crashinfo_file:s0 tclass=dir permissive=0
avc:  denied  { search } for  name="ssrdump" dev="dm-48" ino=404 scontext=u:r:hal_gnss_pixel:s0 tcontext=u:object_r:sscoredump_vendor_data_crashinfo_file:s0 tclass=dir permissive=0
avc:  denied  { read } for  name="ssrdump" dev="dm-48" ino=404 scontext=u:r:hal_gnss_pixel:s0 tcontext=u:object_r:sscoredump_vendor_data_crashinfo_file:s0 tclass=dir permissive=1
avc:  denied  { open } for  path="/data/vendor/ssrdump" dev="dm-48" ino=404 scontext=u:r:hal_gnss_pixel:s0 tcontext=u:object_r:sscoredump_vendor_data_crashinfo_file:s0 tclass=dir permissive=1
avc:  denied  { search } for  name="ssrdump" dev="dm-48" ino=404 scontext=u:r:hal_gnss_pixel:s0 tcontext=u:object_r:sscoredump_vendor_data_crashinfo_file:s0 tclass=dir permissive=1
avc:  denied  { getattr } for  path="/data/vendor/ssrdump/crashinfo_gnss_2024-05-22_16-00-45.txt" dev="dm-48" ino=19897 scontext=u:r:hal_gnss_pixel:s0 tcontext=u:object_r:sscoredump_vendor_data_crashinfo_file:s0 tclass=file permissive=1
avc:  denied  { read } for  name="crashinfo_modem_2024-05-22_16-34-51.txt" dev="dm-48" ino=20760 scontext=u:r:hal_gnss_pixel:s0 tcontext=u:object_r:sscoredump_vendor_data_crashinfo_file:s0 tclass=file permissive=1

Bug: 341224300
Test: b/341224300#comment13 abtd boot health check.
Test: b/341224300 SST test verification.
Change-Id: Ie2b55cb487e7e801a0199b1e9dd9ad16f1e3d682
2024-06-03 03:10:11 +00:00
Jaegeuk Kim
85ff832530 Merge "Change rq_affinity of the zoned storage logical unit from one into two" into main 2024-06-01 02:22:49 +00:00
Bruce Po
1f7c89e359 selinux move aocx from vndservice to service
When updating aocx service to use binder ndk backend, we get this
selinux violation:

SELinux : avc:  denied  { add } for pid=2772 uid=0 name=aocx.IAocx scontext=u:r:aocxd:s0 tcontext=u:object_r:default_android_service:s0 tclass=service_manager permissive=0

TEST:
adb push out/target/product/tangorpro/vendor/etc/selinux/* /vendor/etc/selinux
adb reboot
adb shell aocx_tool list

BUG: 343998265
Change-Id: I1e4f554abfe02f33328c851f7da64c671d8f4cb7
2024-05-31 12:42:10 -07:00