Commit graph

400 commits

Author SHA1 Message Date
Ramji Jiyani
f53de92c92 Pixel T launch devices: Enable system_dlkm
Set flags to enable system_dlkm dynmaic partition
for GKI Modules for T launch pixel devices.

Partition will be empty as of now but this adds
enough support to pass the vts for feature.

Bug: 222334390
Test: TH, manual build, Code testing gs101 & R6
Signed-off-by: Ramji Jiyani <ramjiyani@google.com>
Change-Id: Ic56dd711ab97f3ae993cc5c543fabc8cbe3f347c
Merged-In: Ic56dd711ab97f3ae993cc5c543fabc8cbe3f347c
2022-03-04 01:42:47 +00:00
Bob Badour
e3710a9f34 [LSC] Add LOCAL_LICENSE_KINDS
Added SPDX-license-identifier-Apache-2.0 to:
  usb/gadget/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Change-Id: Idea66093348d8c7e4a63b35e5f25a6d8bab9439a
2022-03-03 11:19:46 -08:00
SongFerngWang
00c06569c6 copy the overlay from gs101
Bug: 221846447
Test: build pass
Change-Id: Ia977d59492d00bb5499523ca17cde92fd932292e
(cherry picked from commit 9e3dae6628)
2022-03-03 09:29:38 +00:00
Jenny Ho
60fde324e3 device-common: set testing_battery_profile default 2
set 2 to prevent limit battery level in unexpected testing situation

Bug: 180511460
Bug: 220679025
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: I9f0e66cf92b26c6946af162003378dcf0fd749f9
(cherry picked from commit f9ae6c981a)
2022-03-02 21:53:36 +00:00
Josh Wu
e8aabb124f Switch BtAudio to AIDL
Test: m
Bug: 203490261
Change-Id: I9668afb6549491c65ec193f707ef936c3bb519ae
Merged-In: I9668afb6549491c65ec193f707ef936c3bb519ae
2022-03-02 13:08:41 +00:00
Tim Lin
5357ce3a42 enable IRadio 2.0
Bug: 206348419
Test: make
Change-Id: Iae1093aa6f7e9014fe47ae05e023922725885d03
2022-03-02 09:12:13 +00:00
Ankit Goyal
9e4f342440 Include allocator AIDL service in the build
Bug: 220910504
Test: Boots to home
Test: VtsHalGraphicsAllocatorAidl_TargetTest
Change-Id: Ie169b059d401ce58b217765dbac76b4de9eb2c96
2022-03-02 01:56:58 +00:00
Ankit Goyal
205a0a4851 Remove stale gralloc3 configs
Bug: 220910504
Test: Boots to home
Change-Id: I30a68849413b6927365773a52f543e3a032f18fa
2022-03-02 01:56:58 +00:00
Ray Chi
ef1c863453 Revert "usb: modify the permission of USB gadget hal"
This reverts commit bdd4728a17.

Reason for revert: original issue is fixed.

Bug: 206902205
Test: adb work without the error of gadget hal.
Change-Id: I3b7ab36f93e8bb7d6c23d53d4a12ed95d441fede
2022-03-01 18:33:17 +08:00
Rick Yiu
34cad67219 Support SetProcessProfiles for vendor groups
Add ProcFilePath for vendor group change of a process.

Bug: 218684257
Test: function works
Change-Id: I2d87a1a5d27dee699b37de6fac8d8b52334ba54e
2022-03-01 04:32:22 +00:00
Wayne Lin
ec6aba8e3f gps: update gps driver 129.20.23.528102
- Rescale DBH accuracy and add timestamp
 - Enable runtime LTE filter control feature
 - Pick newest FLP location for LPPe DBH
 - Not to request DBH location for the non-emergency NI
 - Keep reqporting PPS in duty-cycle
 - Release SUPL wakelock while framework restart
 - Fix NI AGPS accuracy and hot start accuracy issue
 - Fix cts testRequestFlush issue
 - Fix gps crash issue
 - Fix re-calibration on the fly issue
 - Fix OnChip mode TTFF issue
 - Fix OnChip mode GnssStatus no el/az issue

Bug: 214399728
Bug: 211171235
Bug: 218586958
Bug: 215660420
Bug: 207804509
Bug: 208178903
Bug: 214551540
Bug: 213792299
Bug: 205770623
Bug: 205776935
Bug: 213009701
Bug: 218457536
Bug: 215660420
Bug: 213388910
Bug: 218608516

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

Change-Id: Id5f1680c9b935e8955991f87ee8c317b0a4d17aa
2022-03-01 04:20:23 +00:00
Badhri Jagan Sridharan
a1deb18dfb Migrate IUsb implementation to AIDL
Cherry-pick of <775523d1eb>

This change migrates IUsb implementation to AIDL.
Also, IUsb and IUsbGadget now run in its own processes
to improve stability and isolation.

Bug: 200993386
Change-Id: I02753af4a41916b77ce110f9531504bf8c6a4691
Merged-In: I02753af4a41916b77ce110f9531504bf8c6a4691
2022-03-01 03:32:23 +00:00
YiHo Cheng
1f04eb4aa6 dumpstate: Add tmu register dump
Add tmu register dump in thermal dumpstate section

Bug: 215040856
Test: check tmu register dump output in thermal dumpstate
Change-Id: Ia71d801b28b64abefbc472be717eb4e266599964
2022-03-01 01:23:19 +00:00
wenchangliu
4c25179eca update media_codecs_aosp_c2.xml
- add performance-point for media performance class
 - add "vq-minimum-quality" for video codec

Bug: 220249926
Test: atest android.mediapc.cts.MultiTranscoderPerfTest
Test: minimum quality test
Change-Id: I6b1db8fd918fa032678b44faf5f87ff093daab2d
2022-02-25 13:40:01 +00:00
Devin Moore
2b15c10b02 Build init_boot for new devices
Builds a new init_boot.img with the ramdisk that was previously in
boot.img.
Removes the ramdisk from boot.img.
Change fstab to make sure the /dev/block/by-name/init_boot_* entries are
created in first stage init for Verified Boot.
Add init_boot.img to the list of OTA images so it is picked up for OTA
updates.

Test: unpack_bootimg --boot_img=boot.img
Test: unpack_bootimg --boot_img=init_boot.img
Test: Build and boot new device with required bootloader changes
Bug: 211823573

Merged-In: Idbd700b17d862f48ea568d1274a6550b965763ea
Change-Id: Idbd700b17d862f48ea568d1274a6550b965763ea
2022-02-24 23:32:46 +00:00
Grace Chen
5443c7ec01 Enable DSDS by default
Bug: 197273281
Test: Confirm DSDS property.
Change-Id: I007ef6b81ddfdb3d9692f286bbcb85c2bae5dae5
2022-02-24 14:49:00 +00:00
Sam Dubey
e9893b4e61 Make hostapd optional
This is to mitigate build breakage.

Fix: 221164554
Bug: 207076973
Change-Id: Iaa6a79ea7a313356806c77575302c7b10e22e3fa
2022-02-24 10:41:15 +00:00
SalmaxChang
a04c61d42b dumpstate: correct verbose logging property
Bug: 221173724
Change-Id: I9d525c55bed2f05e7e89d2253f7bd4f67b7cd6f3
2022-02-24 14:55:11 +08:00
Alex Hong
0c20f31dd7 Upgrade PRODUCT_SHIPPING_API_LEVEL from 31 to 32 for gs201 devices
Copy ueventd.rc to /vendor/etc instead of /vendor.
/vendor is no longer a supported path for Product Shipping API 32

Test: m checkvintf
      Device boot-to-home
Bug: 207076973
Change-Id: Iac11d342854e08739e6b83e5d8134097760ccfd2
2022-02-24 12:04:54 +08:00
Alex Hong
9984544ec8 Upgrade PRODUCT_SHIPPING_API_LEVEL for gs201 devices
Update the Target FCM level from 5 to 6
Update the product FCM xml

Bug: 207076973
Test: m checkvintf
Change-Id: Ifa9c7e103671e1072496f6f76dd0c3233fb46a6e
Merged-In: Ifa9c7e103671e1072496f6f76dd0c3233fb46a6e
2022-02-24 04:03:32 +00:00
Alex Hong
592769127d Remove tetheroffload service
Test: m checkvintf
      run vts -m VtsHalTetheroffloadControlV1_0TargetTest
Bug: 207076973
Bug: 214494717
Change-Id: Idd33fbd5e9750e16fb4e2339953bd8d9007b88fb
Merged-In: Idd33fbd5e9750e16fb4e2339953bd8d9007b88fb
2022-02-24 04:03:32 +00:00
Alex Hong
5e3ac86e93 "Erase Downloaded sims" Checkbox is not visible
Enable the masterclear.allow_retain_esim_profiles_after_fdr for
checkbox is visible

This is picked from a8acce0

Bug: 220209981
Test: build pass
Change-Id: I930c4038ceabcaa214fc5c8ad434ab3861b24acf
2022-02-23 18:36:10 +08:00
Michael Wright
55730686f5 Revert "Revert "Turn on SELinux""
This reverts commit 077aaa107b.

Reason for revert: SELinux issues are fixed

Change-Id: I90f32b8b633988ab6f79606ac8464cbb07a861dd
2022-02-23 02:41:40 +00:00
Aurimas Liutikas
077aaa107b Revert "Turn on SELinux"
This reverts commit 3923566e2c.

Reason for revert: causing com.android.pixellogger crashes

Bug: 220935985
Change-Id: If97dd3585651167762890b98c2446f3b5222f9d4
2022-02-23 02:39:55 +00:00
Rick Chen
553ae4fd8d Remove sensor HAL 1.0 config
Bug: 202249887
Test: Verify basic sampling functions on C10.
      Run VtsHalSensorsV1_0TargetTest and see no test items.
Signed-off-by: Rick Chen <rickctchen@google.com>
Change-Id: I7ce97e417ce5e8c4589845a5138010aa9288ccb3
(cherry picked from commit 1fef1eca2d)
2022-02-23 02:09:27 +00:00
Ray Chi
48ebc5fe18 recovery: add wait for dwc3 device to probe
If fastbootd starts before the dwc3 device probes, fastbootd
would be failed to enable USB gadget.

This patch adds a dependency on the dwc3 device probing before setting
the sys.usb.controller property.

Bug: 220393297
Test: build pass, fastboot works
Change-Id: I4e5b34354f19547f55acc53ccff0b54adce2d982
2022-02-22 02:32:17 +00:00
Adam Shih
3923566e2c Turn on SELinux
Bug: 214923175
Test: Boot to home, OTA, adb connection, wifi, phone call, SMS, Bluetooth,
LTE, camera, video, audio, GPS, lock screen, sensor, fingerprint,
bugreport, no crash loops

Change-Id: I23adacc6f3d68becd86d238046a0458baacd122d
2022-02-22 01:27:53 +00:00
Ray Chi
4f30e468e4 modify the path of shell binary
Currently, we should use the vendor shell to run irq script.
This patch will modify the shell path.

Bug: 202103325
Test: switch functions and check the value of smp_affinity_list
Change-Id: Iae572bb1ee218eb205c5e65d20ba6dfa583b9ad6
Merged-In: Iae572bb1ee218eb205c5e65d20ba6dfa583b9ad6
(cherry picked from commit e4796c373c)
2022-02-21 18:22:53 +00:00
Lais Andrade
0b02e303b1 Add default alarm and media vibration intensity settings
Change-Id: Ib5cbda371672dde8cbcd17692ecf777a3c3c95e1
Fix: 219692498
Test: manual
2022-02-21 12:08:06 +00:00
Jack Diver
4438b07c71 gs201: Build UMD from source
Bug: 185349920
Test: Build gs201 UMD from source
Test: Boot to home
Signed-off-by: Jack Diver <diverj@google.com>
Change-Id: I34be0058ea1272966b0b848d9de365c23d28d5ec
2022-02-18 14:35:48 +00:00
diverj
7c11dd7d0e gs201: Add pixel_mali_soc config var
* Add gs201 soc soong_config_variable
* Remove unused mali soong namespaces

Test: Build UMD from source for gs101, gs201 and zuma
Test: checkbuild
Bug: 185349920
Bug: 174232579
Change-Id: Ie175e70a4a61a14e93225522735e1b789c28f6fa
Signed-off-by: Jack Diver <diverj@google.com>
2022-02-17 12:53:42 +00:00
Midas Chien
e542e25078 display: allow composer to access panel idle node
Change panel idle node ownership to allow composer to access.

Bug: 198808492
Test: init and composer can write to panel idle node
Change-Id: I9fd7fe752cfe0694216d608765c4647dd3c00b95
2022-02-17 09:17:42 +00:00
Ted Lin
805826c2cc fix the avc denied for maxfg/registers
01-13 11:02:39.148 10124 10045 10045 I id.hardwareinfo: type=1400 audit(0.0:28): avc: denied { search } for name="maxfg" dev="debugfs" ino=31872 scontext=u:r:hardware_info_app:s0:c512,c768 tcontext=u:object_r:vendor_maxfg_debugfs:s0 tclass=dir permissive=1 app=com.google.android.hardwareinfo
01-13 11:02:39.148 10124 10045 10045 I id.hardwareinfo: type=1400 audit(0.0:29): avc: denied { read } for name="registers" dev="debugfs" ino=31885 scontext=u:r:hardware_info_app:s0:c512,c768 tcontext=u:object_r:vendor_maxfg_debugfs:s0 tclass=file permissive=1 app=com.google.android.hardwareinfo
01-13 11:02:39.148 10124 10045 10045 I id.hardwareinfo: type=1400 audit(0.0:30): avc: denied { open } for path="/sys/kernel/debug/maxfg/registers" dev="debugfs" ino=31885 scontext=u:r:hardware_info_app:s0:c512,c768 tcontext=u:object_r:vendor_maxfg_debugfs:s0 tclass=file permissive=1 app=com.google.android.hardwareinfo
01-13 11:02:39.148 10124 10045 10045 I id.hardwareinfo: type=1400 audit(0.0:31): avc: denied { getattr } for path="/sys/kernel/debug/maxfg/registers" dev="debugfs" ino=31885 scontext=u:r:hardware_info_app:s0:c512,c768 tcontext=u:object_r:vendor_maxfg_debugfs:s0 tclass=file permissive=1 app=com.google.android.hardwareinfo

Bug: 208909060
Test: adb bugreport
Change-Id: I72a6b72e568fe109350edd2a0a91747251e6fba4
Signed-off-by: Ted Lin <tedlin@google.com>
2022-02-17 09:04:23 +00:00
Darren Hsu
8c4f8807fd powerstats: disable AoC power stats reporting
This is a workaround for the AoC long latency issue. Re-enable
AoC power stats reporting when the latency issue is fixed or
the timeout mechanism is merged.

Bug: 210045267
Test: Dump power stats while video streaming and see no timeout
Test: from dumpsys
Change-Id: I83545d45bb1bbb5bb18ca4bff4bd261f332a4570
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-02-17 10:26:50 +08:00
TeYuan Wang
ae8e17631b thermal: provide gxp-cooling user_vote permission for thermalHAL
Bug: 219869479
Test: ls -al dev/thermal/cdev-by-name/gxp-cooling/user_vote
Change-Id: Id11ad3cb6b1770cbaffb760feaad571c678a22df
2022-02-16 19:34:39 +00:00
Robin Hsu
200d13758a config.xml: enable zram writeback
Bug: 207572250
Test: cmd jobscheduler run -f android 812
Signed-off-by: Robin Hsu <robinhsu@google.com>
Change-Id: If956c912325d820ad37c160d2d1d80d3e646a76c
2022-02-16 14:49:28 +00:00
Wei Wang
2b064d7831 Change restricted cpuset dynamically
Currently framework put tasks into restricted cpuset group when display
is off. However, when unlocking screen, SystemUI still runs in
restricted cpuset group leading to jank and delayed UDFPS action. This
CL mitigates problem by dynamically changing restricted cpuset group to
all cpus when display is back on.

Bug: 217481359
Test: Build
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: I1a7d49c69c02f97d70cbb4d2d716ec68cf0b8701
2022-02-16 05:39:49 +00:00
Nate Myren
010d787802 Add notification pregrants to gs201
Test: build
Bug: 218409412
Change-Id: I6cfabcb5a54852f75384b2abd8aada898aa64006
2022-02-15 17:18:16 +00:00
Carter Hsu
dd48757095 audio: update AudioExt to 3.0
Bug: 206065000
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: Ia8decc9cb0962330cb0321b747929efe53f323ba
2022-02-15 09:13:54 +00:00
Gary Jian
9286e0a99f Support 5G on both stacks
Bug: 218650003
Test: manual
Change-Id: I6cd66c1db1c826934008949d7a6007541480d3f9
2022-02-15 07:44:31 +00:00
Sayanna Chandula
589318e5c4 thermal: enable cooling devices cur state permissions
Enable permissions for wcl_fcc and dc_icl cooling devices
current state for charging throttling.

Bug: 204523879
Test: build and boot on device. Check charging throttling
Change-Id: Icf175bd270d0eb6a9d2adcde2199b034683a8b8f
Signed-off-by: Sayanna Chandula <sayanna@google.com>
2022-02-15 05:10:46 +00:00
Ken Huang
ff3ce560fa Set 120Hz frame rate multiple threshold for gs201
Bug: 215043570
Test: play 24fps video and check refresh rate
Change-Id: Ie638f9dcf11e25bdd903d6cde2d0eeb794668e52
2022-02-15 04:07:54 +00:00
Taeju Park
7fca68cdd9 Port missing hints from powerhint.json of gs101
Bug: 207573395
Signed-off-by: Taeju Park <taeju@google.com>
Change-Id: Ia9289b674c988666c1e7cdd10756a0509ec97b39
2022-02-14 23:25:33 +00:00
Robin Hsu
59615c9496 config.xml: pin /system/bin/surfaceflinger
Add /system/bin/surfaceflinger to the pinner service default pin list

Bug: 207573339
Test: by 'dumpsys pinner' command
Change-Id: If29333eb06f2aaaf88fdfbad27fe9de4258c5b27
2022-02-14 11:36:35 +00:00
Rick Yiu
13a4cde946 Dumpstate: Dump vendor group value
Dump attributes and tasks for each vendor group.

Bug: 216844247
Test: build pass
Change-Id: I001efa93fb1ea2fc283daaa28363a0cfc1eefbe8
2022-02-14 06:05:03 +00:00
Carter Hsu
3069e185ee audio: Update Audio HIDL to 7.1
Bug: 205235270
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: Ie1d8b20b001936e6c72ffe3644475c4fb8dad604
2022-02-14 01:02:01 +00:00
Victor Liu
379b46448b uwb: removed unused calibration files
Bug: 218719905
Test: builds
Signed-off-by: Victor Liu <victorliu@google.com>
Change-Id: Iabdbbe03f9aa3cad457d2e086f2f567c9687d5a7
2022-02-11 16:29:05 +00:00
Rick Yiu
1b0d78ac5b Sync vendor task_profiles and init rc file
Sync the settings from P21.

Bug: 207573268
Test: build pass
Change-Id: Ia6f761c6247522707d34888347bec6736c227e9e
2022-02-11 13:47:55 +00:00
Kris Chen
0567190969 Configure permission for AOC UDFPS sysfs node.
Bug: 205242782
Bug: 215044794
Test: Verify system process can read/write to the node.
Change-Id: Iecadeb47e08abf300ccd93eb8e95c91eb3195fd2
2022-02-11 02:43:14 +00:00
Lokesh Gidra
a398ee823c Use same dalvik heap config as gs101
A different dalvik heap config is being used than the one used in gs101.
Since all the p22 devices have 6+GB RAM, use the corresponding
configuration.

Bug: 218910184
Test: adb shell getprop
Change-Id: Idcb86c3ae14b3409821c01bc9bf16f5b9a820596
2022-02-11 01:27:59 +00:00