Commit graph

488 commits

Author SHA1 Message Date
Adam Shih
c7884a192e modularize pktrouter
Bug: 190331212
Test: make sure pktrouter gets initialized
06-23 13:21:19.372  1 1 I init : Parsing file /vendor/etc/init/pktrouter.rc...
06-23 13:21:23.510     1     1 I init    : processing action (vendor.pktrouter=1) from (/vendor/etc/init/pktrouter.rc:7)
06-23 13:21:23.510     1     1 I init    : starting service 'pktrouter'...
Change-Id: I89de2b2dd151bba877dea0bd5db0df1048b2ab6b
2021-06-24 07:24:45 +00:00
Minchan Kim
48a283b16e dumpstate: dump cma information into bugreport
Dump pixel cma metric into dumpstate_board.txt
It hepls to find cma allocation latency issues.

output example)
..

Change-Id: I697ade197617e3c19be1d83d38f2f93b44905ff8
--- /sys/kernel/pixel_stat/mm/cma/faceauth_tpu/alloc_pages_attempts
0
..
--- /sys/kernel/pixel_stat/mm/cma/faceauth_tpu/latency_low
0
--- /sys/kernel/pixel_stat/mm/cma/faceauth_tpu/latency_low_bound
10
--- /sys/kernel/pixel_stat/mm/cma/faceauth_tpu/latency_mid
0
..
--- /sys/kernel/pixel_stat/mm/cma/reserved/alloc_pages_attempts
1162
--- /sys/kernel/pixel_stat/mm/cma/reserved/alloc_pages_failfast_attempts
0
..

Change-Id: I08e34841617768f53e38f25a1b8035ade886d008
Bug: 191904985
Test: Run "adb bugreport <zip>" and verify it contains the output
      from dumpstate_board.txt
Signed-off-by: Minchan Kim <minchan@google.com>
2021-06-24 01:45:11 +00:00
SongFerngWang
c6a7602790 "Erase Downloaded sims" Checkbox is not visible
Enable the masterclear.allow_retain_esim_profiles_after_fdr for
checkbox is visible

Bug: 188093779
Test: build pass
Change-Id: I5745d152642d14c9a28d1831a59f64fb65d95394
2021-06-24 01:19:33 +00:00
TeYuan Wang
4c97453535 thermal: move gs101 thermal permission commands to device folder
Bug: 182970733
Test: check the thermal sysfs permission on O6
Change-Id: I80c0571aca9cbff1881c884350a5ca39e6beef6b
2021-06-23 23:09:44 +00:00
Denny cy Lee
8101fbcec0 Pixestat: add battery info
Bug: 171947164
Test: manually, no read fail found
Change-Id: I35bbca1aec39e6fb6133386b96efd727a9f74099
Signed-off-by: Denny cy Lee <dennycylee@google.com>
2021-06-23 08:22:41 +00:00
Denny cy Lee
294e58b1b2 init.hardware.rc: add permission for battery eeprom
Bug: 189050725
Test: manually, file mod owner: 644 system
Change-Id: Iff5bb544f9fb76556ef783d04abd363240c6bd3b
Signed-off-by: Denny cy Lee <dennycylee@google.com>
2021-06-23 08:22:41 +00:00
Daniel Mentz
fe798d9f4f Use modprobe --all to load all modules in modules.load
Previously, we ran modprobe command for every .ko file listed in
init.insmod.*.cfg. Let's move to a different approach where we call
modprobe with the following command line.

modprobe -b --all=/vendor/lib/modules/modules.load

This will insmod all modules listed in modules.load except for those
that are mentioned in the blocklist at
/vendor/lib/modules/modules.blocklist

A common reason for a module to be on the blocklist is that it must only
be loaded under a certain condition like when a specific service is
launched.

Bug: 190652328
Change-Id: I37dfc83cbc90534243765f6985bc53f3fa83aef0
2021-06-23 05:10:36 +00:00
Taehwan Kim
71bf42f42d add ro.vendor.gpu.dataspace
Bug: 176415285
Signed-off-by: Taehwan Kim <t_h.kim@samsung.com>
Change-Id: I6d6780f81ae05fc22793d97373a49b86e289cd0c
2021-06-23 04:51:40 +00:00
Adam Shih
5de199eca7 modulize init.radio.sh
Bug: 190331600
Test: build ROM and make sure the file is there and functional.
Change-Id: Id8fdeab9a79724ba77044274f2005935ffe00c99
2021-06-23 02:55:22 +00:00
Roger Wang
2b65b15e7c wifi: update interface combination.
In this commit, we update the interface combination
for P21.

Bug: 191020902
Test: local test on PP23935602 build.
      Check STA+STA, STA+SAP, STA+P2P and STA+NAN are workable.
Change-Id: I424c4ea854f3a4f7b615038db8d63729fd32adda
2021-06-22 17:03:54 +00:00
Roger Wang
b9d3e85359 dumpstate: remove wifi fw symbol table
In b/183180525, vendor mentioned they won't provide
fw symbol table (logstrs.bin) in terms of their internal
concern. Hence, remove wifi fw symbol table from dumpstate.

Bug: 191429306
Test: build pass, device can connect to AP.
Change-Id: I54a012f619f113a2567a93707731b5c4802b1da8
2021-06-22 17:00:35 +00:00
Maciej Żenczykowski
e0ccd8fe6d support both rndis and ncm, but not rndis + ncm
Bug: 172793258
Test: N/A
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I6ac656d5eec27fadf76391fc3318b9d29d253a89
2021-06-22 02:53:55 +00:00
Chris.CC Lee
00d640335c [Gs101] Update pregrant permissions for Restore APK
-. RECEIVE_SMS and READ_PHONE_NUMBERS permissions are no longer used.
-. Add the ACCESS_FINE_LOCATION permission for iOS WiFi D2D which was approved in b/188150877.

Bug: 188150877
Fix: 162937804
Test: Manual tested on Barbet.
Change-Id: I518275717ebd2b81bb888eaddc58222fe92b92c1
2021-06-22 01:37:45 +00:00
Shawn Willden
ebf4d9934a Revert^2 "Activate KeyMint"
8f0cd15159b5a3f7d0ddb5cc78d2a364d1982244

Bug: 177729159
Test: VtsAidlKeyMintTargetTest & CtsKeystoreTestCases
Change-Id: I1f6f4c27562104ee650cc085e977ebd4fecdfdf2
2021-06-21 23:12:32 +00:00
Lokesh Gidra
42c5499945 Use 6GB dalvik-heap config for WHI series phones
Since all the WHI phones have 6GB+ RAM, we should be using at least a
6GB dalvik-heap config, as being done in pixel5 and older devices.

Test: build and boot
Bug: 189738006
Change-Id: I5a232d2901dec819b225812d023d2e5a43d3e0a6
2021-06-21 23:05:40 +00:00
Ioannis Ilkos
fb95660824 Revert "Activate KeyMint"
Revert submission 14947110-activate_keymint

Reason for revert: Likely b/191652216
Reverted Changes:
I6c5210356:Activate KeyMint
I784d39383:Activate KeyMint.

Bug: b/191652216
Change-Id: I5f6d69f7657180c09a6ec8e8afad09bbd63cdc32
2021-06-21 15:44:48 +00:00
Shawn Willden
e1b88a2894 Activate KeyMint
This CL also removes wait_for_strongbox, which is broken because it
looks only for keymaster implementations, not keymint.  But it's also
unnecessary due to reorganization of the way keystore and vold start
up.

Bug: 177729159
Test: boot & VtsAidlKeyMintTargetTest
Change-Id: I6c5210356396b2079e036e94bb909f3a1a31e6c6
2021-06-21 12:51:58 +00:00
vincenttew
4b566654f4 create audio folder to store calibration data
Test: build pass
Bug: 188503612
Signed-off-by: vincenttew <vincenttew@google.com>
Change-Id: I5b3bfbd854d62ea8eddea0017fd8654476ae8a20
2021-06-21 10:04:14 +00:00
Alex Hong
b7b25bb84a Upgrade PRODUCT_SHIPPING_API_LEVEL to 31 (Android S)
PRODUCT_SHIPPING_API_LEVEL: 31
Target FCM version: 5
Kernel FCM version: 6

TO-DO: Upgrade "Target FCM version" from 5 to 6
       "Target FCM version" must be 6 if PRODUCT_SHIPPING_API_LEVEL is 31.

Bug: 167997902
Bug: 186723740
Bug: 184801854
Bug: 186500818
Test: The device can boot to home.
      $ adb shell getprop ro.product.first_api_level
        [ro.product.first_api_level]: [31]
      $ adb shell ls /sys/kernel/debug
      $ adb root && adb shell getprop ro.product.debugfs_restrictions.enabled
Change-Id: I79a9d3835b9d3c508e647c1bbf53bd1c1465de05
Signed-off-by: Aaron Ding <aaronding@google.com>
2021-06-21 08:01:31 +00:00
Franklin He
8cd280099d Add ML_ACC powerhint to gs101
Add ML_ACC parameters agreed in ag/14877105 as a powerhint

Test: pushed powerhint.json to device, sent ML_ACC powerhint, observed a
change to /sys/kernel/vendor_sched/nnapi_uclamp_min
Bug: 191241561

Change-Id: Ic974cd0b3bbcb98532940520cfd2684d156b9330
2021-06-21 04:05:39 +00:00
Jimmy Shiu
f0280a99f4 adpf: move the vendor.powerhal.adpf.rate to raviole
The property should be based on device max refresh rate.
Move to raviole config files.

Bug: 177493042
Test: build
Change-Id: I34c42c87e92208e9f8140197e00f713aafaa63ba
2021-06-19 04:00:51 +00:00
Jack Wu
31d5416e15 add permission for wireless charge_stats access
Bug: 176195960
Test: no Permission denied while accessing the file node
Signed-off-by: Jack Wu <wjack@google.com>
Change-Id: Ia70c110de8bc1b6166c57e9c3df3d4f43f23a428
2021-06-19 00:33:13 +00:00
Daniel Mentz
eaf85625c4 Add pktgen.ko to kernel module blocklist file
The Packet Generator module should not be loaded under normal
circumstances.

Bug: 190652328
Change-Id: Idfd65c9bb1f540e21ef1c51116ee6ca7d3a8eb46
2021-06-18 15:13:40 -07:00
yihsiangpeng
eb215e398b Add permission for WirelessCharger HAL
Bug: 186797309
Signed-off-by: yihsiangpeng <yihsiangpeng@google.com>
Change-Id: I8cd9d8c7e7acb35149a73a8beba8bb4be5a7ce1e
2021-06-18 17:01:00 +00:00
Daniel Mentz
24b12e2935 Add a kernel module blocklist file
Kernel modules on the blocklist are not automatically loaded during
second stage init. Modules are often put on the blocklist if we want
them to get loaded only under certain circumstances.

Bug: 190652328
Change-Id: Ib67463555f498f4dc85d5d175e0bf9e4150771dd
2021-06-18 15:41:21 +00:00
Adam Shih
56978d9961 organize confirmationui settings
Bug: 190331547
Bug: 190331370
Test: build ROM and make sure file and sepolicy is still there
Change-Id: Ifc2bcf1616d3ee2df3943f0f1b3523ce485b689c
2021-06-18 06:47:38 +00:00
Rick Yiu
3ce37fb4f1 gs101: Modify nnapi uclamp settings
Chaning setting for better benchmark performance.

Bug: 189074148
Test: build pass
Change-Id: I3c33147ec88494ff5b709063d6568add0e17933a
2021-06-18 06:20:30 +00:00
Ray Chi
70e1cd7c84 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: I8d92cc676ff7be8fd22a574b32653bafc028b801
2021-06-18 06:03:59 +00:00
Badhri Jagan Sridharan
6e44d2ee0c dumpstate: dump logbuffer tcpm logs in bugreport
Bug: 189792358
Signed-off-by: Badhri Jagan Sridharan <badhri@google.com>
Change-Id: I64cf665985226c81ff23b32bda25c303d8031d5f
2021-06-17 16:19:38 -07:00
Wei Wang
a1a0bdb333 Remove interaction boost completely
Now HWUI app is using ADPF already, for those non-HWUI app (probably
mostly games), let us try to just use FPS based boosting only.

Bug: 177493042
Test: build
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: I63fe7ff6edcb57819461a8c0ed5f3f43c26e0137
2021-06-17 07:45:10 +00:00
Devika Krishnadas
e8b2e18eeb Increase maxFrameBufferAcquiredBuffers to 3
When display and SF falls out of sync, there is a possibility that while
display holds on to a buffer, a composed buffer could be waiting in the
decon thread. Since maxFrameBufferAcquiredBuffers is 2, GPU will have to
wait for display to swap out the buffer it is currently presenting to be
able to compose for the next frame, which leads to SF missing its
timeline for subsequent frames.

Bug: 190842189
Test: perfetto

Signed-off-by: Devika Krishnadas <kdevika@google.com>
Change-Id: I434e8644cff2538589c1c9b2bf731afae0aa8980
2021-06-17 06:14:37 +00:00
Daniel Mentz
6a6d8f81c2 Read vendor_boot.modules.load and vendor_dlkm.modules.load
Previously, we copied all available kernel modules into the vendor_boot
ramdisk except for approx. 14 modules that we explicitly excluded.

Going forward, the kernel build will distribute the two additional files
vendor_boot.modules.load and vendor_dlkm.modules.load which define,
respectively, the lists of modules that should be loaded from
vendor_boot and vendor_dlkm.

The contents of the two *.modules.load files will be copied almost
verbatim into modules.load files in the respective images except for the
fact that the directory names of the .ko files are stripped. So, for
example, kernel/net/core/pktgen.ko becomes just pktgen.ko.

Additionally, we only copy those .ko files into the vendor_boot image
that are listed in vendor_boot.modules.load. On the other hand, the
vendor_dlkm partition image will contain all .ko files regardless of
whether they are listed in vendor_dlkm.modules.load.

Bug: 190652328
Change-Id: Ibda5b9368547ad089575333e2566697ec0e8465f
2021-06-17 03:57:10 +00:00
Ted Lin
9404fbc128 Donot dump debugfs information in user build.
------ TCPM logs (/vendor/bin/sh -c cat /sys/kernel/debug/usb/tcpm*) ------
*** command '/vendor/bin/sh -c cat /sys/kernel/debug/usb/tcpm*' failed: exit code 1
------ gvotables (/vendor/bin/sh -c cat /sys/kernel/debug/gvotables/*/status) ------
*** command '/vendor/bin/sh -c cat /sys/kernel/debug/gvotables/*/status' failed: exit code 1

06-16 10:01:14.700  logd 14845 14845 W sh      : type=1400 audit(0.0:3294): avc: denied { read } for name="debug" dev="sysfs" ino=16052 scontext=u:r:hal_dumpstate_default:s0 tcontext=u:object_r:sysfs:s0 tclass=dir permissive=0

Bug:187030022
Test: check the bugreport
Change-Id: I0c5b946321410dc04026aef0f06be9c2ace457d3
Signed-off-by: Ted Lin <tedlin@google.com>
2021-06-17 01:43:20 +00:00
Wei Wang
9e92582df5 Fix app launch boost override by ADPF
Bug: 177493042
Bug: 170487162
Test: Build
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: Ifa6ec954396f05c1e98516f819b4e4e44e4a692d
2021-06-16 22:40:35 +00:00
David Anderson
2bfa6d3ba0 Enable compressed snapshots/VABc.
Bug: 185400304
Test: treehugger
Test: apply OTA
Change-Id: I1a2242b219f11212431a5a9207ec5a832e944c46
2021-06-16 20:48:14 +00:00
Kelvin Zhang
a8fdc57387 Add a build time constant to disable VABC
Test: m
Bug: 185400304

Change-Id: I4ed5676f4a1195f084ed447196ee9e3ce71ec84a
(cherry picked from commit c76afcf1ef68ce4e6362032aaa8b5e2ea77f9233)
2021-06-16 20:48:14 +00:00
Cyan_Hsieh
dc2c524eb0 Remove duplicate mk inherit
Fix: 191233129
Change-Id: I84b72f196f23af6c7cad3c010617f100dcfc193a
2021-06-16 10:33:14 +00:00
Gillian Lin
579543db80 cts: VerifiedBootTest#testVerifiedBootSupport
android.software.verified_boot.xml should be copied to TARGET_COPY_OUT_VENDOR instead of TARGET_COPY_OUT_PRODUCT

Bug: 190401885
Test: run cts-on-gsi -m CtsSecurityTestCases -t android.security.cts.VerifiedBootTest#testVerifiedBootSupport
Change-Id: Id17176f07e6ae8843f71b10ad9d01b18640fe675
2021-06-16 09:24:24 +00:00
Adam Shih
3e058b1e5c remove vcd from user ROM
Bug: 190331325
Test: build all ROM variants with only user ROM without vcd
Change-Id: I0732f80c2adc663c807963b84c70080665212bb2
2021-06-16 06:40:27 +00:00
Edwin Tung
3bbde56bae gps: update gps driver 129.20.23.504156
Integrated CHPP- chpp-20210524-39bf8f5.zip
Adjust the noise table for GPS
False L5 SNR removed by adding valid peak check to L5 CN0
Fixed for SyncIn request to time out within 3 seconds
Support multiple measurement requests
Estimated better accuracy uncertainty in GLNS Only fix
Request UTC time from framework even if the request type is BREADCRUMB
Fixed Reset checking timer for default value of CpResetInvalidateSec to properly work

Bug: 188843280
Bug: 189793458
Bug: 188857474
Bug: 188127870
Bug: 188737899
Bug: 185200717
Bug: 184770261
Bug: 185884684

Sanity test: 190960119
Test: build pass

Change-Id: I969b3ce240583d726f28e93da76c74f1c369a505
2021-06-16 01:52:00 +00:00
Ahmed ElArabawy
0c6ba84d72 WiFi: Modify OWNERS files
Replace kumaranand@ with arabawy@ in OWNERS files

Bug: 191158491
Test: None
Change-Id: Iefc7343bc311f5642b165d24217ea8d264918ea2
2021-06-15 23:35:50 +00:00
Wei Wang
2fee52bbf5 Relax SurfaceFlinger cpuset and adding uclamp.min for RenderEngine
SurfaceFlinger IPC improved with mid and big cores, relaxing cpuset will
help improve its efficiency. For render engine, we set uclamp.min to
skip scheduling on little cores.

FWIW, we let the RT scheduler figure out what is good for perf/power.

Bug: 170507315
Bug: 191054286
Test: Build and boot
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: I880cf549e33a3a2f629e8260366c4ce8c34c3ae6
2021-06-15 19:15:18 +00:00
Armelle Laine
e81847c70d ueventd.gs101.rc add /dev/trusty-log0
Specify ownership to system and r/w permissions to user/group.
Allows dumpstate to access /dev/trusty-log0.

Bug: 188285071
Test: lshal debug android.hardware.dumpstate@1.1::IDumpstateDevice/default trusty
Change-Id: I935cb9dd11d1e0968ab0e2c9d7349de336502e7c
2021-06-15 14:35:43 +00:00
Armelle Laine
fbbe7e36c7 dumpstate: dump trusty log
Dump trusty log buffer

Bug: 188285071
Test: adb bugreport
Change-Id: Ic44816fe1df21e97ec87ec58cbc2f84abf0e6a98
2021-06-15 14:35:43 +00:00
samou
c1cf9f84b5 powerstats: Fill in P21 TPU power profile number
Bug: 189249509
Change-Id: I134f3c005ec0eb17e97b829627ba22d552b7bfdb
2021-06-15 11:23:02 +00:00
Tai Kuo
ca8a4cc11d dumpstate: show touch HDM debug info
Bug: 187174041
Test: trigger a bug report.
Signed-off-by: Tai Kuo <taikuo@google.com>
Change-Id: I0bd8329f087391c95447e015be6f576a4ecbb3e2
2021-06-15 10:04:29 +00:00
Fiona Campbell
283a690993 Revert "usb: set sys.usb.mtp.batchcancel to true"
Revert "Add sys.usb.mtp.batchcancel to usb_config_prop"

Revert submission 14910151-mtp_cancel-sc-dev

Reason for revert: DroidMonitor-triggered revert due to breakage https://android-build.googleplex.com/builds/quarterdeck?branch=git_sc-dev&target=cf_x86_64_phone-userdebug&lkgb=7458085&lkbb=7458560&fkbb=7458104, bug b/191120942

Reverted Changes:
I44b2d9c36:Add sys.usb.mtp.batchcancel to usb_config_prop
I4e172fa62:MTP: add a new parameter for cancelEvents function...
Iad744e27e:usb: set sys.usb.mtp.batchcancel to true

Change-Id: I3189b76db2837f3c17b1cf42eaaed8da8cfb81ac
2021-06-15 08:52:16 +00:00
Ray Chi
739399aed2 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: Iad744e27e6f843ae22fc499efbb803be51e1b820
2021-06-15 05:16:02 +00:00
Super Liu
69c195292b dumpstate: add touch #19 data type
Bug: 174189876
Test: check bugreport for #19 data.
Signed-off-by: Super Liu <supercjliu@google.com>
Change-Id: I288d8079528f99834a1867ab973535d4e7b383b6
2021-06-15 04:55:54 +00:00
ChengYou Ho
ca32deaaf1 Report Verified Boot support
Bug: 187375216
Test: CtsSecurityTestCases
Change-Id: I26304f48019a4c5df7aa683eb19236125ddb5cd3
2021-06-15 03:41:30 +00:00