Commit graph

468 commits

Author SHA1 Message Date
Roger Wang
dbd4616dae remove hostapd_cli from user build
Bug: 185724245
Test: hostapd_cli doesn't include in user build
Change-Id: I78101b6ca898cdec75e92a0e4c421752aaf721bf
2021-04-20 01:38:41 +00:00
Benjamin Schwartz
d4cff50b12 dumpstate: Fix path to acpm_stats
Bug: 185819857
Test: adb shell dumpstate
Change-Id: I4b2ec4d89d7566cc8a3a86a0c8532937c8c5b9df
2021-04-19 13:40:29 -07:00
Stephane Lee
a6926e9abb Fix ODPM dynamic rail config via file by allowing writes to enabled_rails
Test: Ensure that power stats no longer reports an config error on boot
Bug: 185423551
Change-Id: I5315e31a54b8cbc40fc0f4f361e5b3b81a29ceb8
2021-04-16 14:46:10 +00:00
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
e8d7fb7f88 gs101: Change LogFailures to string
To match the definition of proto file.

Bug: 184715843
Test: function works
Change-Id: I8d6106bdc6978edb292e1f3ef0237469a77fe902
2021-04-10 04:19:36 +00:00
Jaegeuk Kim
3bc597748b gs101: set readahead_size_kb=128 to system and data
This can avoid memory pressure.

Bug: 181567573
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: I654c4d3bf24fa741c3fb0255431a26d8dcf5f153
2021-04-09 17:45:42 +00:00
millerliang
1868e419d5 audio: set the permission for dma heap
Set the permission for the two dma heap.
They are used for mmap audio in exclusive mode.
 /dev/dma_heap/aaudio_playback_heap
 /dev/dma_heap/aaudio_capture_heap

Bug: 165737390
Test: make
Change-Id: Ie8d35d59fb3bde10915dd0e0746852849acbad8c
2021-04-09 20:43:11 +08:00
samou
9db455e69d powerstats: Fill in P21 GPU power profile number
Bug: 184042446
Change-Id: Ifbc00ed0a9de98f65e7f0c4b1981e45f0b1887ba
2021-04-09 10:13:01 +00:00
Jack Nudelman
e36b41e17f Update CbrsNetworkMonitor package name.
Bug: 184313658
Test: make
Change-Id: I474401de47892c97c3fcf4a5471773cd0474e1ef
Merged-In: I474401de47892c97c3fcf4a5471773cd0474e1ef
2021-04-09 04:52:33 +00:00
Shinru Han
188be4a5e3 gps: remove lhd log in on-chip PVT mode
bug: 183559343
Test: No lhd log in on-chip PVT mode
Change-Id: I4e46721650dd43e356555716150dc6dd1935ae04
2021-04-09 04:08:56 +00:00
Tsung-Mao Fang
7dd7ceba38 Have a consistent permission configuration with other devices
Change-Id: I346370bbc9e1fcddef7dc9c64a03954cddf97264
Test: Run presubmit
Fix: 184312606
(cherry picked from commit 967e140f534064ef6fbe01c7c65167a033c95ee7)
2021-04-09 03:34:38 +00:00
Craig Dooley
2762231fdf Add the aoc persist folder
Bug: 184173298
Change-Id: Ia66797e2220ef4ba728b2eb21e123b36566adf1c
2021-04-08 17:27:55 +00:00
Roger Wang
a0342c45ce Enable wakeup packet mask and marker config
In this commit, we enable wakeup packet mask
and marker config. Then, connectivity can do
the proper accounting of the Wakeup statistics
which will be included in the bugreport.

BUG: 184807534
Test: adb shell dumpsys connmetrics
```
WakeupStats(wlan0, 1022s, total: 6, root: 0, system: 1, apps: 5, non-apps: 0, no uid: 0, l2 unicast/multicast/broadcast: 6/0/0, ethertype 0x800: 6, ipNxtHdr 6: 6)
WakeupEvent(19:45:36.879, wlan0, uid: 1010151, eth=0x800, dstHw=10:7b:44:3c:30:88, ipNxtHdr=6, srcIp=216.58.200.42, dstIp=192.168.50.51, srcPort=443, dstPort=49572)
WakeupEvent(19:47:36.741, wlan0, uid: 1010151, eth=0x800, dstHw=10:7b:44:3c:30:88, ipNxtHdr=6, srcIp=172.217.24.8, dstIp=192.168.50.51, srcPort=443, dstPort=53436)
WakeupEvent(19:49:25.241, wlan0, uid: 10151, eth=0x800, dstHw=10:7b:44:3c:30:88, ipNxtHdr=6, srcIp=74.125.204.188, dstIp=192.168.50.51, srcPort=5228, dstPort=38444)
//...
```

Change-Id: Ifabc2edd5425794d9e0af200eaec8baad44d6689
2021-04-08 20:07:47 +08:00
Lisa Liu
2968f7ed45 Remove odex/oat files from pinner list.
The pinner now asks the runtime for odex/oat/vdex files.

Test: adb shell dumpsys pinner
Bug: 144773394
Bug: 182593454
Change-Id: Idd26c511f5dbdcb29ded55170b8460f3c81a1ea3
2021-04-07 13:52:26 +08:00
Benjamin Schwartz
3ddb599459 powerstats: Add device specific display states
Bug: 167216667
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I977621b0a1502b1482eaac0922ded781ece007e0
2021-04-07 03:22:26 +00:00
Adam Shih
561ff7a341 remove obsolete mobicore operations
Bug: 183935443
Test: boot to home with no related avc error
Change-Id: I808d08d7e5479bdd643caa8269a68a8691796986
2021-04-07 00:48:10 +00:00
Vince Leung
59ca6aee8b Change all three default haptic levels to high
Bug: 183746553
Test: verify default haptic levels set to high on r4
Change-Id: Ie6489be8375ddc01aeb3f227f86e98785232e52a
2021-04-06 21:03:11 +00:00
Oleg Matcovschi
ae9494ee6b BoardConfig-common.mk: restore boot image version 3
Some of the components don't handle bootimage v4 yet.

Bug: 183237066
Bug: 183896891
Signed-off-by: Oleg Matcovschi <omatcovschi@google.com>
Change-Id: Ie8764f2d7da452f1941b0001c0c4be51f56e3a44
2021-04-06 18:51:32 +00:00
yihsiangpeng
c008f4449b use vintf_fragments instead of adding it to device-specific manifests
Bug: 183536544
Signed-off-by: yihsiangpeng <yihsiangpeng@google.com>
Change-Id: I7299d62a122fb56974b09846746a848b89ffa641
2021-04-06 14:51:14 +08:00
Benjamin Schwartz
3c712491cf Move power stats service to device specific folders
Bug: 183052760
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I4d4881e227982aa17b88af8844c82dc448ef5b6f
Merged-In: I4d4881e227982aa17b88af8844c82dc448ef5b6f
2021-04-06 04:08:17 +00:00
Adam Shih
1a1a12cd55 remove obsolete system property operations
Bug: 184213723
Test: The following error logs were gone
03-25 17:03:04.317 E init    : Do not have permissions to set 'ro.debug_level' to '0x494d' in property file '/vendor/build.prop': SELinux permission check failed
03-25 17:03:04.317 E init    : Do not have permissions to set 'ro.arch' to 'gs101' in property file '/vendor/build.prop': SELinux permission check failed

Change-Id: I1326752935665568285971944366e9e977ef9013
2021-04-06 02:42:05 +00:00