Commit graph

7697 commits

Author SHA1 Message Date
Bowgo Tsai
f883475ba9 Removing 'verity_update_state'
This is not needed in device-specific init.rc file, because it's
is superseded by commit https://r.android.com/1866693.

Bug: 203720638
Test: presubmit
Change-Id: I74cfa6f3aa0c9125559f3241ed8e23f8a8510616
2021-11-04 07:03:04 +00:00
Adam Shih
f2353c6aed update error on ROM 7882509
Bug: 205073232
Bug: 205072921
Bug: 205073231
Bug: 205073165
Bug: 205073003
Bug: 205073229
Bug: 205073167
Bug: 205073164
Bug: 205073230
Bug: 205073038
Bug: 205073024
Bug: 205073117
Bug: 205073023
Bug: 205072922
Bug: 205073166
Bug: 205072689
Bug: 205073025
Bug: 205070818
Test: pts-tradefed run pts -m PtsSELinuxTest
Change-Id: I84cc72176363ed31203b7f7afe0720c3153d2cc6
2021-11-04 14:09:41 +08:00
Wayne Lin
65318b7882 gps: update gps driver 129.20.23.518727
Fix to delete RTO too when delete all aiding received
Add mutex to protect malloc/free
Fix for the bug of power mode logging in ONCHIP_NMEA
[GNSS] Enable CHPP for P22
Reporting PLMN (MCC+MNC) of SIM and Network
[O6] 5s GPS outage when OnChip/Host switching
5G E911 AGPS implementation
Please clarify gnss error message
[SQ1A] [O6] Native crash - AID_GPS - signal 6 (SIGABRT)../gpsd (BrcmGpsHalLogJava::Log)

Bug:195383842
Bug:197716902
Bug:199048681
Bug:199265307
Bug:199818363
Bug:199114573
Bug:200107911
Bug:201582435
Bug:203068978

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

Change-Id: I2b667c559c1d955c981561c56bb11ab9a9952044
2021-11-04 01:38:46 +00:00
Andrew Reardon
0cf06f4a7f [WAR] Fix Ravenclaw build by Defaulting gs201 to slider
- This fixes ravenclaw build by continuing to use slider as
target_device for camera tuning.
- Can be updated in the future by properly providing ravenclaw
target_device throughout 3A.

Bug: 204945921
Test: Compiles.

Change-Id: Icb010127eedde87e2c2e0f59d6061d52f53e3ec5
2021-11-03 19:38:17 +00:00
Krzysztof Kosiński
7b8cce3974 Rename Lyric configuration "device" to "soc".
The current name is confusing, as "device" normally refers to the
product name, not the SOC name.

Bug: 203283069
Test: build and flash affected devices
Change-Id: I51014a3316dec4509e0113280b723efb95d26fad
2021-11-02 19:50:06 -07:00
David Kimmel
b94c2fc9ad gs201: Soft max freq persistent properties
Bug: 204105895
Test: adb shell setprop persist.vendor.softmaxfreq.cl0 1328000

Change-Id: I8333a12ff12af674329733120402713dca7e32e3
Signed-off-by: David Kimmel <davidkimmel@google.com>
2021-11-02 21:12:39 +00:00
Andrew Reardon
43b8bedd21 [Camera 3A Tuning] Update LOCAL_TARGET_PRODUCT for gs201 to pancheetah device names
Bug: 200878689
Test: Compilation.

Change-Id: Iab2b213a0b37520f0d44dc4822fc26577efca9b6
2021-11-02 20:22:51 +00:00
Thierry Strudel
29aa1e225f vendor_dlkm.blocklist: add gxp driver preventing device suspend
Signed-off-by: Thierry Strudel <tstrudel@google.com>
Change-Id: Iee61dc96514f23d4b718a46926447779ee327743
2021-11-02 12:09:58 -07:00
Michael Eastwood
54862e27b5 Save .cpa files generated when camera HAL is killed by the watchdog thread.
Bug: 197979923
Test: m -j
Change-Id: Ifbf22dbd9f5fe58d69e27ec157c10fafde4b18e3
2021-11-01 22:58:37 +00:00
millerliang
47153227a4 gs201: Enable AAudio support
Enable the realted property and the needed files
for MMAP use cases.

Bug: 202810406
Test: Oboetester
Change-Id: Ie851dc0152589f405558c744b0101115d9f1d9b0
2021-11-01 08:24:12 +00:00
Adam Shih
d43e7773ee unleash error log related to property access
Bug: 203621307
Test: boot with error revealed
Change-Id: Id537726570bd5cce5716759316559bb792ab055b
2021-11-01 15:15:16 +08:00
Adam Shih
c0d04c41b3 fix citadeld service access
Bug: 204718569
Test: boot with no relevant error
Change-Id: Iba8c01f34c4453c8001e56b25089b467c4de79ea
2021-11-01 10:45:13 +08:00
Adam Shih
8550b06ea4 update error on ROM 7870491
Bug: 204718569
Bug: 204718762
Bug: 204718449
Bug: 204718220
Bug: 204718450
Bug: 204718757
Bug: 204718809
Bug: 204718221
Bug: 204718782
Bug: 204718864
Bug: 204718865
Bug: 204717520
Test: pts-tradefed run pts -m PtsSELinuxTest
Change-Id: Ic0b136fe876bcf67a94d7c35927c6bd0c6506005
2021-11-01 10:39:07 +08:00
Tommy Chiu
3a041b7055 Set boot security patch level for gs201
Bug: 201946955
Test: Build and see if the AVB property has the field
Change-Id: If2aa32ed689271dd553bcc18cb0ec309a2051ae0
2021-11-01 02:35:51 +00:00
Rex Lin
3d43409602 uwb: add uwb configuration file
- use P7 config file as first draft
- add uwb country conf script
- add country config file (b/196073172)

Signed-off-by: Rex Lin <rexcylin@google.com>

Bug: 201232020

Test: ranging works with local build
Change-Id: I8c912becaa5b04f5656ff5b182028c02cc07fe06
2021-10-29 06:25:17 +00:00
Rex Lin
d6f5c71db9 Uwb: Create a new Uwb system service
inherit from gs101-sepolicy

Signed-off-by: Rex Lin <rexcylin@google.com>

Bug: 201232020

Test: ranging works
Change-Id: I0567e6bda78a94c12da3401444faffb36586f331
2021-10-29 12:43:07 +08:00
Adam Shih
de48018a88 remove errors that were filed on the wrong ROM ID
Bug: 202906903
Bug: 202906772
Bug: 202907037
Test: boot with those errors appear again
Change-Id: I5bc173c18b0d2a94ac2146e1c6e405c542e0c9ba
2021-10-29 11:10:43 +08:00
Adam Shih
8cc3f28ac1 fix wlc_hwservice access
10-29 10:38:01.270   440   440 E SELinux : avc:  denied  { find } for pid=1594 uid=10210 name=com.google.input.ITouchContextService/default scontext=u:r:platform_app:s0:c512,c768 tcontext=u:object_r:touch_service:s0 tclass=service_manager permissive=1
10-29 10:38:01.277   440   440 E SELinux : avc:  denied  { find } for pid=1594 uid=10210 name=com.google.hardware.pixel.display.IDisplay/default scontext=u:r:platform_app:s0:c512,c768 tcontext=u:object_r:hal_pixel_display_service:s0 tclass=service_manager permissive=1
Bug: 202906787
Test: boot with no relevant error

Change-Id: I47ea0f1dfe6f3f7b024d4512e0ccd94bc0da93a1
2021-10-29 10:57:39 +08:00
joeshih
96f0d28a31 [P22]Phase in FactoryOtaPrebuilt
- Phase in FactoryOtaPrebuilt to P22

Bug: 204401723
Test: Forrest build
Change-Id: Id139e9b8159583bd5917676a0c256f8e33092657
2021-10-29 02:39:13 +00:00
Adam Shih
73845f7fcd fix rlsservice service access
Bug: 202906997
Test: boot with no relevant error
Change-Id: I964d11956b5f78c410aec230289abc1f6a045023
2021-10-29 10:21:00 +08:00
Adam Shih
c9392bd414 fix vendor_ims_app service access
Bug: 202906888
Test: boot with no relevant error
Change-Id: I25e967bed593b017f11b647c23cfd148738227e0
2021-10-29 10:19:38 +08:00
Adam Shih
d73b97b740 fix vendor_rcs_app service access
Bug: 202907058
Test: boot with no relevant error
Change-Id: Ie435cdadc54cb59b09dadba890a9d1cbdb94b458
2021-10-29 10:17:57 +08:00
Adam Shih
ee3287231f fix hal_usb_impl service access
Bug: 202906786
Test: boot with no relevant error
Change-Id: I99178488a97aa2d0b3d7e4775c88b00321084d63
2021-10-29 10:12:28 +08:00
Donghui Han
4f0140b954 Lyric: Set conditional variable device for Lyric
Bug: 203651233
Test: P21/P22 build
Change-Id: Ifc1d4970f8e81c2254e77792cf57a2c2bbaf4ef1
2021-10-28 23:57:02 +00:00
Peter Csaszar
71a2c8287a init.debug.rc: Change owner/group of SJTAG files
On userdebug & eng builds, change the owner/group of SJTAG sysfs files
that need to be written to 'system', so that BetterBug is able to write
these files.

Bug: 204381544

Test: Ensure that the writable files in the following directories have
'system' as their owner & group:

  /sys/devices/platform/sjtag_ap/interface/
  /sys/devices/platform/sjtag_gsa/interface/

Signed-off-by: Peter Csaszar <pcsaszar@google.com>
Change-Id: I1fd61f702960a266bc8a2f84d1a1358ccefe3c9c
2021-10-28 16:02:13 +00:00
Kris Chen
e6d10041e9 gs201: set permission for UDFPS factory apk to control HBM
Bug: 204142361
Test: Perform UDFPS calibration.
Change-Id: Ie60ddbea72ebe6c3c3998e7cdb8a5809ec47ffd2
2021-10-28 08:43:12 +00:00
Max Kogan
68217c1ae6 sepolicy: gs201: allow dumpstate access AoC stats
Merge changes from gs101

Bug: 203827311
Change-Id: I3028e8d2c162dde74b747cbfe6458cc37a9ad759
2021-10-28 05:14:06 +00:00
Max Kogan
56ea9bfc5b dumpstate: merge AoC gs101 dumpstate
Bug: 203827311
Change-Id: Icb7a925445992d534cae86625b249b46952d9d53
2021-10-28 05:14:06 +00:00
Jing Wang
e4d7cfdbf0 Revert "gps: update gps driver 129.20.23.518727"
This reverts commit 1c28b9b29f.

Bug: 204332282

Test: presubmit P27107402 boots fine on my device.

Signed-off-by: Jing Wang <jwangh@google.com>
Change-Id: Iea0e1a5eeff048659721981de0e81045a8dfa5f2
2021-10-28 04:37:45 +00:00
Adam Shih
23b637e260 fix mediacodec_samsung service access
Bug: 202906949
Test: boot with no relevant errors
Change-Id: I015c58f1b223978cb0e61377f5fc6930477c9a53
2021-10-27 13:24:52 +08:00
Adam Shih
e171a156e2 fix mediacodec_google service access
Bug: 202906901
Test: boot with no relevant errors
Change-Id: I8ba645de225af4a25c52cc14eb05eb60a64ea202
2021-10-27 13:24:46 +08:00
Adam Shih
5e572d5c72 fix hal_camera_default service access
10-25 11:52:35.916   437   437 E SELinux : avc:  denied  { find } for pid=711 uid=1000 name=android.frameworks.stats.IStats/default scontext=u:r:hal_camera_default:s0 tcontext=u:object_r:fwk_stats_service:s0 tclass=service_manager permissive=1
Bug: 202906784
Test: boot with no hal_camera_default errors

Change-Id: I0e21cc11808b973c859ddc2ddebc0db81f999d9f
2021-10-27 13:24:34 +08:00
Wayne Lin
1c28b9b29f gps: update gps driver 129.20.23.518727
Fix to delete RTO too when delete all aiding received
Add mutex to protect malloc/free
Fix for the bug of power mode logging in ONCHIP_NMEA
[GNSS] Enable CHPP for P22
Reporting PLMN (MCC+MNC) of SIM and Network
[O6] 5s GPS outage when OnChip/Host switching
5G E911 AGPS implementation
Please clarify gnss error message
[SQ1A] [O6] Native crash - AID_GPS - signal 6 (SIGABRT)../gpsd (BrcmGpsHalLogJava::Log)

Bug:195383842
Bug:197716902
Bug:199048681
Bug:199265307
Bug:199818363
Bug:199114573
Bug:200107911
Bug:201582435
Bug:203068978

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

Change-Id: I09c78b6a452f611a7d738d17e8e0d474fadb31a4
2021-10-27 03:20:09 +00:00
Dai Li
183de2a96e Remove mfc_fw.bin in original path for gs201
Modify device.mk mfc_fw.bin path according to new release in prebuilts

Bug: 197018291
Test: N/A
Change-Id: I0e34b266536238d214d9722d22432fbdc0e6c51a
2021-10-26 16:34:00 +00:00
Dai Li
74579f987a Change mfc_fw.bin path to bootloader prebuilt bins
Work together with change in bootloader build.sh
go/ppar/41146

Bug: 197018291
Test: N/A
Change-Id: I862aba3c5c251953928a3d3a67c5b9059d699af3
2021-10-26 16:34:00 +00:00
Adam Shih
abf31d56d6 fix secure element service access
Bug: 202902683
Test: boot with no secure element errors
Change-Id: I84ee827d356e6a99af192cce9178fb4f408de5ec
2021-10-25 11:37:10 +08:00
Adam Shih
0ae5acc904 fix graphics_composer services denials
10-25 11:28:32.230   438   438 E SELinux : avc:  denied  { add } for pid=500 uid=1000 name=com.google.hardware.pixel.display.IDisplay/default scontext=u:r:hal_graphics_composer_default:s0 tcontext=u:object_r:hal_pixel_display_service:s0 tclass=service_manager permissive=1
10-25 11:28:33.787   438   438 E SELinux : avc:  denied  { find } for pid=500 uid=1000 name=android.hardware.power.IPower/default scontext=u:r:hal_graphics_composer_default:s0 tcontext=u:object_r:hal_power_service:s0 tclass=service_manager permissive=1
Bug: 202906947
Test: boot with no graphics_composer errors

Change-Id: I4174cbcacb7149427814ca67703799ab02b992e4
2021-10-25 11:31:39 +08:00
Adam Shih
be8aedd6ac fix hal_fingerprint_default denails
10-25 11:19:03.649   430   430 E SELinux : avc:  denied  { find } for pid=958 uid=1000 name=android.hardware.power.IPower/default scontext=u:r:hal_fingerprint_default:s0 tcontext=u:object_r:hal_power_service:s0 tclass=service_manager permissive=1
10-25 11:19:04.509   430   430 E SELinux : avc:  denied  { find } for pid=958 uid=1000 name=android.frameworks.stats.IStats/default scontext=u:r:hal_fingerprint_default:s0 tcontext=u:object_r:fwk_stats_service:s0 tclass=service_manager permissive=1
Bug: 202906981
Test: boot with no fingerprint errors

Change-Id: I95dcda0698c7fcec1e4874b95b598bc987e83e58
2021-10-25 11:24:26 +08:00
Adam Shih
9cb1f625ba fix hal_weaver_citadel denials
Bug: 202907040
Test: boot with nno relevant errors
Change-Id: Ieb7a57518b433cc6cd2849afb58c8616b409db13
2021-10-25 11:09:06 +08:00
Jasmine Cha
6dea3e0842 audio: add permission to request health/sensor data
- Add audio hal into hal_health clients
- allow audio hal to find fwk_sensor_hwservice

SELinux : avc:  denied  { find } for interface=android.frameworks.sensorservice::ISensorManager sid=u:r:hal_audio_default:s0 pid=5907 scontext=u:r:hal_audio_default:s0 tcontext=u:object_r:fwk_sensor_hwservice:s0 tclass=hwservice_manager permissive=1
SELinux : avc:  denied  { find } for interface=android.hardware.health::IHealth sid=u:r:hal_audio_default:s0 pid=9875 scontext=u:r:hal_audio_default:s0 tcontext=u:object_r:hal_health_hwservice:s0 tclass=hwservice_manager permissive=1
audio.service: type=1400 audit(0.0:14): avc: denied { call } for scontext=u:r:hal_audio_default:s0 tcontext=u:r:hal_health_default:s0 tclass=binder permissive=1
audio.service: type=1400 audit(0.0:15): avc: denied { transfer } for scontext=u:r:hal_audio_default:s0 tcontext=u:r:hal_health_default:s0 tclass=binder permissive=1


Bug: 199382564
Bug: 199801586
Test: build pass

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: I6c8d9cd73953b20905857368d740fd91e92c6928
2021-10-20 04:12:48 +00:00
Adam Shih
fc1ec67aa4 fix init_citadel service access
Bug: 202906904
Test: boot to home with no relevant error
Change-Id: I6729ced49cbbecbc33234e311fb81652a065fe39
2021-10-20 10:41:56 +08:00
Adam Shih
ecc3a24449 fix identity service access
10-20 10:32:58.701   438   438 E SELinux : avc:  denied  { find } for pid=742 uid=9999 name=android.hardware.citadel.ICitadeld scontext=u:r:hal_identity_citadel:s0 tcontext=u:object_r:citadeld_service:s0 tclass=service_manager permissive=1
Bug: 202906902
Test: boot to home with no relevant error

Change-Id: Ia6e09343843f9a5c96e06998ba5c50fb64948d7f
2021-10-20 10:35:18 +08:00
Adam Shih
4c20c40f50 Fix hal_keymint_citadel service access
10-20 10:24:31.155   432   432 E SELinux : avc:  denied  { find } for pid=481 uid=1064 name=android.hardware.citadel.ICitadeld scontext=u:r:hal_keymint_citadel:s0 tcontext=u:object_r:citadeld_service:s0 tclass=service_manager permissive=1
Bug: 202907039
Test: boot to home with no keymint errors

Change-Id: I7935fe52a9774f8fca67336be9c9d47fe2675756
2021-10-20 10:26:18 +08:00
Adam Shih
e9d02e08f5 fix widevine drm access
Bug: 202906980
Test: boot with no relevant logs

Change-Id: Idc37f7e1441d9fae1f570bc53ff67a7a48656ed3
2021-10-20 10:06:10 +08:00
Adam Shih
56bef214d3 fix citadeld's service access
Bug: 202906931
Test: boot with no relevant logs
Change-Id: Ic65c6f218f69a1afa14fcd1b6eb0feacf48ea54f
2021-10-20 09:54:52 +08:00
Adam Shih
a39f2e902e remove unlabeled dontaudits
The log shows up when we remount the phone, causing modem images going
back to default file contexts: "unlabeled"
Bug: 202906831
Test: Boot to home with no relevant log

Change-Id: I69baced268782d9b38c1a56c62b3c63ae55733e4
2021-10-20 09:46:02 +08:00
Adam Shih
a5f61547cf remove legacy folder
Bug: 196916111
Test: boot to home
Change-Id: I33e4cf4a339092a31c951098e982c0bd38e53852
2021-10-20 09:33:29 +08:00
Jiyong Park
4f427b5c2b Remove ndk_platform backend. Use the ndk backend.
The ndk_platform backend will soon be deprecated because the ndk backend
can serve the same purpose. This is to eliminate the confusion about
having two variants (ndk and ndk_platform) for the same ndk backend.

The prebuilt files had a reference to
android.hardware.gnss-V1-ndk_platform.so. Change it to
android.hardware.gnss-V1-ndk.so by diretly editing the DT_NEEDED entry.

Bug: 161456198
Test: m
Change-Id: Ib682bad5acefeb2e3ed27cd372a359c92ef5165a
2021-10-20 01:05:45 +00:00
Joseph Jang
24b6c9320a dumpstate: Add support to get GSC DEBUG DUMP
In order to get GSC DEBUG DUMP in bugreport zip file, we add a new
console command "./vendor/bin/hw/citadel_updater -D" to retrieve 1KB
GSC DEBUG DUMP for dumpstate.

If so, we could check GSC DEBUG DUMP in dumpstate_board.txt from bugreport.

File: dumpstate_board.txt
------ Citadel VERSION (vendor/bin/hw/citadel_updater -lv) ------
0.0.2/nugget_v0.0.1138-399621c+ 2021-10-07 08:53:24 josephjang
Chip:    Google Dauntless D2 (evt)
Board:   0
RO_A:    0.1.1/17af49b9 ok
RO_B:  * 0.1.1/b0de9d69 ok
RW_A:  * 0.0.2/nugget_v0.0.1138-399621c+ ok
RW_B:    Error

------ Citadel STATS (vendor/bin/hw/citadel_updater --stats) ------
hard_reset_count            1
time_since_hard_reset       335976980
wake_count                  5
time_at_last_wake           335920127
time_spent_awake            50563801
deep_sleep_count            4
time_at_last_deep_sleep     268360610
time_spent_in_deep_sleep    285413177
time_at_ap_reset            11401
time_at_ap_bootloader_done  10939493
PHONE_ON_L: 1
VOL_UP_L: 1
VOL_DN_L: 1
TEMP.RANGE: 39,39
------ GSC DEBUG DUMP (vendor/bin/hw/citadel_updater -D) ------
debug dump start
000007d70605 85 00 0174aa0d 00000000
000007f56df5 85 00 0174aa0d 00000000
0000080212cd 85 00 0174aa0d 00000000
00000b73fe80 85 00 0174aa0d 00000000
debug dump end

------ Section end: gsc ------

Bug: 194113345
Change-Id: I48feabac2bf2b42f8f0b10a396ea066ace67b694
2021-10-18 14:49:38 +00:00
Adam Shih
862eca1510 remove redundant bluetooth sepolicy
Bug: 202790744
Test: boot with bluetooth hal started

Change-Id: Ie78cb9caeabd6b202ff99f9896fe0ae6e57cabfe
2021-10-18 12:02:08 +08:00