580 Commits

Author SHA1 Message Date
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
Android Build Coastguard Worker
d925691928 Snap for 9576141 from d094ba620f0fb5e2842c03ae2df1eee6664845f3 to udc-release
Change-Id: I1ce4536d73517f8f977bc5728760c485badc330d
2023-02-08 02:02:50 +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
Android Build Coastguard Worker
dcdd439b1d Snap for 9564855 from 006a3668038c0603b0ee31dbd079082d877c7efb to udc-release
Change-Id: I14691c7b74290e5c4a7ac00010df4c3c2fcb2155
2023-02-05 02:02:30 +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
Android Build Coastguard Worker
6689e6067e Snap for 9556278 from 777534e5fad4047d55620aa0f14b1807d4d87bd3 to udc-release
Change-Id: Ib4892906a5edd80092d5becb2f6a37931ed76bbf
2023-02-03 02:02:38 +00:00
George Lee
777534e5fa Merge "logger: Change access right to lastmeal.txt" 2023-02-02 04:40:46 +00:00
Android Build Coastguard Worker
28613fc8ca Snap for 9552483 from a74135a3f3b6ee1f39e2bc5ee71983c01b075de4 to udc-release
Change-Id: I2252daf81b700b307c50178a554d7209235fd2dc
2023-02-02 02:14:30 +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
Android Build Coastguard Worker
ef1fffc0ca Snap for 9546944 from 63342b37e45e9807ba79570eccf5786dc81365dd to udc-release
Change-Id: Ide6a66df6fb61f23cd2465cbaa7f490a77ac2329
2023-02-01 02:02:41 +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
Android Build Coastguard Worker
5af90a711c Snap for 9514456 from c148039051eec0422700b8d016bb30b52d00a665 to udc-release
Change-Id: I635bad837c4c97251fb77115681bd8df086a0b48
2023-01-21 04:03:12 +00:00
Victor Barr
c148039051 Merge "Add support for dba hal in common edgetpu packages" 2023-01-19 21:52:37 +00:00
Android Build Coastguard Worker
5afba343d7 Snap for 9505375 from 094ccc2d84ba8e8aeaee5d395f68ca1c1c1a6cd8 to udc-release
Change-Id: Ic5ee851b2f0f6853357e671943e5cb8060a8f247
2023-01-19 04:02:45 +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
Android Build Coastguard Worker
3a869156f1 Snap for 9491836 from 4436f9d6c55b727c500ea0f379f1f92d998fa49d to udc-release
Change-Id: Ia7079ad66ad7f7feb2798967437339f4166e0307
2023-01-15 02:02:13 +00:00
Android Build Coastguard Worker
5f6ec574fd Snap for 9489393 from 5b8667622bdd80dd7ed86ba1bde6df6533fb7fb9 to udc-release
Change-Id: I3c3149f20ea28ce8d44bb906d7d83aa3a1dfdd6c
2023-01-14 04:03:12 +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
Android Build Coastguard Worker
2533d56073 Snap for 9475114 from 4b276e1909237ac16e6e34834f839f2e5b0a4a06 to udc-release
Change-Id: Ib50c4e4484b38b445c34f131bc1395ff755fb6d1
2023-01-11 02:07:57 +00:00
Bill Richardson
4b276e1909 Merge "Remove weaver/oemlock/authsecret HIDL services" 2023-01-10 17:05:18 +00:00
Android Build Coastguard Worker
325ca8bbcb Snap for 9470759 from a3792b2a2f26a8a11ec530c2ba1d3d52a57b2304 to udc-release
Change-Id: I2680e7d1d1cae5f7497eb0bb0f83bec79db17ae8
2023-01-10 02:03:02 +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
Android Build Coastguard Worker
1ef3089041 Snap for 9459940 from 26eb4f5f17ab7f9abbfa4b202e2ca9ad7f71f7cb to udc-release
Change-Id: If2604246eb897d930e8783a19ca745f2161a2ee4
2023-01-06 02:02:39 +00:00
Android Build Coastguard Worker
29cf484194 Snap for 9455153 from ca14af53f79c07bef5ec1134a56fe852f4c42a35 to udc-release
Change-Id: Id164d24095eed21efbd0065d1143e550eb81d961
2023-01-05 02:02:44 +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