Commit graph

292 commits

Author SHA1 Message Date
Terry Huang
cfefc37e7d Revert "Revert "[s5300][device] Change vendor telephony code path""
This reverts commit 5bc64a0b8d.

Reason for revert: Restore 16405845-t-codebase-seperate

Change-Id: I5bdebb6e682939868356a36c6b627bb67117a29c
2022-01-11 08:54:47 +00:00
horngchuang
5012cf9368 Add camera permission setting files for gs201
It was removed by ag/14655832 for gs201 bring up

Bug: 213395353
Test: launch camera okay, we can turn on/off torch by setting menu bar with L10
Change-Id: If4c7a22de74bf150024b24de7af19d631cb090fc
2022-01-11 02:55:15 +00:00
Hsiu-Chang Chen
3a33edc542 wifi: Add /dev/wlan as driver control interface for qcom
Bug: 209934729
Test: Basic functions tests, SSR tests
Change-Id: I111852ca339dff6cee680b89ae199ce6a628577d
2022-01-11 01:00:21 +00:00
Pat Tjin
0e3a4edf87 display: make set_idle_timer_ms optional
Allow ro.surface_flinger.set_idle_timer_ms to be overridden by device
makefiles.

Bug: 213901890
Test: Build
Signed-off-by: Pat Tjin <pattjin@google.com>
Change-Id: Ica4b88c96fd3dbfd5ae5ed97acfef4be80b1abda
2022-01-10 21:52:18 +00:00
Cyan Hsieh
7a59c25d6b Revert^3 "Add gralloc switch"
ba34517a55

Bug: 213540102
Change-Id: Ifb1ba1589ca37db74d12f5ae7d201419138316e9
2022-01-10 07:23:54 +00:00
Ankit Goyal
ba34517a55 Revert^2 "Add gralloc switch"
6b926a3823

Change-Id: Iad2facec124ec06a212a5cfd0f0bc8fbc34d0d32
2022-01-07 19:57:37 +00:00
Shubham Dubey
6b926a3823 Revert "Add gralloc switch"
Revert "Namespace gralloc"

Revert "Namespace gralloc"

Revert "Gralloc - Update build rules with namespaces"

Revert "Gralloc - Update build rules with namespaces"

Revert "Namespace gralloc"

Revert submission 16356594-pixel-gralloc-build

Reason for revert: Breaks build_test2 target on master

BUGID: b/213540102

Reverted Changes:
Ia998ca7f1:Namespace gralloc
I644f46ade:Add gralloc switch
I3689a27c2:Namespace gralloc
Iea1bf2ce2:Clone gralloc4 to GrallocHAL
I083cfa4f0:Namespace gralloc4
If8c40cd13:Namespace gralloc
I464236fea:Namespace gralloc
Icaac6d24f:Add gralloc switch
I92b7212b8:Gralloc - Update build rules with namespaces
Ic8741d4ba:Gralloc - Update build rules with namespaces
I507cbbc73:Namespace gralloc

Change-Id: I4520034e9d0e494434ae5943a0550c6161b11703
2022-01-07 17:44:34 +00:00
Cheney Ni
a646775bb9 Bluetooth: move A2DP capabilities control to each project
Bug: 194607800
Bug: 203042971
Test: pass A2DP playback manual test
Change-Id: I0d5871bb5cfc6b84cf5c004c782a8007fbf09f43
2022-01-07 12:16:46 +00:00
Ankit Goyal
ebda67edee Add gralloc switch
Bug: 207452098
Test: Boot to home
Change-Id: Icaac6d24f31f3a1eed5a4ad7997301b016274362
2022-01-06 23:04:24 +00:00
Randall Huang
5eeaade7a4 storage: remove convert_to_f2fs.sh
No longer need this script.

Bug: 207031989
Test: boot to home, make sure all f2fs partitions are mounted
Signed-off-by: Randall Huang <huangrandall@google.com>
Change-Id: I882084fb3a7cf1771e146d7d950ee4a5106792fe
2022-01-06 16:51:23 +08:00
Wayne Lin
bd65ddf6d6 gps: update gps driver 129.20.23.524049
- Changed to request DBH while LPP Capability transaction
 - Added CpLppeUseAgnssLocForEmptyDbh (default:false) to use agnss position for DBH when DBH is not available
 - CpLppeCancelDbhOnAgnssProvideLoc (default:false) to immediatelly report ProvideLocation when agnss position fix is made but DBH is not available
 - Set SUPL NI prefMethod as noPreference for KDDI
 - Fix MCC/MNC not storing issue
 - Fixed that GNSS noise floor scan fail
 - Fixed to use VisivilityControl queried isUserEmergencyFlag when requesting DBH location to framework
 - Include libsitril-gps-wifi.so for non-SITRIL project (ex, wifi project) to link with placeholder SITRIL symbols.

Bug: 204019829
Bug: 204843438
Bug: 206754082
Bug: 207721798
Bug: 209926163

Verify test: 212521041
Test: build pass and GPS verify test pass

Change-Id: I616a20bd58ee7e71c31f59ae9d12fc481ba8f9da
2022-01-06 07:52:38 +00:00
Yu-Chi Cheng
ce3a68dd0b Updated the IEdgeTpuVendorService to version 2.
Bug: 208947156
Test: atest vts_treble_vintf_vendor_test
Change-Id: I9a13141a64029902bfe7a652504d589d4a4b4306
2022-01-05 18:41:34 +00:00
Adam Wright
5bc64a0b8d Revert "[s5300][device] Change vendor telephony code path"
Revert "[s5123][common] Seperate source code by platform"

Revert "[s5300][exynos-ril] Merge remote-tracking branch 'remote..."

Revert "Disable USE_LASSEN_OEMHOOK"

Revert "[s5300][shannon-iwlan] Merge remote-tracking branch 'rem..."

Revert "[zebu_zuma] Disable USE_LASSEN_OEMHOOK"

Revert "[s5123][packetrouter] Seperate source code by platform"

Revert "[s5300][common] Merge remote-tracking branch 'remotes/go..."

Revert "[s5300][shannon-ims] Merge remote-tracking branch 'remot..."

Revert submission 16405845-t-codebase-seperate

Reason for revert: Manifest changes have broken master builds
Reverted Changes:
I9bdd0eb06:[zebu_zuma] Disable USE_LASSEN_OEMHOOK
Ia811a3a06:[s5300][shannon-ims] Merge remote-tracking branch ...
I5b403ac84:[s5300][google] Merge remote-tracking branch 'remo...
I846bff687:[s5300][common] Merge remote-tracking branch 'remo...
I1f2977519:[s5300][packetrouter] Merge remote-tracking branch...
Ie9bf8d56a:[s5300][shannon-rcs] Merge remote-tracking branch ...
If09bed38e:[s5300][shannon-iwlan] Merge remote-tracking branc...
Ib05d1e76c:[s5300][exynos-ril] Merge remote-tracking branch '...
I678984712:Disable USE_LASSEN_OEMHOOK
I40370edcf:Add extra folders on vendor telephony codebase
I27bfb046d:[s5123][google_device] Vendor telephony code assig...
Ie41ecb085:[s5300][google_device] Vendor telephony code assig...
I666871fc7:[s5300][shannon-iwlan] Rename iwlan_version
Ibb5874125:[s5300][shannon-iwlan] Seperate source code by pla...
I93ef81871:[s5300][packetrouter] Seperate source code by plat...
Id664fdd7a:[s5123][shannon-rcs] Rename shannon_rcs_version
I62caeeb78:[s5123][shannon-iwlan] Rename iwlan_version
Ib72d6f2ff:[s5300][exynos-ril] Seperate source code by platfo...
Ibc7e7221d:[modem-logging] Change vendor code folder path
If822ecef2:[s5123][packetrouter] Seperate source code by plat...
Ia86317fd0:[s5123][common] Seperate source code by platform
I9e047c89e:[s5123][device] Change vendor telephony code path
I7b08ed2c3:[cat] Change vendor code folder path
I42a4a0e46:[s5123][shannon-iwlan] Seperate source code by pla...
I66360e4e1:[s5300][common] Seperate source code by platform
I58fc8ce33:[s5300][shannon-rcs] Rename shannon_rcs_version
Ibbcb2254a:[s5123][exynos-ril] Seperate source code by platfo...
I4a88242ce:[s5300][device] Change vendor telephony code path

Change-Id: I4f19264450e7bf74f0cf34b2151ad90dda662b2c
2022-01-04 16:42:50 +00:00
Darren Hsu
88f8c4b2b4 powerstats: remove common data providers in specific directory
The common data providers will be moved to gs common directory. So
I removed them in this directory and used gs common library to get
the APIs.

Bug: 206576142
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I81e7a957490fb563fdf25a6434aaf5e886456c5d
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-01-04 06:14:51 +00:00
Terry Huang
af37ee214a [s5300][device] Change vendor telephony code path
Add extra folder for different platforms

Bug: 199954706
Test: Build pass
Change-Id: I4a88242ceb108e642c5f818cdc6aa24d8644fd0a
2022-01-04 01:36:35 +00:00
Kris Chen
41cc48dd07 Add power hint for fingerprint
Boost frequency of CPUBigCluster when running fingerprint algorithm.

Bug: 197780765
Test: Enroll and authenticate fingerprint.
(cherry-pick from device/google/gs101)

Change-Id: I9e8e727a61f9a2679fc2a00d6e2a1dd4a6c9de99
2022-01-03 17:34:25 +08:00
Martin Liu
af8304bbe0 set readahead_size_kb=128 to vendor, product and system_ext
To avoid memory pressure

Bug: 181567573
Test: check readahead size
Signed-off-by: Martin Liu <liumartin@google.com>
Change-Id: Ic2009d98371720d0284e8213204b8788997a88e1
2021-12-30 14:03:06 +08:00
Sasha Smundak
9cbef8afd5 Use soong_config_ macros to set Soong config variables.
Bug: 198503843
Test: treehugger
Merged-In: Ifd1aed04267d952a13cfd9b93933e500ba07dbad
Change-Id: I4fa1d4f3e1c5a965696f78244bcf58360e0ce1c7
2021-12-29 18:31:41 +00:00
Siddharth Kapoor
f310a6d205 gs201: Enable AGI support
Add build target for libgpudataproducer for AGI support

Bug: 208165749
Test: libgpudataproducer can build for gs201 builds

Signed-off-by: Siddharth Kapoor <ksiddharth@google.com>
Change-Id: I4c16f28267e4a5733e84faf9ce3496dff244f25f
2021-12-28 18:01:21 +00:00
justinweng
0105e2ec43 Enable A2DP offload playback
Bug: 194607800
Test: A2DP playback

Signed-off-by: justinweng <justinweng@google.com>
Change-Id: I7d7c7e895ae63bcc2f25ecaf0aa5d0e802a6af91
2021-12-28 11:55:17 +00:00
Albert Wang
16bdd47ccd device.mk: usb: remove redundant property
This property is found no used and causes a SELinux avc denial error,
so remove it accordingly.

auditd  : type=1107 audit(0.0:4): uid=0 auid=4294967295 ses=4294967295
subj=u:r:init:s0 msg='avc: denied { set } for
property=dev.usbsetting.embedded pid=1 uid=0 gid=0

Bug: 184103246
Test: forrest test build
Signed-off-by: Albert Wang <albertccwang@google.com>
Change-Id: Ic077ae729cdf0a0f04aeec2e04aecdfe7011b52a
2021-12-23 07:23:25 +00:00
diverj
470a34f78c gs201: Enable gpu profiler support
Test: Boot to home, AGI validation
Bug: 199279836
Signed-off-by: diverj <diverj@google.com>
Change-Id: Ic7d30aebc6519cb0d88533af0f10908ee40ba8b4
2021-12-23 06:44:39 +00:00
Cyan_Hsieh
38d81bc2c7 Include gs common in makefile build flow
Bug: 211723080
Change-Id: I8e1cefa396d494e73634da8620153c7a9a5693ee
2021-12-22 11:30:36 +00:00
Darren Hsu
7d9490247f powerstats: add mmWave rail into modem energy consumer
Bug: 211073344
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I9ecd3702605be287e76b8ed584eaba137a482b05
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2021-12-22 03:03:25 +00:00
Gary Lin
20afe57c18 camera: disable local tone mapping for factory build
Bug: 211171384
Test: build, aosp camera
Change-Id: Ia2f4659ac43e409159cb14a0b5ffa048cc00a768
2021-12-21 14:35:58 +00:00
Rios Kao
ddd4fb00c6 soundtrigger: add support for SoundTriggerHal
Bug: 206523344
Test: Build Pass
Change-Id: I686064c8b898e002ded55d0e99d73942bb1a4844
2021-12-21 06:59:20 +00:00
Gary Lin
bddeb3eff2 camera: disable saliency and segmentation for factory build
Test: build pass, aosp camera preview
Bug: 211051492
Change-Id: I67eece056fdb261f16d60a60e654281964d9a5a2
2021-12-21 02:56:40 +00:00
George Lee
0d5e6ab435 bcl: Remove unused sysfs read
Bug: 197028142
Test: adb bugreport
Signed-off-by: George Lee <geolee@google.com>
Change-Id: Ia14108684ece750df7ce18314b97059f25b04591
2021-12-16 13:38:38 -08:00
Bart Van Assche
520ff8ddb6 BFQ: Change slice_idle to 0
As one can see in https://b.corp.google.com/issues/191606824,
slice_idle=0 works better for Android than slice_idle=8. Hence change
slice_idle from 8 to 0 for the second generation SoC.

See also
https://googleplex-android-review.git.corp.google.com/c/device/google/gs101/+/15415376.

Test: Untested
Change-Id: I2204047975b040a0255cf902132423d55710e131
Signed-off-by: Bart Van Assche <bvanassche@google.com>
2021-12-16 11:03:07 -08:00
Wayne Lin
a1a31655f0 gps: update gps driver 129.20.23.522791
Fix power mode abnormally turned off by setPositionMode
Fix GPS crashing issue
Fix location lagging during driving
Auto switch constellation for on-chip mode

Bug: 207436894
Bug: 206074009
Bug: 204136420
Bug: 201591644

Verify test: 209897730
Test: build pass and GNSS verify test pass

Change-Id: I85d894c59c9b03c3e2a5e8eed31a609146fc0b58
2021-12-16 01:20:30 +00:00
Cyan_Hsieh
55f68d6310 gs201: Add pvmfw to AB_OTA_PARTITIONS
Bug: 209706293
Change-Id: I13f3f1c02dd6687226936b45852742701d185ced
2021-12-15 12:41:47 +08:00
Hsiu-Chang Chen
9401fa60b4 dumpstate: dump wlan firmware symbol file
Bug: 205919442
Test: Build Pass
Change-Id: Ib48b8bdf002e6462a7a0499f02b6a7b76329dee4
2021-12-14 11:10:37 +00:00
Victor Hsu
05766696d6 wifi: create configuration to use qcom wifi_hal
Bug: 202481207
Test: Build pass
Change-Id: Ia787642c0e9ee45e12648b8e369a0ff62b55d20d
2021-12-14 11:10:37 +00:00
Nicole Lee
53b694ec76 device.mk: enable modem always on logging by default
Bug: 205420203
Bug: 208845456
Test: Confirm PCIe can sleep with Lassen 1130 radio
      adb shell cat /sys/bus/platform/devices/cpif/s5100_wake_lock
Change-Id: I42f7efa3fff84cad849ce77bebce4dcf35b43d1f
2021-12-14 02:21:20 +00:00
Jaegeuk Kim
554e90c439 use erofs for RO partitions
Bug: 201348439
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Signed-off-by: Daeho Jeong <daehojeong@google.com>
Change-Id: I8607cff388ea13000b1002ef9cc52717a9a00469
2021-12-09 18:38:54 +00:00
Wayne Lin
674c3e17a3 gps: update gps driver 129.20.23.521541
Improve stopping conditions for urban driving
Fix GTS issues
Improve Spirent AGPS drive accuracy
Add PRs and PRRs log
Fix SUPL over WIFI issue
Integrate SatPvt URE fix
Fix SB Lab issue

Bug: 200942298
Bug: 204963837
Bug: 202366378
Bug: 202250827
Bug: 203615018
Bug: 205653853
Bug: 198384193

Verify Test: 207445643
Test: build pass and GNSS verify test pass

Change-Id: I7ed025c97c03898443e6cf459f017bd1f154e2ae
2021-12-09 02:27:06 +00:00
Ray Chi
8792d6d7a2 usb: create new functions for uwb
uwb needs ACM port, create this function combination.

Bug: 209568585
Test: ACM port can be enabled.
Change-Id: I06107cc6ee42fc6b622a1aff25cbdd54b479ea0f
2021-12-08 06:16:46 +00:00
Kyle Tso
d26a7befb8 usb: Rename the config to "charger" in charger mode
init.usb.configfs.rc has the same trigger condition of midi function.
Rename the config name to "charger" to avoid triggerring twice of the
midi function.

Bug: 188744218
Test: USB enumerated in charger mode
Signed-off-by: Kyle Tso <kyletso@google.com>
Change-Id: Ica112fb4be66356901f6d5f21b79b9e648d49f35
2021-12-08 06:16:46 +00:00
Kyle Tso
61dfc1e350 usb: Enable midi function in charger mode
It needs a USB function in charger mode to set the charging current to
500mA/900mA.

Bug: 188744218
Test: charging at 900mA in charger mode
Signed-off-by: Kyle Tso <kyletso@google.com>
Change-Id: I95c98ecec30dd4394228f7290412c303771a3158
2021-12-08 06:16:46 +00:00
Ray Chi
81016507ef usb: remove the redundant code
Currently, the property 'sys.usb.configfs' is set to 2, these settings
are not needed.

Bug: 209568585
Test: build pass
Change-Id: Icbf24f621e1d20ffc86228fc6d936cb9a1a7c4e5
2021-12-08 06:16:46 +00:00
Ray Chi
707dbbc43f 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: I546dad88e5e0c72c9bafdaded8e9026deccfbb88
2021-12-08 06:16:46 +00:00
TeYuan Wang
404a90ef54 dumpstate: add more cooling device debug info
Bug: 202813409
Test: check dumpstate_board.txt
Change-Id: Ice04536c321d35553a948cdea2e6a1add207c2c7
2021-12-08 00:52:53 +00:00
Wayne Lin
4cdfc08f1b Move gps.xml to device folder
Move gps.xml to device folder and maintain them separately
by project requirement

Bug: 208725716
Test: build pass
Change-Id: I10950cdec6ff77a6a3f9b8ba585960e17c21fe8c
2021-12-07 10:14:10 +00:00
Yichi Chen
8cabef33a9 gs201: upgrade IDisplay to V4
Bug: 202567084
Test: build pass
Change-Id: I5bb027ea60d2c662141d4590296f3904290ea28c
2021-12-06 17:25:21 +08:00
Chandan Nath
3e218362dd Change Pixelmigrate to GoogleRestore and update run-time permissions.
We are shipping GoogleMigrate on all S+ devices instead of Pixelmigrate. The list of permissions is from go/br-new-device.

Bug: 205986103

Change-Id: I21f8a8455084ad66b377aa0449292d046d11da89
2021-12-06 09:14:41 +00:00
Nicole Lee
35a79d9a44 Revert "device.mk: enable modem always on logging by default"
This reverts commit 11475b1588.

Reason for revert: b/208845456 disable modem logs until PCIe can sleep correctly

Change-Id: I86df81c96685c571a3deb478b3b24141f89e0e22
2021-12-06 04:24:44 +00:00
neoyu
f1a8827375 Remove CDMA feature because modem doesn't support it
Bug: 209031150
Test: inspect build artifacts - result is expected
Change-Id: I859fd4b2b6d08eba2cb39b51c163c61a0ce4a8ec
2021-12-06 02:30:10 +00:00
Robin Peng
c6332d87fc Move mfc_fw.bin into vendor/google_devices/<DEVICE>/prebuilts
firmware/mfc/mfc_fw.bin

Bug: 207727668
Change-Id: Ic7a078db0884ffce1c3c2f9b3e3da145da6bf02c
2021-12-03 17:15:42 +00:00
Carter Hsu
0405e0e58e Revert "audio: run audio hardware as 64bit"
This reverts commit 578aabc8cc.

Reason for revert: <Cirrus HAL module fails to start deep-buffer>

Change-Id: Iab95567ec1dcad66f82c144c992ff66f7e2e6f13
2021-12-03 05:53:19 +00:00
Carter Hsu
578aabc8cc audio: run audio hardware as 64bit
Bug: 205240941
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: I1e5d6d8bf410e5cf8af51abc0d364c35aa82e8c7
2021-12-03 05:16:57 +00:00