Commit graph

50690 commits

Author SHA1 Message Date
Mark Salyzyn
5bb8dc4301 Merge changes I89826fc2,Ica0c14da,Icfbb799f,I233bbc7b,I30569a7c, ... am: b1d78402f9
am: 2e365957ac

Change-Id: Iaf538417140bd48e1f915e0dd571e2bcd990a50c
2019-05-29 07:52:51 -07:00
Mark Salyzyn
2e365957ac Merge changes I89826fc2,Ica0c14da,Icfbb799f,I233bbc7b,I30569a7c, ...
am: b1d78402f9

Change-Id: I0672385da9eddd19a6884b2bd38181a41d65f6be
2019-05-29 07:48:57 -07:00
Mark Salyzyn
b1d78402f9 Merge changes I89826fc2,Ica0c14da,Icfbb799f,I233bbc7b,I30569a7c, ...
* changes:
  adb-remount-test: check devt and inode
  adb-remount-test: add an avc check
  adb-remount-test: parameterize fastboot_wait & adb_wait, increase timeout
  adb-remount-test: report wait duration
  adb-remount-test: check vendor image signature before using
  adb-remount-test: report usb user on unexpected connection
  adb-remount-test: wait-for-screen
2019-05-29 14:25:15 +00:00
Tom Cherry
38477b7a2d Merge "Logcatd: Add new properties control logcat file size and file count." am: 79b0682ec9
am: b27e49fa8a

Change-Id: I6f99e7127877fcc585bf4bbb56cff4c8843b12e9
2019-05-28 15:38:58 -07:00
Tom Cherry
b27e49fa8a Merge "Logcatd: Add new properties control logcat file size and file count."
am: 79b0682ec9

Change-Id: Iba2b2d06d6ed7fc0bf39d5162405307e472d5072
2019-05-28 15:33:48 -07:00
Tom Cherry
79b0682ec9 Merge "Logcatd: Add new properties control logcat file size and file count." 2019-05-28 22:26:43 +00:00
Mark Salyzyn
4c33f956e3 Merge "adb-remount-test: adb_reboot stdin issue" am: 2dca188503
am: bdec48118f

Change-Id: Ia40a85f08db85e8fa6c726685fa903ef40d5d18a
2019-05-28 14:28:34 -07:00
Mark Salyzyn
bdec48118f Merge "adb-remount-test: adb_reboot stdin issue"
am: 2dca188503

Change-Id: Ic1f2b0741ef5f2b8bf48129a7e49e4c57aa4a926
2019-05-28 14:23:37 -07:00
Treehugger Robot
2dca188503 Merge "adb-remount-test: adb_reboot stdin issue" 2019-05-28 21:10:01 +00:00
Mark Salyzyn
12e02d5668 Merge "recovery: report compliant reboot reason (Part Deux)" am: 5f7314b7e1
am: 789ae60a9d

Change-Id: I8edf9ca91a611dd43a4544505ae98edf3df857aa
2019-05-28 09:22:58 -07:00
Mark Salyzyn
789ae60a9d Merge "recovery: report compliant reboot reason (Part Deux)"
am: 5f7314b7e1

Change-Id: I567fe91628cbf3a491e8f13164ed7ecc6b961333
2019-05-28 09:17:55 -07:00
Treehugger Robot
5f7314b7e1 Merge "recovery: report compliant reboot reason (Part Deux)" 2019-05-28 15:57:24 +00:00
Mark Salyzyn
67788ef8a1 adb-remount-test: check devt and inode
Check to make sure st_dev and st_ino for the uploaded content
is as expected.

Test: adb-remount-test
Bug: 129319403
Bug: 132395411
Change-Id: I89826fc2740dfd2ead4bcd8988cfbbc315b77b09
2019-05-28 08:08:49 -07:00
Mark Salyzyn
277e413ac4 adb-remount-test: adb_reboot stdin issue
adb reboot can pull stdin content, block it.

Test: adb-remount-test.sh
Bug: 132070014
Change-Id: I36f0bb7486cec2a18cd2b5550650a19f05c904b5
2019-05-28 08:08:49 -07:00
Mark Salyzyn
d5f89343b1 adb-remount-test: add an avc check
Check if adb remount resulted in any unlabeled references just before
rebooting the device.

Test: adb-remount-test.sh
Bug: 129319403
Bug: 132395411
Change-Id: Ica0c14da39773f615d9b5e4cfc4602bd50c70e4e
2019-05-28 08:08:49 -07:00
Mark Salyzyn
53ec0a4649 adb-remount-test: parameterize fastboot_wait & adb_wait, increase timeout
Increase adb_wait time to 3 minutes since blueline device takes
maximum 2:38 (ten samples) to perform a ramdump should an
inopportune kernel panic occur.

Test: adb-remount-test.sh
Bug: 132070014
Change-Id: Icfbb799f9420035a755090c9fc5fc2ee05dd68d3
2019-05-28 08:08:49 -07:00
Mark Salyzyn
359c56493c adb-remount-test: report wait duration
Report any unusual durations for how long it took to wait for the
device to come back if --print-time flag.  Also report the boot
reason if unexpected.

Test: adb-remount-test.sh
Bug: 132070014
Change-Id: I233bbc7b01b025739d7d63191cb62952fa4b7b2a
2019-05-28 08:08:49 -07:00
Mark Salyzyn
00dd058a15 adb-remount-test: check vendor image signature before using
When developing and using the adb remount test, if device under test
is flashed from another source than the current visible tree, make
sure that the vendor image as-built and visible in a sandbox build
is not used indiscriminantly.

Test: adb-remount-test.sh
Bug: 132070014
Change-Id: I30569a7c871f4c4038b0f7f9c05f5f1a5d12c766
2019-05-28 08:08:49 -07:00
Mark Salyzyn
dbd99f0d2b adb-remount-test: report usb user on unexpected connection
Test: adb-remount-test.sh
Bug: 132070014
Change-Id: I1bc4009b71cac4ac4e06df38cc4da77f2819b88b
2019-05-28 08:08:49 -07:00
Mark Salyzyn
93bb1d0d6d adb-remount-test: wait-for-screen
If we reboot too agressively after a fresh flash either just before
test is run, or after vendor is flashed, we run the risk the device
will consider it a bad boot and head towards recovery or revert to
previous system.

Add checks to wait for the screen.

This can result in the test reporting issues with boot complete,
which will not fail the test currently, but can be used to determine
if the device under test is in a boot loop or fragile state.

Test: fastboot flashall ; adb-remount-test.sh
Bug: 132070014
Change-Id: Ia1b3800c44222cb8fbd9b00e897b32a256996ebc
2019-05-28 08:08:49 -07:00
Tom Cherry
eb87c4be66 Merge "init: replace Result<> with expected<>" am: 7d1f11759a
am: b1012c9de8

Change-Id: I56991d2f9beaaa1fb386a8aa8dee66cac78a0290
2019-05-26 21:46:44 -07:00
Tom Cherry
b1012c9de8 Merge "init: replace Result<> with expected<>"
am: 7d1f11759a

Change-Id: Ie40a8d6d8019108901542a504ff48eea0f74669d
2019-05-26 21:41:42 -07:00
Treehugger Robot
7d1f11759a Merge "init: replace Result<> with expected<>" 2019-05-27 04:35:26 +00:00
Tom Cherry
9abec2953d Merge "ueventd: add more logging when firmware loading fails" am: 1c144d5a51
am: 1611a3aaa9

Change-Id: Ia9f1cff67aec1c21d46255f08734620d750e12da
2019-05-26 20:26:43 -07:00
Tom Cherry
1611a3aaa9 Merge "ueventd: add more logging when firmware loading fails"
am: 1c144d5a51

Change-Id: I354f08e07ab670fb3f036c046a7462c1ffede11f
2019-05-26 20:21:42 -07:00
Treehugger Robot
1c144d5a51 Merge "ueventd: add more logging when firmware loading fails" 2019-05-27 03:06:26 +00:00
George Burgess IV
0c8ca9ec3f Merge "memunreachable_test: don't use write to escape addresses" am: f261f518ea
am: ab29c52ebf

Change-Id: I5551b7eee30a720bd8a346981edb0f2c9dfb11da
2019-05-24 20:18:28 -07:00
George Burgess IV
ab29c52ebf Merge "memunreachable_test: don't use write to escape addresses"
am: f261f518ea

Change-Id: Ibdf91f3d9ab2285621d0111c7697e98082381234
2019-05-24 18:42:54 -07:00
Treehugger Robot
f261f518ea Merge "memunreachable_test: don't use write to escape addresses" 2019-05-25 00:20:24 +00:00
Mark Salyzyn
5ae8b60f94 Merge changes I4bee37e1,I801dcec7 am: 7baa970d31
am: 5ed9a80b41

Change-Id: I3f0e5479de7c4adca4bf44d184babca768cae3a4
2019-05-24 15:00:36 -07:00
Mark Salyzyn
5ed9a80b41 Merge changes I4bee37e1,I801dcec7
am: 7baa970d31

Change-Id: Ic9a9d7414592674454e994648d1427f51a1e9916
2019-05-24 14:53:32 -07:00
Mark Salyzyn
7baa970d31 Merge changes I4bee37e1,I801dcec7
* changes:
  adb-remount-test: try to fixup device after reboot (recovery)
  adb-remount-test: try to fixup device after reboot (fastboot)
2019-05-24 21:22:32 +00:00
George Burgess IV
373cb301ad memunreachable_test: don't use write to escape addresses
A recent change
(https://android-review.googlesource.com/c/platform/bionic/+/961601)
caused this test to fail. This change allowed LLVM to optimize what was
previously `__write_chk` into a standard call to `write`.

LLVM knows things about `write`. In particular, it knows that `write`
doesn't capture its buffer param, which `Ref` assumes isn't possible.

LLVM can't reason much about `volatile` operations; storing this to a
`volatile` ptr should be good enough. If not, there are a few other
tricks we can play here.

Bug: 133479661
Test: `atest
memunreachable_test:memunreachable_test.MemunreachableTest#stack --
--abi x86` on internal-master

Change-Id: I905e510210cafdf83fa1b50f2f090d4f8b9653da
2019-05-24 13:51:12 -07:00
Narayan Kamath
66fe4cc16a rootdir / sdcard : Stop creating /data/media/obb.
am: c6ca823710

Change-Id: I9771c08e1e9195956196c2404fb2876ad29199b6
2019-05-24 04:24:32 -07:00
Tian, Baofeng
00813a585a Logcatd: Add new properties control logcat file size and file count.
Logcatd has capability to output logs to filesystem with certain size
and certain file count, however file size is not configurable, fixed
as 1024 kbytes, file count is configurable, but original property
name didn't match the logcat parameter well.
This patch add interface rotate_kbytes and count into logcatd.rc.
rotate_kbytes used to control each logcat file size.
count is another alias for logd.logpersistd.size to control file number.

Bug: 133362078
Test: Can use logcat -r -n with configures

Change-Id: I9954c9c125a4ab4e49310986f81c734bf8ee96b3
Signed-off-by: Tian, Baofeng <baofeng.tian@intel.com>
Signed-off-by: Duan, YayongX <yayongx.duan@intel.com>
2019-05-24 07:23:22 +00:00
Wei Wang
bd0c4dd123 Merge "init: add error handling in control message" am: 9252d31361
am: 36cd5a1954

Change-Id: Ia20c638c46b4a4d8b670c9935ca7c40afd32d044
2019-05-23 22:15:35 -07:00
Mark Salyzyn
c04e001b93 Merge changes I784bea3a,Id3b2dfdc am: b42af0eb5b
am: 45ce4e0919

Change-Id: I07957971bb84a86aa54f2051df0ff798c4edc680
2019-05-23 17:16:12 -07:00
Wei Wang
36cd5a1954 Merge "init: add error handling in control message"
am: 9252d31361

Change-Id: I1915a3e1f97c582200b377797a5baa1d9d308592
2019-05-23 17:15:07 -07:00
Tom Cherry
d38aafd20b ueventd: add more logging when firmware loading fails
Bug: 130131892
Test: boots
Change-Id: I82ce0f72341bb44590177cedaa2e3a7990456c1d
2019-05-23 16:27:33 -07:00
Treehugger Robot
9252d31361 Merge "init: add error handling in control message" 2019-05-23 23:08:51 +00:00
Mark Salyzyn
65d8b9be99 recovery: report compliant reboot reason (Part Deux)
shutdown and reboot should have a corresponding sub-reason.

Updating:
    "reboot,userrequested,fastboot"
    "reboot,userrequested,recovery"
    "reboot,userrequested,recovery,ui"
    "shutdown,userrequested,fastboot"
    "shutdown,userrequested,recovery"
    "reboot,unknown#" (Can't happen, debug)

Test: none
Bug: 133326470
Change-Id: Icf1ab0d462ec2de2272914a36994a095998d6186
2019-05-23 13:53:03 -07:00
Mark Salyzyn
45ce4e0919 Merge changes I784bea3a,Id3b2dfdc
am: b42af0eb5b

Change-Id: Ia19b7e16a063e1e66fd467a28a0954195eea88ca
2019-05-23 13:52:51 -07:00
Tom Cherry
a76edba308 Merge "init: don't import rc files during mount_all after Q" am: cbe0876f8b
am: 45f1c24509

Change-Id: I8c4e65b785e25faaf8df988d708261de972d90e9
2019-05-23 13:46:18 -07:00
Tom Cherry
45f1c24509 Merge "init: don't import rc files during mount_all after Q"
am: cbe0876f8b

Change-Id: I69545029a7743aad1e76ca1804002d8556fd436e
2019-05-23 13:15:06 -07:00
Elliott Hughes
b186dd4e58 Merge "Add a std::string overload to Next." am: f530dbf671
am: 928db53b44

Change-Id: I360318fd68235ca0cc524fd482249a12bc7f2257
2019-05-23 13:11:35 -07:00
Mark Salyzyn
b42af0eb5b Merge changes I784bea3a,Id3b2dfdc
* changes:
  adb-remount-test: report lsusb for broken connection
  adb-remount-test: stderr cleanup
2019-05-23 20:03:49 +00:00
Wei Wang
5f01d3af77 init: add error handling in control message
Bug: 133432022
Test: boot
Test: setprop ctl.interface_restart android.hardware.power@1.0::IPower/default success
Test: setprop ctl.interface_restart android.hardware.power@1.0::IPower/abc fail
Change-Id: I66342b2723eb01022fb4e0d98f0b6ffc2752bcac
2019-05-23 12:43:09 -07:00
Tom Cherry
cbe0876f8b Merge "init: don't import rc files during mount_all after Q" 2019-05-23 18:46:51 +00:00
Elliott Hughes
928db53b44 Merge "Add a std::string overload to Next."
am: f530dbf671

Change-Id: I5dc2ed6961c50e01d1690dc8cf459b2f0e0ad74a
2019-05-23 11:24:10 -07:00
Elliott Hughes
f530dbf671 Merge "Add a std::string overload to Next." 2019-05-23 17:55:27 +00:00