Commit graph

588 commits

Author SHA1 Message Date
Aaron Ding
94e9f747cd Enable PRODUCT_SET_DEBUGFS_RESTRICTIONS on userdebug builds am: f43da9a37c
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14467765

Change-Id: Ib65219b3fad006e06869092d30395e8cca10d7a8
2021-06-04 07:38:53 +00:00
Aaron Ding
0ae202eb9c do not mount the debugfs on userdebug builds am: ac86e4f713
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14419716

Change-Id: I1be5348da3a087183df14eea427f707a5d112ca8
2021-06-04 07:38:52 +00:00
Aaron Ding
49c8f94192 Enable PRODUCT_SET_DEBUGFS_RESTRICTIONS on userdebug builds
Bug: 186500818
Change-Id: Ic8534da52b093fc3278abd2f243a506d87196b1e
Signed-off-by: Aaron Ding <aaronding@google.com>
2021-06-04 04:01:50 +00:00
Aaron Ding
aa420345a9 do not mount the debugfs on userdebug builds
Bug: 186500818
Change-Id: Ic22af74fa850b1072c3dc781a3b49ae95a9156ba
Signed-off-by: Aaron Ding <aaronding@google.com>
2021-06-04 04:00:00 +00:00
Philip Cuadra
fb1e9bac6e Target arm v8.2a and A55 for GS101 am: 261aa24bad
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14824875

Change-Id: I044f469c3a9c48b3dc3dba4c97f342e42369b537
2021-06-03 22:32:17 +00:00
Philip Cuadra
0111d397d2 Target arm v8.2a and A55 for GS101
This will let bionic use 8.2a atomics which helps scudo locking.

Bug 189248298
Test: Presubmit

Change-Id: Ifa7a6d8386c8adcadb81cb762758b06a8164f700
2021-06-03 22:13:43 +00:00
Peter Liu
f3796d863a camera power hint: add extreme and low power hint am: 54fee28be2
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14803938

Change-Id: I63a3f2e785ae84b8706149f833749ed4354ca91e
2021-06-03 06:05:47 +00:00
Peter Liu
638ed8c296 camera power hint: add extreme and low power hint
Add two more mode for power hint fine tuning.
streaming extreme targets 240fps mode and streaming low targets photo
mode.

Test:
this change is no op, so we will do the test on corresponding lyric
change (ag/14804030).

Bug: 189886881

Signed-off-by: Peter Liu <pingchienliu@google.com>
Change-Id: Icd31501347108ccb5b0ec278a92bee89f543c192
2021-06-03 05:41:14 +00:00
wenchangliu
b0318db085 Move input surface to CCodec am: 4272b53d9b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14788706

Change-Id: I8a94f262f7e176686afeba551a0dcb17493e2c09
2021-06-03 02:13:11 +00:00
wenchangliu
a9a6612873 Move input surface to CCodec
Bug: 186447629
Test: atest CtsMediaTestCases -- \
--module-arg CtsMediaTestCases:size:small
Test: camera recording
Change-Id: I3aa79073f45d0d06a55abed08763d8c1ac45932a
2021-06-03 01:51:52 +00:00
George Lee
21b0ccde39 bcl: disable.bcl property to disable clk div am: a2edbb8e2a
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14805155

Change-Id: I4f2c6e5ce944486fb4a0002e3e8c30f7dcf4af82
2021-06-02 21:56:33 +00:00
George Lee
f41184fff0 bcl: disable.bcl property to disable clk div
Bug: 188365095
Test: Local Test
/sys/devices/virtual/pmic/mitigation/instruction # setprop vendor.disable.bcl.control 0
/sys/devices/virtual/pmic/mitigation/instruction # cat enable_mitigation
1
/sys/devices/virtual/pmic/mitigation/instruction # setprop vendor.disable.bcl.control 0
/sys/devices/virtual/pmic/mitigation/instruction # setprop vendor.disable.bcl.control 1
/sys/devices/virtual/pmic/mitigation/instruction # cat enable_mitigation
0
Signed-off-by: George Lee <geolee@google.com>
Change-Id: I326d2d8f1b694d1e5d2a5d663c8fa58e55d37d85
2021-06-02 21:38:37 +00:00
Ted Lin
883dc45cc3 gs101: dumpstate: Dump function without debugfs am: 2492fbf3b0
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14776177

Change-Id: Ic4c5bbda98adb6a75494ee1c542457ec9191bbaf
2021-06-02 03:39:52 +00:00
Ted Lin
0843fe0b0a gs101: dumpstate: Dump function without debugfs
*** command '/vendor/bin/sh -c cat /d/regmap/*-0057-pca9468-mains/registers' failed: exit code 1

Bug: 187030022
Test: Check bugreport
Change-Id: Iea4225efb87b9793d990c04d950938fe79f71e23
Signed-off-by: Ted Lin <tedlin@google.com>
2021-06-02 03:29:58 +00:00
Shinru Han
f68a33df7c gps: Add MCU crash dump in bugreport am: fd3d41ae0a
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14762970

Change-Id: I1c31072686c7dce7fec0bc5ed3660a1792eed757
2021-06-02 03:27:29 +00:00
Shinru Han
d8908905aa gps: Add MCU crash dump in bugreport
Bug: 189288775
Test: on device
Change-Id: I0d3d1fdb6410098779d5ff9ed5d8b9bc7a347764
2021-06-02 03:04:59 +00:00
Benjamin Schwartz
5580e0d219 powerstats: Remove Wifi and BT placeholder consumers am: 0ea359c7f5
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14188908

Change-Id: Id0fb4c7566a0b661e24b65a163108f0aae0a15a0
2021-06-02 01:44:13 +00:00
Benjamin Schwartz
a05a8c3854 powerstats: Remove Wifi and BT placeholder consumers
Bug: 185392117
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I4ee4837f882c2666e99c02836dd3c850871b420b
2021-06-01 17:17:03 -07:00
Stephane Lee
dacafe9ce6 Add Adaptive Charging AC pause buffer control am: c4d083dca5
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14671990

Change-Id: I77d7d3f6ace59b400609995f7f77731b1cd07550
2021-06-01 20:57:51 +00:00
Stephane Lee
0daa5cc618 Add Adaptive Charging AC pause buffer control
Bug: 188524940
Test: Ensure that there are no logcat errors from health_safety_margin
Change-Id: Ia67649fd6d2e4cc8b87b5fa9c21b15b07722efbe
2021-06-01 20:36:15 +00:00
Aaron Ding
7e4fd13ca6 disable DebugFS restrictions in factory builds am: 45b2093640
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14502956

Change-Id: I3aee044f3789d748bb9857727728682492709195
2021-06-01 06:31:43 +00:00
Aaron Ding
f87f8ed1b0 disable DebugFS restrictions in factory builds
Bug: 186500818
Change-Id: I313c462fc9e97eb76f8772bd0c7536e6dcf62a01
Signed-off-by: Aaron Ding <aaronding@google.com>
2021-06-01 04:24:06 +00:00
Cyan_Hsieh
7b6028e16a Set audio.camerasound.force for JP devices am: b6c4f766b7
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14716079

Change-Id: I2a404c96892f098c7105818d7ef0ca94f1937007
2021-05-31 03:07:01 +00:00
Kris Chen
576296ca50 udfps: Add goodix HIDL extension manifest for userdebug build am: 5b4044548c
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14731872

Change-Id: Ic563c2d32c2278016c594184330d5cd497c114d0
2021-05-31 03:06:52 +00:00
Cyan_Hsieh
7a7f31c030 Set audio.camerasound.force for JP devices
Test: set to JP sku and check No camera sound option
Bug: 188396079
Change-Id: Id6a89d53f796d2311b91955908ec72e88edbc371
2021-05-31 02:54:19 +00:00
Kris Chen
4de06908f9 udfps: Add goodix HIDL extension manifest for userdebug build
Bug: 189315086
Bug: 189227969
Test: Can use Goodix APK to enroll and authenticate.
Change-Id: If1061382d6bde43e2b45f5e91da238ac5e0ebfde
2021-05-31 02:41:36 +00:00
George Lee
1aaec10d31 health: fix soc path so enable proper throttling am: b15a996006
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14762154

Change-Id: I81893f264acf9055242b534d3e0a11b7fa95cb7a
2021-05-28 20:59:43 +00:00
George Lee
dada82957c health: fix soc path so enable proper throttling
Path was missing "/" thus thermal zone soc stays enabled regardless of
charging.

Bug: 188006020
Test: Local test to check soc's mode
Signed-off-by: George Lee <geolee@google.com>
Change-Id: I62ba233ddc05f2c8c0d3bcf4f97809f9c379a757
2021-05-28 19:38:51 +00:00
George Lee
ea9f70b056 thermal: add soc to thermal HAL monitoring am: ba6176f2b2
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14737124

Change-Id: Ic9524371bc3c4c1cc6c6637a6eb5c64ee1e06d0f
2021-05-28 16:31:51 +00:00
George Lee
1f5972077d thermal: add soc to thermal HAL monitoring
Bug: 188365095
Test: Local Test
/dev/thermal/tz-by-name/soc # ls -la
-rw-r--r--  1 system system 4096 2021-05-26 17:25 mode
-rw-r--r--  1 system system 4096 2021-05-26 17:25 trip_point_0_hyst
-rw-r--r--  1 system system 4096 2021-05-26 17:25 trip_point_0_temp
/dev/thermal/tz-by-name/soc # cat policy
user_space

Signed-off-by: George Lee <geolee@google.com>
Change-Id: I9f9cffb29ad025872d77dc2e41d893a2fb2d375a
2021-05-28 16:08:03 +00:00
Rick Yiu
43288889bc gs101: dumpstate: Dump vendor group value am: c8e72fb5c4
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14671623

Change-Id: Iea6b7038793ff53066ab83d6f2b9ab08e1b4ac19
2021-05-28 01:44:27 +00:00
Rick Yiu
c0f5a7b882 gs101: dumpstate: Dump vendor group value
Dump attributes and tasks for each vendor group.

Bug: 172112042
Test: dump successfully
Change-Id: I538a88391e4917749689b9ee1cfa00a8fe1049e5
2021-05-28 01:18:08 +00:00
Craig Dooley
a67bb08912 Move AoC debug utilities to PRODUCT_PACKAGES_DEBUG am: 6e71f4a6fd
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14727164

Change-Id: I8e952736bc89fdfe50f90948735edb1c107b035c
2021-05-27 22:15:05 +00:00
Craig Dooley
f706b02e51 Move AoC debug utilities to PRODUCT_PACKAGES_DEBUG
Bug: 185722771
Bug: 185725440
Bug: 185723000
Signed-off-by: Craig Dooley <dooleyc@google.com>
Change-Id: I726d173aaa64b279761f645c7822ded93e89d806
2021-05-27 21:43:50 +00:00
Benjamin Schwartz
0a1326f3ea powerstats: Add CAM, INTCAM, and TNR devfreq stats am: 0d3c683f38
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14442841

Change-Id: I69e8628940c0b2af4716dd6b1262cfc67a72f9ff
2021-05-27 18:22:17 +00:00
Benjamin Schwartz
630f471fcf powerstats: Add CAM, INTCAM, and TNR devfreq stats
Bug: 186581089
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I1c01971518769a2ea0e5d360ef99e07df735e0fb
2021-05-27 17:51:05 +00:00
Shinru Han
a234c45e20 gps: Add Rakuten cert am: 1489e09a6a
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14730576

Change-Id: I99ad5be7a46f309bc24f3ff9d2eb246c3030d47e
2021-05-27 12:42:53 +00:00
Shinru Han
4a629f3523 gps: Add Rakuten cert
Bug: 189296469
Test: print cert content by command: openssl crl2pkcs7 -nocrl -certfile gps.cer | openssl pkcs7 -print_certs -text -noout
Change-Id: I6279daa44074db35d71ab801b46de629af240aac
2021-05-27 12:12:25 +00:00
Albert Wang
ae433768b5 Modify attributes path for USB data on/off am: 836c31f812
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14730575

Change-Id: If2001ba809afcca1e44c01a335c9485eae622ab5
2021-05-27 04:11:18 +00:00
Albert Wang
891818811e Modify attributes path for USB data on/off
Bug: 180711938
Test: HAL loaded and accessed attributes normally
Signed-off-by: Albert Wang <albertccwang@google.com>
Change-Id: Ic0399cfe7022cc1971fc99870d955b9308512ca8
2021-05-27 03:32:39 +00:00
Rick Yiu
e32a8a8810 gs101: Set top-app prefer_high_cap for GCA am: 91649c7458
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14715575

Change-Id: Id13851dd6fd902e7be831720f7864cff80bbad54
2021-05-27 01:39:17 +00:00
Rick Yiu
a661b17e10 gs101: Set top-app prefer_high_cap for GCA
Some GCA features perform better when running in high capacity cpus.
It is set in CAMERA_STREAMING_STANDARD, so photo mode and video mode
of 30 fps will use this setting.

Bug: 188777413
Test: ta_prefer_high_cap set correctly
Change-Id: I2fd444635a352d1c6236fd82eb82e67ca1799c97
2021-05-27 01:16:56 +00:00
terrycrhuang
bd348a17bb Disable Early Cmaping feature am: 18b4a0ca3f
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14715561

Change-Id: I7e32034e9c6d79cda45c3d7b08c82e516e39f518
2021-05-26 09:40:12 +00:00
terrycrhuang
8b9b90e0c7 Disable Early Cmaping feature
In the feature, IA would be sent early. But it met the timing issue to
customize for TMO.
The carrier id is updated too late to set the TMO parameter correctly.
Disable the feature to unblock field test first.

Bug: 188973074
Test: Flash ROM and make sure the early camping feature is off
Change-Id: Ifd8021d4944db3437c6ff51ac417b427ce04c2a1
2021-05-26 04:02:22 +00:00
Ken Huang
c10a975ddd dumpstate: dump panel extra info am: 11959e7b63
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14617780

Change-Id: I5f94f22ba58caca4f37cd16aea78924627ca4dce
2021-05-25 11:50:56 +00:00
Ken Huang
b115af5590 dumpstate: dump panel extra info
Dump panel extra info to show display hw revision.

Bug: 189190103
Test: adb bugreport
Change-Id: I14121ff428d494b65c2a1741880b6fe7424d2d69
2021-05-25 10:12:37 +00:00
Edwin Tung
013ab66a80 gps: update gnss RF path loss and remove log for user build am: c20437c5ba
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14689774

Change-Id: I08e4ae17d391f975727ca8422dbd8dc81b51073c
2021-05-25 09:31:41 +00:00
Edwin Tung
9936fde322 gps: update gps driver 128.20.23.501503 am: 54a7f2d090
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14689773

Change-Id: I6aca926caa5dc960701938f6d6f41d4feda826cc
2021-05-25 09:31:38 +00:00
Edwin Tung
5bc5698b5a gps: update gnss RF path loss and remove log for user build
Bug: 188496801
Bug: 188760589
Bug: 183185249

Test: build pass
Change-Id: I564acc324c628c4311c87227d7127db941816a6f
2021-05-25 08:52:34 +00:00
Edwin Tung
1c01fa3785 gps: update gps driver 128.20.23.501503
Integrate chpp-20210325-f908420
Added SuplNiEnable (default true) to control SUPL NI
Added google LTO license key
Fixed SUPL PDU encoding error caused by structure alignment mistmatch between gpsd and gnss
Removed A-Glonass capability from ProvideCapapbilties while running LPP CP
Protection for nullptr access while receiving CAMPING_ON_LTE status from RIL
Reduced cellInfo waiting timeout from 1.3 to 1.1 sec
Add “basebandCn0” in onchip PVT
Do not stop warmstandby timers with PE2PE_WAIT_FOR_USER_TIMEOUT after receiving assist
Fix a bug to check whether there were any valid measurements which causs GPSD crash.
Added support for SatellitePVT
Keep the received acquisition assistances even after the E911 came in during the Breadcrumb req running
Add a validity check before stopping the CW combo mode test

Bug: 179616840
Bug: 187914357
Bug: 187760198
Bug: 187673164
Bug: 187011439
Bug: 187008705
Bug: 186731449
Bug: 186499722
Bug: 186490245
Bug: 186378531
Bug: 184906297
Bug: 181831996
Bug: 178148552

Sanity Test: 189009358
Test: build pass

Change-Id: Ief497c17b7d8a2e1aa232cd892d58adff689a911
2021-05-25 08:52:24 +00:00