Commit graph

3189 commits

Author SHA1 Message Date
neoyu
4a6ea2d8c2 Support SecureElement HAL for HIDL
Bug: 267525940
Bug: 268172771
Test: manual
Change-Id: I4d2dd9af751773308b2bdea3bc6b9583961ef2a6
2023-02-09 04:39:10 +00:00
Ricky Niu
f14cbd6370 Add resetCb
Add the resetCb to complete asynchronous

Bug: 267252826
Test: Boot to home and function work
Change-Id: I9d6624cbe15c86c63e28f8f176d7c560aed8446f
2023-02-09 02:02:50 +00:00
Cody Northrop
c7e2a540af Revert "Reland "EGL: Configure multifile cache""
Revert submission 21292947-reland_blobcache_20230203

Reason for revert: Suspected cause of boot time regression

Reverted changes: /q/submissionid:21292947-reland_blobcache_20230203

Bug: b/266725576
Bug: b/268248090
Change-Id: I94eb344e0e39b033016b745afd99c8dbba367c25
2023-02-08 19:37:07 +00:00
Junyu Lai
4199455b69 [automerger skipped] Set config_networkAvoidBadWifi overlay on gs201 devices for Verizon am: b6ad359353 am: bc064dcc0a -s ours
am skip reason: Merged-In I46ec45354ae72a6a758aba2c2a31af92f1da4038 with SHA-1 cc270214ed is already in history

Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/21326480

Change-Id: I819c9115c4bbf67c952aafca947480979885da47
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-08 08:05:08 +00:00
Junyu Lai
2a64ef39e9 [automerger skipped] Set activelyPreferBadwifi config to 1 globally for gs201 devices am: 2a3281dc86 am: 40488798e5 -s ours
am skip reason: Merged-In I4b6fe4964e8fd5d61978f1433dcbbd9e9b10ffc3 with SHA-1 3357b8cf94 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/21326479

Change-Id: I4dff13b631fbe8c92702aa11dd3f52b251058561
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-08 08:04:42 +00:00
Junyu Lai
bc064dcc0a Set config_networkAvoidBadWifi overlay on gs201 devices for Verizon am: b6ad359353
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/21326480

Change-Id: I07ff8b00eda2e36629a5a027761d423506d58e73
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-08 07:24:20 +00:00
Junyu Lai
40488798e5 Set activelyPreferBadwifi config to 1 globally for gs201 devices am: 2a3281dc86
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/21326479

Change-Id: I1fe8a31974ec192d259cf0379d312fe45636f61f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-08 07:24:02 +00:00
Junyu Lai
b6ad359353 Set config_networkAvoidBadWifi overlay on gs201 devices for Verizon
Currently, config_networkAvoidBadWifi is customized in aosp
for only 2 Verizon mccmncs: 310-004 and 311-480.

However, from TAM feedback, there are few mccmncs
which are not customized yet. Explicitly add them for gs201 devices.

Test: manual
Bug: 267489867
Change-Id: I46ec45354ae72a6a758aba2c2a31af92f1da4038
Merged-In: I46ec45354ae72a6a758aba2c2a31af92f1da4038
(cherry picked from commit cc270214ed)
2023-02-08 03:08:43 +00:00
Junyu Lai
2a3281dc86 Set activelyPreferBadwifi config to 1 globally for gs201 devices
This flag will not take effect if the system is configured to
avoid bad wifis. Set it to 1 globally. Then it will sprint
into effect for all mcc/mncs where config_networkAvoidBadWifi is 0.

For carriers that don't need this behavior change but
config_networkAvoidBadWifi is 0, set activelyPreferBadwifi
to 0 for their mccmncs.

Test: manual
Bug: 267489867
Change-Id: I4b6fe4964e8fd5d61978f1433dcbbd9e9b10ffc3
Merged-In: I4b6fe4964e8fd5d61978f1433dcbbd9e9b10ffc3
(cherry picked from commit 3357b8cf94)
2023-02-08 03:07:37 +00:00
Junyu Lai
cc270214ed Set config_networkAvoidBadWifi overlay on gs201 devices for Verizon
Currently, config_networkAvoidBadWifi is customized in aosp
for only 2 Verizon mccmncs: 310-004 and 311-480.

However, from TAM feedback, there are few mccmncs
which are not customized yet. Explicitly add them for gs201 devices.

Test: manual
Bug: 267489867
Change-Id: I46ec45354ae72a6a758aba2c2a31af92f1da4038
2023-02-08 03:06:08 +00:00
Ricky Niu
5c7e338667 Fix up open bugs from gs201 AIDL migration
1. Remove unused group "wakelock".
2. Correct the right return value on setCurrentUsbFunctions.

Bug: 266694076
Test: Boot to home and function work
Change-Id: If0925a61e481e4deca560dc8dfc1be80a76c148f
2023-02-07 08:55:20 +00:00
Ziyi Cui
1737cfc63d gs201: Update path reading for temperature residency metrics
Bug: 260915419

Test: Verified the existence of atom

adb shell cmd stats print-stats | grep 105045

Change-Id: I9475be95b8223ee8fe62037e0e4898eedee6c5fe
Signed-off-by: Ziyi Cui <ziyic@google.com>
2023-02-07 02:05:39 +00:00
Cody Northrop
eef744a52c Reland "EGL: Configure multifile cache"
This reverts commit 4f38a9f165.

Previous CL was reverted due to selinux denials.

Test: pubg_mobile_launch ANGLE trace
Test: /data/nativetest64/EGL_test/EGL_test
Test: /data/nativetest64/libEGL_test/libEGL_test
Bug: b/266725576
Change-Id: I039d7d3f5bba64ac0cbeffe11ee0226b67c97f64
2023-02-06 23:59:03 +00:00
Owen Kim
e8e9eaed6c Add "vendor.android.hardware.camera.stream-usecase" feature am: d4d4e4a526 am: 8342060322
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/21267940

Change-Id: If028131697769a8680e0a534156bde1bb4a2bb13
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-06 22:19:16 +00:00
Owen Kim
8342060322 Add "vendor.android.hardware.camera.stream-usecase" feature am: d4d4e4a526
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/21267940

Change-Id: I1970527dbb2eb1626df5102c39e697ab81431fc0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-06 21:40:17 +00:00
Avichal Rakesh
25f66eacfb usb gadget: Add config for UVC in init
The UVC gadget requires some setup in configfs before it can be used by
the gadget HAL. This CL adds that setup to usb specific init.rc file.

Currently, UVC is setup to advertise mjpeg streams at 720p and 1080p at
60, 30, 24, and 15 fps each.

Bug: 242344221
Test: Manually tested that UVC is correctly set up on boot.
Change-Id: Id0536ded1035f371adb01ed50bbfbff47914cc6a
2023-02-06 21:20:59 +00:00
Avichal Rakesh
72dbe87c42 UsbGadget: Add support for UVC function
UVC is a new USB function supported in Android. This CL adds UVC as a
valid function and gives it a new pid of 0x4ee[de]. UVC function is
guarded by the property `ro.usb.uvc.enabled`. When this property is set
to false, UVC won't be considered as a valid gadget function.

Bug: 242344221
Test: Manually tested that the UVC function is successfully configured
Change-Id: I7ce1cc192c09b5f3cd7c73405fe54426a1311dfb
2023-02-06 21:20:59 +00:00
Ray Chi
5e2f81a254 [automerger skipped] [DO NOT MERGE] gs201: usb: provide extcon and gadget state to monitorffs am: bf79debcb2 am: eb86469ccc -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/20729654

Change-Id: I32e4e0febe35ab5ae1b2ac1df2a8a3097031439d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-04 05:06:52 +00:00
Ray Chi
eb86469ccc [DO NOT MERGE] gs201: usb: provide extcon and gadget state to monitorffs am: bf79debcb2
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/20729654

Change-Id: I434a8b99b91895aedd025c03aad6a46191ee3104
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-04 04:37:05 +00:00
Owen Kim
d4d4e4a526 Add "vendor.android.hardware.camera.stream-usecase" feature
Bug: 267637637
Test: adb dumpsys
Change-Id: I53b667349ea5faf7c8e0646492d181f742a9a464
2023-02-03 19:09:06 +00:00
Siarhei Vishniakou
4f38a9f165 Revert "EGL: Configure multifile cache"
Revert submission 21108066-blobcache_multifile_20230125

Reason for revert: b/267777424

Reverted changes: /q/submissionid:21108066-blobcache_multifile_20230125

Change-Id: I6b19045ab521800e9a3cb2262bb2778a415c9285
2023-02-03 18:52:32 +00:00
Ray Chi
bf79debcb2 [DO NOT MERGE] gs201: usb: provide extcon and gadget state to monitorffs
Monitorffs needs to check the state of usb extcon and gadget state
to pull up USB gadget. Therefore, this patch provide extcon and gadget
state to monitorffs.

Bug: 263435622
Test: verified pass
Change-Id: Iceaade6ed0060e4006405a29a81af3c5a1ab1b8b
2023-02-03 14:47:40 +00:00
Taylor Nelms
d33cced8b0 [automerger skipped] Modify dumpstate to point to counters in sysfs rather than debugfs am: 17c28ccd37 am: 6e8b7e810a -s ours
am skip reason: Merged-In I0026378d81f5de5ac48b658861a2d8a85c817820 with SHA-1 b8248d3ec4 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/21041859

Change-Id: I3e830d54bee7bcdff3fbdebc0e487bbf8833235e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-03 14:17:03 +00:00
Taylor Nelms
6e8b7e810a Modify dumpstate to point to counters in sysfs rather than debugfs am: 17c28ccd37
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/21041859

Change-Id: Ia8f89a27f699e086a0c0a9912ebcef029626bbc7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-03 13:47:32 +00:00
Taylor Nelms
17c28ccd37 Modify dumpstate to point to counters in sysfs rather than debugfs
Bug: 240346564
Test: Build for Cheetah device with user build,
check bugreport for decon_counters content
Merged-In: I0026378d81f5de5ac48b658861a2d8a85c817820
Change-Id: Ia20e1e985d3d83b58e4dce28d7537b49b545e243
Signed-off-by: Taylor Nelms <tknelms@google.com>
2023-02-03 13:18:02 +00:00
Jack Wu
942fe044ca init: add permission for charging_policy access am: c0cf226818 am: cd966979dd am: 8333686242
Original change: https://android-review.googlesource.com/c/device/google/gs201/+/2418919

Change-Id: I544ee3ca74947bdaf99fb8a82e4c4fd38ef4e124
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-03 09:27:09 +00:00
Jack Wu
8333686242 init: add permission for charging_policy access am: c0cf226818 am: cd966979dd
Original change: https://android-review.googlesource.com/c/device/google/gs201/+/2418919

Change-Id: I72d7f80ee9e5cbe9857f21e28b2a3cb4e2a80aee
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-03 08:58:29 +00:00
Junyu Lai
3357b8cf94 Set activelyPreferBadwifi config to 1 globally for gs201 devices
This flag will not take effect if the system is configured to
avoid bad wifis. Set it to 1 globally. Then it will sprint
into effect for all mcc/mncs where config_networkAvoidBadWifi is 0.

For carriers that don't need this behavior change but
config_networkAvoidBadWifi is 0, set activelyPreferBadwifi
to 0 for their mccmncs.

Test: manual
Bug: 267489867
Change-Id: I4b6fe4964e8fd5d61978f1433dcbbd9e9b10ffc3
2023-02-03 08:09:03 +00:00
Sajid Dalvi
aa48dbc78b [automerger skipped] dumpstate: Add logbuffer support for pcie driver [DO NOT MERGE] am: fd2a8ca06b am: aec4604122 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/21077873

Change-Id: I98e342cb426b844d118fa9d62d957743fe1b0e1b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-03 06:11:57 +00:00
Jack Wu
cd966979dd init: add permission for charging_policy access am: c0cf226818
Original change: https://android-review.googlesource.com/c/device/google/gs201/+/2418919

Change-Id: I4ed3c83a17116b843e6e1bfc13b1d76d4402ecba
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-03 05:43:32 +00:00
Sajid Dalvi
aec4604122 dumpstate: Add logbuffer support for pcie driver [DO NOT MERGE] am: fd2a8ca06b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/21077873

Change-Id: Ib67cfb16aaf28264f4c4b556e2960167369daae7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-03 05:41:29 +00:00
Cody Northrop
910f1e267e EGL: Configure multifile cache
This CL enables multifile EGL blobcache for GS201 devices
and sets a limit of 128MB.

Test: pubg_mobile_launch ANGLE trace
Test: /data/nativetest64/EGL_test/EGL_test
Test: /data/nativetest64/libEGL_test/libEGL_test
Bug: b/266725576
Change-Id: I1a0063fd5f7d5de7e64dcd00096a961f7ac922f4
2023-02-03 02:38:46 +00:00
Sajid Dalvi
fd2a8ca06b dumpstate: Add logbuffer support for pcie driver [DO NOT MERGE]
Add logbuffer support to pcie driver to reduce dmesg spam.

Bug: 267495494
Change-Id: Ic70dfd696d084c1ab7f55872b69ca86856720592
Signed-off-by: Sajid Dalvi <sdalvi@google.com>
2023-02-02 21:30:23 +00:00
Jack Wu
c0cf226818 init: add permission for charging_policy access
Bug: 251425963
Test: write charging_policy sysfs node successfully
Change-Id: I3f387cbd80aa9bdcb483d0c6435cb382a7a847c7
Signed-off-by: Jack Wu <wjack@google.com>
2023-02-02 19:57:30 +08:00
George Lee
d7bb8629f3 [automerger skipped] battery_mitigation: fix brownout reporting [DO NOT MERGE] am: e05f4413af am: ba48a449c1 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/21049747

Change-Id: Ifa9e1d269c5f207825a484ec3213f8928113239b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-01 17:40:17 +00:00
George Lee
ba48a449c1 battery_mitigation: fix brownout reporting [DO NOT MERGE] am: e05f4413af
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/21049747

Change-Id: Iafad5dd76a9279dedb2fccebe794f88bde797d8d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-01 17:02:02 +00:00
George Lee
e05f4413af battery_mitigation: fix brownout reporting [DO NOT MERGE]
Ensure ro.boot.bootreason equals sys.boot.reason before filing bugreport
for Brownout.

Bug: 263274350
Test: Local testing to confirm
Change-Id: Icc0009475891a5e09b772913dfb4a969d66cae87
Signed-off-by: George Lee <geolee@google.com>
(cherry picked from commit 4b3a85cac0206e70dddf7663aa771195c0026eea)
2023-02-01 16:08:42 +00:00
Doug Zobel
da0664cbc0 pixelstats: Configure PCIe link stats pathnames am: 471d17d1ae am: a269b503e5
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/21087424

Change-Id: If465f767c911a17ee6417f639c6cdf4158087fb9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-01 14:44:43 +00:00
Doug Zobel
a269b503e5 pixelstats: Configure PCIe link stats pathnames am: 471d17d1ae
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/21087424

Change-Id: I7b18affe0e1a60d7744d2311eb99f72d5908676c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-01 14:04:22 +00:00
Doug Zobel
471d17d1ae pixelstats: Configure PCIe link stats pathnames
Test: adb logcat "pixelstats-vendor:D *:S"
Bug: 264287533
Change-Id: If059347f847a857f66164926edfecd2a756f2339
Signed-off-by: Doug Zobel <zobel@google.com>
2023-02-01 13:30:23 +00:00
Jack Wu
c49d350dee dumpstate: add battery eeprom in bugreport am: e28746e3f1 am: a0c8de3597
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/21027679

Change-Id: Id7952997e7ec906fa5206f67335840660c11ba55
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-31 09:14:27 +00:00
Jack Wu
a0c8de3597 dumpstate: add battery eeprom in bugreport am: e28746e3f1
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/21027679

Change-Id: Ib1f9a08b6e14445852164f0a5d7bef8e7d6c7094
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-31 07:57:56 +00:00
Pat Tjin
184a771f76 Add OWNER for dumpstate
Change-Id: I38d96529b2e2d722a2364ba2daed546c8da01da9
2023-01-31 05:24:33 +00:00
Avichal Rakesh
9ba92eed60 Migrate IUsbGadget implementation to AIDL
This change migrates IUsbGadget implementation to AIDL.
Port of commit <d6d0b7d2ca5066988ee90889dccd00c06d64b694>.

Bug: 218791946
Test: USB function switch success and AIDL service is running.
Change-Id: I9613178d3cd2f9abd5396e4af763a257a8ef62a7
2023-01-26 20:18:09 +00:00
Doug Zobel
7e9ed22e6a pixelstats: Configure PCIe link stats pathnames
Test: adb logcat "pixelstats-vendor:D *:S"
Bug: 264287533
Change-Id: If059347f847a857f66164926edfecd2a756f2339
Signed-off-by: Doug Zobel <zobel@google.com>
2023-01-24 02:05:32 +00:00
Victor Barr
54b64fbf4d Support DBA HAL for gs201
Previously supported in only gs101. Now extend it to all common cases.

Bug: 263394888
Test: Built and ran DBA HAL on Android Device
Change-Id: I1e2160cf1547430872efd7973d1d6414d9d9f2f8
2023-01-19 21:52:28 +00:00
wenchangliu
09b4d0e5bb BoardConfig: add BOARD_SUPPORT_FLEXIBLE_P010 support
Bug: 229547170
Test: atest CtsMediaDecoderTestCases:ImageReaderDecoderTest
Test: atest CtsMediaV2TestCases
Change-Id: I8aa0219f0a1fb2438389457e2f9c7ed24a05ed1f
2023-01-18 15:30:08 +00:00
Jack Wu
e28746e3f1 dumpstate: add battery eeprom in bugreport
Bug: 265889611
Test: adb bugreport
Change-Id: I604834cdae4a3352db20301128d61059c71f0fb2
Signed-off-by: Jack Wu <wjack@google.com>
2023-01-18 08:17:23 +00:00
TeYuan Wang
7c340b054f thermal: remove thermal pid flag
Back port the latest PID algo to legacy devices, so we don't need to
have version control anymore.

Bug: 247536326
Test: lshal debug android.hardware.thermal@2.0::IThermal/default
Change-Id: Ie1e9967a052b4c75ee642cc16512bf94c50576d6
2023-01-18 00:13:55 +00:00
Kyle Zhang
a1b725f6fc Fix widevine device.mk not found in no vendor repo
Bug: 265342962
Test: git_master-without-vendor
Change-Id: Ic3525cddd01a72e8c7a005818cec581a2aa25975
2023-01-17 15:37:39 +00:00