Commit graph

37594 commits

Author SHA1 Message Date
Chris Fries
3588ea7e2d Merge "Revert "delete toolbox/r.c"" am: 2f0c95a489
am: 3c8d352067

Change-Id: If0ec0d7f032f40961117509fca8c06cbc20cffe7
2017-11-03 04:49:37 +00:00
Chris Fries
3c8d352067 Merge "Revert "delete toolbox/r.c""
am: 2f0c95a489

Change-Id: Ief95542d970a070d3877a6a660fea7c5e14dea00
2017-11-03 04:46:25 +00:00
Treehugger Robot
2f0c95a489 Merge "Revert "delete toolbox/r.c"" 2017-11-03 04:42:27 +00:00
Tao Bao
9cd5e53128 Merge "fastboot: Don't give parsing error for unsupported 'getvar erase-block-size'." am: e5ff9b988c
am: 5cea27baad

Change-Id: Ia4626f4f1df1be9b3fc403f7f45e5398fae8e269
2017-11-03 03:39:47 +00:00
Tao Bao
5cea27baad Merge "fastboot: Don't give parsing error for unsupported 'getvar erase-block-size'."
am: e5ff9b988c

Change-Id: I037d5d1d9c09ab91fbbd770dfab038aaf3bcc300
2017-11-03 03:35:20 +00:00
Tao Bao
e5ff9b988c Merge "fastboot: Don't give parsing error for unsupported 'getvar erase-block-size'." 2017-11-03 03:27:34 +00:00
Christopher Ferris
7ed0b9cc45 Merge "Only skip frames for local unwinds." am: 3eccc5f50e
am: 58e9c6a6b8

Change-Id: I5a36060a91b11f93b2a3d8101e509f2b366aa3f5
2017-11-03 02:07:04 +00:00
Christopher Ferris
58e9c6a6b8 Merge "Only skip frames for local unwinds."
am: 3eccc5f50e

Change-Id: I3ca928cc49a8bab00811b138669243e1649a5af6
2017-11-03 01:43:44 +00:00
Christopher Ferris
3eccc5f50e Merge "Only skip frames for local unwinds." 2017-11-03 01:36:28 +00:00
Christopher Ferris
c56a499422 Only skip frames for local unwinds.
When doing a remote unwind, and there is a crash in the unwind stack
code or in libbacktrace, the old version would skip those frames.
This makes debugging crashes in those libraries a bit difficult.

Bug: 68820611

Test: Ran unit tests.
Test: kill -3 a zygote process and verify no frames in
Test: libunwindstack.so/libbacktrace.so.
Test: Forced a crash in libunwindstack.so and verified the tombstone
Test: contains the full crash.
Change-Id: I297e5b3775c87c0dddf57ebb423bd72ba1baf193
2017-11-02 16:22:52 -07:00
Tao Bao
67212f9083 fastboot: Don't give parsing error for unsupported 'getvar erase-block-size'.
Couldn't parse erase-block-size '0x'.
Couldn't parse logical-block-size '0x'.
mke2fs 1.43.3 (04-Sep-2016)
...

Some bootloaders explicitly return error on failed query (e.g. walleye),
while others return empty message (e.g. bullhead). We should just return
zero for empty message, instead of giving a misleading parsing error.

Test: `fastboot format userdata` on bullhead, with no parsing error.
Test: `fastboot format userdata` on walleye still works.
Change-Id: I194d41d24679929eccc65bfe895d6ab2a26315b7
2017-11-02 15:53:12 -07:00
Christopher Ferris
584ebea1d6 Merge "Add support for non-virtual thunk." am: 0d323c12df
am: a302ae3b6e

Change-Id: I5a1e361c897edfd1a7fd2f93404b4661d37d7a5d
2017-11-02 15:36:12 +00:00
Christopher Ferris
a302ae3b6e Merge "Add support for non-virtual thunk."
am: 0d323c12df

Change-Id: I03c398b7d7df3b1dedf46447c57de896b28dc302
2017-11-02 15:34:03 +00:00
Christopher Ferris
0d323c12df Merge "Add support for non-virtual thunk." 2017-11-02 15:31:01 +00:00
Chris Fries
4a16646c95 Revert "delete toolbox/r.c"
This utility is always useful during device bringup, so let's bring it
back for debug builds.

This reverts commit 8a475f7e4a.

Change-Id: Ic4041afe538663f1e201ee1341dee247ab0d5ba2
2017-11-02 10:03:10 -05:00
tintin
6f1c539eae libnetutil: Check dhcp respose packet length am: 61f25d4a36 am: cee6d38c55 am: 29d054046f am: c29049f4f8 am: 3de04e9840 am: 19702dc499 am: 8191e9ba87 am: 804323c195 am: 4f5f00d879 am: 3a1ff1ad71 am: bab7b1ecd9 am: cdf0fc6018 am: 9f1398c6e3
am: d60dc7ef5c

Change-Id: I97b4dede2706944997b1925fa6233450bc155656
2017-11-02 03:31:32 +00:00
tintin
d60dc7ef5c libnetutil: Check dhcp respose packet length am: 61f25d4a36 am: cee6d38c55 am: 29d054046f am: c29049f4f8 am: 3de04e9840 am: 19702dc499 am: 8191e9ba87 am: 804323c195 am: 4f5f00d879 am: 3a1ff1ad71 am: bab7b1ecd9 am: cdf0fc6018
am: 9f1398c6e3

Change-Id: I4c46a36846dd8f6588f29bc84de9bc3f1d7c088a
2017-11-02 03:28:42 +00:00
tintin
9f1398c6e3 libnetutil: Check dhcp respose packet length am: 61f25d4a36 am: cee6d38c55 am: 29d054046f am: c29049f4f8 am: 3de04e9840 am: 19702dc499 am: 8191e9ba87 am: 804323c195 am: 4f5f00d879 am: 3a1ff1ad71 am: bab7b1ecd9
am: cdf0fc6018

Change-Id: If9bc99849e62fe38cdf52180ff76390c452e0784
2017-11-02 03:25:33 +00:00
tintin
cdf0fc6018 libnetutil: Check dhcp respose packet length am: 61f25d4a36 am: cee6d38c55 am: 29d054046f am: c29049f4f8 am: 3de04e9840 am: 19702dc499 am: 8191e9ba87 am: 804323c195 am: 4f5f00d879 am: 3a1ff1ad71
am: bab7b1ecd9

Change-Id: Id56f81b841d83b4b6fc75517fa165c0000dac663
2017-11-02 03:23:59 +00:00
tintin
bab7b1ecd9 libnetutil: Check dhcp respose packet length am: 61f25d4a36 am: cee6d38c55 am: 29d054046f am: c29049f4f8 am: 3de04e9840 am: 19702dc499 am: 8191e9ba87 am: 804323c195 am: 4f5f00d879
am: 3a1ff1ad71

Change-Id: Ibea1269632e1700617b55f0ede7a0d9cc6442871
2017-11-02 03:21:57 +00:00
tintin
3a1ff1ad71 libnetutil: Check dhcp respose packet length am: 61f25d4a36 am: cee6d38c55 am: 29d054046f am: c29049f4f8 am: 3de04e9840 am: 19702dc499 am: 8191e9ba87 am: 804323c195
am: 4f5f00d879

Change-Id: Id2e1d882921b8a69f191e90032539a2e5835f05d
2017-11-02 03:18:53 +00:00
tintin
4f5f00d879 libnetutil: Check dhcp respose packet length am: 61f25d4a36 am: cee6d38c55 am: 29d054046f am: c29049f4f8 am: 3de04e9840 am: 19702dc499 am: 8191e9ba87
am: 804323c195

Change-Id: I27c237896e46f15c258fda00a9ab23465691cb9e
2017-11-02 03:16:51 +00:00
tintin
804323c195 libnetutil: Check dhcp respose packet length am: 61f25d4a36 am: cee6d38c55 am: 29d054046f am: c29049f4f8 am: 3de04e9840 am: 19702dc499
am: 8191e9ba87

Change-Id: Ia297a2af179285b63e7d5d3d1d64baf71dadaef0
2017-11-02 03:14:34 +00:00
tintin
8191e9ba87 libnetutil: Check dhcp respose packet length am: 61f25d4a36 am: cee6d38c55 am: 29d054046f am: c29049f4f8 am: 3de04e9840
am: 19702dc499

Change-Id: I5056e93b303683a70c38251f282c80e810fb317b
2017-11-02 03:11:49 +00:00
tintin
19702dc499 libnetutil: Check dhcp respose packet length am: 61f25d4a36 am: cee6d38c55 am: 29d054046f am: c29049f4f8
am: 3de04e9840

Change-Id: I72b1d728918b7359236e57b67805d9a9521e49e0
2017-11-02 03:10:14 +00:00
tintin
3de04e9840 libnetutil: Check dhcp respose packet length am: 61f25d4a36 am: cee6d38c55 am: 29d054046f
am: c29049f4f8

Change-Id: I6949ceb5c4dee7ea0c97cdc79f0ce0a1dde84651
2017-11-02 03:08:48 +00:00
tintin
c29049f4f8 libnetutil: Check dhcp respose packet length am: 61f25d4a36 am: cee6d38c55
am: 29d054046f

Change-Id: Ic15afbd822f6901e6db9274304af3e587fa8ce08
2017-11-02 03:05:45 +00:00
tintin
29d054046f libnetutil: Check dhcp respose packet length am: 61f25d4a36
am: cee6d38c55

Change-Id: Ieac19dd67cee1f22e019ac87b33b8afcd1200dcb
2017-11-02 03:03:42 +00:00
tintin
cee6d38c55 libnetutil: Check dhcp respose packet length
am: 61f25d4a36

Change-Id: Id5158c66d2ade871c90a2337fe867f977cefdca3
2017-11-02 03:01:40 +00:00
Christopher Ferris
5a72ea0f2f Add support for non-virtual thunk.
Bug: 67678053

Test: New unit tests pass.
Change-Id: If04f502e234da00a356e5ddd31acd22a6ad1a804
2017-11-01 16:24:55 -07:00
Oleg Matcovschi
317ec5cf5b Merge "fs_mgr: support reading fstab based on ro.boot.hardware.platform" am: 3d879b10d8
am: 45aa5ed89a

Change-Id: I71f449c2ae0a24a736f460cb64e501e09485bf30
2017-11-01 21:24:35 +00:00
Chih-Hung Hsieh
6e28ff2ce6 Merge "Use -Werror in system/core" am: 4ef714eae0
am: 57270f809a

Change-Id: If5d4ec1749ff2acbce781b0b6678a53fc7169d90
2017-11-01 21:23:58 +00:00
Oleg Matcovschi
45aa5ed89a Merge "fs_mgr: support reading fstab based on ro.boot.hardware.platform"
am: 3d879b10d8

Change-Id: I7dae8519843e007974d21025d72c49957caded83
2017-11-01 20:49:27 +00:00
Chih-Hung Hsieh
57270f809a Merge "Use -Werror in system/core"
am: 4ef714eae0

Change-Id: I6844cc5239711f5569a252e38bbc8c89c96cc347
2017-11-01 20:47:12 +00:00
Treehugger Robot
3d879b10d8 Merge "fs_mgr: support reading fstab based on ro.boot.hardware.platform" 2017-11-01 20:46:22 +00:00
Treehugger Robot
4ef714eae0 Merge "Use -Werror in system/core" 2017-11-01 20:41:43 +00:00
Chih-Hung Hsieh
122352d983 Use -Werror in system/core
* Move -Wall -Werror from cppflags to cflags.
* Fix/suppress warning on unused variables.

Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: I1e05e96a1d0bcb2ccef1ce456504b3af57167cc5
2017-11-01 11:32:55 -07:00
Chih-hung Hsieh
dc991a7529 Merge "Use -Werror in system/core/libnativebridge" am: 52013bc3d4
am: d164933fee

Change-Id: Ifefa647f3e9270abd049a90b265b015b3830c3db
2017-11-01 16:51:16 +00:00
Chih-hung Hsieh
d164933fee Merge "Use -Werror in system/core/libnativebridge"
am: 52013bc3d4

Change-Id: Ic83e320877f2a01052636e62352e7707b0eb1809
2017-11-01 16:42:43 +00:00
Chih-hung Hsieh
52013bc3d4 Merge "Use -Werror in system/core/libnativebridge" 2017-11-01 16:39:01 +00:00
Oleg Matcovschi
018d7f69da fs_mgr: support reading fstab based on ro.boot.hardware.platform
This change adds fstab.${ro.boot.hardware.platform} file into list of
searched fstab filenames.
The ${ro.boot.hardware.platform} helps consolidate init sequence based
on platform. Potentially it allows same build serve different devices.

Bug: 68663168
Change-Id: I822d5bc432e823218ebc640093cfbe5e9271d3b1
2017-11-01 09:38:21 -07:00
Christopher Ferris
aefa97949e Merge "Move sp/pc not changing check into Unwinder." am: 15251c24b9
am: a6454515f3

Change-Id: I9a326bdbc94491e5134fa77866ceaa904ca01b7b
2017-11-01 15:04:47 +00:00
Christopher Ferris
0afe9282c4 Merge "Fix template support." am: 96e15c9e7d
am: 5afe782a9c

Change-Id: I1ee7ab0948f5f70a62e2cbde0745e7d9e2a06657
2017-11-01 15:04:06 +00:00
Christopher Ferris
a6454515f3 Merge "Move sp/pc not changing check into Unwinder."
am: 15251c24b9

Change-Id: If13e5f8f4b46bfaed5cd8654526ba4dce333b0ff
2017-11-01 15:02:48 +00:00
Christopher Ferris
5afe782a9c Merge "Fix template support."
am: 96e15c9e7d

Change-Id: Ic9d5822a6420a3c5dd0378e75ab9203b708fdf99
2017-11-01 15:02:01 +00:00
Christopher Ferris
15251c24b9 Merge "Move sp/pc not changing check into Unwinder." 2017-11-01 14:58:35 +00:00
Christopher Ferris
96e15c9e7d Merge "Fix template support." 2017-11-01 14:58:05 +00:00
Narayan Kamath
70f5571a9a resolve merge conflicts of 5ab03cb41 to oc-mr1-dev-plus-aosp
Test: I solemnly swear I tested this conflict resolution.
Change-Id: Ic749614fb03d60d6cc7e0eb04bb67102e572e9f2
2017-11-01 11:32:17 +00:00
Narayan Kamath
5ab03cb418 Merge "zip_archive: Allow crc_out to be nullptr in Inflate."
am: 55c9284f55

Change-Id: I31f2859b9c91033a4bd0da7cd17ec09084b3164f
2017-11-01 11:17:40 +00:00
Narayan Kamath
55c9284f55 Merge "zip_archive: Allow crc_out to be nullptr in Inflate." 2017-11-01 11:12:18 +00:00