Commit graph

11403 commits

Author SHA1 Message Date
Jimmy Shiu
e209e8fbe9 Enable SF main thread boost with uclamp.min=30
Bug: 190137562
Test: boot and check uclamp.min of SF
Change-Id: Ifd6ad8d67fb0a3ecd2464540b670839cea1e867b
2021-06-12 06:05:29 +00:00
Jayachandran C
5492a92a39 Allow telephony to access the file descriptor of the priv_apps tcp_socket
The priv_apps could register for QOS notifications for its tcp_socket.
This change allows telephony to access the file descriptor for the
tcp_socket so it could double check the source and destination address
of the socket when the QOS indication is received from modem.

This addresses the following SE policy denial
auditd  : type=1400 audit(0.0:219): avc: denied { read write } for
comm="ConnectivitySer" path="socket:[98511]" dev="sockfs" ino=98511
scontext=u:r:radio:s0 tcontext=u:r:priv_app:s0:c512,c768 tclass=tcp_socket
permissive=0

Bug: 190580419
Test: Manual
Change-Id: I35d4e1fb06242eb5fcbcb36439a55c11166b149b
2021-06-12 05:18:15 +00:00
Rick Yiu
ad47112c59 gs101-sepolicy: Fix avc denial for permissioncontroller_app
Bug: 190671898
Test: build pass
Change-Id: I3ccfe958892cd27ebbcacc651847d4277d39855b
2021-06-11 18:41:10 +08:00
Adam Shih
d0bb828434 remove vcd from user ROM
Bug: 190331325
Test: build all ROM variants with only user ROM without vcd
Change-Id: If9dc555ee8582b605ccdf9d60c3a9c89cd6634d8
2021-06-11 11:46:22 +08:00
David Anderson
04f47d6e24 Enable compressed snapshots/VABc.
Bug: 185400304
Test: treehugger
Test: apply OTA
Change-Id: I1a2242b219f11212431a5a9207ec5a832e944c46
2021-06-11 03:17:18 +00:00
Richard Hsu
8c979899cc [BugFix] SEPolicy for libedgetpu_darwinn2.so logging to stats service
In order to access the darwinn metrics library from the google camera
app (product partition), we need to create an SELinux exception for
the related shared library (in vendor) it uses. This CL adds the same_process_hal_file tag to allow this exception.

Bug: 190661153, 151063663

Test: App can load the .so and not crash after this change.
Before: No permission to access namespace.
(https://paste.googleplex.com/6602755121610752)
After: GCA doesn't crash on load.

Change-Id: I8671732184bbbe283c94d1acd3bb1ff397fe651c
2021-06-10 19:36:35 -07:00
Adam Shih
d00aafac75 remove obsolete entries
Bug: 190672147
Bug: 173969091
Bug: 171760921
Bug: 178331773
Bug: 178752616
Bug: 188752940
Bug: 184005231
Bug: 182086688
Bug: 177176899
Bug: 182953825
Bug: 176528557
Bug: 183935382
Test: boot and do bugreport with no relevant error showed up
Change-Id: I869db698e96d2d6cfd533b7fd24c8c88d39fd0eb
2021-06-11 10:35:59 +08:00
Denny cy Lee
25373353a7 Sepolicy: Remove permission for fuel gauge
Bug: 189811224
Test: manually, read success in enforcing mode
Change-Id: Ie56179980a9946010fb25683e3819cddbfb93cfb
Signed-off-by: Denny cy Lee <dennycylee@google.com>
2021-06-11 09:39:53 +08:00
Kyle Lin
d500b09560 init.gs101.rc: adjust memlat settings am: b70354c760 am: 26e1d08dd0 am: 9cc537a66d
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14762971

Change-Id: Ief555ad22c09f6988394a9975aa55c3ee4b2813e
2021-06-11 00:48:09 +00:00
Kyle Lin
e9b6c472f5 init.gs101.rc: adjust memlat settings am: b70354c760 am: 26e1d08dd0
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14762971

Change-Id: I8318c910ad7bf80c683a5d4644aaf0730bede057
2021-06-11 00:33:42 +00:00
Kyle Lin
2b58ea89da init.gs101.rc: adjust memlat settings am: b70354c760
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14762971

Change-Id: I6291fccfc7ab5af1f222d95f6279745b73e00b5d
2021-06-11 00:19:42 +00:00
Kyle Lin
dc29ed3477 init.gs101.rc: adjust memlat settings
Bug: 170479348
Test: build, boot and check the values
Change-Id: I4d2463dbb377074916ac1d5fe2f4b8880fa58da0
2021-06-11 00:06:23 +00:00
Kelvin Zhang
814a6688e2 Add a build time constant to disable VABC
Test: m
Bug: 185400304

Change-Id: I4ed5676f4a1195f084ed447196ee9e3ce71ec84a
2021-06-10 23:24:37 +00:00
Kris Chen
7db400b679 Add sepolicy to let fingerprint access power service
Fix the following avc denial:
SELinux : avc:  denied  { find } for pid=1055 uid=1000 name=android.hardware.power.IPower/default scontext=u:r:hal_fingerprint_default:s0 tcontext=u:object_r:hal_power_service:s0 tclass=service_manager permissive=0

Bug: 185893477
Test: Observe from systrace that the CPU frequency is boosted when
      running fingerprint algorithm.
Change-Id: I245058b912ec2af3555154934dbe722b445181a9
2021-06-10 21:31:06 +00:00
Peter Liu
e7cd588ac8 camera power hint: add prefer high cap and prefer idle = 0 to top app am: cf876e0113 am: aee6949c53 am: 7c098e4299
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14929975

Change-Id: I769925590705cbb951e880d64182f957377ba1b5
2021-06-10 20:42:19 +00:00
Peter Liu
862d726c92 camera power hint: add prefer high cap and prefer idle = 0 to top app am: cf876e0113 am: 254d9ef26b am: 56d9953c95
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14929975

Change-Id: I10f51e66dea676186304b574d55d1404f4680fcc
2021-06-10 20:42:03 +00:00
Peter Liu
b28e52f309 camera power hint: add prefer high cap and prefer idle = 0 to top app am: cf876e0113 am: aee6949c53
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14929975

Change-Id: I0d6829f76575cfd01c5ddf093406ca3ca5d64758
2021-06-10 20:31:24 +00:00
Peter Liu
6e946de0a7 camera power hint: add prefer high cap and prefer idle = 0 to top app am: cf876e0113 am: 254d9ef26b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14929975

Change-Id: I1d304a55eeae6d5497a7f59e2dec49a136d1119d
2021-06-10 20:26:34 +00:00
Peter Liu
265ee180f7 camera power hint: add prefer high cap and prefer idle = 0 to top app am: cf876e0113
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14929975

Change-Id: I8f04a19b412a72c08ebe5e6be4da357d0e981912
2021-06-10 20:05:11 +00:00
Peter Liu
2abc122f88 camera power hint: add prefer high cap and prefer idle = 0 to top app
Prefer high cap and prefer idle is to optimize power and
trade off with scheduling latency.
Applying to app side does has no regression on frame drops.
And we can not apply prefer idle to hal process as it impact performance.

Bug: 190127212

Test:
1080p60: 20mW power saving, 59fps no regression
slow-mo 240fps: 239+fps

Change-Id: I548becbd2d6ccac8b576cfe54f9021bbf30b4801
2021-06-10 19:40:32 +00:00
Sung-fang Tsai
985aa698c7 qllow priv-app to access Pixel power HAL extension.
SELinux issues to solve:

native  : aion.cc:780 Error loading lib_aion_buffer.so dlopen failed: library "pixel-power-ext-V1-ndk_platform.so" not found: needed by /vendor/lib64/lib_aion_buffer.so in namespace sphal

05-23 10:11:32.055   420   420 E SELinux : avc:  denied  { find } for pid=6630 uid=10089 name=android.hardware.power.IPower/default scontext=u:r:priv_app:s0:c512,c768 tcontext=u:object_r:hal_power_service:s0 tclass=service_manager permissive=0

Bug: 187373665
Test: Passed, procedure listed in b/187373665#comment8 with forrest.
Change-Id: Ice7c69bca4a029a61ca1ccb7087ea01948ae5f24
2021-06-10 17:56:17 +00:00
SHUCHI LILU
f9e7e10fec Merge "Update avc error on ROM 7444346" into sc-dev am: 61843906c0 am: 7d1fa8b9ce am: 4e81985347
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14928573

Change-Id: I4ef2e8abfbc7b3e0eb42b66599584249497fc6bf
2021-06-10 11:50:27 +00:00
SHUCHI LILU
cdbd079b96 Merge "Update avc error on ROM 7444346" into sc-dev am: 61843906c0 am: f2bc0d7bd7 am: b7394346cd
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14928573

Change-Id: Iebe2bd2b8902ac035babe572b31c927477429ac5
2021-06-10 11:50:20 +00:00
SHUCHI LILU
4e81985347 Merge "Update avc error on ROM 7444346" into sc-dev am: 61843906c0 am: 7d1fa8b9ce
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14928573

Change-Id: I2f7a9744c830156ce4b1ff8c9ad7c3c68e6d953e
2021-06-10 11:34:14 +00:00
SHUCHI LILU
b7394346cd Merge "Update avc error on ROM 7444346" into sc-dev am: 61843906c0 am: f2bc0d7bd7
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14928573

Change-Id: I7eca5fe2191e8b5b127d4efdc5594fb1eb53320a
2021-06-10 11:33:23 +00:00
SHUCHI LILU
f2bc0d7bd7 Merge "Update avc error on ROM 7444346" into sc-dev am: 61843906c0
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14928573

Change-Id: I4ea6afe2de9a03eca793775f14ea24b8678931cf
2021-06-10 11:22:24 +00:00
SHUCHI LILU
7d1fa8b9ce Merge "Update avc error on ROM 7444346" into sc-dev am: 61843906c0
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14928573

Change-Id: I4cfc4f0fb97b796a3a118859ac30399ab15a2446
2021-06-10 11:21:07 +00:00
SHUCHI LILU
61843906c0 Merge "Update avc error on ROM 7444346" into sc-dev 2021-06-10 11:06:35 +00:00
Taehwan Kim
a9791b8f85 firmware: update MFC F/W(21/05/31) am: 8c8bf850f2 am: 5a82849303 am: 282766d061
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14868629

Change-Id: Iefbf09e911e74734267a7d96f0f8ee0d0f38ec89
2021-06-10 11:05:38 +00:00
Yu(Swim) Chih Ren
42f73dc65e Remove clock boost configuration for MIF,TNR,CAMINT when CAMERA_LAUNCH in powerhint.json am: 51883e751e am: 5e5c326208 am: 6099616600
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14930014

Change-Id: I60ffe2ae62b454ecae4983416a3d6d8e7143722e
2021-06-10 11:05:28 +00:00
Taehwan Kim
902d8d5c80 firmware: update MFC F/W(21/05/31) am: 8c8bf850f2 am: 5a82849303
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14868629

Change-Id: I65b4c606d588f5999f09ac0a8dfa120f9264c893
2021-06-10 10:47:24 +00:00
Yu(Swim) Chih Ren
d89b255536 Remove clock boost configuration for MIF,TNR,CAMINT when CAMERA_LAUNCH in powerhint.json am: 51883e751e am: 5e5c326208
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14930014

Change-Id: Ie3183652db70746075deabb663b618ec5781ac01
2021-06-10 10:47:19 +00:00
Taehwan Kim
4519625770 firmware: update MFC F/W(21/05/31) am: 8c8bf850f2
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14868629

Change-Id: I7052fd27c562c480fb7eef11d66be25078e953f4
2021-06-10 10:33:02 +00:00
Yu(Swim) Chih Ren
b324693b5a Remove clock boost configuration for MIF,TNR,CAMINT when CAMERA_LAUNCH in powerhint.json am: 51883e751e
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14930014

Change-Id: I18e87072d333cbf61dd3c10c42f6e10d8b15dca9
2021-06-10 10:32:58 +00:00
Taehwan Kim
2599bb6d29 firmware: update MFC F/W(21/05/31)
- Modified HEVC decoder error handling which
    copy the nearest reference frame to current frame when error is detected.
- Implemented so that SBWC can be off/on during decoding when SBWC is enabled.
- Fix the max I frame size calculation bug when RC mode is CBR_VT. (RC_MODE = 3)
- Modified so that H.264/HEVC decoder can consumed AUD NAL type stream
    when AUD is added at the end of frame.

Bug: 176415285
Signed-off-by: Taehwan Kim <t_h.kim@samsung.com>
Change-Id: I6ceb2cdc2544a40dc505772fb50b5bd1ccd720bd
2021-06-10 10:18:18 +00:00
eddielan
e80b38ec06 gs101: Use findstring to filter factory build target am: b70217e433 am: cb2548617b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14930016

Change-Id: I7cd923032f9f4b0cb3fab285e345954f6eeb05c0
2021-06-10 09:50:28 +00:00
eddielan
1d0cc0e477 gs101: Use findstring to filter factory build target am: b70217e433
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14930016

Change-Id: I061455a751475651c544e61aee90d3643bea5d68
2021-06-10 09:30:54 +00:00
Yu(Swim) Chih Ren
acfa6b834f Remove clock boost configuration for MIF,TNR,CAMINT when CAMERA_LAUNCH in powerhint.json
Reason for remove: face enroll fail

Bug: 168654554
Bug: 187759712

Test: check ISP clock freq no change on local device
Change-Id: I7d70c1fdd7e5d067db1941cced69a375b66ebc89
2021-06-10 09:28:08 +00:00
eddielan
0964f14595 gs101: Use findstring to filter factory build target
Bug: 190687357
Test: Build pass
Change-Id: I0f1fdde9ca01f8f06dcf026d47a98785cf35df57
2021-06-10 09:18:39 +00:00
TreeHugger Robot
0a3828333f Merge "gs101-sepolicy: Fix avc denial for sysfs_vendor_sched" into sc-dev am: a501b656dd am: fadd9f9dd2 am: 891656c7a7
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14911637

Change-Id: Ic61dc65ea25f13648edfa9e6d8e0b3d638ef3f6e
2021-06-10 08:12:21 +00:00
TreeHugger Robot
1afe6a4ec1 Merge "gs101-sepolicy: Fix avc denial for sysfs_vendor_sched" into sc-dev am: a501b656dd am: e7d53d61b0 am: a086a78e86
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14911637

Change-Id: I4159a90f2ca49abe353ab3daf7628cb386642aa0
2021-06-10 08:12:07 +00:00
TreeHugger Robot
891656c7a7 Merge "gs101-sepolicy: Fix avc denial for sysfs_vendor_sched" into sc-dev am: a501b656dd am: fadd9f9dd2
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14911637

Change-Id: If051249b25d3fd5dc96492a66dd274dc7c0e8446
2021-06-10 07:57:13 +00:00
TreeHugger Robot
a086a78e86 Merge "gs101-sepolicy: Fix avc denial for sysfs_vendor_sched" into sc-dev am: a501b656dd am: e7d53d61b0
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14911637

Change-Id: Ie9be7a6977b11a8f8e8330fe7f59404b01779e0f
2021-06-10 07:56:32 +00:00
TreeHugger Robot
e7d53d61b0 Merge "gs101-sepolicy: Fix avc denial for sysfs_vendor_sched" into sc-dev am: a501b656dd
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14911637

Change-Id: I64965eae7d9d39ed1495bb87b51358a55c894301
2021-06-10 07:39:05 +00:00
TreeHugger Robot
fadd9f9dd2 Merge "gs101-sepolicy: Fix avc denial for sysfs_vendor_sched" into sc-dev am: a501b656dd
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14911637

Change-Id: I65292901788f5e98123e550dc676be9b66f958b3
2021-06-10 07:37:41 +00:00
TreeHugger Robot
a501b656dd Merge "gs101-sepolicy: Fix avc denial for sysfs_vendor_sched" into sc-dev 2021-06-10 07:20:58 +00:00
sukiliu
d27e574f3e Update avc error on ROM 7444346
Bug: 190672147
Bug: 190671898
Test: Test: PtsSELinuxTestCases
Change-Id: Ie9400df24f30474915d757b61ddb1c3fb77903c5
2021-06-10 15:16:37 +08:00
Adam Shih
80c0cb9b27 Merge "reorganize trusty_metricsd settings" into sc-dev am: a81732dd6f am: 70121504b6 am: c36fe574f4
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14911639

Change-Id: I8fada5f930c907708fee2fc19435b832f8fd8d2c
2021-06-10 06:41:04 +00:00
Adam Shih
14b92cbe5b reorganize trusty_metricsd settings am: 187a532e2a am: ed80d1279e am: 2a598d1526
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14909767

Change-Id: I8ed00b26c6894aba7b75951e5f5a353d42678dde
2021-06-10 06:40:51 +00:00
Adam Shih
c09a0da122 Merge "reorganize trusty_metricsd settings" into sc-dev am: a81732dd6f am: 922b7f6057 am: c7a6a9f592
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14911639

Change-Id: Ic22fe011000dc4804b7764d22c0be3ed8810aede
2021-06-10 06:40:51 +00:00