170 Commits

Author SHA1 Message Date
Ziyi Cui
2b0742ec9d gs-common:dumpstate: Dump long irq metrics, resume latency metrics at bugreport
Create pixel_metrics to support bugreport for metrics

Bug: 227809911
Bug: 232541623
Test: Test: "adb bugreport" includes metrics capture.
Change-Id: If62a53b5ffa643c37c287f8ba0319de1d6b07529
Signed-off-by: Ziyi Cui <ziyic@google.com>
2022-11-28 20:16:20 +00:00
Cheng Chang
27a1f9914e Merge "gps: nstandby path depend on platform" 2022-11-24 06:54:15 +00:00
Cheng Chang
2ab714eb08 gps: nstandby path depend on platform
Bug: 259353063
Test: no avc denied about nstandby
Change-Id: Ia5af7b265fc25ee876c8b450e24e2975fc064aea
2022-11-24 02:20:41 +00:00
Ziyi Cui
4a96ebedbf gs-common:dumpstate: Dump Temperature Residency at bugreport
At the bugreport, capture Temperature Residency metrics

Bug: 246799997
Test: Test: "adb bugreport" includes temp residency metrics capture.
Change-Id: I1cb1c9e53890f3175812e15a15f09bcb7fd9d6af
2022-11-24 00:12:48 +00:00
Adam Shih
592dddbd9a Merge "create gti dump" 2022-11-23 05:30:55 +00:00
Cheng Chang
d97128f154 Merge "gps: move out gps/brcm prebuilt" 2022-11-22 11:40:43 +00:00
Adam Shih
d92e8d74bf create gti dump
Bug: 256521567
Test: adb bugreport
Change-Id: I0da3eaac96b436e11444c2677b12b8947a4ddcef
2022-11-21 12:56:16 +08:00
Adam Shih
d8180e5dfe create focaltech folder for touch
Bug: 256521567
Test: adb bugreport
Change-Id: Ibff80f64ca78bd81a5cb5542183866d9a0863ec5
2022-11-18 13:48:41 +08:00
Adam Shih
e74c980648 Merge "Create syna touch dump" 2022-11-17 07:09:28 +00:00
George Lee
5d35bfc764 Merge "gs-common: Add BrownoutDetection app" 2022-11-16 17:15:22 +00:00
Cheng Chang
0c6de1ebbd gps: move out gps/brcm prebuilt
Bug: 256567319
Test: cts and vts pass
Change-Id: I13df413a1f22c011931bac85bfcfa9c708feee04
2022-11-16 07:25:28 +00:00
Adam Shih
dbd4baff00 Create syna touch dump
Bug: 256521567
Test: adb bugreport
Change-Id: I408111e25ccee494d576dbdcbec3cb15e0ddae6d
2022-11-16 05:58:16 +00:00
Adam Shih
a4d16cf5a0 create raven touch dump
Bug: 256521567
Test: adb bugreport
Change-Id: Ibf5d74936605f7b0a3a2124bb7df094c60644c23
2022-11-16 12:59:29 +08:00
Adam Shih
02325bb263 Merge "create thermal dump in gs-common" 2022-11-16 03:52:41 +00:00
Roger Fang
8f068990b3 Merge "sepolicy: add permission for CCA rate of pixelstats-vend" 2022-11-15 10:20:42 +00:00
Adam Shih
486bbb9212 create thermal dump in gs-common
Bug: 257880034
Test: adb bugreport
Change-Id: I0d93796c2639148dfb00b0d739cbae483091bfd4
2022-11-15 15:36:01 +08:00
George Lee
66547716ae gs-common: Add BrownoutDetection app
This app files bugreport for user-debug build with reboot reason = ocp
or uvlo.  Removed the dependency on BetterBug.

Bug: 237287659
Test: Ensure bugreport is generated under user-debug build with reboot
reason = ocp or uvlo.
Change-Id: Ieaa4d02ea10413b3b7c0e314b5deb07d38d98a80
Signed-off-by: George Lee <geolee@google.com>
2022-11-15 02:57:48 +00:00
Roger Fang
1ac9127cbd sepolicy: add permission for CCA rate of pixelstats-vend
pixelstats-vend: type=1400 audit(0.0:7): avc: denied { read } for name="cca_rate_read_once" dev="sysfs" ino=101939 scontext=u:r:pixelstats_vendor:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0

Bug: 249225148
Test: Manually test passed

Change-Id: Iab3343d3d1184201b97fe336c6fef4d298004a5d
Signed-off-by: Roger Fang <rogerfang@google.com>
2022-11-11 09:10:23 +00:00
Adam Shih
30b4bba516 move sensors dump to gs-common
Bug: 250475720
Test: adb bugreport
Change-Id: I711f5397f4426822be1150ee9783aeb728632821
2022-11-11 12:07:16 +08:00
TreeHugger Robot
0c06f971e0 Merge "move sensors dump to gs-common" 2022-11-10 05:20:50 +00:00
Adam Shih
a4bfa665c8 Merge "centralize common settings for edgeTPU" 2022-11-10 03:19:29 +00:00
Adam Shih
af0e90ecb1 centralize common settings for edgeTPU
Bug: 258114806
Test: build pass with all the things still in the ROM
Change-Id: Iafa355c047d39cfb21ef043ed0e7b4108630b781
2022-11-08 13:34:35 +08:00
George Lee
901bff6565 Merge "betterbug: Fixed sepolicy related to File" 2022-11-08 04:36:57 +00:00
George Lee
27725bd144 betterbug: Fixed sepolicy related to File
Added File Attachment sepolicy for betterbug

Bug: 237287659
Test: Attach files from local directory and confirm it can be attached.
Change-Id: I2e77894d4b12a302f0498aab3aa59be6fb95b795
Signed-off-by: George Lee <geolee@google.com>
2022-11-07 16:54:45 -08:00
TreeHugger Robot
a3319d4b0d Merge "betterbug: Fixed sepolicy related to mediaserver" 2022-11-07 01:46:11 +00:00
George Lee
6b49a4ea4f betterbug: Fixed sepolicy related to mediaserver
Added mediaserver sepolicy for betterbug

Bug: 237287659
Test: Run same video capture on Betterbug to confirm video can be
captured.
Change-Id: Ifcb2bdba6f8036805f311a9d6b76227bf63e39e3
Signed-off-by: George Lee <geolee@google.com>
2022-11-05 10:39:53 -07:00
Bob Badour
985ce42202 [LSC] Add LOCAL_LICENSE_KINDS to device/google/gs-common
Added SPDX-license-identifier-Apache-2.0 to:
  gps/brcm/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all
Change-Id: Id24967e37b2fafa55841703f3eb2017ce06f4aa6
2022-11-03 07:59:10 -07:00
George Lee
bb204b4ce3 Merge "betterbug: Update selinux policy for master" 2022-11-02 02:47:38 +00:00
Adam Shih
597d1873f6 Merge "move gps init.rc settings to gs-common" 2022-11-02 02:34:53 +00:00
George Lee
271a36cdcc betterbug: Update selinux policy for master
Update startup_bugreport_requested property to vendor_public for
betterbug to access.

Bug: 237287659
Test: Load Betterbug for accessing startup bugreport reason property
Change-Id: I7102156fe62d5f03f64c367014c2d1ce9bd679b6
2022-11-01 17:09:23 -07:00
George Lee
a2c73f3a52 bcl: Change bugreport_requested prop to public
This is to resolve a merge conflict due to property configuration.

Bug: 256639156
Test: compile with ag/20329329
Change-Id: I6dacdb5f7342b84f880af84a477532205a7e3b9f
Signed-off-by: George Lee <geolee@google.com>
2022-11-01 12:34:10 -07:00
George Lee
9a49819f15 Merge "bcl: Add Mitigation Logger" 2022-10-31 14:17:57 +00:00
Adam Shih
067e82f2f2 move gps init.rc settings to gs-common
Bug: 254758553
Test: boot and open google map getting my location
Change-Id: Id6006b8e058e1b684b4085a47be306fa0cc5f405
2022-10-31 10:51:30 +08:00
George Lee
a1bea3e3e3 bcl: Add Mitigation Logger
Mitigation Logger logs battery related information for 1 second when it
is triggered by under voltage or over current interrupts.  Information
collected is to help debug system brownout.

Bug: 228383769
Test: Boot and Test
Signed-off-by: George Lee <geolee@google.com>
Change-Id: I24e5075b12a9bb3f16241de268254bde38c133d0
2022-10-28 05:25:08 +00:00
Adam Shih
82e09f8597 move brcm gps solution to gs-common
Bug: 254758553
Test: google map can locate on pixel
Change-Id: I466a7d3a45f37a7de5aaed55c2df7f06ba97268d
2022-10-27 11:06:46 +08:00
Bowgo Tsai
b23da02382 [automerger skipped] Adding developer GSI keys am: c010e721ea am: 772f4a3bae -s ours
am skip reason: Merged-In Ia4041e10156eadb37799ebdc12b33fbb3de4c54d with SHA-1 c42b5e2fc5 is already in history

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

Change-Id: I22f6f34b9906d527ca7f5ec69ef89419478d17e1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-25 17:25:25 +00:00
Bowgo Tsai
772f4a3bae Adding developer GSI keys am: c010e721ea
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs-common/+/20265094

Change-Id: I17bbf55cbc98afee24ad12b9b0c9fe18114ae887
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-25 16:50:10 +00:00
Bowgo Tsai
c010e721ea Adding developer GSI keys
Bug: 254752713
Test: build and check $OUT/installed-files-vendor-ramdisk.txt that GSI
      keys are included
Change-Id: Ia4041e10156eadb37799ebdc12b33fbb3de4c54d
Merged-In: Ia4041e10156eadb37799ebdc12b33fbb3de4c54d
(cherry picked from commit c42b5e2fc5e9eeb2aee93b211b8cf2985a913930)
2022-10-25 15:58:38 +08:00
Bowgo Tsai
c42b5e2fc5 Adding developer GSI keys
Bug: 254752713
Test: build and check $OUT/installed-files-vendor-ramdisk.txt that GSI
      keys are included
Change-Id: Ia4041e10156eadb37799ebdc12b33fbb3de4c54d
2022-10-21 15:03:57 +08:00
Adam Shih
8146116936 move aoc settings to gs-common
Bug: 248426917
Test: boot with aoc launched
Change-Id: I7f3e65f9b27510bff657ca46c9688932a0352437
2022-10-20 11:23:26 +08:00
Adam Shih
9c93403876 move sensors dump to gs-common
Bug: 250475720
Test: adb bugreport
Change-Id: I15ec38810792c9216ad63de59a8f3aeb5f871bc5
2022-10-20 10:17:59 +08:00
Adam Shih
4b68f5fe95 create a lib to hold commonly used functions
Bug: 240530709
Test: adb bugreport
Change-Id: Idcdcca968b65d2bd413b219d39fc1104dfc9f3b8
2022-10-18 13:38:13 +08:00
Adam Shih
19236e9079 Merge "move aoc dump to gs-common" 2022-10-12 00:08:34 +00:00
Xin Li
9b76b5b920 [automerger skipped] Merge tm-qpr-dev-plus-aosp-without-vendor@9129937 am: 8d040eaa88 -s ours am: bf5b42acd8 -s ours
am skip reason: Merged-In Iad7403dcbc0ad12b77154003f4aa61afedf2224f with SHA-1 edf8707658 is already in history

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

Change-Id: I7793f527164699a632ddbf97d9fbd50aa2b9583a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-11 20:09:39 +00:00
Xin Li
bf5b42acd8 [automerger skipped] Merge tm-qpr-dev-plus-aosp-without-vendor@9129937 am: 8d040eaa88 -s ours
am skip reason: Merged-In Iad7403dcbc0ad12b77154003f4aa61afedf2224f with SHA-1 edf8707658 is already in history

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

Change-Id: Ia5d9d6b8a307936ad57749bf9cc6a00a6360860f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-11 17:55:41 +00:00
Adam Shih
ee779b9ac8 move aoc dump to gs-common
Bug: 248426917
Test: adb bugreport
Change-Id: I29fea8752011959b5d0eb50ed93c6e8eed66f9ee
2022-10-11 15:36:26 +08:00
TreeHugger Robot
763eae3289 Merge "[LSC] Add LOCAL_LICENSE_KINDS to device/google/gs-common" 2022-10-07 02:55:24 +00:00
Bob Badour
37b8e22c2e [LSC] Add LOCAL_LICENSE_KINDS to device/google/gs-common
Added SPDX-license-identifier-Apache-2.0 to:
  ramdump/Android.bp
  soc/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all
Change-Id: Id2b08f9edfdc7d9828f28739c28b23c318f352a2
2022-10-06 13:32:35 -07:00
Xin Li
8d040eaa88 Merge tm-qpr-dev-plus-aosp-without-vendor@9129937
Bug: 248070379
Merged-In: Iad7403dcbc0ad12b77154003f4aa61afedf2224f
Change-Id: I9935427749553aeb99b8682c8dd63b0af392d275
2022-10-06 12:00:20 -07:00
Adam Shih
e301fa20c6 move modem dump to gs-common
Bug: 250475732
Test: adb bugreport
Change-Id: Id6dc2ef02d5e32b71de1b618e5588c202a2b6243
2022-10-05 10:36:26 +08:00