392 Commits

Author SHA1 Message Date
Joseph Jang
0ea14d85b9 Merge "Remove the libnos dependency if build without vendor" into udc-dev 2023-04-07 03:03:54 +00:00
Cheng Chang
3d07844230 update gps sdk 147.20.23.566805
- support GNSS AIDL v3

Bug: 275475660
Test: atest VtsHalGnssTargetTest
Test: atest CtsLocationGnssTestCases
Test: verified at b/276413684
Change-Id: I5ce5520d3b8e2248c5903ba33c6b6354fa3bb152
2023-04-07 01:13:57 +00:00
Joseph Jang
852cfb4fb7 Remove the libnos dependency if build without vendor
Bug: 277188968
Change-Id: I4f6aa64d30a58aebb3fca246d0705e7f540bebb8
2023-04-06 11:37:23 +00:00
nischaljain
779e3323a2 Enable gxp dumps in bugreport
- Enable gxp dumps to be captured in bugreport during dogfood.
- TODO(b/277094681): Revert this cl around device beta milestone.

Bug: 274956438
Test: Verified the changes on the device using ab/P53879006.
Change-Id: Idb701e430b64c3cae8cef6a4bb73999c92b6c94a
Signed-off-by: nischaljain <nischaljain@google.com>
2023-04-06 08:21:51 +00:00
nischaljain
0e8dc978b6 Limit maxGxpDebugDumps to 3.
DSP multicore workload can run atmost on 3 cores thus in case
of crash we will need atmost 3 core dumps. Thus limiting
maxGxpDebugDumps to 3 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: 275756225,274956438
Test: Verified the changes on the device using ab/P53879006.
Change-Id: Iede8ec4204d58fdedbe4141bf57fc434b411bf0c
Signed-off-by: nischaljain <nischaljain@google.com>
2023-04-06 08:14:41 +00:00
Adam Shih
7be874469a Merge "comply with VTS requirements" into udc-dev 2023-04-06 02:41:33 +00:00
Adam Shih
f61d2efad2 create wlan dump
Bug: 273380509
Test: adb bugreport
Change-Id: Ic04908db3494279e35d7e7ecf34a2445f08d35b9
2023-03-31 06:28:07 +08:00
Adam Shih
1915b3df20 comply with VTS requirements
Bug: 275142299
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
Built pass on target-userdebug and aosp_target-userdebug

Change-Id: Ifd980bc1fbb543c43e729d52735c97e2cde6a641
2023-03-30 13:24:01 +08:00
Adam Shih
f272a85a53 Revert "comply with VTS requirements"
Revert submission 22302106-dumpstate aidl

Reason for revert: build failed on udc-d1-dev

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

Change-Id: I4b786f509b80113ca2acf2e1055808c084d1f9bb
2023-03-29 02:45:25 +00:00
Adam Shih
5fa9528c83 comply with VTS requirements
Bug: 275142299
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
Built pass on target-userdebug and aosp_target-userdebug

Change-Id: I0cf742fa15649899757ef80bd240948ae2aa66a3
2023-03-28 03:29:01 +00:00
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