Commit graph

7697 commits

Author SHA1 Message Date
Leo Liou
8423a70e12 sepolicy: hal_health_default: fix avc denied logs
avc: denied { search } for comm="health@2.1-serv" name="/"
dev="sda1" ino=3 scontext=u:r:hal_health_default:s0
tcontext=u:object_r:persist_file:s0 tclass=dir permissive=1

avc: denied { search } for name="/" dev="sda1" ino=3
scontext=u:r:hal_health_default:s0
tcontext=u:object_r:persist_file:s0 tclass=dir permissive=1

avc: denied { search } for name="vendor" dev="tmpfs" ino=2
scontext=u:r:hal_health_default:s0
tcontext=u:object_r:mnt_vendor_file:s0 tclass=dir permissive=1

avc: denied { search } for comm="health@2.1-serv" name="vendor"
dev="tmpfs" ino=2 scontext=u:r:hal_health_default:s0
tcontext=u:object_r:mnt_vendor_file:s0 tclass=dir permissive=1

Bug: 205779737
Test: local build pass
Change-Id: I2be76d97e35bff4e22075641b9031872d628e980
Signed-off-by: Leo Liou <leoliou@google.com>
2021-11-15 14:55:38 +08:00
chenpaul
1053cee419 Wifi: Add sepolicy files for hal_wifi_ext service
avc denied log:
avc: denied { search } for comm="wifi_ext@1.0-se" name="wifi" dev="dm-43" ino=365 scontext=u:r:hal_wifi_ext:s0 tcontext=u:object_r:updated_wifi_firmware_data_file:s0 tclass=dir permissive=1

Bug: 205779850
Test: pts -m PtsSELinuxTest -t com.google.android.selinux.pts.SELinuxTest
      #scanAvcDeniedLogRightAfterReboot
Change-Id: I0c41193b2b9c6a596f142f02c6fee4665fbf2011
2021-11-15 05:25:50 +00:00
Adam Shih
8e6af6f9ad update error on ROM 7914295
Bug: 206331617
Test: pts-tradefed run pts -m PtsSELinuxTest
Change-Id: I3dcd875e127ff1d53554eb419259e8721c2ae628
2021-11-15 03:10:20 +00:00
Jenny Ho
014051a9f7 create hal_health_default.te for Battery Defender access file node
Bug: 205073003
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: I946b85e8b595601f56df26c567d31df76f7a5a5b
2021-11-15 01:53:50 +00:00
Jenny Ho
49425acfb8 dumpstate: sync battery dumpstate data
Bug: 205071645
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: I16dbfb492311e532fa14a001686ca1d3386b57aa
2021-11-15 01:53:30 +00:00
Jenny Ho
d99197dd19 enable battery information dump
Bug: 205071645
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: If811765d51add03d8d7a1f5e8276d2f56c7922a7
2021-11-15 01:53:30 +00:00
Long Ling
91d7dd17d2 upgrade to hwc3
Bug: 201321174
Change-Id: Ifa12a2174d82547b6708021a24a6e9cee6b66fd5
2021-11-12 04:39:24 +00:00
Long Ling
5ff0c059b3 sepolicy: gs201: update label for hwc3 service
Bug: 201321174
Change-Id: I5ecce6c513eecad22a463d52b7cfb718284f3c02
2021-11-12 04:39:24 +00:00
Adam Shih
830fa53e9f update error on ROM 7908395
Bug: 206045367
Bug: 206045604
Bug: 206045368
Bug: 206045605
Bug: 206045471
Test: pts-tradefed run pts -m PtsSELinuxTest
Change-Id: I8b1a0ae9686f47d684428bb79650a7bb0dfe9904
2021-11-12 02:21:53 +00:00
Bob Badour
a52cd301cd [LSC] Add LOCAL_LICENSE_KINDS
Added SPDX-license-identifier-Apache-2.0 to:
  conf/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all
Change-Id: Ie09443987ffc0749d8400387415c7257c033ddb6
2021-11-11 17:36:28 -08:00
Alec Mouri
4ef29314fd Set renderengine backend to skiaglthreaded
gles isn't going to be the final device configuration anywhere

Bug: 206036423
Test: builds
Change-Id: Ie66e2db85e68ef267534fafa2b67a49d3231cf04
2021-11-12 00:19:10 +00:00
Joseph Jang
b4393a0bf3 Fix SELinux error coming from hal_identity_citadel
Bug: 205657024
Change-Id: Ic23b631eb63cf13ba7e08215590e73386d2a3126
2021-11-11 14:52:05 +08:00
Stephane Lee
7a3738058d Add cpm/pca9468 logbuffer directories so that bugreports can take a snapshot
Test: adb bugreport; check dumpstate_board.txt
Bug: 193894298
Change-Id: I548a1715fe2ee679fef304fc4da9465c691e70c0
2021-11-11 06:48:39 +00:00
Ted Lin
270a005cb4 dumpstate: eeprom and fix the permission problem
Bug: 200119012
Change-Id: I753ab06c819f6b1c739a87f27785bcdab05282b6
Signed-off-by: Ted Lin <tedlin@google.com>
2021-11-11 06:48:39 +00:00
Jenny Ho
184fe31622 dumpstate: dump battery maxfg monitor log
Bug: 196755019
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: I04e2be21680c2cc673af1205cdb772fa3b845bd4
2021-11-11 06:48:39 +00:00
Ted Lin
189567984c dumpstate: initialize for gs201
Sync code for charger/guage/PPS/gvotables/Mitigation.

Bug:200119012
Change-Id: I1046626185ac516c5ed4d491e4d7fe7822d1db1b
Signed-off-by: Ted Lin <tedlin@google.com>
2021-11-11 06:48:39 +00:00
neoyu
34cd74d651 Enable RIL audio client implementation for P22
Enable RIL audio client implementation for P22

Bug: 202831948
Test: manual
Change-Id: Ie9ad605e2d6f80504d26211c3f77e479344ce44d
2021-11-11 06:12:34 +00:00
Konstantin Vyshetsky
067512ec32 Generate a separate fstab file for FIPS mode
Add a file "fstab.gs201-fips" alongside the existing "fstab.gs201" in
order to specify different encryption settings in FIPS mode.

"androidboot.fstab_suffix=gs201-fips" on the kernel command line will be
used to select the FIPS fstab when needed.

As the two fstabs should be otherwise identical, generate them from a
template file so that they will stay in sync.

Note that generating the fstabs requires that they be installed as build
system modules rather than via PRODUCT_COPY_FILES, which results in the
vendor_ramdisk copy of the fstabs being installed to system/etc rather
than /.  This shouldn't cause any problem, now that Android has been
updated to look for the fstab in this location too.

(cherry-pick from device/google/gs101)
Test: Boot to home screen with/without fips mode
Bug: 202417706
Signed-off-by: Konstantin Vyshetsky <vkon@google.com>
Change-Id: I8fdc1c9a91399816fa2d4c53f282d63e988ce7d5
2021-11-11 05:04:50 +00:00
Nicole Lee
11475b1588 device.mk: enable modem always on logging by default
Bug: 205420203
Change-Id: I7a4af69d93f0c5b64dbf69ac93ca1a10b06c0c63
2021-11-11 03:39:51 +00:00
Adam Shih
ab13d5a1f7 update error on ROM 7904131
Bug: 205904432
Bug: 205904322
Bug: 205904438
Bug: 205904406
Bug: 205904310
Bug: 205904436
Bug: 205904402
Bug: 205904552
Bug: 205904323
Bug: 205904442
Bug: 205904367
Bug: 205904452
Bug: 205904403
Bug: 205904379
Bug: 205904328
Bug: 205904286
Bug: 205904380
Bug: 205904401
Bug: 205904381
Bug: 205904208
Bug: 205904433
Bug: 205904327
Bug: 205904553
Bug: 205904361
Bug: 205904441
Bug: 205904324
Bug: 205904207
Bug: 205904404
Bug: 205904330
Bug: 205904439
Bug: 205904435
Bug: 205904384
Test: pts-tradefed run pts -m PtsSELinuxTest
Change-Id: I64432a24d562d5868f21a317e5bfd6f25ad24900
2021-11-11 09:47:32 +08:00
Adam Shih
e3bb63ab1b Make display related libraries reachable
Bug: 205780068
Bug: 205779849
Test: boot with no relevant error
Change-Id: I806ecb779690346674816b793a5da21acf1be59b
2021-11-11 01:15:49 +00:00
Minghui Tan
c0e8609cde Update CPU throttle frequencies.
(cherry-pick from device/google/gs101)
Bug: 205010238
Bug: 199761265
Test: CTS
Change-Id: Ie1c907cd96367374f0b51086f54b4d18ab9907da
2021-11-10 18:29:46 +00:00
Peter Liu
3399027688 remove camera prefer idle for streaming low
Currently, the streaming low hint is not used yet.
but we plan to use it with 30fps mode or at the modes that can remove
prefer idle.

(cherry-pick from device/google/gs101)
Bug: 205010238
Bug: 195327798

Signed-off-by: Peter Liu <pingchienliu@google.com>
Change-Id: Ibc75bf596bd05831605643c3fe427154fa626093
2021-11-10 18:29:25 +00:00
Minghui Tan
cf361790f7 Add CAMERA_CPU_THROTTLE as power hint.
(cherry-pick from device/google/gs101)
Bug: 205010238
Bug: 195327798
Test: CPU cores max frequencies updated properly
Change-Id: Idaacbfa1b4dca7765e9754d4aff997dd2495c2a9
2021-11-10 18:28:54 +00:00
vincechiu
86c6a376a7 Camera: create three new groups for camera threads
high-group is running on CPU 6-7.
mid-group is running on CPU 4-5.
mid-high-gropu is running on CPU 4-7.
Move camera tasks to CPU 4-7 for 1 seconds when AP launch.

(cherry-pick from device/google/gs101)
Bug: 205010238
Bug: 194271751
Test: GCA
Change-Id: I8e13e9ad0057b8f42f8ed3958bf0c6d58a5a02bc
2021-11-10 18:28:28 +00:00
Firman Hadi Prayoga
a24669c1fd Add CAMERA_SHOT power hint.
This will improve the snapshot performance, especially JPEG encode.

(cherry-pick from device/google/gs101)
Bug: 205010238
Bug: 192067605
Test: Boot, CTS
Change-Id: I9b879d2c462e0a59891d9a36c770484d00b53e6e
2021-11-10 18:27:31 +00:00
Ethan Lin
d8833073da Modify GCA_CAMERA_SHOT power hints for better performance.
CAMERA_STREAMING has the setting "TAPreferHighCap=1". GCA_CAMERA_SHOT should set "TAPreferHighCap=1" as well in case user leaves the viewfinder.
We could get better performance with "HighCapacityStartCpu=6".

(cherry-pick from device/google/gs101)
Bug: 205010238
Bug: 192534118
Test: manual R4
Change-Id: I85c77ac1ccc2176312b54a6acdd37df55a658f04
2021-11-10 18:27:02 +00:00
Yu(Swim) Chih Ren
99eec5aaf1 boost INT clock when CAMERA_BACKEND_BOOST
Add MIF, INT boost powerhint configuration for CAMERA_BACKEND_BOOST to
improve stability

(cherry-pick from device/google/gs101)
Bug: 205010238
Bug: 168654554

Test: 1. Check clock freq related file when camera start
      2. Check face id function work correctly
      3. P21 Camera Test Checklist done

Change-Id: Ia39acd531063bcf93c2db9971d783f6da8006502
2021-11-10 18:26:27 +00:00
Yu(Swim) Chih Ren
d24f5d832e Add CAMERA_BACKEND_BOOST powerhint configuration to increase backend ISP
clock when camera lauch and secure camera is not used

Add mem, mid CPU cluster power hint configuration when CAMERA_LAUCH

(cherry-pick from device/google/gs101)
Bug: 205010238
Bug: 168654554

Test: 1. Check clock freq related file when camera start
      2. Check perfetto to make sure CPU clock setting does not reset by
      BACKEN boost power hint
      3. P21 camera checklist

Change-Id: Iadc7058c605533f8bd394dff1d9711bb7aca6897
2021-11-10 18:25:47 +00:00
Sung-fang Tsai
c9202135b8 Add GCA_CAMERA_SHOT power hint.
GCA need intensive processing for camera shot and need to tune the
system performance to speed up the processing time. Adds
GCA_CAMERA_SHOT_{BIGCPU/BIGMIDCPU/ALLCPU} power hints to enable GCA to do
adequate power hint for this situation.

(cherry-pick from device/google/gs101)
Bug: 205010238
Bug: 187373665
Test: On device with GCA: b/187373665#comment8 with forrest.
Change-Id: Ife75e52a60de4d67369280998b193fe3ca7f8173
2021-11-10 18:25:21 +00:00
Yu(Swim) Chih Ren
629a071056 Remove clock boost configuration for MIF,TNR,CAMINT when CAMERA_LAUNCH in powerhint.json
Reason for remove: face enroll fail

(cherry-pick from device/google/gs101)
Bug: 205010238
Bug: 168654554
Bug: 187759712

Test: check ISP clock freq no change on local device
Change-Id: I7d70c1fdd7e5d067db1941cced69a375b66ebc89
2021-11-10 18:24:23 +00:00
Peter Liu
fe6cf44ff3 camera power hint: add prefer high cap and prefer idle = 0 to top app
Prefer high cap and prefer idle is to optimize power and
trade off with scheduling latency.
Applying to app side does has no regression on frame drops.
And we can not apply prefer idle to hal process as it impact performance.

(cherry-pick from device/google/gs101)
Bug: 205010238
Bug: 190127212

Test:
1080p60: 20mW power saving, 59fps no regression
slow-mo 240fps: 239+fps

Change-Id: I548becbd2d6ccac8b576cfe54f9021bbf30b4801
2021-11-10 18:23:50 +00:00
Yu(Swim) Chih Ren
89346fc3fb Use powerhint to increase mem, intcam, tnr clock when camera lunch to
improve camera start performace

(cherry-pick from device/google/gs101)
Bug: 205010238
Bug: 168654554

Test: 1. check clock freq related file when camera start
      2. P21 camera checklist

Change-Id: I3447a6028846cc873e9c7195826c470bceaf03c8
2021-11-10 18:23:18 +00:00
Peter Liu
6c34617c55 camera power hint: add extreme and low power hint
Add two more mode for power hint fine tuning.
streaming extreme targets 240fps mode and streaming low targets photo
mode.

Test:
this change is no op, so we will do the test on corresponding lyric
change (ag/14804030).

(cherry-pick from device/google/gs101)
Bug: 205010238
Bug: 189886881

Signed-off-by: Peter Liu <pingchienliu@google.com>
Change-Id: Icd31501347108ccb5b0ec278a92bee89f543c192
2021-11-10 18:22:41 +00:00
Rick Yiu
b42ebbc91a Set top-app prefer_high_cap for GCA
Some GCA features perform better when running in high capacity cpus.
It is set in CAMERA_STREAMING_STANDARD, so photo mode and video mode
of 30 fps will use this setting.

(cherry-pick from device/google/gs101)
Bug: 205010238
Bug: 188777413
Test: ta_prefer_high_cap set correctly
Change-Id: I2fd444635a352d1c6236fd82eb82e67ca1799c97
2021-11-10 18:21:57 +00:00
Peter Liu
a632e32449 camera power hint: add mid cap based on current constraint
Current mid cpu max clock is constrained by little cpu cap.
The cpu cluster clock constraint is going to be significantly reduced,
so put the current mid cap to avoid mid cpu regression.

Further fine tuning on the cap will be continued later.

(cherry-pick from device/google/gs101)
Bug: 205010238
Bug: 186564130

Signed-off-by: Peter Liu <pingchienliu@google.com>
Change-Id: I1e4568bb6e6167c91d8f98da337b1dd849a278bb
2021-11-10 18:20:46 +00:00
Peter Liu
9fa0863b13 camera power hint: raise CPU clock more conservatively at STREAM_HIGH mode
During streaming high fps mode, the BW is high and lead to CPU memory
high latency. This hint tries to avoid raising the CPU clock
at the condition when CPU is waiting for data access.

(cherry-pick from device/google/gs101)
Bug: 205010238
Bug: 184583714
Test:
4k60: 59+fps
1080p60fps: 58fps (b/186806120, disable eis can get 60fps)
Power benefit 80-100mW

Signed-off-by: Peter Liu <pingchienliu@google.com>
Change-Id: I3849dfd170085f7e10b5c53d27af353026a4093a
2021-11-10 18:20:12 +00:00
Peter Liu
f8f72e99d9 camera power hint: add prefer high cap in all modes
Prefer high cap will choose the mid / high cores when possible with
consideration of energy efficiency.

Running task on high cores with low clock is more efficient than running
at little core with high clock.

This hint also addresses CTS issues with keeping latency_sensitive = 1.
(equivalent to prefer idle)

This hint adds:
1) Enable prefer_high_cap of camera vendor group
2) Set high_capacity_start_cpu to 4
4) Set MemFreq floor
5) Change camera-daemon/cpu.uclamp.latency_sensitive owner to root

(cherry-pick from device/google/gs101)
Bug: 205010238
Bug: 186564130

Test:
android.hardware.camera2.cts.RobustnessTest#testAeAndAfCausality (5/5)
android.hardware.cts.CameraTest#testPreviewCallback (5/5)
android.hardware.camera2.cts.CameraDeviceTest#testCameraDeviceRepeatingBurst (5/5)
android.hardware.cts.CameraTest#testFocusDistances (3/6). (3/6) without CL.

*****************************************************************
              raven Camera CTS Test Results

*****************************************************************
Tests Passed: 217, Failed: 0, Not found: 0, Status unknown: 0

Change-Id: Ia2abb0eb9c57fa05c4db7bf1d02053e303301781
2021-11-10 18:19:40 +00:00
Adam Shih
e73b78bdd8 unleash the rest of error log not related to sysfs
Bug: 205212735
Test: boot with error revealed
Change-Id: I3e07ff8632e60cf93360907bccf5cacd16b8c5b9
2021-11-10 12:15:04 +08:00
Adam Shih
53371742c2 update error on ROM 7900024
Bug: 205780088
Bug: 205779872
Bug: 205779877
Bug: 205780065
Bug: 205779906
Bug: 205779737
Bug: 205779871
Bug: 205780093
Bug: 205779850
Bug: 205779736
Bug: 205780090
Bug: 205779798
Bug: 205780186
Bug: 205779849
Bug: 205779799
Bug: 205780067
Bug: 205779581
Bug: 205779869
Bug: 205780068
Test: pts-tradefed run pts -m PtsSELinuxTest

Change-Id: I979411b162c42ace670c35fcfd6ba286f0ea02fb
2021-11-10 11:06:37 +08:00
Jaegeuk Kim
50536e0099 Compress vdex/odex on /data
Bug: 186107892
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: I62d82c4c25f68797910d176440dad0f77b29466b
2021-11-09 18:12:39 -08:00
Adam Shih
7caaa15bd9 unleash error log related to file access
Bug: 205212735
Test: boot with error revealed
Change-Id: I7cee80913ca621e7ab19f690eeb70d79e3d692dc
2021-11-09 14:10:25 +08:00
Adam Shih
95c4e650c8 update error on ROM 7895525
Bug: 205657177
Bug: 205657040
Bug: 205657133
Bug: 205656936
Bug: 205656937
Bug: 205657024
Bug: 205655569
Bug: 205656951
Bug: 205657039
Bug: 205657063
Bug: 205657092
Bug: 205657025
Bug: 205655298
Bug: 205657135
Bug: 205657093
Bug: 205657132
Bug: 205657090
Bug: 205656950
Test: pts-tradefed run pts -m PtsSELinuxTest
Change-Id: I71c27247f9a19fe23a3602bf29793b1f0efc8bc8
2021-11-09 05:45:36 +00:00
Adam Shih
dd5b14c118 unleash error log related to device access
Bug: 205212735
Test: boot with error revealed
Change-Id: I49a995ecf3a050174c614453725fd51e09358688
2021-11-09 01:50:45 +00:00
Roger Wang
95c9b5b2a6 gs201: remove WiFiOverlay
In this commit, I remove WiFiOverlay and will add it into project
folder.

Bug: 204946036
Test: overlay configuration works as expected.
Change-Id: Iac69ff8749de7c2f43117f8e136bbfd0bd9a719d
2021-11-05 20:20:31 +08:00
Roger Wang
5f1a03bf0e Wifi: Add sepolicy files for hal_wifi_ext service
This commit adds the sepolicy related files for hal_wifi_ext service.

avc msg:
avc: denied { set } for property=vendor.wlan.firmware.version pid=682 uid=1010 gid=1010 scontext=u:r:hal_wifi_ext:s0 tcontext=u:object_r:vendor_default_prop:s0 tclass=property_service permissive=1'
avc: denied { call } for scontext=u:r:hal_wifi_ext:s0 tcontext=u:r:grilservice_app:s0:c143,c258,c512,c768 tclass=binder permissive=1

Bug: 205073038
Test: Check no avc_deny on hal_wifi_ext
Change-Id: I5d9b59c56b723174543c0308dd6b0235e998e76c
Signed-off-by: Roger Wang <wangroger@google.com>
2021-11-05 11:08:11 +00:00
Adam Shih
0060a1335c let init.rc set GKI ready property
Bug: 205070818
Test: boot with no relevant error
Change-Id: I929a9d2cfbb5267b178fde09fc5e1f3dcc9ec3d0
2021-11-05 11:25:01 +08:00
Adam Shih
4c9dd893b8 fix platform_app property access
Bug: 205073024
Test: boot with no relevant error log
Change-Id: Ia230b025b89981ed797c95cdf76fe7efd56d3fa7
2021-11-05 11:24:57 +08:00
Adam Shih
64af79f39a update error on ROM 7886118
Bug: 205202540
Bug: 205202541
Bug: 205202542
Test: pts-tradefed run pts -m PtsSELinuxTest
Change-Id: I21db6eb0ee47a9a4d002fc897c143eae0f0b614a
2021-11-05 10:36:11 +08:00
Krzysztof Kosiński
373e520a92 Add Lyric camera IQ tuning configuration.
Bug: 200221875
Test: build and check camera HAL APEX content for affected devices
Change-Id: I441a158231fd1c8fb950e2c1c0d1539cea1af70c
2021-11-04 07:41:04 +00:00