Commit graph

5831 commits

Author SHA1 Message Date
Wilson Sung
230a835001 Set SOC manufacturer and chipset properties
Bug: 158284209
Bug: 180589452
Bug: 185307628
Bug: 181831540
Change-Id: I26d4b3767d336321bd562a8d5a289ce864536f5e
2021-04-16 13:05:57 +00:00
Jack Wu
9fbe6269e8 battery: disable wireless for pts battery test am: 7f6e0eee36
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14197325

Change-Id: I1e9d9a5bdd752f22182414a1141fbdea7c2ae4f2
2021-04-16 10:48:46 +00:00
Jack Wu
7f6e0eee36 battery: disable wireless for pts battery test
Disable wireless charging during drain, usb charging,
and charger stress test
  - vendor.disable.wlc 1
If a device was put on dreamliner and shut dwon(drain out),
it powered up by DC_CHG and then shut down(0%) again - boot
(by DC_CHG) continuously. To avoid this symptom, limit wireless
current_max as 75000 after devices boot up
  - persist.vendor.limit.wlc.current=1

How to verify:
  adb shell setprop vendor.disable.wlc 1
  adb shell cat /sys/class/power_supply/wireless/online >>>> 0

  adb shell setprop persist.vendor.limit.wlc.current 1
  adb shell cat /sys/class/power_supply/dc/current_max >>>> 75000

Bug: 179094447
Test: set the property manually and query the result from file node.
Change-Id: Ic5791c53f735caa19c73bae750651d774c0d4615
Signed-off-by: Ken Tsou <kentsou@google.com>
(synced from commit 84d73dafb7e44bd195adcc4cbb16bad28728aedc)
2021-04-16 10:23:18 +00:00
Jesse Hall
4d9b5f3c49 device.mk: install vulkan.gs101 unconditionally am: 80f0a6d3d0
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14205715

Change-Id: I201f6f903919e698445b6946d7448b7d73cd5f5b
2021-04-16 08:59:34 +00:00
Jesse Hall
80f0a6d3d0 device.mk: install vulkan.gs101 unconditionally
We now have a prebuilt for this, so no longer need to disable it when
source isn't available.

Bug: 185066245
Test: build aosp_slider-userdebug w/o vendor/arm/mali/valhall, boot to home
Change-Id: If366112383743bd23798b8e0a4b305742ad415c8
2021-04-16 08:45:36 +00:00
Ruofei Ma
f861b23782 Publish performance points for AV1 codec am: ccd044049a
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14202340

Change-Id: I5b07889ace1f68be1b3a0097a5d15ee7e34304ac
2021-04-16 06:31:02 +00:00
Ruofei Ma
ccd044049a Publish performance points for AV1 codec
Publish performance points and fix capabilities.

BUG: 184694421

Signed-off-by: Ruofei Ma <ruofeim@google.com>
Change-Id: I9ca128c0055249967035bf0052a857a043939b43
2021-04-16 06:06:30 +00:00
Max Shi
a99bbc9717 Configure permission for AOC reset sysfs node. am: fc630f27e0
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14167340

Change-Id: I699949d8fd8de5a80df4c21d4acd8992f74e36f3
2021-04-16 00:54:22 +00:00
Benjamin Schwartz
efc6aba522 powerstats: Add INT state residency stats am: 6899dcc219
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14200378

Change-Id: I340803d244085711930f81cf6c9b22474985d791
2021-04-16 00:53:13 +00:00
Max Shi
fc630f27e0 Configure permission for AOC reset sysfs node.
Bug: 184858369
Test: Verify system process can write to the node.
Change-Id: Ibe4fb8e773995d8f4ba0e68b71c127ae2bc4ddc0
2021-04-16 00:49:48 +00:00
Benjamin Schwartz
6899dcc219 powerstats: Add INT state residency stats
Bug: 168833648
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: Iecfb2ec05566a0d432a39904adddd442751c44e6
2021-04-16 00:21:30 +00:00
Adam Shih
96757470a4 remove factory files from user ROM am: e5a49a9ae3
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14185477

Change-Id: I0d6be8f5b2d1ffd349d05a7aacb0648d006ed004
2021-04-16 00:00:27 +00:00
Adam Shih
e5a49a9ae3 remove factory files from user ROM
Bug: 168013500
Test: user ROM no longer contains factory files while factory ROM has
them.

Change-Id: I084a0767f1f55e11c8f21560ebfd115e0e52b79d
2021-04-15 23:14:49 +00:00
Ted Lin
d87b67ddd6 ueventd.rc: set system ownership for direct charging am: 41a0f99d0c
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14159232

Change-Id: I57696aac64cbe33b5db14537137d7d7d333c2ca6
2021-04-15 11:16:01 +00:00
Ted Lin
41a0f99d0c ueventd.rc: set system ownership for direct charging
Bug:185041587
Test: ls -al /dev/log*
Change-Id: I02c635c424b37e9e9767d508397fc9c5673925e2
Signed-off-by: Ted Lin <tedlin@google.com>
2021-04-15 10:26:57 +00:00
Benjamin Schwartz
93ca4737a6 powerstats: Add GPS state residency am: 3cc937165b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14106467

Change-Id: I76e52507e36936de5edd2f47570223a0e18e7e19
2021-04-15 05:21:05 +00:00
Benjamin Schwartz
3cc937165b powerstats: Add GPS state residency
Bug: 181577366
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I0fa4356542a838618e712e9b0abbf02b99db7f3a
2021-04-15 05:08:16 +00:00
Jasmine Cha
5a8e595a9f audio: switch audio HAL to V7 am: 5b50e7384a
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/13945526

Change-Id: Ie651f42eea7bee0c377a8f74337168a95bf9b445
2021-04-15 01:44:41 +00:00
Jasmine Cha
5b50e7384a audio: switch audio HAL to V7
bug: 180878031
Test: atest VtsHalAudioV6_0TargetTest
      atest VtsHalAudioV7_0TargetTest
      atest VtsHalAudioEffectV6_0TargetTest
      atest VtsHalAudioEffectV7_0TargetTest
      atest VtsHalAudioPolicyV1_0TargetTest
      manual audio test - playback/record/voice call

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: I9dbf808307f2de77eb47fbc0eabfa4d03464b36e
2021-04-15 01:02:19 +00:00
Quang Luong
82aaf50805 Add default lookup table for wifi coex am: 59291d3c60
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14172983

Change-Id: I1006f9e9d6a7d343259d145b7d55ceee488299e1
2021-04-14 22:28:12 +00:00
Quang Luong
59291d3c60 Add default lookup table for wifi coex
Bug: 184089520
Test: verify coex table was succesfully read in logs
Change-Id: I65e232307cf9527e3ecdc4b367f8277196025d36
2021-04-14 21:46:03 +00:00
Benjamin Schwartz
b029f448d4 powerstats: Add PD on stats am: 2219a99232
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14177048

Change-Id: I7d523bad8fa8d46f47ea52bcacf9d957d971794b
2021-04-14 19:31:06 +00:00
Benjamin Schwartz
801b3c3634 powerstats: Correct DVFS operating points am: d9e7656d60
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14176945

Change-Id: Ibc760814bb69a7cbb2631697e730d47dc34dca77
2021-04-14 19:30:48 +00:00
Benjamin Schwartz
2219a99232 powerstats: Add PD on stats
Bug: 176452458
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I871e93c5e46d0c88bd8a07eec8a38c8d1cf81d9a
2021-04-14 18:57:35 +00:00
Benjamin Schwartz
d9e7656d60 powerstats: Correct DVFS operating points
Bug: 180261952
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I472a74218934ee6f9fae82fe36ddb924bfcd70ee
2021-04-14 18:57:32 +00:00
Jenny Ho
37c4a04174 dumpstate: update dump eeprom path am: 3d46be281d
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14160953

Change-Id: I558f71cf5083c3a3d1c646107c08722aeb02d65e
2021-04-14 08:36:48 +00:00
Jenny Ho
3d46be281d dumpstate: update dump eeprom path
avoid using * for sysfs permission

Bug: 182531832
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: I8346bc09e82811a9006aae6d1b2d83d31a7e0a62
2021-04-14 07:45:01 +00:00
Taehwan Kim
d165551525 update media_codecs_aosp_c2.xml am: a27563b2f4
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14160950

Change-Id: I60ebec6baa0c736a53e0c41950fb11511d1bcffd
2021-04-14 05:44:51 +00:00
Taehwan Kim
a27563b2f4 update media_codecs_aosp_c2.xml
Bug: 184144529
Test: Video call in Snapchat app
Signed-off-by: Taehwan Kim <t_h.kim@samsung.com>
Change-Id: Ib7ab4d3ed4cd9aa49633612ade2b333eff6b99bb
2021-04-14 04:53:00 +00:00
Dmitri Plotnikov
be40f0bb86 Implement triggers on the power.battery_input.suspended property am: 546f53ca1a
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14160384

Change-Id: I4525c3fe5c3532e62aedb9368a7cf6c91ec1b17b
2021-04-13 21:07:11 +00:00
Dmitri Plotnikov
546f53ca1a Implement triggers on the power.battery_input.suspended property
See analogous CLs for coral: ag/12464994; redbull: ag/12990696

Bug: 167636754

Test: adb shell setprop power.battery_input.suspended true to disable charging
Test: adb shell setprop power.battery_input.suspended false to reenable charging
Change-Id: Ie413251451683de7c22b44c6c86a2a8590998b7b
2021-04-13 19:36:29 +00:00
Jaegeuk Kim
3b8b7ad442 Dumpstate: f2fs: remove verbose segment_info am: a245dd7d5c
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14143521

Change-Id: Iafa99f8b9a063aae0f467c112ef04c86734f7672
2021-04-13 17:12:01 +00:00
Jaegeuk Kim
a245dd7d5c Dumpstate: f2fs: remove verbose segment_info
Let's remove segment_info which seems not useful.

Bug: 184964835
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: Ib9826f536681d9f36f9d55dab3801a05c47f27a4
2021-04-13 16:33:47 +00:00
Jakub Pawlowski
18df7720d5 gs101: use bluetooth.audio@2.1 am: 4e22787a38
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14161624

Change-Id: Ia0c1ffc2c8ff4c30514dfed5a8851b31ee807aa7
2021-04-13 15:00:12 +00:00
Jakub Pawlowski
4e22787a38 gs101: use bluetooth.audio@2.1
bluetooth.audio@2.1 adds new functionalities required for Bluetooth LE
Audio development

Bug: 150670922
Change-Id: Iac2ece0c029a38fef82e81f5ba3ba491163818ef
2021-04-13 14:10:15 +00:00
chenpaul
0d5e4b3ef6 wifi - Give execute permission to data/vendor/wifi for pixelLogger am: 589e1d8d89
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/13782444

Change-Id: I727782f2d9996b1d3810ba4cd72251be4ddabfc6
2021-04-13 12:37:15 +00:00
chenpaul
e413a3e890 Include pixel logger in common device.mk am: 4bcdbf3244
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/13782443

Change-Id: I68ca388ddfaeaae65771ecd2e54b39287844d0c2
2021-04-13 12:37:12 +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
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
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
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
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
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
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
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