Commit graph

11403 commits

Author SHA1 Message Date
SalmaxChang
48327b8da1 logger_app: Fix avc errors am: ab97657410
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14439439

Change-Id: I53a9905e749c8b6647b42e70f87a221751fb0432
2021-05-06 04:14:28 +00:00
SalmaxChang
ab97657410 logger_app: Fix avc errors
avc: denied { read } for name="u:object_r:default_prop:s0" dev="tmpfs" ino=141 scontext=u:r:logger_app:s0:c21,c257,c512,c768 tcontext=u:object_r:default_prop:s0 tclass=file permissive=0 app=com.android.pixellogger
Access denied finding property "viewroot.profile_rendering"
Access denied finding property "ro.input.resampling"
Access denied finding property "persist.input.velocitytracker.strategy"

avc: denied { read } for comm="oid.pixellogger" name="u:object_r:usb_control_prop:s0" dev="tmpfs" ino=281 scontext=u:r:logger_app:s0:c21,c257,c512,c768 tcontext=u:object_r:usb_control_prop:s0 tclass=file permissive=0 app=com.android.pixellogger

Bug: 186612284
Change-Id: I15f00d9ed3cc0c0657c854292caad60e3f7a3011
2021-05-06 03:57:01 +00:00
David Li
5ee385665c audio: remove libdsp_aecns.so from device.mk am: e3718f2067
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14436096

Change-Id: Iedaeb706f61c3678720b5e5b117fb317762ab87a
2021-05-06 02:49:32 +00:00
David Li
e3718f2067 audio: remove libdsp_aecns.so from device.mk
Move AEC and NS to the liboffloadeffect

Bug: 187153996
Test: make -j128
Test: run cts --include-filter "CtsMediaTestCases android.media.cts.AudioPreProcessingTest"
Change-Id: Ida949d8ae3c06b4ab6743159cc952cdef3a73de7
2021-05-06 02:28:43 +00:00
Jack Wu
8afb8bee7b sepolicy: gs101: Fix hal_health_default avc denials am: 2c1ecf3a54 am: 388860a7ba
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14439451

Change-Id: I08759859df54a805168b3ee1aa5a1c9fa7d0ffea
2021-05-05 22:30:20 +00:00
Jack Wu
388860a7ba sepolicy: gs101: Fix hal_health_default avc denials am: 2c1ecf3a54
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14439451

Change-Id: I9c4332385e1a22043938a022c2074d34b490adbf
2021-05-05 22:16:08 +00:00
Jack Wu
41284f3e10 sepolicy: gs101: Fix hal_health_default avc denials am: 2c1ecf3a54
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14439451

Change-Id: I65455bb121c39aafc58a087645aecbed71505ecd
2021-05-05 22:14:02 +00:00
Jack Wu
9ac90fc4c1 sepolicy: gs101: Fix hal_health_default avc denials am: 2c1ecf3a54
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14439451

Change-Id: I3a8dfac579c6d631faa4b11a0a2dc2f2669647d5
2021-05-05 22:13:35 +00:00
Woody Lin
5d0eb0cfbc gs101: dumpstate: Dump s2d.lst to dumpstate_board.txt am: e9f27f4a68
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14440217

Change-Id: Ib89bfca0e29b890ee50dcae7bd382915c9288317
2021-05-05 20:54:21 +00:00
Woody Lin
e9f27f4a68 gs101: dumpstate: Dump s2d.lst to dumpstate_board.txt
Gzip s2d.lst and base64 it for dumping to dumpstate_board.txt.

Bug: 187228956
Change-Id: I911145ed6ecc345177cd979262126b7c49194528
2021-05-05 20:37:42 +00:00
Stephane Lee
43a8d0fe75 BatteryDefender: Explicitly set wireless path to reduce errors logs am: 331796ed8d
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14370778

Change-Id: Iaebd6a05728d7db9ad02a15b9441d9d7b827df36
2021-05-05 19:55:41 +00:00
Stephane Lee
331796ed8d BatteryDefender: Explicitly set wireless path to reduce errors logs
For gs101 devices, we must detect whether a wireless charger exists at
runtime, otherwise we'd need to create separate Health.cpp for each
product in order to instantiate the wireless path correctly.

Test: Ensure battery defender triggers via wireless connection.
   Ensure there are no warnings for devices that do not have a wireless
   charger
Bug: 165954398
Change-Id: Ibba202293141c017d3048980b643a80b5fb57ca4
2021-05-05 19:39:49 +00:00
Wei Wang
0931bf06f1 Disable ADPF hint am: 934721c1e0
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14430675

Change-Id: Ie2d5a2d8ca1c6c03db5807a98dc6394b93e85f5d
2021-05-05 17:20:14 +00:00
Wei Wang
934721c1e0 Disable ADPF hint
Test: boot
Bug: 170650323
BUg: 187212124
Change-Id: Ifa754efa138803c5cc36836b8313e819079e518a
2021-05-05 17:03:23 +00:00
Chris Fries
cad0809076 Revert "Revert "Revert "Enable SurfaceFlinger Cache by default""" am: 74a463ecb4
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14429738

Change-Id: Ifcc139c4640ad0773f890de7d2db9e3c53e266a1
2021-05-05 16:46:38 +00:00
Chris Fries
74a463ecb4 Revert "Revert "Revert "Enable SurfaceFlinger Cache by default"""
This reverts commit eee30bde78.

Reason for revert: b/187193705

Change-Id: I02c2f94149ed59a6078759a65bc30de9a0d68fe2
Bug: 187193705
2021-05-05 16:30:29 +00:00
Jack Wu
2c1ecf3a54 sepolicy: gs101: Fix hal_health_default avc denials
01-01 12:00:08.752  1000   682   682 I android.hardwar: type=1400 audit(0.0:3): avc: denied { read } for name="type" dev="sysfs" ino=68812 scontext=u:r:hal_health_default:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1
01-01 12:00:08.752  1000   682   682 I android.hardwar: type=1400 audit(0.0:4): avc: denied { open } for path="/sys/devices/platform/10d50000.hsi2c/i2c-7/7-0069/power_supply/dc/type" dev="sysfs" ino=68812 scontext=u:r:hal_health_default:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1
01-01 12:00:08.752  1000   682   682 I android.hardwar: type=1400 audit(0.0:5): avc: denied { getattr } for path="/sys/devices/platform/10d50000.hsi2c/i2c-7/7-0069/power_supply/dc/type" dev="sysfs" ino=68812 scontext=u:r:hal_health_default:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1

Bug: 184429394
Test: Verify pass by checking device log are w/o above errors after
Signed-off-by: Jack Wu <wjack@google.com>
Change-Id: If1253c902af1723ca80d31223f51ebf439404527
2021-05-06 00:26:14 +08:00
Alex Hong
5a23a95e9a Downgrade the PRODUCT_SHIPPING_API_LEVEL from 31 to 30 am: 2f8fde91a1
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14440219

Change-Id: I5785a4cac774544f21cdc4f4c4141eca1c809e3c
2021-05-05 16:12:13 +00:00
Alex Hong
2f8fde91a1 Downgrade the PRODUCT_SHIPPING_API_LEVEL from 31 to 30
We should wait for the Android SC SDK finalization.
Remove the unnecessary "BUILD_BROKEN_VENDOR_PROPERTY_NAMESPACE".

Test: Build successfully and the device is bootable
      CtsOsTestCases: android.os.cts.BuildTest#testSdkInt pass
Bug: 187023500
Change-Id: Ib9adbb7a7c913790994a06ae1a57f95eebf84a78
2021-05-05 11:55:09 +00:00
Alex Hong
ef86b642ad Merge "sepolicy: Update dumpstate HAL to V1.1" into sc-dev am: be17ec14cc am: a0e4da3cb4
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14424440

Change-Id: I89c2aacb07e5c2d4cc15e1cfa74933dc0d6fc216
2021-05-05 07:00:22 +00:00
Alex Hong
a0e4da3cb4 Merge "sepolicy: Update dumpstate HAL to V1.1" into sc-dev am: be17ec14cc
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14424440

Change-Id: I381c9f63d18cd7568f3ea912e5a77010909a1fbf
2021-05-05 06:31:55 +00:00
Alex Hong
54c1440094 Replace the HIDL with AIDL for "android.hardware.memtrack" am: 69bc91e5f0
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14410246

Change-Id: I4bd0fcef27d022225c29a179de5b52f6d6158e07
2021-05-05 06:30:02 +00:00
Alex Hong
00279692ff Merge "sepolicy: Update dumpstate HAL to V1.1" into sc-dev am: be17ec14cc
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14424440

Change-Id: I70997d234403030cb0e06d51dad4bad965e39758
2021-05-05 06:30:01 +00:00
Alex Hong
382189cde2 Update dumpstate HAL to V1.1 am: ad5196c2c2
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14410141

Change-Id: Ie23ad4549beba9a7048206f1144f72a3b9be8941
2021-05-05 06:30:01 +00:00
Alex Hong
ad3113cee8 Merge "sepolicy: Update dumpstate HAL to V1.1" into sc-dev am: be17ec14cc
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14424440

Change-Id: I449c5e89858a5365961c82c4ac8a8a87c9de9438
2021-05-05 06:30:00 +00:00
Alex Hong
be17ec14cc Merge "sepolicy: Update dumpstate HAL to V1.1" into sc-dev 2021-05-05 06:09:11 +00:00
Alex Hong
69bc91e5f0 Replace the HIDL with AIDL for "android.hardware.memtrack"
The HIDL interface of "android.hardware.memtrack" is no longer supported for Android S.

Test: atest VtsHalMemtrackTargetTest pass
Bug: 186539435
Change-Id: Iaafd526fc5a601f7e8189ec764399d99c660beb0
2021-05-05 06:09:11 +00:00
Alex Hong
ad5196c2c2 Update dumpstate HAL to V1.1
This is a manual porting from ag/10344396.
Replace the usage of "persist.vendor.verbose_logging_enabled" since we are not using
this property for Whitechapel.
Use the default property "persist.dumpstate.verbose_logging.enabled" instead.

Test: atest VtsHalDumpstateV1_1TargetTest pass
Bug: 186539439
Change-Id: I3f0d35647c0748d360b12d3be078d514f99d23d5
2021-05-05 06:09:11 +00:00
Tri Vo
1dac39e833 trusty: sepolicy for metrics reporter
Bug: 173423860
Test: m
Change-Id: I42d646c6c9453662e670e7c22712f2bde2368bba
2021-05-05 05:38:34 +00:00
TreeHugger Robot
263452b0f9 Merge "add sepolicy for dump TRICKLE/TEMP/DWELL defend config" into sc-dev am: 6978cd7220 am: fed9fee663
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14419455

Change-Id: I49e37210d62b6f31d9c5ff34430312b179815594
2021-05-05 04:15:11 +00:00
TreeHugger Robot
fed9fee663 Merge "add sepolicy for dump TRICKLE/TEMP/DWELL defend config" into sc-dev am: 6978cd7220
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14419455

Change-Id: Ib650be96e3439600b2975ab0d20fad5710eebc8a
2021-05-05 03:24:10 +00:00
TreeHugger Robot
5853581df5 Merge "add sepolicy for dump TRICKLE/TEMP/DWELL defend config" into sc-dev am: 6978cd7220
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14419455

Change-Id: Iae2b95ad4cb344b3783d00b8a9f003226f4bbdc4
2021-05-05 03:22:22 +00:00
Jenny Ho
b482bf4125 init.gs101.rc: change TRICKLE/TEMP/DWELL permission to system am: c1c9613145
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14419728

Change-Id: Id2c35ee1e0452186b9e39222d6e20052d0945480
2021-05-05 03:21:59 +00:00
TreeHugger Robot
02d5ccc76d Merge "add sepolicy for dump TRICKLE/TEMP/DWELL defend config" into sc-dev am: 6978cd7220
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14419455

Change-Id: If12d03a3aefbfa5380f57a271fe759de61ad54ea
2021-05-05 03:21:58 +00:00
Jenny Ho
3a624d41e4 dumpstate: dump TRICKLE/TEMP/DWELL setting into bugreport am: c20a7c9603
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14419727

Change-Id: I232339d3c1793e1cac20bce3b08ff9975cc606c7
2021-05-05 03:21:58 +00:00
TreeHugger Robot
6978cd7220 Merge "add sepolicy for dump TRICKLE/TEMP/DWELL defend config" into sc-dev 2021-05-05 02:55:28 +00:00
Jenny Ho
c1c9613145 init.gs101.rc: change TRICKLE/TEMP/DWELL permission to system
For dump these informations into bugreports and debugging

Bug: 186872139
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: I5e4efd83b1ae111a423cb13e1c35f31766f98252
2021-05-05 02:55:28 +00:00
Jenny Ho
c20a7c9603 dumpstate: dump TRICKLE/TEMP/DWELL setting into bugreport
Need setting information for debugging

Bug: 186872139
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: Iaf7345a4f38a67c4134f5cb23050b5f5e6ba7fdd
2021-05-05 02:55:28 +00:00
qinyiyan
c28198ce01 [SEPolicy] Allow EdgeTPU related service to log to stats service am: 9eeae92ade am: ac59670250
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14431799

Change-Id: I4fde66b57df8e0c1af1145c7163cadf5ba55a6be
2021-05-05 02:43:41 +00:00
qinyiyan
ac59670250 [SEPolicy] Allow EdgeTPU related service to log to stats service am: 9eeae92ade
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14431799

Change-Id: Ie3341d449912158725a1d5292db97278b13605f7
2021-05-05 02:28:49 +00:00
qinyiyan
e86759fd5f [SEPolicy] Allow EdgeTPU related service to log to stats service am: 9eeae92ade
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14431799

Change-Id: Ib6975baa6dc546550f6c7b3b0ed980a2b9c49017
2021-05-05 02:26:56 +00:00
qinyiyan
d781335da0 [SEPolicy] Allow EdgeTPU related service to log to stats service am: 9eeae92ade
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14431799

Change-Id: I9ea7c9a787fc7e74b9e934c029ca0d4a4d7cb2d9
2021-05-05 02:26:55 +00:00
qinyiyan
9eeae92ade [SEPolicy] Allow EdgeTPU related service to log to stats service
We are collecting Suez metrics from TPU related services. This includes
NNAPI HAL, edgetput logging service, and edgetpu service.

This change allows them all to find stats_service.

Bug: 151063663
Test: Pushed selinx module to device and successfully logged Stats
service.

Change-Id: I80774485ae7c2a5f994d48a71b6406fac753a9f8
2021-05-04 17:08:56 -07:00
Chris Kuiper
956a565ab2 dumpstate: Add USF registry dump. am: 24b9d29d6d
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14415199

Change-Id: I006dcb4aea2ac8966870874a6c6de7dce91daf4a
2021-05-04 23:52:55 +00:00
Chris Kuiper
5db8d9f987 Merge "sepolicy: gs101: allow usf_reg_edit to run" into sc-dev am: d0d0304443 am: adb83f2a07
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14415568

Change-Id: I83c062d199c58c459c1dc378924d6b7181a56ba3
2021-05-04 23:12:05 +00:00
Chris Kuiper
adb83f2a07 Merge "sepolicy: gs101: allow usf_reg_edit to run" into sc-dev am: d0d0304443
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14415568

Change-Id: I7eba5b27a274180a9bbf3389018549b7e1188a98
2021-05-04 22:56:31 +00:00
Chris Kuiper
1befba6214 Merge "sepolicy: gs101: allow usf_reg_edit to run" into sc-dev am: d0d0304443
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14415568

Change-Id: I8f10abf38be234dd6fab6d632a157c7624115579
2021-05-04 22:54:39 +00:00
Chris Kuiper
0b3635fb29 Merge "sepolicy: gs101: allow usf_reg_edit to run" into sc-dev am: d0d0304443
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14415568

Change-Id: Ifd5885646dbfac42f16fc867296717e173f6ff18
2021-05-04 22:54:13 +00:00
Chris Kuiper
d0d0304443 Merge "sepolicy: gs101: allow usf_reg_edit to run" into sc-dev 2021-05-04 22:33:57 +00:00
Chris Kuiper
24b9d29d6d dumpstate: Add USF registry dump.
This collects the output of "usf_reg_edit save -" and adds it to the
bugreport. It is only done on userbuilds for PROTO* and EVT* devices.

Bug: 187081112
Test: Run "adb bugreport <zip>" and verify it contains the output
      from "usf_reg_edit save -".
Change-Id: Ie68b56a3bb211840f33bdb5afbc31b0759641c8e
2021-05-04 15:30:26 -07:00