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>
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
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
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>
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>
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
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>
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>
Bug: 264929465
Test: Confirm selinux error no longer
Change-Id: Iff9a81ffe6957c5510109e5698be2ea98d42bfdd
Signed-off-by: George Lee <geolee@google.com>
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>
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>
Set the device FCM optional to true for PDK build
Bug: 263483671
Change-Id: I100c75bf6639b955ea740fff7269e2d9a47018b9
Signed-off-by: Ken Yang <yangken@google.com>
This reverts commit c414adbf32c8df53265844b51d0d75e500300527.
Reason for revert: DroidMonitor-triggered revert due to breakage, bug b/263437450
Change-Id: I3badfa6fd35fde19c199d71894124212edaf7dc8
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>