407 Commits

Author SHA1 Message Date
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
TreeHugger Robot
b5519577ea Merge "audio: introduce sepolicy for hal audio ext service" into udc-dev 2023-03-03 02:42:26 +00:00
Adam Shih
1692bc1028 Merge "close stream after use" into udc-dev 2023-03-02 22:22:38 +00:00
Ernie Hsu
5a2d8e7498 Merge "move mediacodec_samsung build config and sepolicy to gs-common" into udc-dev 2023-03-02 08:38:54 +00:00
Jasmine Cha
b6ccc2ea0f audio: introduce sepolicy for hal audio ext service
Bug: 206738075
Test: build pass

Change-Id: I742566946d744c966443f30740adb8a3a4b3c00c
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2023-03-02 16:17:02 +08:00
Adam Shih
bd75d8f1ab close stream after use
Bug: 240530709
Test: adb bugreport
Change-Id: I251a0f8a8e7d6a233b201a0a79df6c1bca137cd0
2023-03-02 14:52:50 +08:00
Ernie Hsu
1669f9bb60 move mediacodec_samsung build config and sepolicy to gs-common
1. mediacodec_samsung.te is copied from ag/20742869
2. add common settings which will be used by differnt vendor

Bug: 263444717
Test: build pass, camera record, youtube
Change-Id: I62a4c33ea59d1b3f70990f221b11fe9d905e15f1
2023-03-02 03:33:51 +00:00
Adam Shih
29fdb2cffa Merge "move gxp dump to gs-common" into udc-dev 2023-03-02 02:45:47 +00:00
Adam Shih
60d07215ea move gxp dump to gs-common
Bug: 240530709
Test: adb bugreport;unzip *zip;tar -xvf dumpstate_board.bin
And found gxp content

Change-Id: I27b54b283609cf574796d706da0450802dc601a3
2023-03-01 22:23:18 +00:00
Adam Shih
147df54dc6 create a function that copies a file
Bug: 240530709
Test: adb bugreport
Change-Id: Ie09b70a7b9b10e42c46618944fa598f6c0120db2
2023-03-01 13:11:35 +08:00
Adam Shih
39e672acb4 create display userdebug dump
Bug: 269212897
Test: adb bugreport
Change-Id: I666fb3e0872f8afcf5b8a2d8b598245fbcdbb151
2023-02-22 13:53:34 +08:00
Adam Shih
80fed77790 Merge "create function dumpLog" into udc-dev 2023-02-22 03:00:45 +00:00
Adam Shih
d0f5360b76 create function dumpLog
Bug: 240530709
Test: adb bugreport
Change-Id: I036757f10f18f5dcf4faa6574a7280912348aef4
2023-02-21 14:14:44 +08:00
Cheng Chang
ecdabaa486 update gps sdk 147.20.23.562029
- gpsd segmentfault protect code
 - android.hardware.gnss@2.1-service-brcm segmentfault
 - AGC field is missing when requested deep indoor
 - TestGnssMeasurementIntervals_LocationOnAfterMeasurement fix
 - mismatch between bearing value and fixed location
 - location jumped in the office and the reported accuracy is
   much higher
 - Can't enter duty cycle mode
 - fix IGnssConfiguration setBlocklist issue

Test: atest VtsHalGnssTargetTest
Test: atest CtsLocationGnssTestCases
Test: verify test at b/269048821
Test: verify test at b/269049429
Bug: 260300008
Bug: 262632321
Bug: 266760732
Bug: 264597734
Bug: 266343909
Bug: 254357787
Bug: 262829108
Bug: 265106280
Change-Id: I6097ed175b798df4324f26624ea30ca16447c405
2023-02-21 03:48:13 +00:00
Cheng Chang
1d7e24afdf gps: separate sdk version
- update gps sdk version 147.20.23.557990

Test: verify test at b/268167428
Test: verify test at b/268166962
Test: atest CtsLocationGnssTestCases
Test: atest VtsHalGnssTargetTest
Bug: 268165042
Change-Id: Ieb73195e0ff0cd45f85aa52035c4dc6b6a1256fc
2023-02-21 03:47:52 +00:00
TreeHugger Robot
cae07933b0 Merge "gs_watchdogd: add shutdown critical option" 2023-02-16 06:58:20 +00:00
Martin Liu
c04e69ae62 gs_watchdogd: add shutdown critical option
Watchdogd should be alive to complete shutdown
safely. This also aligns the behavior with previous
watchdogd.

Bug: 267080705
Test: boot
Change-Id: Iad85a0d730d032ae57530e0aa6965e2123488b2f
Signed-off-by: Martin Liu <liumartin@google.com>
2023-02-16 13:09:39 +08:00
Jayachandran C
9f60b5c506 Merge "Allow radio to access aoc_device for RTP encoding/decoding" 2023-02-16 02:59:18 +00:00
Jayachandran C
cdcd803b5a Allow radio to access aoc_device for RTP encoding/decoding
This CL labels new AoC devices used for RTP processing

This fixes the follow denials
type=1400 audit(0.0:11): avc: denied { write } for name="acd-audio_rtp_tx" dev="tmpfs" ino=1185 scontext=u:r:radio:s0 tcontext=u:object_r:device:s0 tclass=chr_file permissive=0
type=1400 audit(0.0:12): avc: denied { read } for name="acd-audio_rtp_rx" dev="tmpfs" ino=1186 scontext=u:r:radio:s0 tcontext=u:object_r:device:s0 tclass=chr_file permissive=0

Bug: 259178236
Test: Manually verified on the device with AOC
Change-Id: Iffe0de3a27c89892af7ae280fa39dd28a0052542
2023-02-15 21:33:57 +00:00
feiyuchen
a59d019822 Allow EdgeTpu service to read persist.device_config.edgetpu_native properties
Background:
Darwinn Runtime team wants to use a cloud-based infra (Android Core Experiments) to push flags from server to device. The flags will be stored into android properties under the namespace: `persist.device_config.edgetpu_native`, which has a property context called `device_config_edgetpu_native_prop` as added by the other CL: https://android-review.git.corp.google.com/c/platform/system/sepolicy/+/2434232

Change:
Allow EdgeTpu service to read device_config_edgetpu_native_prop

Test: Verified EdgeTpu has access to read the property
Bug: 243553703
Bug: 246401730
Change-Id: I19dca0e2d3008e36bdbca50f610810148a7e11dd
2023-02-15 07:19:07 +00:00
Adam Shih
872e477e9f create device frequency dump
Bug: 240530709
Test: adb bugreport
Change-Id: I8db76f46e9e304b1d861c1d6b8ab031611c25e7e
2023-02-15 11:14:37 +08:00
TreeHugger Robot
adefb37275 Merge "Storage: fix init avc denials" 2023-02-14 22:51:57 +00:00
Randall Huang
4cd9081086 Merge "storage: fix dumpstate avc denials" 2023-02-14 08:35:13 +00:00
TreeHugger Robot
3841463b71 Merge "powerstats: include sleep duration for core down state" 2023-02-14 08:27:10 +00:00
Randall Huang
0d862845c4 Storage: fix init avc denials
Bug: 262794360
Test: boot to home
Change-Id: Ic99d1430f7d4a9a449598152f51327ac13d192f1
Signed-off-by: Randall Huang <huangrandall@google.com>
2023-02-14 16:25:54 +08:00
Adam Shih
ef4a355523 Merge "create memory dump" 2023-02-14 07:22:11 +00:00