Commit Graph

27 Commits

Author SHA1 Message Date
TreeHugger Robot
6149ab3aea Merge "dumpstate: Add battery cycle count to bugreport" into oc-dr1-dev 2017-07-26 04:37:23 +00:00
Ajay Dudani
38ef8d7082 dumpstate: Add battery cycle count to bugreport
Bug: 63841211
Test: Verify cycle count metrics are present in bugreport
Change-Id: I7c6a3af3ef687c99f88de5ee1c4d7433b618772e
2017-07-25 19:20:13 -07:00
Steve Pfetsch
71dc781941 Add touch sensor readings to Dumpstate
Bug: 63854271
Change-Id: Ibaa42bd977acdd0e68e4fc76db77a0c6023dc2a9
2017-07-24 15:18:59 -07:00
TreeHugger Robot
cc44df863d Merge "Add WiFi Statistics to Bugreport to Wahoo" into oc-dr1-dev 2017-06-22 17:22:23 +00:00
Jayachandran C
86b6fcc8a6 Move /data/misc/radio to /data/vendor/radio as per treble rules
1) Modify the sepolicy to use /data/vendor partition to hold
   vendor radio data.
2) Modify Dumpstate to access /data/vendor for logging.

Test: Basic telephony sanity with radio enforce mode

Bug: 36736902
Bug: 36717606
Change-Id: I1f8f1026189c1262cfe0af251451e0efcc98c7f7
2017-06-21 05:55:21 +00:00
TreeHugger Robot
e32de9dba5 Merge changes from topic 'mdlog_improve_1' into oc-dr1-dev
* changes:
  Increase stop timer for modem logging
  Revert "Stop always on logging when external logging enabled"
2017-06-21 02:02:46 +00:00
TreeHugger Robot
4bad23b439 Merge "Write modem log to the 2nd fd from dumpstate" into oc-dr1-dev 2017-06-21 01:49:25 +00:00
Ahmed ElArabawy
841c4ad431 Add WiFi Statistics to Bugreport to Wahoo
This commit adds some statistics from debugfs to bugreport
this includes the files:
/d/wlan0/power_stats
/d/wlan0/ll_stats
/d/icnss/stats

Bug: 62290986
Test: adb bugreport and inspect the required statistics
Merged-In: Ib65b98935a043542283a645f9760e02ff6935db3

Change-Id: Ib65b98935a043542283a645f9760e02ff6935db3
Signed-off-by: Ahmed ElArabawy <arabawy@google.com>
2017-06-20 20:50:30 +00:00
Andrew Chant
3b19e99148 Add USB device descriptors to bug report.
Reports product, version, and first 48 bytes of
descriptors.

Test: Took bugreports with and without USB device attached.
With no USB Device:
------ USB Device Descriptors (/vendor/bin/sh -c cd
/sys/bus/usb/devices/1-1 && cat product && cat bcdDevice; cat
descriptors | od -t x1 -w16 -N96) ------
0000000

With USB Device:
------ USB Device Descriptors (/vendor/bin/sh -c cd
/sys/bus/usb/devices/1-1 && cat product && cat bcdDevice; cat
descriptors | od -t x1 -w16 -N96) ------
Mir
0200
0000000 12 01 00 02 00 00 00 40 d1 18 25 50 00 02 03 01
0000020 02 01 09 02 1f 01 04 01 04 a0 32 09 04 00 00 01
0000040 01 01 00 05 0a 24 01 00 01 83 00 02 01 02 0c 24
0000060 02 01 01 02 00 02 03 00 00 00 0d 24 06 03 01 02
0000100 01 00 02 00 02 00 00 09 24 03 02 01 01 01 04 00
0000120 0c 24 02 22 01 02 00 02 03 00 00 18 0d 24 06 23
0000140

Bug: 38327094
Change-Id: I05cb5f6f3895b43b55ab4b1f434bb5b206b3bf4c
Merged-In: I05cb5f6f3895b43b55ab4b1f434bb5b206b3bf4c
2017-06-20 10:09:15 -07:00
Jie Song
a9cb65d25c Write modem log to the 2nd fd from dumpstate
Bug: 33820081
Test: Verify modem logs from bugreport
Change-Id: I0cd0ce8c1a4b2cc3e8a2eeda65b0aa8e1a983fd1
2017-06-19 18:08:38 -07:00
Steve Pfetsch
321cee7e61 wahoo: dumpstate: add touch firmware versions to dumpstate
Bug: 38207199
Change-Id: I2b21f92f64847286a34d7d52a932bd1f825fe000
2017-06-19 10:44:15 -07:00
Jie Song
b29da9d492 Increase stop timer for modem logging
1. sys.modem.diag.mdlog to start/stop for this boot
2. sys.modem.diag.mdlog_on for status
3. Increase timer of stop logging

Bug: 62489031
Test: Verify with Pixel Logger and Bugreport
Change-Id: I02a230ad29d23c4a302660ceeb7764ccfcba7cc8
2017-06-17 01:24:02 +00:00
Jayachandran C
7723ec091e Move netmgr logging path to /data/vendor as per treble rules
Netmgr logging path changed from /data/misc to /data/vendor

Test: Verified bugreport collecting netmgr logs

Bug: 62504502
Change-Id: Iba7f585597e30d8dfedae5bb2a73a759aeb0c737
2017-06-13 01:30:42 +00:00
Naseer Ahmed
1b59b229c5 wahoo: Add support for display debug data
* Saves display debugfs data in /data/vendor/display
* Update the dumpstate xlog to print the saved data

Bug: 38496103
Change-Id: Ibc3bd97657b9faa74894ad50b01f373403871c94

 Author:    Naseer Ahmed <naseer@codeaurora.org>
 Date:      Tue May 30 17:51:24 2017 -0400
2017-06-07 10:59:14 -07:00
TreeHugger Robot
df94ed1014 Merge "Add soc serial number to bugreport" 2017-06-07 06:35:39 +00:00
Jayachandran C
6030720f1e Fix radio logs not included in bugreport
Made hal_dumpstate_impl to use vendor executables as per treble guidelines

Test: Bugreport and verified radio logs included and no new denials

Bug: 62291820
Change-Id: I4f9f46cd76600e4b083ee6de5c52d495cc17729b
2017-06-02 19:56:36 -07:00
Ajay Dudani
132939e579 Add soc serial number to bugreport
Test: Verified serial number is present in bugreport
Bug: 62305405
Change-Id: Ie06f1a93af1fd3006d57a46c9e6e5fad85433fe1
2017-06-02 19:30:53 -07:00
Steven Moreland
6e8f5ea639 Check handle for nullptr
Test: pass
Bug: 37662706
Change-Id: Ie3ad92a5dc71eeea9aa9a26f0a6f94ae7aca3433
2017-05-23 16:12:32 -07:00
Vinay Kalia
1228761954 Add IPC wakelock information to bugreport
This will help associate local port IDs to service IDs
and cumulative traffic to each port.

BUG: 36859850
Test: Collected bugreport and verified that this information is
      present in dumpstate-board.txt

Change-Id: I07e137b31b7ec158ea38aa6171565dabcd91a52e
2017-05-15 10:02:36 -07:00
Jie Song
18aecb7cb8 Adding init script and SELinux support for qlogd
Bug: 37115787
Change-Id: I64988953513cd0a7c2e861b5cad5fa6c1c7b9557
2017-05-10 09:27:57 -07:00
Badhri Jagan Sridharan
46891afa28 Collect usb type-c logs
This CL makes bugreports to contain logs related to USB port
configuration.

Bug: 36178613
Test: ran adb bugreport and noticed the logs to be dumped.
Change-Id: I1f57cb2f481c7bb1bd108812dfa716f7db04ef1d
2017-04-21 18:29:17 +00:00
Jie Song
df248b7c4c Remove QShrink database file from bugreport
Bug: 37463985
Test: No qdb file in bugreport
Change-Id: If3d6cd8a580b096b8ac321151363e3d49ef3e0d4
2017-04-19 18:07:08 +00:00
Jie Song
a8cc3ddf43 Collect modem always on log
Bug: 36820568
Test: Trigger bugreport when always on is enabled
Change-Id: I6d61a7284b5a5035c68398fad629628e4ad3216c
2017-04-06 15:55:11 +00:00
Jie Song
7c99eaed4a Add QShrink database file in bugreport
Bug: 36779903
Test: Trigger bugreport and check qdb file
Change-Id: Ic3d120c5a6b7bdd5c4e7ec38b327d4368cb615e2
2017-03-31 14:04:05 -07:00
Jie Song
58d80579d9 Add wahoo dumpstate and sepolicy with smlog
Bug: 33820081

Test: Verify dumpstate service running
Change-Id: I2dffdb063aa3291b1c9ee95df903977d6a928d1e
2017-03-30 02:53:48 +00:00
Shawn Yang
136ac6be8d dumpstate clean up
Change-Id: I9983b3ddcca6c6ee954620aefe1358ba1a540b2e
2017-03-14 16:58:38 -07:00
Thierry Strudel
4e18dc435b Import common file from device specific directory
Test: boot, basic functionality
Change-Id: I9c07718b481730c3388f99c5e1eff17c9fd75a7b
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2017-03-04 23:34:45 -08:00