392 Commits

Author SHA1 Message Date
Ziyi Cui
717622c5bd gs-common: dumpstate: Rewrite dump_pixel_metrics to cpp
Test: adb bugreport
Bug: 279486693
Change-Id: Ia1611db82440e2a1a522269b363d8931b08f0fe5
Signed-off-by: Ziyi Cui <ziyic@google.com>
2023-06-06 16:58:09 +00:00
Ziyi Cui
9e92e70fc1 sepolicy: Enable path reading for storm_irq
Test: adb bugreport
Bug: 279486693
Change-Id: Id16dc3cf20a3373e8c00231d637537911a3b5b0e
Signed-off-by: Ziyi Cui <ziyic@google.com>
2023-06-06 00:38:24 +00:00
Treehugger Robot
e091d0258e Merge "Allow dump modem log on user build" into udc-dev 2023-06-02 09:46:24 +00:00
TreeHugger Robot
31aebacfe3 Merge "gps: add config to enable assertion" into udc-dev 2023-06-02 09:34:31 +00:00
Wayne Lin
eecb23ecf2 Merge "update gps driver 147.20.23.571192" into udc-dev 2023-06-02 09:21:26 +00:00
Cheng Chang
a9531cd29b gps: add config to enable assertion
Bug: 280620812
Test: Firmware verification at b/280620812
Change-Id: Ib49107c83d0dfa65e551ba8aae6079acd78d9cc1
2023-06-02 05:31:18 +00:00
Nicole Lee
29428309f9 Allow dump modem log on user build
Bug: 285434493
Test: Trigger bugreport on user build
Change-Id: I28571f6d6e185aa32d44a71ccdae8c2f167d5e34
2023-06-02 01:35:05 +00:00
Carter Hsu
40e3593b25 Merge "audio: allow audio hal to access acd-mel_processor" into udc-dev 2023-06-02 01:10:09 +00:00
Wayne Lin
2499ad6876 update gps driver 147.20.23.571192
- add debug log for bad initial time crash
 - fix crash issues
 - fix large position jump issue
 - extract measurements from log
 - clean libary dependency
 - control debug assert flag in CHPP

Bug: 252972127
Bug: 277310027
Bug: 280762841
Bug: 254412432
Bug: 260816769
Bug: 274411140
Bug: 280940847

Verify test: b/284236450
Test: CtsLocationGnssTestCases pass
VtsHalGnssTargetTest pass
PtsChreTestCases pass

Change-Id: I120fa01ab45d868550c3202c25c26bd4854f67a2
2023-05-31 09:45:08 +00:00
Owen Kim
3bc36ec3df DumpState: Include the camera graph state dump files
Bug: 283612437
Bug: 282075222
Test: Check the graph state dump files in dumpstate_board.bin in
a bugreport

Change-Id: I8c7604c91965167b71568c1058ca180b0680b392
(cherry picked from commit 559ad99a14767dec5d6985e62aac18f21cb98a67)
2023-05-23 21:21:04 +00:00
Treehugger Robot
4478e75c5c Merge "gps: separate the init_gps rc file" into udc-dev 2023-05-19 06:46:28 +00:00
Cheng Chang
631d5b6521 gps: separate the init_gps rc file
- separate cbd control gps property

Bug: 282877296
Test: b/282877296
Change-Id: I08c95b7da0005289292bf5b4edbe66308a9a58c8
2023-05-19 02:28:10 +00:00
Quinn Yan
4ce2179821 Merge "Enable RT threads by default for Edgetpu DBA HAL." into udc-dev 2023-05-18 20:22:09 +00:00
Yu-Chi Cheng
708eec566d Allowed edgetpu_vendor_service to access hetero runtime system
properties.

Those properties include the one for trace level
("vendor.google.silicon.max_trace_level"), which will be used by the
edgetpu vendor service during on device compilation. This change is
required to avoid SELinux errors.

Bug: 282963211
Test: verified no avc error after this change with GCA + perfetto.
Change-Id: I66333571bc9dbbf86e033eefb1054c79b260ff67
2023-05-17 21:38:06 +00:00
Tommy Chiu
98761efacc vndservicemanager: allow binder_call to hal_keymint_citadel
original log: [    2.048586] type=1400 audit(1683652072.956:4):
avc:  denied  { call } for  comm="vndservicemanag" scontext=u:r:vndservicemanager:s0
      tcontext=u:r:hal_keymint_citadel:s0 tclass=binder permissive=0

Fix: 281814811
Change-Id: I905e2927af1377fed34d6f47254fb68d22fcac77
2023-05-12 04:40:32 +00:00
qinyiyan
aaae6818d0 Enable RT threads by default for Edgetpu DBA HAL.
Bug:267379294
Test: forrest build.

Change-Id: I95d6c276bb29c8f24bbf4b672e64d78e2e073301
2023-05-11 20:43:01 +00:00
Charles Chen
5d702ea1f7 Merge "Allow nnapi for isolated_compute_app" into udc-dev 2023-05-09 02:01:49 +00:00
Wendly Li
90f0d9bb3d dump_gti: Support dual-panel
Bug: 278023960
Test: adb bugreport
Change-Id: Idab07391086e04378e7722ac0ff4218a2d09478d
Signed-off-by: Wendly Li <wendlyli@google.com>
2023-05-08 17:10:22 +00:00
Wendly Li
23b2692172 Dump touch info for multiple panel support
Bug: 278023960
Test: adb bugreport
Change-Id: Ife9402e216f6ba6b36764c682bbe71a85335a888
Signed-off-by: Wendly Li <wendlyli@google.com>
2023-05-08 17:10:05 +00:00
Treehugger Robot
aab2fd57a9 Merge "gps: allow gpsd access sensor aidl service" into udc-dev 2023-05-08 12:41:10 +00:00
Charles Chen
29f5fc9cfe Allow nnapi for isolated_compute_app
isolated_compute_app was not able to use NNAPIv2 in Android U, so this
is a workaround to temporarily unblock the app from using hardware
acceleratetion.

Bug: 281138203
Test: Manual
Change-Id: I3c1f829b690b4ad1fe8bc43ff9435cbf62d048d4
2023-05-06 01:00:53 +00:00
Cheng Chang
855c9c7c7b gps: allow gpsd access sensor aidl service
04-21 12:53:38.929   388   388 E SELinux : avc:  denied  { find } for pid=967 uid=1021 name=android.frameworks.sensorservice.ISensorManager/default scontext=u:r:gpsd:s0 tcontext=u:object_r:fwk_sensor_service:s0 tclass=service_manager permissive=0

Bug: 279134853
Test: verify no SELinux error log
Change-Id: Iac69a3bbce808c0432e210874993f9de56dc86b5
2023-05-05 12:23:12 +00:00
Cheng Chang
0e67f94cea gps: collect heap memory information
Bug: 275466127
Test: adb bugreport to check the file in dumpstate
Test: verify flow at b/274541210
Change-Id: I737593e8d91fe21b0825d982b385f157ec61690a
2023-05-05 12:22:58 +00:00
Charles Chen
900c400a54 Merge "Allow DBA for isolated_compute_app" into udc-dev 2023-05-04 22:19:49 +00:00
Treehugger Robot
0858aaab71 Merge "update gps sdk 147.20.23.568380" into udc-dev 2023-05-04 10:48:05 +00:00
Charles Chen
1d909e7e72 Allow DBA for isolated_compute_app
NNAPI will be deprecated soon so we are allowing isolated_compute_app to
access DBA access for migration.

Bug: 274535894
Test: Manual
Change-Id: Ic407a47f584307a0e6e0de36827aaa9b851aee80
2023-05-04 00:22:29 +00:00
Carter Hsu
81a4337feb audio: allow audio hal to access acd-mel_processor
The /dev/acd-mel_processor is for the SoundDose
feature

Bug: 244133608
Test: build pass
Change-Id: I1f9c914c9a2d8cc86a8f1c643a9bbd73deb221d4
Signed-off-by: Carter Hsu <carterhsu@google.com>
2023-05-02 08:22:31 +00:00
martinwu
63a5f124d0 [TSV2] Add sepolicy for dumpstate to zip tcpdump into bugreport
Bug: 264490014
Test: 1. Enable tcpdump_logger always-on function
      2. Dump bugreport
      3. Pull dumpstate_board.bin and chagne it to zip
      4. Unzip dumpstate_board.zip and check if tcpdump files
         are there.
Change-Id: I237e656810bf5461c2d473640bff5b0a45f75f6e
Merged-In: I237e656810bf5461c2d473640bff5b0a45f75f6e
2023-04-29 15:19:39 +00:00
David Li
9dfd56b23b Merge "audio: pack AIDL s/w effects" into udc-dev 2023-04-28 02:05:28 +00:00
Kyle Zhang
db202708a6 Merge "Move Widevine drm to gs-common" into udc-dev 2023-04-27 21:21:11 +00:00
Wayne Lin
2a9218e79a update gps sdk 147.20.23.568380
- fix navigation message issue
 - fix drift issue in driving test
 - fix incorrect GNSS measurement frequency issue
 - report satellite status when measurement only
 - remove unnecessary libraries
 - report dummy WiFi mac address
 - fix wrong internal context detection at slow driving

Bug: 265884251
Bug: 276216546
Bug: 274530336
Bug: 274537581
Bug: 271267762
Bug: 277301500
Bug: 266343909
Verify test: b/279541834
Test: VtsHalGnssTargetTest pass
CtsLocationGnssTestCases pass
PtsChreTestCases pass
Change-Id: Ie739beb7029c595173f8455e867f72324a61138a
2023-04-27 10:11:39 +00:00
Martin Wu
50b5d5287e Revert "Add sepolicy for dumpstate to zip tcpdump into bugreport"
Revert submission 22814097-Fix-tcpdump-sepolicy

Reason for revert: build break

Reverted changes: /q/submissionid:22814097-Fix-tcpdump-sepolicy

Change-Id: I69d22f368aa5b9e21a8fe0071d1d0981b5c635e9
2023-04-27 02:21:05 +00:00
martinwu
6a41ee1f21 Add sepolicy for dumpstate to zip tcpdump into bugreport
Bug: 264490014
Test: 1. Enable tcpdump_logger always-on function
      2. Dump bugreport
      3. Pull dumpstate_board.bin and chagne it to zip
      4. Unzip dumpstate_board.zip and check if tcpdump files
         are there.
Change-Id: I420f26f17260dff34617c8c723f126ee9e56bb27
2023-04-27 01:37:20 +00:00
David Li
827c84ee7d audio: pack AIDL s/w effects
Pack the common s/w effects into the AIDL effect HAL enabled image.
Includes the following effects,
  1. libbundleaidl
  2. libreverbaidl
  3. libvisualizeraidl
  4. libdynamicsprocessingaidl
  5. libdownmixaidl
  6. libloudnessenhanceraidl

The project-specific effects should be add into the makefile in the
project folder.

Test: mm
Bug: 271500140
Change-Id: I4d89440791d43eaf03288d5f7bf6d61cbd21659f
2023-04-26 14:57:31 +08:00
Joseph Jang
6c4c5cdf26 Move recovery.te to device/google/gs-common/dauntless/sepolicy
Bug: 279381809
Change-Id: I1b5b802bccbcd7e649f58af2c8393ecfca66e6e4
2023-04-24 09:10:10 +00:00
Kyle Zhang
260d6dcd0b Move Widevine drm to gs-common
Bug: 277764729
Change-Id: I0172f73c31d216955ba9a04bf66d0fa1af95dc8f
2023-04-21 17:32:20 +00:00
Randall Huang
f55b2ffc2e storage: add fastbootd sepolicy
We need to format the /metadata partition in fastbootd mode.
This CL aims to include the necessary SELinux rules.

Bug: 264489957
Test: rom flashing
Change-Id: Ib94dbcb580c0a16395b48b8eeef6e431a637d235
Signed-off-by: Randall Huang <huangrandall@google.com>
2023-04-20 09:08:07 +00:00
Jim Sun
a43ff6f9b4 Merge changes from topic "ril-mem-monitor" into udc-dev
* changes:
  Add ril memory monitor
  rild: allow rild to ptrace
2023-04-20 06:25:59 +00:00
Yan Yan
773dff4fa5 Merge "Add feature flag for IPSEC_TUNNEL_MIGRATION to Pixel6/7/8" into udc-dev 2023-04-20 01:58:12 +00:00
jimsun
59ee53b750 Add ril memory monitor
Bug: 263757077
Test: manual
Change-Id: I2fdc2d16c957a2f96c4f1ba6339b0a4e0a1b8ddd
2023-04-19 14:50:15 +00:00
jimsun
9940199191 rild: allow rild to ptrace
06-20 18:47:41.940000  8708  8708 I auditd  : type=1400 audit(0.0:7): avc: denied { ptrace } for comm="libmemunreachab" scontext=u:r:rild:s0 tcontext=u:r:rild:s0 tclass=process permissive=0
06-20 18:47:41.940000  8708  8708 W libmemunreachab: type=1400 audit(0.0:7): avc: denied { ptrace } for scontext=u:r:rild:s0 tcontext=u:r:rild:s0 tclass=process permissive=0

Bug: 263757077
Test: manual
Change-Id: I4818df3383353a0758a20bd8e9ea0c5a8fc7d84d
2023-04-19 14:50:03 +00:00
Randall Huang
30ae41260a Storage: refactor sg_utils build rule
Bug: 264001741
Test: build
Change-Id: I9c575d8c5d12837cf14d76cf70c384a474502434
Signed-off-by: Randall Huang <huangrandall@google.com>
2023-04-18 15:04:52 +08:00
Yan Yan
ff93161fad Add feature flag for IPSEC_TUNNEL_MIGRATION to Pixel6/7/8
This commit adds the IPSEC_TUNNEL_MIGRATION feature flag,
with XFRM_MIGRATE used as the implementation

Verified on bluejay

Bug: 273379472
Test: build, flash and verify with "adb shell pm list features"
Test: atest IpSecManagerTunnelTest
Change-Id: Ia19663288b389dbfa0ce5ca328b5706b1767db78
2023-04-13 00:36:25 +00:00
Minchan Kim
caf0f59fab dump vendor cma stat
Bug: 276901078
Test: dumpstate_board.txt on adb bugreport includes the info
Change-Id: Iaef36594a8ef48b0c85039f348618f021f93e8c2
Signed-off-by: Minchan Kim <minchan@google.com>
2023-04-11 16:36:56 +00:00
Minchan Kim
2a651114fe dump pixel trace into dumpstate_board.txt
Dump cma allocation/deallocation traces into dumpstate_board.txt.

E.g.)

 android.hardwar-3427    [004] ....    15.196059: cma_alloc_start: name=faceauth_tpu count=256 align=8
 android.hardwar-3427    [004] ....    15.196189: cma_alloc_info: name=faceauth_tpu pfn=0x9f4200 count=256 align=8 nr_migrated=0 nr_reclaimed=0 nr_mapped=0 err_iso=0 err_mig=0 err_test=0
    binder:578_1-592     [003] ....    15.209400: cma_alloc_start: name=farawimg count=704 align=4
    binder:578_1-592     [003] ....    15.210344: cma_alloc_info: name=farawimg pfn=0x9e83c0 count=704 align=4 nr_migrated=0 nr_reclaimed=0 nr_mapped=0 err_iso=0 err_mig=0 err_test=0
   binder:1114_4-3420    [001] ....    15.259132: cma_release: name=faceauth_tpu pfn=9f4000 page=000000002e4bd17f count=16
   binder:1114_4-3420    [001] ....    15.259143: cma_release: name=faceauth_tpu pfn=9f4010 page=000000008e379085 count=16
   binder:1114_4-3420    [001] ....    15.259148: cma_release: name=faceauth_tpu pfn=9f4020 page=00000000161dc38b count=16
   binder:1114_4-3420    [001] ....    15.259152: cma_release: name=faceauth_tpu pfn=9f4030 page=000000001d3eb567 count=16
   binder:1114_4-3420    [001] ....    15.259157: cma_release: name=faceauth_tpu pfn=9f4040 page=00000000f7f6dc70 count=16

Bug: 276901078
Test: dumpstate_board.txt on adb bugreport includes the info
Change-Id: If64c066eca59d6bba75e0494cd22108d619ad6f8
Signed-off-by: Minchan Kim <minchan@google.com>
2023-04-11 16:36:56 +00:00
Minchan Kim
6c81eeca82 dump cma debugfs into dumpstate_board.txt
CMA debugfs provides how many CMA pages were allocated. It's useful to
detect CMA memory leak.

E.g) --- /sys/kernel/debug/cma/cma-faceauth_tp

Bug: 276901078
Test: dumpstate_board.txt on adb bugreport includes the info
Change-Id: Ic050c78ff6455a2960be239732ab6214c3789106
Signed-off-by: Minchan Kim <minchan@google.com>
2023-04-11 16:35:56 +00:00
Kevin Jeon
9df2606139 Add tracepoints to dumpstate_board sections
This change adds per-section tracepoints to the Pixel 6 (and beyond)
implementation of dumpstateBoard for the purpose of debugging
possibly-long sections.

This change is analagous to the previous gs101/gs201 tracepoint
additions at ag/20414147 and ag/20413969.

Test: Build+flash; verify that a trace of a bug report contains
      dumpstate board sections.
Bug: 277296452
Change-Id: I6bdd040321e87b9b6e104c18198aa650d8e5ad42
2023-04-10 15:22:25 +00:00
Cheng Chang
aa08e44399 Merge "update gps sdk 147.20.23.566805" into udc-dev 2023-04-10 08:08:07 +00:00
NISCHAL JAIN
496b95282b Merge "Enable gxp dumps in bugreport" into udc-dev 2023-04-10 07:29:34 +00:00
NISCHAL JAIN
ee2650ea7c Merge "Limit maxGxpDebugDumps to 3." into udc-dev 2023-04-10 06:42:37 +00:00