382 Commits

Author SHA1 Message Date
RD Babiera
cb902f0581 Merge "Revert "comply with VTS requirements"" into udc-dev 2023-03-27 21:52:39 +00:00
RD Babiera
041b980835 Merge "Revert "add space in front of property.te"" into udc-dev 2023-03-27 21:51:45 +00:00
RD Babiera
8620418aba Revert "comply with VTS requirements"
Revert submission 22242215-dumpstate aidl

Reason for revert: DroidMonitor-triggered revert due to breakage https://android-build.googleplex.com/builds/quarterdeck?branch=git_udc-d1-dev&target=aosp_husky-userdebug&lkgb=9826121&lkbb=9829863&fkbb=9826130, bug b/275279368.

Reverted changes: /q/submissionid:22242215-dumpstate+aidl

Change-Id: I856e29ad3236014c9db41e43ee19bf8ec43979a8
2023-03-27 20:58:37 +00:00
RD Babiera
73d7a6cf49 Revert "add space in front of property.te"
This reverts commit 340492516da05a95310458d93dd479a0242ee16f.

Reason for revert: DroidMonitor-triggered revert due to breakage https://android-build.googleplex.com/builds/quarterdeck?branch=git_udc-d1-dev&target=aosp_husky-userdebug&lkgb=9826121&lkbb=9829863&fkbb=9826130, bug b/275279368.

Change-Id: I52275bc919b47e684cf543c5348e1e2114c2dd61
2023-03-27 20:57:38 +00:00
Feiyu Chen
6df49ca590 Merge "Allow EdgeTPU DBA service to access the edgetpu_app_service" into udc-dev 2023-03-27 17:28:39 +00:00
Adam Shih
340492516d add space in front of property.te
Bug: 275279368
Test: built pass
Change-Id: Id298694487c7e84466e059228257786c74d09761
2023-03-27 15:19:58 +08:00
Adam Shih
a8053e022b comply with VTS requirements
Bug: 275036679
Bug: 275034315
Test:
atest VtsHalDumpstateTargetTest:PerInstanceAndMode/DumpstateAidlPerModeTest#TestOk/0_android_hardware_dumpstate_IDumpstateDevice_default_FULL
atest VtsHalDumpstateTargetTest:PerInstance/DumpstateAidlGeneralTest#TestInvalidModeArgument_Negative/0_android_hardware_dumpstate_IDumpstateDevice_default

Change-Id: I105f59f4c3e89e952cd89cb4ad28a5dfcc9c147f
2023-03-27 12:07:57 +08:00
feiyuchen
0f1433b2c8 Allow EdgeTPU DBA service to access the edgetpu_app_service
EdgeTpu DBA service calls edgetpu_app_service's UserIsAuthorized API in order to know whether its clients are authorized to use priviledge features, see code: https://source.corp.google.com/android-internal/vendor/google/darwinn2/dba/service/edgetpu_device.cpp;l=73;rcl=1c57b54efe12cdb408cb21a992155a04d151e3ce

It looks like the SELinux rule is missing today. Though I'm not sure why DBA service doesn't crash today.


Bug: 237103652
Change-Id: I8c5da7413eb6f9efc527c9f9f1d1242f0cb4dea8
2023-03-24 18:31:33 +00:00
Adam Shih
b5b3cb74e5 create a generic dumpstate for all pixel to use
Bug: 240530709
Test: adb bugreport
Change-Id: I42ad046e26cb227f947db3772532885114a3250e
Merged-In: I42ad046e26cb227f947db3772532885114a3250e
2023-03-24 10:21:03 +08:00
Xiang Wang
131a418398 Merge "Migrate battery mitigation to Thermal AIDL" into udc-dev 2023-03-23 18:33:16 +00:00
Wilson Sung
a2b9451b23 Revert "create a generic dumpstate for all pixel to use"
Revert submission 22188471-dumpstate aidl

Reason for revert: Build break

Reverted changes: /q/submissionid:22188471-dumpstate+aidl
Bug: 274858145

Change-Id: I4a92104cdce495ac83cc41036de00b1aa183ebc7
2023-03-23 05:58:17 +00:00
Adam Shih
15196a7f5f create a generic dumpstate for all pixel to use
Bug: 240530709
Test: adb bugreport
Change-Id: I27f64d9ab37d541fdbe0128f86b4960281d34497
Merged-In: I27f64d9ab37d541fdbe0128f86b4960281d34497
2023-03-22 05:06:57 +00:00
Kadi Narmamatov
9626187645 Merge "dumpstate: Add radio/sim folder to bugreport" into udc-dev 2023-03-21 01:37:19 +00:00
Adam Shih
9db7a07c9f Merge "Move the rest of radio dump to gs-common" into udc-dev 2023-03-20 04:57:55 +00:00
kadirpili
17da3cede0 dumpstate: Add radio/sim folder to bugreport
Bug: 258408885
Change-Id: I66e384aadec0005b7e6bba98d650c288192e8407
2023-03-17 02:52:15 +00:00
TreeHugger Robot
285baab620 Merge "move dumpstate.te to sepolicy" into udc-dev 2023-03-17 00:51:41 +00:00
Yu-Chi Cheng
8e965d36a2 Added the hetero runtime system property SELinux rules.
Currently, there is a hetero runtime property that darwinn
and other hetero runtime project will use: the trace level
(vendor.google.silicon.max_trace_level).

This change allows edgetpu services and clients to be able to see
that property in order to change the trace level.

Bug: 272292650
Test: verified it to build but not tested on device yet since selinux
has not been enforced yet.

Change-Id: Id6d345b92d2e710b41ca58907ad443fc2667054a
2023-03-16 14:10:10 -07:00
Adam Shih
6b829b78a2 move dumpstate.te to sepolicy
Bug: 261933169
Test: adb bugreport
Change-Id: Id0c35f4c3d2dcf58b011418b3fc61effc9c72f0f
2023-03-16 10:10:32 +08:00
Adam Shih
118833e6d0 Merge "add missing context setting" into udc-dev 2023-03-15 05:59:11 +00:00
Xin Li
23a91435d3 [automerger skipped] Merge Android 13 QPR2 am: aabe581b77 -s ours am: 44487f06ed -s ours am: e076e37a7b -s ours
am skip reason: Merged-In Ia4041e10156eadb37799ebdc12b33fbb3de4c54d with SHA-1 c010e721ea is already in history

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

Change-Id: Ia80ddae5e6e34eda562d2c4e811f3e79976101db
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-15 00:06:09 +00:00
Xin Li
e076e37a7b [automerger skipped] Merge Android 13 QPR2 am: aabe581b77 -s ours am: 44487f06ed -s ours
am skip reason: Merged-In Ia4041e10156eadb37799ebdc12b33fbb3de4c54d with SHA-1 c010e721ea is already in history

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

Change-Id: Ie650cd3e3da45a3ac8c7005baa498dff102c7a5b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-14 23:06:03 +00:00
Xin Li
44487f06ed [automerger skipped] Merge Android 13 QPR2 am: aabe581b77 -s ours
am skip reason: Merged-In Ia4041e10156eadb37799ebdc12b33fbb3de4c54d with SHA-1 c010e721ea is already in history

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

Change-Id: I3a6e41258bee7ff50e05d187be53d6192572d88d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-14 22:32:06 +00:00
Darren Hsu
529b618a7c powerstats: Add config support for AdaptiveDvfs data provider
Bug: 273415531
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I48bd1ec622680a3c93d15b571fbf21579f0e21ed
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2023-03-14 14:40:47 +08:00
Xin Li
aabe581b77 Merge Android 13 QPR2
Bug: 273316506
Merged-In: Ia4041e10156eadb37799ebdc12b33fbb3de4c54d
Change-Id: I5c3c3879f5d20a706d1f12ec90f580d1f441ee54
2023-03-13 23:09:32 -07:00
Adam Shih
78cc2c0eb1 add missing context setting
Bug: 273380509
Test: adb bugreport
Change-Id: Id3df499e86c4455a3a0526cb433d00cbe330725b
2023-03-14 10:50:38 +08:00
Xiang Wang
f060fe353c Migrate battery mitigation to Thermal AIDL
Bug: b/269163592
Test: Thermal AIDL service restart test + pmic file test
Change-Id: I4922b0f7c6c2583143fcdd24e3039e17ced4a68b
2023-03-13 23:54:34 +00:00
TreeHugger Robot
75a5c5dceb Merge "powerstats: introduce AdaptiveDvfsStateResidency data provider" into udc-dev 2023-03-13 09:49:40 +00:00
Richard Hsu
0b006f7129 Merge "[Flag] Update default TPU cache coherency to be enabled" into udc-dev 2023-03-13 06:27:09 +00:00
Jasmine Cha
30667d0904 Merge "audio: add policy for rild to get vendor audio propery" into udc-dev 2023-03-13 06:26:12 +00:00
Richard Hsu
513af61761 [Flag] Update default TPU cache coherency to be enabled
The TPU cache coherency was set to false by default for testing/migration purposes. Now that the applications have been verified to work with TPU cache coherency, this CL changes the default behavior of TPU cache coherency to be enabled.

Bug: 255828212

Test:
All child bugs in b/255828212. Speech, Camera, TPU internal tests.

Change-Id: I276bb227fad352ad0a71ab2f9b771720b90bb729
2023-03-12 21:53:17 -07:00
Jasmine Cha
502c8ad720 audio: move audio vendor set_prop to gs-common
Bug: 259161622
Test: build pass

Change-Id: Ic76c867e8478e2f736da78232a444cf135cddc6d
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2023-03-13 04:10:54 +00:00
Darren Hsu
5f32222576 powerstats: introduce AdaptiveDvfsStateResidency data provider
This is a new data provider to get state residency from fvp_stats,
which is similar with DVFS data provider. But the difference is that
CPU frequency table is read from cpufreq sysfs and not predefined in
the config.

Bug: 272642210
Bug: 267638537
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I22451b55dee5dfb0a1b36497533c2063984d5483
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2023-03-13 11:43:03 +08:00
Jasmine Cha
6cd390e2cf audio: add policy for rild to get vendor audio propery
- rild has different sepolicy for audio hal by type of service, which is
  hidl or aidl. Read property before querying service in rild can avoid
  avc denied presubmit test.

Bug: 206738075
Test: build pass with hidl/aidl audio service

Change-Id: I2616028fb3a6029646340fc3282e51a5f02b3f7f
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2023-03-13 10:59:44 +08:00
Adam Shih
1d9d2b9c79 Merge "move modem operation to dump_modemlog" into udc-dev 2023-03-13 02:11:48 +00:00
Adam Shih
54a87e5fd6 Move the rest of radio dump to gs-common
Bug: 240530709
Test: adb bugreport
Change-Id: Ia28ee71c84456a54d5cf824e684ae5c57c774465
2023-03-10 13:58:17 +08:00
Jasmine Cha
dffac4331d Merge "audio: add audio hal aidl service" into udc-dev 2023-03-10 02:06:05 +00:00
Erik Staats
7af3dca98d Add umfw_stat_dump
Bug: 272323547
Test: Verified UmfwStat tables are dumped in bug report.
Change-Id: Ib21c380cd25787ccd8b72f4f7a347e8d28bd4f16
2023-03-09 16:17:35 +00:00
Jasmine Cha
8e0e106363 audio: add audio hal aidl service
- separate audio hal HIDL and AIDL services.
- separate sepolicy of aoc and audio

Bug: 259161622
Test: build pass and check hidl/aidl on gs201
      build pass for other chipset

Change-Id: Id3c0446be6cdcd5a6e75c832e7d7f4a64716f79c
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2023-03-09 13:47:57 +08:00
Adam Shih
e02ea35ef4 Merge "Create RIL dump in gs-common" into udc-dev 2023-03-09 05:10:39 +00:00
Adam Shih
32b37d33a7 create second panel dump
Bug: 269212897
Test: adb bugreport
Change-Id: I281e716a943abf64d5d36ecf2a256db8e32a041a
2023-03-08 23:30:03 +00:00
Feiyu Chen
7c791074db Merge "Allow NNAPI HAL to read tflite_delegate.force_disable_io_coherency flag" into udc-dev 2023-03-08 08:20:58 +00:00
Adam Shih
2470b456ef Create RIL dump in gs-common
Bug: 240530709
Test: adb bugreport
Change-Id: Ibf1e3c35725f9ccdc5361aa079b6cb11cef32440
2023-03-08 12:47:26 +08:00
Adam Shih
ad76e7c24e move modem operation to dump_modemlog
Bug: 240530709
Test: adb bugreport
Change-Id: Ib1076164cdd766433d0e78068396040a6e34c774
2023-03-08 11:15:24 +08:00
feiyuchen
bd8d9ca737 Allow NNAPI HAL to read tflite_delegate.force_disable_io_coherency flag
The flag was added in ag/21062178.
After this CL, the flag is readable by all apps and all DarwiNN HALs.

Bug: 268548819
Change-Id: I28a185d66002f1656aeb10723c34d5eb517742c4
2023-03-07 20:53:10 +00:00
Adam Shih
31b4e30122 Merge "move camera dump to gs-common" into udc-dev 2023-03-06 23:29:45 +00:00
Erik Staats
3c7b1f03a1 Set acd-com.google.umfw_stat type to aoc_device
Set the /dev/acd-com.google.umfw_stat security context type to
aoc_device.

Bug: 254464877
Test: Verified /dev/acd-com.google.umfw_stat security context.
Change-Id: Ibeba4c65f479c38ab740e156dd244e2f40d00dd4
Merged-In: Ibeba4c65f479c38ab740e156dd244e2f40d00dd4
2023-03-06 22:47:48 +00:00
Adam Shih
f4a07b204a Merge "Move common display dump to gs-common" into udc-dev 2023-03-06 22:27:50 +00:00
Adam Shih
cd831a6189 Move common display dump to gs-common
Bug: 269212897
Test: adb bugreport
Change-Id: I6739aec7a432e55e829bbd4a69fec50e0d4050ac
2023-03-06 06:33:40 +00:00
Adam Shih
2a520ebbae Move modem dump log to gs-common
Bug: 240530709
Test: adb bugreport
and the following file got to dumpstate_board.bin:
extended_log_uim.txt
extended_log_os.txt
nv_normal.bin
nv_protected.bin

Change-Id: Ie6439c7487b11c564cd6c0d1266928e6b9b384ee
2023-03-06 02:37:14 +00:00
Adam Shih
1a62bec194 move camera dump to gs-common
Bug: 240530709
Test: adb bugreport
Create empty files starting with the following prefix
/data/vendor/camera/profiler/session-ended-
/data/vendor/camera/profiler/high-drop-rate-
/data/vendor/camera/profiler/watchdog-
/data/vendor/camera/profiler/camera-ended-
and do adb bugreport and make sure they end up in dumpstate_board.bin

Change-Id: I2f9dfb74476af295db8a392ebf7757681404841e
2023-03-06 10:02:00 +08:00