Commit graph

5034 commits

Author SHA1 Message Date
Roger Fang
b6ee86eeed sepolicy: add permission for AMS rate of pixelstats-vend
pixelstats-vend: type=1400 audit(0.0:524): avc: denied { open } for
    path="/sys/devices/platform/audiometrics/ams_rate_read_once" dev="sysfs"
    ino=87602 scontext=u:r:pixelstats_vendor:s0 tcontext=u:object_r:sysfs:s0
    tclass=file permissive=1
    pixelstats-vend: type=1400 audit(0.0:525): avc: denied { getattr }
    for path="/sys/devices/platform/audiometrics/ams_rate_read_once"
    dev="sysfs" ino=87602 scontext=u:r:pixelstats_vendor:s0 tcontext=u:object_r:
    sysfs:s0 tclass=file permissive=1

Bug: 245057559
Test: maually test passed.

Signed-off-by: Roger Fang <rogerfang@google.com>
Change-Id: I6cb477b3eecbb04fe1259f94e18e033cc152a671
2022-10-03 17:56:01 +08:00
Roger Fang
fc34f1b32a pixelstats: add ams_rate sysfs for ATOM of VendorAudioHardwareStatsReported
Bug: 245057559
Test: manually test passed

Signed-off-by: Roger Fang <rogerfang@google.com>
Change-Id: I498d8a62fb276cd51dd0e37445d304a4233013d8
2022-10-03 17:28:02 +08:00
Vova Sharaienko
cf1387dd92 Merge "hal_health_default: updated sepolicy" 2022-09-30 04:42:40 +00:00
Vova Sharaienko
f6826e0904 hal_health_default: updated sepolicy
This allows the android.hardware.health service to access
AIDL Stats service

Bug: 249827340
Test: Build, flash, boot & and logcat | grep "avc"
Change-Id: I45512225f11a0e3b06721f40e2355924188f703f
2022-09-29 23:34:29 +00:00
Cheng Chang
efd9331e4f Merge "gps: update gps driver 147.20.23.550494" 2022-09-29 06:57:01 +00:00
Denny cylee
c59e2b8aa0 sepolicy: add files to power_supply label
avc: denied { read } for name="resistance_id"
dev="sysfs" ino=57006 scontext=u:r:hardware_info_app:s0:c512,c768
tcontext=u:object_r:sysfs:s0 tclass=file permissive=1
app=com.google.android.hardwareinfo

avc: denied { open } for
path="/sys/devices/platform/10cb0000.hsi2c/i2c-8/8-0036/power_supply/maxfg/resistance_id"
dev="sysfs" ino=57006 scontext=u:r:hardware_info_app:s0:c512,c768
tcontext=u:object_r:sysfs:s0 tclass=file permissive=1
app=com.google.android.hardwareinfo

avc: denied { read } for name="serial_number"
dev="sysfs" ino=69725 scontext=u:r:hardware_info_app:s0:c512,c768
tcontext=u:object_r:sysfs:s0 tclass=file permissive=1
app=com.google.android.hardwareinfo

Bug: 248391895
Test: check log

Signed-off-by: Denny cylee <dennycylee@google.com>
Change-Id: I1044cde13e11f85dbf57255edc462be1010f93e4
2022-09-28 08:11:01 +00:00
Adam Shih
0909e0b5fb Put gs_watchdog settings to one place
Bug: 248428203
Test: gs_watchdog is still in system_ext
Change-Id: I591f58eb1e31f156b4ecaef51fd0d603b262f027
2022-09-28 10:25:56 +08:00
Cheng Chang
31aeb8e05c gps: update gps driver 147.20.23.550494
Add NavIC factory test to improve the time of L5 CW test
Fix millisecond error in receivedSvTimeNanos and the corresponding pseudoranges
Add protection code when gpsd call sensor API
Fix invalid sensor availability status report in the PGLOR msg

Bug: 235192024
Bug: 236572839
Bug: 240389454
Bug: 244118456
Test: Verified at 247455369 by cherry-pick the patch
Change-Id: Iba791de4e95395be8dec13272bc12931648d4155
2022-09-27 04:40:11 +00:00
Taeju Park
a9e1ec6fea init.zuma.rc: update cpuset for the new architecture
Bug: 248616371
Signed-off-by: Taeju Park <taeju@google.com>
Change-Id: I1a1bd1aee73fd441336802ea1330b8c24c0f5ef4
2022-09-26 22:19:41 +00:00
Lei Ju
207b766670 Merge "update namespace for generic hal" 2022-09-24 00:04:17 +00:00
Yifan Hong
a706eddca4 Merge "Delete HALs that are already in VINTF fragments (google_battery)" 2022-09-23 20:50:22 +00:00
Yifan Hong
02ce256ef4 Delete HALs that are already in VINTF fragments (google_battery)
These HALs are already included in VINTF fragments, so
there's no need to be specified here.

Test: TH
Bug: 148808037
Fixes: 248556785
Change-Id: I64403f18dfc6e206384c1675440cc622a357d0db
2022-09-23 13:19:46 -07:00
Lei Ju
e6442cca94 update namespace for generic hal
Bug: 248279570
Test: manual test by 1) compiling and installing the hal; 2) CHQTS.
Change-Id: I66759bc778f3045fa6091e07b25608b18fb6de6d
2022-09-22 16:22:16 +00:00
halleywang
1edb3dff04 gaf/debug: ignore gyro in factory rom by default
Gyro sensor readout is not applicable in factory rom. Ignores gyro value in AF side by default to prevent unexpected behavior.

Bug: 248155410
Test: Manual
Change-Id: I41a399847b608022707d4e964924f4fbfe5467fc
2022-09-22 09:32:58 +00:00
TreeHugger Robot
8bc677159f Merge "update display path" 2022-09-21 08:58:10 +00:00
JJ Lee
2959f5c451 dumpstate: corrected sysfs paths for aoc
Bug: 247448885
Test: build pass
Change-Id: Ie6eae294c080b125f4b042dc6e808773fc2f3fa5
Signed-off-by: JJ Lee <leejj@google.com>
2022-09-19 14:37:18 +00:00
JJ Lee
192b97cad9 dumpstate: corrected sysfs paths for aoc
Bug: 247448885
Test: build pass
Change-Id: I793f5964820ff4b945abf5dcd04216e7c60b18ca
Signed-off-by: JJ Lee <leejj@google.com>
2022-09-19 14:37:02 +00:00
JJ Lee
25a5093c9b sepolicy: add nodes for aoc memory votes stats
Bug: 247024476
Test: build pass, not blocking bugreport
Change-Id: Id4bba34927e730a62187b85d045e2872f57fdd04
Signed-off-by: JJ Lee <leejj@google.com>
2022-09-19 15:13:13 +08:00
JJ Lee
70f65d36c6 dumpstate: Add aoc memory vote dump
Bug: 247024476
Test: Boot test, taking bugreport is not blocked
Change-Id: I487daa367af8dade3bca2a52d2c6099fcbf684dc
Signed-off-by: JJ Lee <leejj@google.com>
2022-09-19 15:11:14 +08:00
Ted Lin
3b708f64fd Remove the tracking denials code.
Bug: 213817227
Test: Check the bugreport
Signed-off-by: Ted Lin <tedlin@google.com>
Change-Id: Iad27cc07585b12455c9bc3b1f01de61c0ce92e3e
2022-09-16 15:45:45 +08:00
TreeHugger Robot
2c11dd2440 Merge "init.zuma.rc: change owner of panel operation speed sysfs node" 2022-09-15 21:09:24 +00:00
Adam Shih
0431b09ac6 Merge "get bt permission xml to gs-common" 2022-09-15 01:18:10 +00:00
Shiyong Li
c54cc21010 init.zuma.rc: change owner of panel operation speed sysfs node
Bug: 202181466
Signed-off-by: Shiyong Li <shiyongli@google.com>
Change-Id: I074d783ebdb0b2f5fc6a685f0dfee0379dcca3b1
2022-09-14 19:10:07 +00:00
Shiyong Li
2d80a80b22 update display path
Bug: 246809481
Signed-off-by: Shiyong Li <shiyongli@google.com>
Change-Id: I34a13a88abc4324ac0738948d4270e8a535cd918
2022-09-14 19:06:35 +00:00
Dinesh Yadav
ff460182ee Merge "Add SEPolicy for gxp_logging" 2022-09-13 05:04:27 +00:00
Dinesh Yadav
bab8aa16e8 Add SEPolicy for gxp_logging
This commit adds the SEPolicy for gxp_logging service

Bug: 245903377
Change-Id: I1b9bde7327b131c768ea8a91bc6bfb52f219044b
Signed-off-by: Dinesh Yadav <dkyadav@google.com>
2022-09-13 03:13:15 +00:00
Siddharth Kapoor
54d08df2ac Merge "init.zuma.rc: Remove unused mali sysfs node" 2022-09-12 17:20:26 +00:00
TreeHugger Robot
fbccd3059e Merge "powerstats: update GPU sysfs path for state residency" 2022-09-12 06:26:54 +00:00
Adam Shih
4c3622d25a Merge "use gs-common insert module script" 2022-09-12 05:40:56 +00:00
Adam Shih
e0767f2b4e Merge "use gs-common insert module script" 2022-09-12 05:40:56 +00:00
Darren Hsu
d45112c2e2 powerstats: update GPU sysfs path for state residency
Bug: 244520099
Bug: 243096772
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: If801c99b3eeeb9ca4a396612bd59f7dbebf17cc9
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-09-12 10:59:16 +08:00
Siddharth Kapoor
7526ad185c init.zuma.rc: Remove unused mali sysfs node
Change-Id: I3add4ca927ee8ac253e1d489bd30362d23ef962c
Signed-off-by: Siddharth Kapoor <ksiddharth@google.com>
2022-09-09 13:58:36 -07:00
Jeffrey Carlyle
55c282ab71 Merge "dck: allow st54spi devivce to be accessed by recovery and fastbootd" 2022-09-08 21:58:56 +00:00
Mike McTernan
309d915204 Merge "Start storageproxyd earlier, but after /dev/sg1 has arrived." 2022-09-08 15:28:03 +00:00
Mike McTernan
27fc7b2c2d Start storageproxyd earlier, but after /dev/sg1 has arrived.
Background:
* Sometimes /dev/sg1 isn't ready when storageproxy attempts to start.
  Add a trigger to wait for the device.

Bug: 245194332
Bug: 245724566
Test: manual
Change-Id: I23300b7f1a0170dc1b73c5e3b5b2c7e2b1ecba2b
2022-09-08 13:18:46 +00:00
Adam Shih
a59fecc6a3 get bt permission xml to gs-common
Bug: 242661555
Test: connect to bluetooth
Change-Id: I0ecc6c3bdc18c283e43360e165cc6d95da38c631
2022-09-08 05:13:25 +00:00
Adam Shih
0ddf6e577f use gs-common insert module script
Bug: 243763292
Test: boot to home
Change-Id: Idbac83716d0eaca0b9806db901aea68bffd32f4b
2022-09-08 09:57:29 +08:00
Adam Shih
a89fbf4892 use gs-common insert module script
Bug: 243763292
Test: boot to home
Change-Id: I077ee2287b60f243e2440ad3f3a55c02d8ad52ad
2022-09-08 09:52:39 +08:00
TreeHugger Robot
5a314cab17 Merge "Add SE policies for HWC logs" 2022-09-07 12:28:32 +00:00
TreeHugger Robot
7649ca0327 Merge "dumpstate: add HWC fence state, error log, and debug dump files" 2022-09-07 12:28:32 +00:00
TreeHugger Robot
a96703d13d Merge "zuma: disable dimming mode in factory build" 2022-09-07 11:37:13 +00:00
Ken Huang
d28e21fcdf zuma: disable dimming mode in factory build
Bug: 245240121
Test: cat /sys/class/backlight/panel0-backlight/dimming_on
Signed-off-by: Ken Huang <kenbshuang@google.com>
Change-Id: I5a6b81d284226712fbb61a2db58fc4307244d183
2022-09-07 13:32:10 +08:00
TreeHugger Robot
22f83ce4da Merge "powerstats: update sysfs path for AoC, GPU and PCIe" 2022-09-06 07:08:40 +00:00
Adam Shih
bac56c2be1 remove empty files
Bug: 243763292
Test: build pass
Change-Id: I4f143dfb06c2c3e7917cba2069a983881ef07ae4
2022-09-06 11:16:18 +08:00
Darren Hsu
dde4bdd7f9 powerstats: update sysfs path for AoC, GPU and PCIe
Bug: 244408938
Bug: 242243692
Bug: 244520099
Bug: 244540752
Bug: 244540747
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: Id781bc0514eb1b95f7d4d7c2c953cb810f0629c0
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-09-05 19:01:20 +08:00
Woody Lin
34db41727d Enable hanging-recovering features
These features were disabled to speed up bring-up process. The system is
stable now so they can be re-enabled.

Bug: 241050412
Change-Id: Idb4ab81dc9493c91b7d59d2093bab587a630f6ff
2022-09-05 17:22:23 +08:00
Jeffrey Carlyle
48422cd1ff dck: allow st54spi devivce to be accessed by recovery and fastbootd
This is needed so that Digital Car Keys can be cleared from the ST54
during a user data wipe.

Bug: 203234558
Test: data wipe in Android recovery mode on raven
Test: data wipe in Android recovery mode on c10
Test: data wipe in user mode fastbootd mode on raven
Test: data wipe in user mode fastbootd mode on c10
Signed-off-by: Jeffrey Carlyle <jcarlyle@google.com>
Change-Id: I5e1e8248ba188a68dd3c97795958e74e233701b9
2022-09-01 22:49:44 -07:00
Jaegeuk Kim
be913ec40e Enable HW encryption w/ Trusty
Bug: 214136017
Bug: 214135924
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: Id38edc06ad58de8eefee7619077ddd753d9804cb
2022-08-31 21:48:44 -07:00
Adam Shih
7949921501 Move dauntless settings to gs-common
Bug: 242479757
Test: build pass on all Gchip devices

Change-Id: Ib5ffd35f2e434f3f9c06e942d3569463efaffebd
2022-08-31 12:54:52 +08:00
Evgenii Stepanov
a9806c6050 Merge "Set arm64.memtag.bootctl_supported on non-fullmte products." 2022-08-30 20:02:01 +00:00