392 Commits

Author SHA1 Message Date
Adam Shih
6965958295 add perf dump
Bug: 240530709
Test: adb bugreport
Change-Id: Ie6b4ceb9dcc9daa199927fde56d720816145f344
2023-02-10 13:30:18 +08:00
George Lee
3cee7a2fca Merge "bm: Check thermal prior to bootreason check" 2023-02-09 16:58:11 +00:00
timtmlin
d551cbe93a rename HAL to hardware.google.ril_ext
Move HAL AIDL from internal folder to hardware/google/interfaces

Bug: 258184594
Test: make
Change-Id: Ifc387bff98a4744f599f0e6175cec98cb85d83d2
2023-02-09 13:24:35 +00:00
George Lee
868cd2ac91 bm: Check thermal prior to bootreason check
vendor.brownout_reason was set because sys.boot.reason still contains
the reason from prior reboot.  By enforcing thermal check prior to
bootreason check guarantees the sys.boot.reason will have the most
recent boot reason.

Bug: 268344942
Test: Confirm through artificial triggering of brownout
Change-Id: I69cb459f4c51f7db439d5993330691a7ad1f5dbe
Signed-off-by: George Lee <geolee@google.com>
2023-02-09 04:58:27 +00:00
Pat Tjin
7c7ea154e3 Add more OWNERS
Change-Id: I6407344601d260d1a4fefcfe7324ab7928267da1
2023-02-08 22:27:15 +00:00
Darren Hsu
d094ba620f powerstats: fix buffer underflow issue in CPUPM data provider
Bug: 267827563
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I569a20f250c7ca3586f71084918022f04d6693d4
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2023-02-07 18:09:39 +08:00
Xiang Wang
d865bd3bf9 Merge "Allow battery_mitigation to use Binder IPC" 2023-02-07 03:00:38 +00:00
Xiang Wang
82860bfe63 Allow battery_mitigation to use Binder IPC
This is to resolve the following local error when testing with Thermal
 AIDL service enabled:
auditd  : type=1400 audit(0.0:4): avc: denied { call } for comm="servicemanager" scontext=u:r:servicemanager:s0 tcontext=u:r:battery_mitigation:s0 tclass=binder permissive=0

Bug: b/264595820
Test: pts-tradefed run pts -m PtsSELinuxTest
Change-Id: I825ed2b644360e695081fe06489fabf3feb913bd
2023-02-07 02:29:01 +00:00
Ziyi Cui
bf2b0ddddb Merge "gs-common: Update path reading for temperature residency metrics" 2023-02-07 02:05:42 +00:00
Feiyu Chen
006a366803 Merge "Add android property vendor.edgetpu.tflite_delegate.force_disable_io_coherency" 2023-02-05 00:19:58 +00:00
feiyuchen
1fa64096e9 Add android property vendor.edgetpu.tflite_delegate.force_disable_io_coherency
because we need it for DarwinnDelegate to forcelly disable the cache coherency feature for debugging purpose. This sys prop should be readable by all Darwinn Delegate clients, but only modifiable by `adb root`.

Test: Verified that both camera app and camera HAL can read the flag. See pending CL cl/507001854 and android_flag_permission_test.md

Bug: 262420821
Change-Id: I0ae7e02f1d4805956a05afeb92f892cbac6d5213
2023-02-03 23:44:52 +00:00
George Lee
777534e5fa Merge "logger: Change access right to lastmeal.txt" 2023-02-02 04:40:46 +00:00
George Lee
930ea07e39 logger: Change access right to lastmeal.txt
Bugreport cannot access lastmeal.txt due to access right.

Bug: 239709385
Test: confirm lastmeal.txt has system:system
Change-Id: Id207bf86096333710f8e55533fb806ae9f3a66c5
Signed-off-by: George Lee <geolee@google.com>
2023-02-01 17:44:01 +00:00
TreeHugger Robot
a74135a3f3 Merge "bm: remove sysfs_bcl label from odpm" 2023-02-01 17:06:10 +00:00
Sajid Dalvi
63342b37e4 Merge "dumpstate: Add logbuffer support for pcie" 2023-01-31 19:53:26 +00:00
Tim Lin
163ebed2dd Merge "add configuration for ril extension service" 2023-01-31 13:25:01 +00:00
George Lee
63703f8d5e bm: remove sysfs_bcl label from odpm
Bug: 264929465
Test: Confirm label
u: object_r:sysfs_odpm:s0 i2c-0/0-001f/s2mpg14-meter/s2mpg14-odpm/iio:device1/lpf_power
Change-Id: Ia8a34b83cc0c91d8936c60e475ec926e859cc8b1
Signed-off-by: George Lee <geolee@google.com>
2023-01-27 15:33:37 -08:00
Sajid Dalvi
e79e3b167a dumpstate: Add logbuffer support for pcie
Add logbuffer support to pcie driver to reduce dmesg spam.

Bug: 228870318
Change-Id: I20f3d88c79d92a2b0d64606b430c064dc2ab5e6c
Signed-off-by: Sajid Dalvi <sdalvi@google.com>
2023-01-24 18:59:42 -06:00
Ziyi Cui
56fa8128ad gs-common: Update path reading for temperature residency metrics
Bug: 260915419

Test: Verified the existence of atom

adb shell cmd stats print-stats | grep 105045

Change-Id: Ice71b6ac9bf6fa41673f9ff89880b06b92741324
Signed-off-by: Ziyi Cui <ziyic@google.com>
2023-01-25 00:00:32 +00:00
Victor Barr
c148039051 Merge "Add support for dba hal in common edgetpu packages" 2023-01-19 21:52:37 +00:00
Alex Hong
094ccc2d84 Merge "Allow vendor_init to set the touch properties" 2023-01-18 11:40:50 +00:00
Victor Barr
810349517a Add support for dba hal in common edgetpu packages
Previously supported in some cases. Now extend it to all common cases

Bug: 263394888
Test: Built and ran DBA Hal on Android Device
Change-Id: I9a5c6a6c8d8b6c23a7d86678ecae57a9f0bcdf7a
2023-01-17 18:04:45 +00:00
timtmlin
3c9d33893c add configuration for ril extension service
Bug: 258184594
Test: make
Change-Id: I4b3683b5154745e1208434f40a78c4a797f53975
2023-01-16 13:13:27 +00:00
Xin Li
4436f9d6c5 [automerger skipped] Merge tm-qpr-dev-plus-aosp-without-vendor@9467136 am: 0725b4c5fd -s ours am: c71ebeb4bc -s ours
am skip reason: Merged-In Ia4041e10156eadb37799ebdc12b33fbb3de4c54d with SHA-1 c010e721ea is already in history

Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs-common/+/20947041

Change-Id: Ibb77bbb5378cadce13cd2fc884e205182f2f3cae
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-13 21:35:27 +00:00
George Lee
5b8667622b Merge "selinux: enable lpf_power for sysfs_bcl" 2023-01-13 15:12:07 +00:00
Ken Yang
bb341d3306 Merge "WLC: Add the essential sysfs_wlc policy files" 2023-01-13 14:41:31 +00:00
Alex Hong
1853f664dd Allow vendor_init to set the touch properties
Bug: 211547922
Test: SELinuxUncheckedDenialBootTest
Change-Id: I88f9b05cedb6aff7baf9e350b3512d14c92b53da
2023-01-13 22:10:17 +08:00
Xin Li
c71ebeb4bc [automerger skipped] Merge tm-qpr-dev-plus-aosp-without-vendor@9467136 am: 0725b4c5fd -s ours
am skip reason: Merged-In Ia4041e10156eadb37799ebdc12b33fbb3de4c54d with SHA-1 c010e721ea is already in history

Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs-common/+/20947041

Change-Id: I866128a579fe5735771b53c4a5f902119bb991a9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-13 08:08:03 +00:00
George Lee
d97ad6eeec selinux: enable lpf_power for sysfs_bcl
Bug: 264929465
Test: Confirm selinux error no longer
Change-Id: Iff9a81ffe6957c5510109e5698be2ea98d42bfdd
Signed-off-by: George Lee <geolee@google.com>
2023-01-12 21:06:08 -08:00
Xin Li
0725b4c5fd Merge tm-qpr-dev-plus-aosp-without-vendor@9467136
Bug: 264720040
Merged-In: Ia4041e10156eadb37799ebdc12b33fbb3de4c54d
Change-Id: I84ee1eacd23193d4bd40d6e2e74afc424fa57668
2023-01-11 22:46:17 -08:00
Bill Richardson
4b276e1909 Merge "Remove weaver/oemlock/authsecret HIDL services" 2023-01-10 17:05:18 +00:00
Darren Hsu
a3792b2a2f powerstats: Introduce CpupmStateResidencyDataProvider
Bug: 263276734
Bug: 264728626
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I0887dde159d6f6ed1f5c470464eaf817ecc7b4eb
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2023-01-09 09:16:21 +00:00
Darren Hsu
462f7eb730 powerstats: add OWNERS for power stats am: 7885d61cd4 am: 6230c14fe5 am: 03bc2cf0c1
Original change: https://android-review.googlesource.com/c/device/google/gs-common/+/2375575

Change-Id: If023c632ae81e0fe56381d6c70b70433781a87ab
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-09 08:45:56 +00:00
Darren Hsu
03bc2cf0c1 powerstats: add OWNERS for power stats am: 7885d61cd4 am: 6230c14fe5
Original change: https://android-review.googlesource.com/c/device/google/gs-common/+/2375575

Change-Id: I1ee1a4b8068c7b9bf6ad8596c23ff70ea4a16ca3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-09 08:08:48 +00:00
Darren Hsu
6230c14fe5 powerstats: add OWNERS for power stats am: 7885d61cd4
Original change: https://android-review.googlesource.com/c/device/google/gs-common/+/2375575

Change-Id: Id04a3d47774ade828a7ea0c8c834a225f1669e6f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-09 07:34:17 +00:00
Darren Hsu
7885d61cd4 powerstats: add OWNERS for power stats
Bug: 264815906
Test: N/A
Change-Id: I7962429126547b974bdc3133b00b49624a94959c
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2023-01-09 10:43:10 +08:00
Ken Yang
2e7a9e8004 WLC: Add the essential sysfs_wlc policy files
1. Add the essential sysfs_wlc policy files to gs-common to cleanup the
wireless_charger module dependent problems
2. Move out sepolicy type definitions to each device so the sepolicy can
be self contained

Bug: 263830018
Change-Id: I46da58685c5180d774fc445dc1f1c6f3a1780cc0
Signed-off-by: Ken Yang <yangken@google.com>
2023-01-06 18:48:47 +00:00
Super Liu
dc8a407491 Support gti proc dump.
Bug: 262796907
Test: TreeHugger build pass.
Signed-off-by: Super Liu <supercjliu@google.com>
Change-Id: I3dd73b9832c737f7c60639af649ae882e206aa15
2023-01-06 08:38:29 +00:00
George Lee
26eb4f5f17 Merge "battery_mitigation: fix brownout reporting" 2023-01-05 01:59:41 +00:00
George Lee
4b3a85cac0 battery_mitigation: fix brownout reporting
Ensure ro.boot.bootreason equals sys.boot.reason before filing bugreport
for Brownout.

Bug: 263274350
Test: Local testing to confirm
Change-Id: I321a7c71bb7ef8c13fa49bb356be34bf789e7bef
Signed-off-by: George Lee <geolee@google.com>
2023-01-04 15:18:14 -08:00
TreeHugger Robot
ca14af53f7 Merge "Add sepolicy for sysfs_touch type." 2023-01-04 04:13:52 +00:00
Super Liu
ed4ed5c6ea Add sepolicy for sysfs_touch type.
Bug: 263108813
Test: TreeHugger build pass.
Signed-off-by: Super Liu <supercjliu@google.com>
Change-Id: I337863e7df3195deecc6de0202cded610118bfe0
2023-01-04 02:15:51 +00:00
TreeHugger Robot
98a3199860 Merge "WLC: Set the wireless_charger FCM to optional" 2022-12-26 11:11:22 +00:00
Ken Yang
532d093c12 WLC: Set the wireless_charger FCM to optional
Set the device FCM optional to true for PDK build

Bug: 263483671
Change-Id: I100c75bf6639b955ea740fff7269e2d9a47018b9
Signed-off-by: Ken Yang <yangken@google.com>
2022-12-26 09:54:26 +00:00
George Lee
572f3b63df Merge "Revert "battery_mitigation: fix brownout reporting"" 2022-12-23 00:49:13 +00:00
Hung-Wei Chen
c264882781 Revert "battery_mitigation: fix brownout reporting"
This reverts commit c414adbf32c8df53265844b51d0d75e500300527.

Reason for revert: DroidMonitor-triggered revert due to breakage, bug b/263437450

Change-Id: I3badfa6fd35fde19c199d71894124212edaf7dc8
2022-12-22 07:01:25 +00:00
George Lee
4a30c8bdc7 Merge "battery_mitigation: fix brownout reporting" 2022-12-22 02:31:59 +00:00
Ken Yang
c4db26c410 Merge "WLC: Add the wireless_charger service to gs-common" 2022-12-21 08:36:14 +00:00
George Lee
c414adbf32 battery_mitigation: fix brownout reporting
Ensure ro.boot.bootreason equals sys.boot.reason before filing bugreport
for Brownout.

Bug: 263274350
Test: Local testing to confirm
Change-Id: I78b7b3fa6cf4d5d46cabac516378c621dc290603
Signed-off-by: George Lee <geolee@google.com>
2022-12-20 16:51:35 -08:00
ChengYou Ho
74dc039db5 Remove weaver/oemlock/authsecret HIDL services
they're replaced by AIDL services

Bug: 176858088
Bug: 182976659
Change-Id: Ibc355cc02182b51e6f68feb251b59c7399aba727
2022-12-20 18:12:37 +00:00