Commit graph

588 commits

Author SHA1 Message Date
Maciej Żenczykowski
d5e6f7beab support both rndis and ncm, but not rndis + ncm am: 49a13bff74
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15057012

Change-Id: I70616d47d2b41c1d8d1cf926d6a0bb7e5c872987
2021-06-22 04:51:26 +00:00
Maciej Żenczykowski
e0ccd8fe6d support both rndis and ncm, but not rndis + ncm
Bug: 172793258
Test: N/A
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I6ac656d5eec27fadf76391fc3318b9d29d253a89
2021-06-22 02:53:55 +00:00
Chris.CC Lee
39758bc260 [Gs101] Update pregrant permissions for Restore APK am: 2a9345c35c
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14972993

Change-Id: I0657338e7a79fbe42285b06565b51e8fcbd2d48a
2021-06-22 01:58:56 +00:00
Chris.CC Lee
00d640335c [Gs101] Update pregrant permissions for Restore APK
-. RECEIVE_SMS and READ_PHONE_NUMBERS permissions are no longer used.
-. Add the ACCESS_FINE_LOCATION permission for iOS WiFi D2D which was approved in b/188150877.

Bug: 188150877
Fix: 162937804
Test: Manual tested on Barbet.
Change-Id: I518275717ebd2b81bb888eaddc58222fe92b92c1
2021-06-22 01:37:45 +00:00
Daniel Mentz
d3f341b7d2 Add cl_dsp, input-cs40l26-i2c to kernel module blocklist file
The kernel modules cl_dsp and input-cs40l26-i2c are specific to some
devices. We don't want them to be loaded on other gs101 devices when we
run "modprobe -a".

Bug: 190652328
Change-Id: If5bd77dd9138177f0c66f64b7a273c177472a062
2021-06-21 23:32:39 +00:00
Shawn Willden
03b6bbda27 Revert^2 "Activate KeyMint" am: 0cdcb9aa18
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15053361

Change-Id: Ifffabd8196361fa42ea6ed322b78e2682e2cc558
2021-06-21 23:30:40 +00:00
Lokesh Gidra
9229cd6dd6 Use 6GB dalvik-heap config for WHI series phones am: a04605d473
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15052890

Change-Id: Id68fc8df04fc3e694c7ca504c586845575223190
2021-06-21 23:30:26 +00:00
Shawn Willden
ebf4d9934a Revert^2 "Activate KeyMint"
8f0cd15159b5a3f7d0ddb5cc78d2a364d1982244

Bug: 177729159
Test: VtsAidlKeyMintTargetTest & CtsKeystoreTestCases
Change-Id: I1f6f4c27562104ee650cc085e977ebd4fecdfdf2
2021-06-21 23:12:32 +00:00
Lokesh Gidra
42c5499945 Use 6GB dalvik-heap config for WHI series phones
Since all the WHI phones have 6GB+ RAM, we should be using at least a
6GB dalvik-heap config, as being done in pixel5 and older devices.

Test: build and boot
Bug: 189738006
Change-Id: I5a232d2901dec819b225812d023d2e5a43d3e0a6
2021-06-21 23:05:40 +00:00
Ioannis Ilkos
41cbd060e1 Revert "Activate KeyMint" am: 8f0cd15159
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15043825

Change-Id: I9dbe3f7a53b64f62ff87eb34b07ba22972235c72
2021-06-21 19:55:43 +00:00
Ioannis Ilkos
fb95660824 Revert "Activate KeyMint"
Revert submission 14947110-activate_keymint

Reason for revert: Likely b/191652216
Reverted Changes:
I6c5210356:Activate KeyMint
I784d39383:Activate KeyMint.

Bug: b/191652216
Change-Id: I5f6d69f7657180c09a6ec8e8afad09bbd63cdc32
2021-06-21 15:44:48 +00:00
Shawn Willden
766d335728 Activate KeyMint am: 1174c80fd3
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14947110

Change-Id: I5fa7b35b0fd2868da07b7a33a953af3e731f03ab
2021-06-21 13:14:49 +00:00
Shawn Willden
e1b88a2894 Activate KeyMint
This CL also removes wait_for_strongbox, which is broken because it
looks only for keymaster implementations, not keymint.  But it's also
unnecessary due to reorganization of the way keystore and vold start
up.

Bug: 177729159
Test: boot & VtsAidlKeyMintTargetTest
Change-Id: I6c5210356396b2079e036e94bb909f3a1a31e6c6
2021-06-21 12:51:58 +00:00
vincenttew
3adb87d7ff create audio folder to store calibration data am: 17a7f20619
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14440216

Change-Id: I4898c0916340dd26a2065337492f063136d48916
2021-06-21 12:15:27 +00:00
Alex Hong
f8406ea3dc Upgrade PRODUCT_SHIPPING_API_LEVEL to 31 (Android S) am: 8f1deae1d6
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14997391

Change-Id: I7add0ee8eeda63380ae97417edd73fb65f910a6d
2021-06-21 12:14:53 +00:00
Franklin He
0e490fbcd8 Add ML_ACC powerhint to gs101 am: d071109769
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14997393

Change-Id: I404e1254c891d5ae72d278788b910dff7400f740
2021-06-21 12:06:34 +00:00
Jimmy Shiu
d1ef906204 adpf: move the vendor.powerhal.adpf.rate to raviole am: 012abe59f4
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15017732

Change-Id: I10a0a072b47deaac59a7fc40b2d658449e44687c
2021-06-21 11:56:03 +00:00
vincenttew
4b566654f4 create audio folder to store calibration data
Test: build pass
Bug: 188503612
Signed-off-by: vincenttew <vincenttew@google.com>
Change-Id: I5b3bfbd854d62ea8eddea0017fd8654476ae8a20
2021-06-21 10:04:14 +00:00
Alex Hong
b7b25bb84a Upgrade PRODUCT_SHIPPING_API_LEVEL to 31 (Android S)
PRODUCT_SHIPPING_API_LEVEL: 31
Target FCM version: 5
Kernel FCM version: 6

TO-DO: Upgrade "Target FCM version" from 5 to 6
       "Target FCM version" must be 6 if PRODUCT_SHIPPING_API_LEVEL is 31.

Bug: 167997902
Bug: 186723740
Bug: 184801854
Bug: 186500818
Test: The device can boot to home.
      $ adb shell getprop ro.product.first_api_level
        [ro.product.first_api_level]: [31]
      $ adb shell ls /sys/kernel/debug
      $ adb root && adb shell getprop ro.product.debugfs_restrictions.enabled
Change-Id: I79a9d3835b9d3c508e647c1bbf53bd1c1465de05
Signed-off-by: Aaron Ding <aaronding@google.com>
2021-06-21 08:01:31 +00:00
Franklin He
8cd280099d Add ML_ACC powerhint to gs101
Add ML_ACC parameters agreed in ag/14877105 as a powerhint

Test: pushed powerhint.json to device, sent ML_ACC powerhint, observed a
change to /sys/kernel/vendor_sched/nnapi_uclamp_min
Bug: 191241561

Change-Id: Ic974cd0b3bbcb98532940520cfd2684d156b9330
2021-06-21 04:05:39 +00:00
Jimmy Shiu
f0280a99f4 adpf: move the vendor.powerhal.adpf.rate to raviole
The property should be based on device max refresh rate.
Move to raviole config files.

Bug: 177493042
Test: build
Change-Id: I34c42c87e92208e9f8140197e00f713aafaa63ba
2021-06-19 04:00:51 +00:00
Jack Wu
fa8bba4d3f add permission for wireless charge_stats access am: 6eda19cc34
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14731875

Change-Id: Id8820ec32ad5972eb3f3a2639161c11789a83ca4
2021-06-19 02:58:13 +00:00
Jack Wu
31d5416e15 add permission for wireless charge_stats access
Bug: 176195960
Test: no Permission denied while accessing the file node
Signed-off-by: Jack Wu <wjack@google.com>
Change-Id: Ia70c110de8bc1b6166c57e9c3df3d4f43f23a428
2021-06-19 00:33:13 +00:00
Daniel Mentz
cf36b3d9c2 Add pktgen.ko to kernel module blocklist file am: 493c321945
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15027507

Change-Id: Icec036fe0c62120a1969c2c29c7c66c2422a7f4d
2021-06-19 00:21:53 +00:00
Daniel Mentz
eaf85625c4 Add pktgen.ko to kernel module blocklist file
The Packet Generator module should not be loaded under normal
circumstances.

Bug: 190652328
Change-Id: Idfd65c9bb1f540e21ef1c51116ee6ca7d3a8eb46
2021-06-18 15:13:40 -07:00
yihsiangpeng
2c45f234a7 Add permission for WirelessCharger HAL am: 6f297d4707
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14731873

Change-Id: Ibf9fc4707ec0360ec6dca19af3e1e6c753c076ff
2021-06-18 17:14:14 +00:00
yihsiangpeng
eb215e398b Add permission for WirelessCharger HAL
Bug: 186797309
Signed-off-by: yihsiangpeng <yihsiangpeng@google.com>
Change-Id: I8cd9d8c7e7acb35149a73a8beba8bb4be5a7ce1e
2021-06-18 17:01:00 +00:00
Daniel Mentz
5cd9a33d20 Add a kernel module blocklist file am: 76a571236e
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14543091

Change-Id: I613331e779d2bf5607cd9dffcc6370e853152aa5
2021-06-18 15:57:26 +00:00
Daniel Mentz
24b12e2935 Add a kernel module blocklist file
Kernel modules on the blocklist are not automatically loaded during
second stage init. Modules are often put on the blocklist if we want
them to get loaded only under certain circumstances.

Bug: 190652328
Change-Id: Ib67463555f498f4dc85d5d175e0bf9e4150771dd
2021-06-18 15:41:21 +00:00
Adam Shih
3c679e5d0d organize confirmationui settings am: 62efe878ba
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15017735

Change-Id: Ieec700add5ed987e5e5fa9a46c6ffb3118f6f618
2021-06-18 06:57:36 +00:00
Adam Shih
56978d9961 organize confirmationui settings
Bug: 190331547
Bug: 190331370
Test: build ROM and make sure file and sepolicy is still there
Change-Id: Ifc2bcf1616d3ee2df3943f0f1b3523ce485b689c
2021-06-18 06:47:38 +00:00
Rick Yiu
47fc3c8b83 gs101: Modify nnapi uclamp settings am: e963005a1a
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14877105

Change-Id: Ie160a8bf20eed7b3e40af289dcbf349f2c091552
2021-06-18 06:21:42 +00:00
Ray Chi
e827088e39 usb: set sys.usb.mtp.batchcancel to true am: 365e8ab3c3
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14997390

Change-Id: Iaac058115f1358722054e80078afb8a791239fda
2021-06-18 06:21:33 +00:00
Rick Yiu
3ce37fb4f1 gs101: Modify nnapi uclamp settings
Chaning setting for better benchmark performance.

Bug: 189074148
Test: build pass
Change-Id: I3c33147ec88494ff5b709063d6568add0e17933a
2021-06-18 06:20:30 +00:00
Ray Chi
70e1cd7c84 usb: set sys.usb.mtp.batchcancel to true
The cancelling behavior in MTP has two behaviors.
1. cancel requests one by one
2. batch cancel all requests

This patch will set the property to true to enable
batch cancel all requests.

Bug: 181729410
Test: build pass
Change-Id: I8d92cc676ff7be8fd22a574b32653bafc028b801
2021-06-18 06:03:59 +00:00
Badhri Jagan Sridharan
3a2a4b69d2 dumpstate: dump logbuffer tcpm logs in bugreport am: 5ee988edb7
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15018442

Change-Id: I237e9f7aeef43559815f14cad92b3d64d519d48f
2021-06-18 03:55:10 +00:00
Badhri Jagan Sridharan
6e44d2ee0c dumpstate: dump logbuffer tcpm logs in bugreport
Bug: 189792358
Signed-off-by: Badhri Jagan Sridharan <badhri@google.com>
Change-Id: I64cf665985226c81ff23b32bda25c303d8031d5f
2021-06-17 16:19:38 -07:00
Wei Wang
d6b5c59cb5 Remove interaction boost completely am: ff2e2d13ff
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15004057

Change-Id: Icd4fee565ea30c44e6c178c4e3855c30b0574251
2021-06-17 08:08:11 +00:00
Wei Wang
a1a0bdb333 Remove interaction boost completely
Now HWUI app is using ADPF already, for those non-HWUI app (probably
mostly games), let us try to just use FPS based boosting only.

Bug: 177493042
Test: build
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: I63fe7ff6edcb57819461a8c0ed5f3f43c26e0137
2021-06-17 07:45:10 +00:00
Devika Krishnadas
389f7ae0c8 Increase maxFrameBufferAcquiredBuffers to 3 am: e7520f589d
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15003630

Change-Id: Ie060dc99a5e303d1794a7a50ffa633f6410ea6a4
2021-06-17 06:28:59 +00:00
Devika Krishnadas
e8b2e18eeb Increase maxFrameBufferAcquiredBuffers to 3
When display and SF falls out of sync, there is a possibility that while
display holds on to a buffer, a composed buffer could be waiting in the
decon thread. Since maxFrameBufferAcquiredBuffers is 2, GPU will have to
wait for display to swap out the buffer it is currently presenting to be
able to compose for the next frame, which leads to SF missing its
timeline for subsequent frames.

Bug: 190842189
Test: perfetto

Signed-off-by: Devika Krishnadas <kdevika@google.com>
Change-Id: I434e8644cff2538589c1c9b2bf731afae0aa8980
2021-06-17 06:14:37 +00:00
Daniel Mentz
abc948daf0 Read vendor_boot.modules.load and vendor_dlkm.modules.load am: 3af1857b0b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14513823

Change-Id: I1d0e869995135c7b4b4140d376bd695e454128a5
2021-06-17 04:24:08 +00:00
Daniel Mentz
6a6d8f81c2 Read vendor_boot.modules.load and vendor_dlkm.modules.load
Previously, we copied all available kernel modules into the vendor_boot
ramdisk except for approx. 14 modules that we explicitly excluded.

Going forward, the kernel build will distribute the two additional files
vendor_boot.modules.load and vendor_dlkm.modules.load which define,
respectively, the lists of modules that should be loaded from
vendor_boot and vendor_dlkm.

The contents of the two *.modules.load files will be copied almost
verbatim into modules.load files in the respective images except for the
fact that the directory names of the .ko files are stripped. So, for
example, kernel/net/core/pktgen.ko becomes just pktgen.ko.

Additionally, we only copy those .ko files into the vendor_boot image
that are listed in vendor_boot.modules.load. On the other hand, the
vendor_dlkm partition image will contain all .ko files regardless of
whether they are listed in vendor_dlkm.modules.load.

Bug: 190652328
Change-Id: Ibda5b9368547ad089575333e2566697ec0e8465f
2021-06-17 03:57:10 +00:00
Ted Lin
e5a99bf7fb Donot dump debugfs information in user build. am: cb541b07a6
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14972994

Change-Id: I74d37157851f7acca7f9d433259c09a10a3d3b04
2021-06-17 02:04:58 +00:00
Ted Lin
9404fbc128 Donot dump debugfs information in user build.
------ TCPM logs (/vendor/bin/sh -c cat /sys/kernel/debug/usb/tcpm*) ------
*** command '/vendor/bin/sh -c cat /sys/kernel/debug/usb/tcpm*' failed: exit code 1
------ gvotables (/vendor/bin/sh -c cat /sys/kernel/debug/gvotables/*/status) ------
*** command '/vendor/bin/sh -c cat /sys/kernel/debug/gvotables/*/status' failed: exit code 1

06-16 10:01:14.700  logd 14845 14845 W sh      : type=1400 audit(0.0:3294): avc: denied { read } for name="debug" dev="sysfs" ino=16052 scontext=u:r:hal_dumpstate_default:s0 tcontext=u:object_r:sysfs:s0 tclass=dir permissive=0

Bug:187030022
Test: check the bugreport
Change-Id: I0c5b946321410dc04026aef0f06be9c2ace457d3
Signed-off-by: Ted Lin <tedlin@google.com>
2021-06-17 01:43:20 +00:00
Wei Wang
faa142a467 Fix app launch boost override by ADPF am: 4f4c2a1b04
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15002194

Change-Id: I66a54b9fd23b634d680e129fb3a62693dc507b82
2021-06-16 22:59:05 +00:00
Wei Wang
9e92582df5 Fix app launch boost override by ADPF
Bug: 177493042
Bug: 170487162
Test: Build
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: Ifa6ec954396f05c1e98516f819b4e4e44e4a692d
2021-06-16 22:40:35 +00:00
David Anderson
87226c9332 Enable compressed snapshots/VABc. am: d101585ea8
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14947123

Change-Id: Ib81a351e4a6e198ef58947c7314fe73addac5273
2021-06-16 21:08:03 +00:00
Kelvin Zhang
d76457d435 Add a build time constant to disable VABC am: 455d871533
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14968799

Change-Id: I769a8a12fd994bbb8427b350f7ac47b5ef0366fa
2021-06-16 21:08:02 +00:00
David Anderson
2bfa6d3ba0 Enable compressed snapshots/VABc.
Bug: 185400304
Test: treehugger
Test: apply OTA
Change-Id: I1a2242b219f11212431a5a9207ec5a832e944c46
2021-06-16 20:48:14 +00:00