1890 Commits

Author SHA1 Message Date
Carter Hsu
37493030cc Merge "audio: allow hal_audio_default to allocate graphic buffer" into main 2023-12-08 06:16:06 +00:00
samou
a86cc5e1ce bm: support br_stats enabled flag
Bug: 315067183
Change-Id: I1c5c58e716e952a5e55493c129c2566c7f115da3
Signed-off-by: samou <samou@google.com>
2023-12-06 07:34:38 +00:00
Raja Ramachandran
cf1faabf1a [GABC][FATP] Added ProtoCalibGenerator to PRODUCT_PACKAGES_DEBUG
Bug: 284103045
Test: lunch <device-type>-userdebug && m
Change-Id: I4f7f512b6fa6bd5d9aabf998588dc9ad4f54c600
2023-12-06 11:18:50 +08:00
Jason Chiu
ec2a9a0c7a gs-common: bootctrl: integrate blowAR() for gs101 & zuma
Common bootcontrol use zuma version for the base, and blowAR()
can't be used by gs101. So we need to port ag/18743149 into
common bootcontrol.

Bug: 313615120
Change-Id: I25febde96a56279e6592a6d7740be9a2e385543b
Signed-off-by: Jason Chiu <jasoncschiu@google.com>
2023-12-05 09:14:48 +08:00
Jason Chiu
2a201a74c2 gs-common: bootctrl: check both properties in setActiveBootSlot
properties: ro.boot.bootdevice, ro.boot.boot_devices

Bug: 313092597
Change-Id: Ib158c2b2aadf87b2155c4c268264f06bc659b544
Signed-off-by: Jason Chiu <jasoncschiu@google.com>
2023-12-05 09:14:38 +08:00
Jason Chiu
f4d8fb7ad8 gs-common: move sepolicy related to bootctrl hal hidl 1.2 to gs-common
Bug: 265063384
Change-Id: I1981edd60a77e4c5aede8649c7b6bc5eacb676ee
Signed-off-by: Jason Chiu <jasoncschiu@google.com>
2023-12-05 09:14:21 +08:00
Jason Chiu
de91ea30a9 gs-common: create bootctrl_hidl_1.2.mk and include related modules
Bug: 265063384
Change-Id: I3895946309ff8ee7987c1b0ec0789e95a63f4eae
Signed-off-by: Jason Chiu <jasoncschiu@google.com>
2023-12-05 09:14:09 +08:00
Jason Chiu
5d247d17b4 gs-common: move bootctrl hal hidl 1.2 implementation to gs-common
copy from device/google/zuma/interfaces/boot
  $ git log --oneline -1 interfaces/boot/
    193e5e8 zuma:interfaces:boot: add aidl interface support

Bug: 265063384
Change-Id: I7b770343096fd113f656c90428f30d80c9341744
Signed-off-by: Jason Chiu <jasoncschiu@google.com>
2023-12-05 09:13:59 +08:00
Carter Hsu
fd652ae423 audio: allow hal_audio_default to allocate graphic buffer
12-04 10:00:07.379   481   481 E SELinux : avc:  denied  { find } for interface=android.hardware.graphics.mapper::IMapper sid=u:r:hal_audio_default:s0 pid=13283 scontext=u:r:hal_audio_default:s0 tcontext=u:object_r:hal_graphics_mapper_hwservice:s0 tclass=hwservice_manager permissive=0

12-04 10:00:07.409   480   480 E SELinux : avc:  denied  { find } for pid=13283 uid=1041 name=android.hardware.graphics.allocator.IAllocator/default scontext=u:r:hal_audio_default:s0 tcontext=u:object_r:hal_graphics_allocator_service:s0 tclass=service_manager permissive=0

Bug: 314850759
Test: verified by test build
Change-Id: Icb2ecd6d3096455244dc58b5aadf8c562cb02470
Signed-off-by: Carter Hsu <carterhsu@google.com>
2023-12-05 01:01:13 +00:00
Jason Chiu
1473a277b8 gs-common: move sepolicy related to bootctrl hal aidl to gs-common
Bug: 265063384
Change-Id: Id9e1f4f7bc9fc5754f7ebadb97f7443f1117e961
Signed-off-by: Jason Chiu <jasoncschiu@google.com>
2023-12-05 00:46:33 +08:00
Jason Chiu
c3102b06fc gs-common: create bootctrl_aidl.mk and include related modules
Bug: 265063384
Change-Id: I9362eb521616c899a14605081fdc10de2a1d5c16
Signed-off-by: Jason Chiu <jasoncschiu@google.com>
2023-12-05 00:46:29 +08:00
Jason Chiu
3303171462 gs-common: move bootctrl hal aidl implementation to gs-common
copy from device/google/zuma/interfaces/boot
  $ git log --oneline -1 interfaces/boot/
    193e5e8 zuma:interfaces:boot: add aidl interface support

Bug: 265063384
Change-Id: I9b8318eee17e51f40577d7f4c6514703483b8eaa
Signed-off-by: Jason Chiu <jasoncschiu@google.com>
2023-12-05 00:46:22 +08:00
Jason Chiu
cfd5dd5de3 gs-common: add device_google_gs-common_license
reference device/google/zuma

Bug: 265063384
Change-Id: I048682438ab98fea16ecbd1e4ebff65bfb7a155c
Signed-off-by: Jason Chiu <jasoncschiu@google.com>
2023-12-05 00:46:19 +08:00
Sam Ou
39e3b868f2 Merge "bm: Avoid to use CDT number" into main 2023-12-04 08:55:20 +00:00
samou
b4de8aabda bm: Avoid to use CDT number
Bug: 313692190
Test: Confirm battery_mitigation does not repeatedly restart
Change-Id: I7edaad073b509f163283d4611d987e8982934253
Signed-off-by: samou <samou@google.com>
2023-12-03 17:20:22 +00:00
Dario Freni
65710c0477 Merge changes from topic "revert-25477883-gs-common_bootctrl-aidl-APKJEMYEPE" into main
* changes:
  Revert "gs-common: add device_google_gs-common_license"
  Revert "gs-common: move bootctrl hal aidl implementation to gs-c..."
  Revert "gs-common: create bootctrl_aidl.mk and include related m..."
  Revert "gs-common: move sepolicy related to bootctrl hal aidl to..."
2023-12-01 13:00:07 +00:00
Treehugger Robot
5610bfc743 Merge "Add one variable to decide if need TTS voice packs" into main 2023-12-01 11:42:32 +00:00
Sebastian Pickl
7eaf22a3ce Revert "gs-common: add device_google_gs-common_license"
Revert submission 25477883-gs-common_bootctrl-aidl

Reason for revert: breaking builds b/314240126

Bug: 314240126

Reverted changes: /q/submissionid:25477883-gs-common_bootctrl-aidl

Change-Id: Id75467f48ab79b414a27026386255d9aa9a7e50b
2023-12-01 11:30:35 +00:00
Sebastian Pickl
60a8e27b76 Revert "gs-common: move bootctrl hal aidl implementation to gs-c..."
Revert submission 25477883-gs-common_bootctrl-aidl

Reason for revert: breaking builds b/314240126

Bug: 314240126

Reverted changes: /q/submissionid:25477883-gs-common_bootctrl-aidl

Change-Id: Id9d272e7f9832a5b27b2c02d50665ee1b26ae9f8
2023-12-01 11:30:35 +00:00
Sebastian Pickl
b88437ab27 Revert "gs-common: create bootctrl_aidl.mk and include related m..."
Revert submission 25477883-gs-common_bootctrl-aidl

Reason for revert: breaking builds b/314240126

Bug: 314240126

Reverted changes: /q/submissionid:25477883-gs-common_bootctrl-aidl

Change-Id: I98a529afec0ba2eb01f1628215e36769dc5c2cf9
2023-12-01 11:30:35 +00:00
Sebastian Pickl
1638fa1a36 Revert "gs-common: move sepolicy related to bootctrl hal aidl to..."
Revert submission 25477883-gs-common_bootctrl-aidl

Reason for revert: breaking builds b/314240126

Bug: 314240126

Reverted changes: /q/submissionid:25477883-gs-common_bootctrl-aidl

Change-Id: I091dda3aa16bbc381b49674a642b2bfa93dfdfa8
2023-12-01 11:30:50 +00:00
kierancyphus
c35b176900 [automerger skipped] owners: give apps and services team ownership am: dff1155fa2 am: f479625b6c -s ours am: 1ead4acf3f -s ours
am skip reason: Merged-In I909392864ee9e0aa29f415d13869ba0083449094 with SHA-1 dff1155fa2 is already in history

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

Change-Id: Iedcdcea1a6d2d1347a85936f4e1023cb955e07b4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-01 09:17:17 +00:00
kierancyphus
1ead4acf3f [automerger skipped] owners: give apps and services team ownership am: dff1155fa2 am: f479625b6c -s ours
am skip reason: Merged-In I909392864ee9e0aa29f415d13869ba0083449094 with SHA-1 dff1155fa2 is already in history

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

Change-Id: I415b5fd5ed2bc04388ee586c00df4e25dce6a823
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-01 09:02:58 +00:00
kierancyphus
c6fce083cd owners: give apps and services team ownership am: dff1155fa2 am: 27366c3935 am: 537b3e88e7
Original change: https://android-review.googlesource.com/c/device/google/gs-common/+/2855244

Change-Id: Ibcc32385f0612e62b0219d94edfcdd686a625b96
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-01 09:01:11 +00:00
kierancyphus
f479625b6c owners: give apps and services team ownership am: dff1155fa2
Original change: https://android-review.googlesource.com/c/device/google/gs-common/+/2855244

Change-Id: I93f101fa1add2360e898f4179d0d36053e3d83a0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-01 08:39:44 +00:00
kierancyphus
537b3e88e7 owners: give apps and services team ownership am: dff1155fa2 am: 27366c3935
Original change: https://android-review.googlesource.com/c/device/google/gs-common/+/2855244

Change-Id: I9bc2ae208841dcc63705a6900871761f7b3ceb1e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-01 08:28:50 +00:00
kierancyphus
27366c3935 owners: give apps and services team ownership am: dff1155fa2
Original change: https://android-review.googlesource.com/c/device/google/gs-common/+/2855244

Change-Id: I96f8d8da1169f0a428112eb27f97d215282af92e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-01 07:57:48 +00:00
Kieran Cyphus
61446fbc05 Merge changes from topic "liboemservice-improve-testing" into main
* changes:
  dump_modemlog: always move modem logs
  modem_log_constants: System props for logging
  modem/modem_log_constants: create common folder
  gs-common/modem: clock manager interface
  dump_modemlog: move android_property_manager
  dump_modemlog: move all files to subdirectory
2023-12-01 07:24:52 +00:00
Ray Hsu
b52878371b Add one variable to decide if need TTS voice packs
For factory ROM UPH concern, we did not need TTS voice packs. Add one
variable to decide if need TTS voice packs and then it could reduce
super image size and increase flash station speed.

Bug: 314245991
Test: Check super image size and boot to home
Change-Id: Id84c3eef5a702317ab7976ded340b5795c0a3700
2023-12-01 06:54:56 +00:00
kierancyphus
dff1155fa2 owners: give apps and services team ownership
Since we have a lot of code for modem apps and services that is shared
across a lot of different devices and will live in gs-common, it would
be nice to have ownership of these files so that we can push code
without having to involve the gs-common team.

Test: N/A
Bug: N/A
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:3cf675e1f557d5dcc2358457820177a3fa6d7335)
Merged-In: I909392864ee9e0aa29f415d13869ba0083449094
Change-Id: I909392864ee9e0aa29f415d13869ba0083449094
2023-12-01 06:33:57 +00:00
kierancyphus
c7da8aa098 dump_modemlog: always move modem logs
Dynamic log mask events can occur without leaving the logging status
property as enabled, which means when dumpstate should always try to
stop modem logging so that the new logs can be copied over.

Having the copying of logs and stopping of modem logging combined in
one command is no longer an ideal design, so b/289435256 was created
to find a better solution to this.

Test: build, flash, trigger log mask event, check logs in bugreport.
Bug: 302435001
Change-Id: I56358d3f08ac1f2a6099ede14c5e17b5ebffabbd
2023-12-01 05:30:02 +00:00
kierancyphus
da3ebae5ad modem_log_constants: System props for logging
Several different services need to be able to set the output directory
for copying modem logs, as well as how many files should be copied.

Test: N/A just defining constants
Bug: 302435001
Change-Id: I3e9f2462a42e3b074810e6fb0a925a8ca026f89d
2023-12-01 05:29:52 +00:00
kierancyphus
93c22b6672 modem/modem_log_constants: create common folder
A lot of different modem related processes require reading / writing to
the same android system properties. This CL solifies them all into
one place to avoid duplication.

Test: build
Bug: 302435001
Change-Id: I113f43bb68833224f45ad91668cd327587e1649b
2023-12-01 13:27:15 +08:00
Treehugger Robot
e22ade5ae8 Merge changes from topic "gs-common_bootctrl-aidl" into main
* changes:
  gs-common: move sepolicy related to bootctrl hal aidl to gs-common
  gs-common: create bootctrl_aidl.mk and include related modules
  gs-common: move bootctrl hal aidl implementation to gs-common
  gs-common: add device_google_gs-common_license
2023-12-01 03:57:28 +00:00
Dinesh Yadav
039b7e6d76 Merge "Allow edgetpu_tachyon_service to access GXP device & Dmabuf." into main 2023-11-29 03:22:00 +00:00
Jason Chiu
9895837239 gs-common: move sepolicy related to bootctrl hal aidl to gs-common
Bug: 265063384
Change-Id: I8f090f4601e0719ae3abe3e9d0981710fdc8b6af
Signed-off-by: Jason Chiu <jasoncschiu@google.com>
2023-11-28 16:12:27 +08:00
Jason Chiu
e2592f8850 gs-common: create bootctrl_aidl.mk and include related modules
Bug: 265063384
Change-Id: I9c52053300022989987dda7405942215fb55f8ba
Signed-off-by: Jason Chiu <jasoncschiu@google.com>
2023-11-28 16:12:16 +08:00
Jason Chiu
34acb6f0b5 gs-common: move bootctrl hal aidl implementation to gs-common
copy from device/google/zuma/interfaces/boot
  $ git log --oneline -1 interfaces/boot/
    193e5e8 zuma:interfaces:boot: add aidl interface support

Bug: 265063384
Change-Id: I6f21c4af66a8404b34bc1ab5cce108f23e1962b3
Signed-off-by: Jason Chiu <jasoncschiu@google.com>
2023-11-28 16:11:54 +08:00
Jason Chiu
c7af470aac gs-common: add device_google_gs-common_license
reference device/google/zuma

Bug: 265063384
Change-Id: Ibc35993341b137b1c4229197cacac64512e9e897
Signed-off-by: Jason Chiu <jasoncschiu@google.com>
2023-11-28 16:11:50 +08:00
Dinesh Yadav
e7cffe4da5 Allow edgetpu_tachyon_service to access GXP device & Dmabuf.
As gxp stack will be using Tachyon service to process kernels on aurora
dsp, these permissions will be needed.

Bug: 279655948
Change-Id: I04c11575208d0ca1a3dda68db1367804c4d7596d
Signed-off-by: Dinesh Yadav <dkyadav@google.com>
2023-11-23 05:35:08 +00:00
Treehugger Robot
8996d1b7ee Merge "bm: Add Battery SOC for each platforms" into main 2023-11-22 17:28:20 +00:00
Treehugger Robot
c44cf19182 Merge "Move sg_device related policy" into main 2023-11-22 09:39:24 +00:00
samou
0a00bc714a bm: Add Battery SOC for each platforms
Bug: 299700579
Change-Id: Id2f9b86ded4d9f31fd5faf2d761b5ded7bab5aff
Signed-off-by: samou <samou@google.com>
2023-11-22 06:42:35 +00:00
Randall Huang
b2f0956771 Move sg_device related policy
Bug: 312582937
Test: make selinux_policy
Change-Id: Ic71e4eb53e22b24651e76e2d480d34affa01460b
Signed-off-by: Randall Huang <huangrandall@google.com>
2023-11-22 14:35:02 +08:00
Treehugger Robot
a806be1695 Merge "Modify gs-common sepolicy for the new BT comms to AoC" into main 2023-11-22 05:04:07 +00:00
kierancyphus
0944a8db52 gs-common/modem: clock manager interface
A lot of modem code requires sleeping while vendor services do some
background processing. Since we don't want to actually sleep for unit
tests, an interface is provided here so that a fake sleep can be
injected.

Test: N/A. Directly forwards methods or does nothing.
Bug: 302435001
Change-Id: I3bcf0307156d93756d69cd9f749c88b508ba9466
2023-11-21 05:51:56 +00:00
kierancyphus
047f0aca49 dump_modemlog: move android_property_manager
android_property_manager is moved to its own folder in the root of the
modem folder. This is so that libeomservice proxy has a specific build
target to include.

Test: build, flash, check modem logs in bugreport
Bug: 302435001
Change-Id: Ifc4a0c888717f5c28cf9b642d0b978b495be29d0
2023-11-21 05:51:56 +00:00
kierancyphus
3ed60cec02 dump_modemlog: move all files to subdirectory
Since radioext has already moved to this folder, it doesn't make sense
for the base folder to be dump_modemlog. This change moves it to its
own subfolder so that we can also add more in the future.

Test: build and flash, trigger bugreport and check modem logs are there
Bug: 302435001
Change-Id: Ia83378074068526023f591d63b1e5ac4700b8103
2023-11-21 05:51:30 +00:00
Bryan Lavrich
057e9b0f74 Merge "aoc: add permissions for new sysfs node" into main 2023-11-20 20:22:27 +00:00
Luis Delgado de Mendoza
769fcd7249 Modify gs-common sepolicy for the new BT comms to AoC
Bug: 308452948
Test: Validated in husky with all changes.
Change-Id: I6496b7760e6f20b3b7e09910ed42446a1eb703cf
2023-11-17 20:00:58 -08:00