Commit graph

11223 commits

Author SHA1 Message Date
TreeHugger Robot
421bee976b Merge "logger_app: Remove Pixelize rule" into sc-dev 2021-04-13 11:54:20 +00:00
chenpaul
589e1d8d89 wifi - Give execute permission to data/vendor/wifi for pixelLogger
In hostapd, there have hostapd.android.rc and make /data/vendor/wifi
with permission 770 when the device boots up.

It will overwrite the permission from slider specific rc,
which makes this folder without "+x" permission.

In order to make Pixel Logger can write config files in this folder.
This change will make sure "/data/vendor/wifi" have +x permission

Bug: 159650456
Test: wifi is workable
      data/vendor/wifi with 771 permission
Change-Id: I5b396fc41a4eddefc04d43f8e3d276787d722726
2021-04-13 11:54:19 +00:00
chenpaul
4bcdbf3244 Include pixel logger in common device.mk
Test: Pixel Logger is worlable
Bug: 159650456
Change-Id: Ib1b2145aa4e0292b91f64f2b2f5c97c3e979666a
2021-04-13 11:54:19 +00:00
TreeHugger Robot
f7c08818e6 Merge "Fix Android GPU Inspector (AGI) support" into sc-dev 2021-04-13 10:27:29 +00:00
SalmaxChang
674ed8943f hal_dumpstate_default: Fix avc error am: cbc7709c10
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14160604

Change-Id: I246ab92b5e9ab33312e78eca151fb8fa6aa80bb9
2021-04-13 08:50:47 +00:00
Adam Shih
e1800561ee make permissive setting compatible to boot image version am: 6d8d406b2d
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14160949

Change-Id: If2caa584fd0316da9b1814af1e5cc7d9e8b3ba86
2021-04-13 08:50:09 +00:00
SalmaxChang
cbc7709c10 hal_dumpstate_default: Fix avc error
avc: denied { set } for property=vendor.sys.modem.logging.enable pid=9743 uid=1000 gid=1000 scontext=u:r:hal_dumpstate_default:s0 tcontext=u:object_r:vendor_modem_prop:s0 tclass=property_service permissive=0

Bug: 185196642
Change-Id: I955271fa4d2d9bc2ef4b306068623f79f5b37c74
2021-04-13 07:43:29 +00:00
Adam Shih
e541cce49b change assigned bug
Bug: 182531832
Test: take bugreport and see no relevant log
Change-Id: I33911bf652c7d21eb2a153e6b6129162434be72f
2021-04-13 15:08:13 +08:00
KRIS CHEN
257a9b2464 Merge "Allow fingerprint hal to access dmabuf_system_heap_device" into sc-dev am: ef5cde63e6
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14112452

Change-Id: I9ee3f7401b214f0544049f6d5743c57566f42496
2021-04-13 06:53:39 +00:00
Adam Shih
77e7ed4983 Merge changes Ieac81e9d,I7c069770 into sc-dev am: a071425509
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14160597

Change-Id: Ib81459027e1949d2b1756e236b5d9ace46dc49e0
2021-04-13 06:53:10 +00:00
KRIS CHEN
ef5cde63e6 Merge "Allow fingerprint hal to access dmabuf_system_heap_device" into sc-dev 2021-04-13 06:22:13 +00:00
Kris Chen
c14f02da5d Allow fingerprint hal to access dmabuf_system_heap_device
Fixes the following avc denial:
android.hardwar: type=1400 audit(0.0:1207): avc: denied { read } for name="system" dev="tmpfs" ino=689 scontext=u:r:hal_fingerprint_default:s0 tcontext=u:object_r:dmabuf_system_heap_device:s0 tclass=chr_file permissive=0

Bug: 171791180
Bug: 184034094
Test: Enroll and authenticate fingerprints.
Change-Id: Ie86143ac2484d8909b1070829ff20cf02572f17d
2021-04-13 06:21:09 +00:00
Adam Shih
6d8d406b2d make permissive setting compatible to boot image version
Bug: 185196274
Test: boot to home with SELinux under permissive mode
Change-Id: I4b521dd765ccbff831cf17c1d9817266b37e6990
2021-04-13 06:05:44 +00:00
Adam Shih
a071425509 Merge changes Ieac81e9d,I7c069770 into sc-dev
* changes:
  dump hal_graphics_composer
  allow init to set readahead_size
2021-04-13 05:56:39 +00:00
Wei Wang
30b34c681a Enable adpf on P21 device am: 3c84c460ba
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/13951409

Change-Id: Ie825cf2c0e7ec9051abd6fa48e2a2d70e96ba668
2021-04-13 05:38:42 +00:00
Adam Shih
440e15e109 Merge "update error on ROM 7278058" into sc-dev am: c8d0ba4326
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14160592

Change-Id: Ia9b2876f6ed9044c83522fab28281acf7bbb8917
2021-04-13 05:17:36 +00:00
Jim Sun
0c1e46a6b3 Merge "gs101: fix grilservice context" into sc-dev am: 9e25f06368
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/13880430

Change-Id: I5397c2ad98abbc2b5939f8a4f61dacdd4f24d191
2021-04-13 05:17:20 +00:00
Adam Shih
c8d0ba4326 Merge "update error on ROM 7278058" into sc-dev 2021-04-13 05:10:03 +00:00
Wei Wang
3c84c460ba Enable adpf on P21 device
Bug: 177492680
Test: boot
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: I8a8cb061e4d99ee8c919584fc2a35e0ebcaadc38
2021-04-13 05:04:09 +00:00
Jim Sun
9e25f06368 Merge "gs101: fix grilservice context" into sc-dev 2021-04-13 04:31:21 +00:00
Adam Shih
7e071d6cb2 dump hal_graphics_composer
Bug: 179310854
Bug: 176868159
Bug: 177176812
Bug: 177389412
Bug: 177614642
Bug: 177778217
Bug: 177860841
Bug: 178752460
Bug: 179310909
Bug: 179437463
Bug: 180963481
Bug: 181177909
Bug: 174961421
Test: do bugreport with no relevant error logs
Change-Id: Ieac81e9d684044fbd649b4fec608f393627c34cb
2021-04-13 11:59:13 +08:00
Adam Shih
7e60d3a032 allow init to set readahead_size
Bug: 185186743
Test: boot with no error found during boot
Change-Id: I7c06977023a1125d0187b96103e94c355a9d17a2
2021-04-13 11:17:31 +08:00
Adam Shih
06cc3ee882 update error on ROM 7278058
Bug: 185186743
Test: pts-tradefed run pts -m PtsSELinuxTest
Change-Id: I40066584800e1a40fbd75dc2d97ee44f9e6dde89
2021-04-13 10:55:33 +08:00
Michael Wright
16dbd68327 Enable TEXT_HANDLE_MOVE am: a281288798
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14161614

Change-Id: I58699ecf95c8e7545245b1d539f3394190699473
2021-04-13 02:41:21 +00:00
SalmaxChang
6f1275582c logger_app: Grant to access new logger properties am: 2c1b29b494
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14140254

Change-Id: I7b4a9da5ba9d1ac3dc43469c11f360ca7e887d9d
2021-04-13 02:18:43 +00:00
Michael Wright
a281288798 Enable TEXT_HANDLE_MOVE
New devices are capable of subtle vibrations, so this experience should
be enabled.

Bug: 185134911
Test: manual
Change-Id: I20d251a82e734cd5cb98b086efdec6d2c555a898
2021-04-13 01:51:51 +00:00
J. Avila
50d62c93fc Explicitly set log_buf_len am: df9dc5cf76
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14162562

Change-Id: I1b1248eb11fc7f167d5d832ee04f21e7827ded3c
2021-04-12 22:39:06 +00:00
J. Avila
df9dc5cf76 Explicitly set log_buf_len
By setting the log_buf_len via cmdline, devices using this cmdline will
be able to guarantee their preferred buffer size even if the underlying
CONFIG_LOG_BUF_SHIFT changes.

Bug: 185141673
Change-Id: Iafe7561dceef65fc47cb0bb54a8f84a5e10c51a9
2021-04-12 22:00:50 +00:00
Jimmy Shiu
227d5f3c09 powerhint: Add Display refresh rate hint, DISPLAY_IDLE and DISPLAY_UPDATE_IMMINENT am: cfb1e3fdef
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/13782434

Change-Id: I75bcf7de56203028b1234716f53df94058ae4daf
2021-04-12 21:25:02 +00:00
Jimmy Shiu
cfb1e3fdef powerhint: Add Display refresh rate hint, DISPLAY_IDLE and DISPLAY_UPDATE_IMMINENT
Add display refresh rate changed hints:
REFRESH_120FPS
REFRESH_90FPS
REFRESH_60FPS

For DISPLAY_IDLE hint, set TAUClampBoost to 0.
Then for DISPLAY_UPDATE_IMMINENT and INTERACTION, set TAUClampBoost back to default.

Bug: 170648686
Bug: 170508822
Test: `watch -n 1 adb shell cat /dev/cpuctl/top-app/cpu.uclamp.min`
Change-Id: I18fd6d4257f8902ddbbdb3ed4a20b88d5cc43a2c
2021-04-12 20:42:06 +00:00
Sidath Senanayake
7c8d4d86e8 Fix Android GPU Inspector (AGI) support
In order for AGI to work, it needs to dlopen the libgpudataproducer.so
shared object.

Bug: 185127179
Bug: 175593589
Change-Id: I9ad9c587f10e0fd6e27c4743c1d4cb85c896c41d
2021-04-12 17:41:01 +01:00
Ted Lin
cd12670940 Allow to dump pps-dc
Bug:185041587
Test: adb bugreport
Change-Id: Ia4adcc335b05f5f7d06625c274842e6a9f5d2637
Signed-off-by: Ted Lin <tedlin@google.com>
2021-04-12 18:27:20 +08:00
Wiwit Rifa'i
7d1dfc15c8 Enable SurfaceFlinger Cache by default am: cfaf39f1de
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14031647

Change-Id: Ib19bf8d79b58a9bb15eaab65c6f9e9af592fe171
2021-04-12 07:16:41 +00:00
SalmaxChang
2c1b29b494 logger_app: Grant to access new logger properties
avc: denied { read } for comm="oid.pixellogger" name="u:object_r:vendor_ssrdump_prop:s0" dev="tmpfs" ino=308 scontext=u:r:logger_app:s0:c24,c257,c512,c768 tcontext=u:object_r:vendor_ssrdump_prop:s0 tclass=file permissive=1
avc: denied { set } for property=vendor.debug.ramdump.full pid=5081 uid=10280 gid=10280 scontext=u:r:logger_app:s0:c24,c257,c512,c768 tcontext=u:object_r:vendor_ramdump_prop:s0 tclass=property_service permissive=1
avc: denied { set } for property=persist.logd.logpersistd.count pid=5081 uid=10280 gid=10280 scontext=u:r:logger_app:s0:c24,c257,c512,c768 tcontext=u:object_r:logpersistd_logging_prop:s0 tclass=property_service permissive=1
avc: denied { set } for property=persist.vendor.ril.crash_handling_mode pid=5081 uid=10280 gid=10280 scontext=u:r:logger_app:s0:c24,c257,c512,c768 tcontext=u:object_r:vendor_rild_prop:s0 tclass=property_service permissive=1
avc: denied { set } for property=persist.logd.size pid=5081 uid=10280 gid=10280 scontext=u:r:logger_app:s0:c24,c257,c512,c768 tcontext=u:object_r:logd_prop:s0 tclass=property_service permissive=1

Bug: 178744858
Change-Id: I42629335e82565fbf305be242098870aef6ea317
2021-04-12 15:08:30 +08:00
Wiwit Rifa'i
cfaf39f1de Enable SurfaceFlinger Cache by default
Test: check SF Cache is enabled by default using perfetto trace
Bug: 172968540
Change-Id: I525b6db8d35207c1f2f8982d9fa64ed501592c6f
2021-04-12 06:41:44 +00:00
Taehwan Kim
f215945bd4 add media.c2.dmabuf.padding am: d8b25b96f8
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14141265

Change-Id: Ie6817688e1153b886221d40c8792ecceaa4a1a89
2021-04-12 05:04:28 +00:00
Taehwan Kim
d8b25b96f8 add media.c2.dmabuf.padding
Bug: 181380463
Test: ExoPlayer, YouTube playback OK. Recording OK.
Signed-off-by: Taehwan Kim <t_h.kim@samsung.com>
Change-Id: I7bc4d051d176252ae7758599ab11fce81c03487c
2021-04-12 04:49:09 +00:00
Jenny Ho
71c2768d03 dumpstate: add P7 dual battery fuel gauge path am: 0ecbb8aa26
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14119786

Change-Id: I55532c4ac8c67cffb000a2c0040861f95c949e4b
2021-04-12 04:39:23 +00:00
Jenny Ho
d906f1bf39 init.gs101.rc: set system ownership for P7 maxfg am: fa30b5b9ff
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14139965

Change-Id: I16925e92cfd7fe2d61707a01c8aca56ba34a6bde
2021-04-12 04:39:23 +00:00
Jenny Ho
2d617d57ef Merge "Fix avc denied for maxfg_base/flip and wireless dump" into sc-dev am: 3b6d7aeb94
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14139366

Change-Id: I6ecd5edf52d62b58fe8aeeed700f2501fe2ec0e7
2021-04-12 04:39:22 +00:00
Jenny Ho
3b6d7aeb94 Merge "Fix avc denied for maxfg_base/flip and wireless dump" into sc-dev 2021-04-12 04:05:09 +00:00
Jenny Ho
0ecbb8aa26 dumpstate: add P7 dual battery fuel gauge path
also add lugbuffer_rtx/wireless

Bug: 184780667
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: I91370b3cbb1c2d57bcfa37032b39e22d43bfc69c
2021-04-12 04:05:09 +00:00
Jenny Ho
fa30b5b9ff init.gs101.rc: set system ownership for P7 maxfg
Bug: 184780667
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: Ic1df561438aa197459f7b1bbd72bd1d905c156c8
2021-04-12 04:05:09 +00:00
Andy Chou
72aaa16452 Merge "Remove sepolicy of Wirecutter" into sc-dev am: deaf447bc6
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14136827

Change-Id: I3a6bfb4d8f39ca7e4319eb14fd234e2ab1bfa806
2021-04-12 02:27:42 +00:00
Erik Staats
7e5ceecdf6 Add policy for USF low latency transport gralloc usage. am: 1082e886c0
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14144079

Change-Id: I32cc4ea5c2f396ddb1b3b288d5531116bf185baf
2021-04-12 02:27:27 +00:00
Andy Chou
deaf447bc6 Merge "Remove sepolicy of Wirecutter" into sc-dev 2021-04-12 02:06:48 +00:00
Erik Staats
1082e886c0 Add policy for USF low latency transport gralloc usage.
Bug: 183233052
Test: Verified regular and direct report sampling on Raven with shared
 memory transport enabled.
Test: See details in testing done comment in
 https://googleplex-android-review.git.corp.google.com/14144079 .
Change-Id: Ia852a4a9ca6e8eacb0fb465884d17f95445a6822
2021-04-12 01:33:52 +00:00
Badhri Jagan Sridharan
299e33f83a gs101: recovery: Set sys.usb.controller for UDC configuration am: 9a80547bed
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14132554

Change-Id: Ib8646621f05434789ce818634b7e0d9ca6931776
2021-04-11 08:51:20 +00:00
Badhri Jagan Sridharan
9a80547bed gs101: recovery: Set sys.usb.controller for UDC configuration
Bug: 179935027
Signed-off-by: Badhri Jagan Sridharan <badhri@google.com>
Change-Id: I259ac52bc5f91d1de74cc94862440739c9726d48
2021-04-11 08:31:24 +00:00
Rick Yiu
1828d22166 gs101: Change LogFailures to string am: e8d7fb7f88
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14124690

Change-Id: Id55562c97c809ab59c6045ed466f2312f8c469c2
2021-04-10 04:56:33 +00:00