Commit graph

38953 commits

Author SHA1 Message Date
Paul Crowley
9f5aa032f8 Merge "Wipe metadata when we wipe userdata and cache."
am: f88905d231

Change-Id: I92163caab6e2e65565d80bcf7f3661eec757afb1
2018-04-25 13:49:57 -07:00
Paul Crowley
f88905d231 Merge "Wipe metadata when we wipe userdata and cache." 2018-04-25 19:42:56 +00:00
Paul Crowley
4d17006b57 Wipe metadata when we wipe userdata and cache.
Bug: 78469699
Test: Run "fastboot -w" and see that metadata is wiped
Change-Id: I2d795281c48b59c87d4f8f010037d95186f55684
2018-04-25 10:51:05 -07:00
Tom Cherry
587297953e Merge "logd: notify kernel log readers of new messages"
am: 6a2686b0f3

Change-Id: Ie35d577147257b9fc571628ca069d5305b163fec
2018-04-25 09:49:49 -07:00
Tom Cherry
6a2686b0f3 Merge "logd: notify kernel log readers of new messages" 2018-04-25 16:40:59 +00:00
Tao Bao
a1b308e288 Merge "fastboot: sparse_file_len() returns int64_t."
am: 9249f4bc41

Change-Id: Iebfcb88abdb89f708bd34e0c6417ad4dc721c106
2018-04-25 06:40:00 -07:00
Tao Bao
9249f4bc41 Merge "fastboot: sparse_file_len() returns int64_t." 2018-04-25 13:32:43 +00:00
Steven Moreland
9261ab0080 Merge "init: clarify documentation for disabled"
am: 9feca7c249

Change-Id: I4b5d06d470dce6ef7fef036bd535e586161a9439
2018-04-24 18:11:28 -07:00
Tao Bao
41cf35f8b2 fastboot: sparse_file_len() returns int64_t.
Check that the value fits in uint32_t that's supported by the current
protocol.

Also fix and sanity check the max_size before passing it to
sparse_file_resparse(), which accepts `unsigned int`. This shouldn't
happen in practice because of RESPARSE_LIMIT (1 GiB).

Test: `fastboot flash` with small and large images.
Change-Id: I0a8279fc14c54c40a70ddce65c3b25173c0d0a40
2018-04-24 18:10:42 -07:00
Treehugger Robot
9feca7c249 Merge "init: clarify documentation for disabled" 2018-04-25 01:00:54 +00:00
Steven Moreland
8cb36868a4 init: clarify documentation for disabled
Services can be started by name or interface name now.

Bug: N/A
Test: N/A
Change-Id: I9fef619e7c27d458193311f7cd7fca4dcf8c8e72
2018-04-24 16:24:58 -07:00
Tom Cherry
cbfebdbadb logd: notify kernel log readers of new messages
LogBuffer::log() returns either a negative number on error or a
positive number indicating the length of the message written.
Therefore, the check to notify kernel log readers of a new message
should be that this function's return value is > 0.

Bug: 78209416
Test: `adb logcat -b kernel` updates when new log messages are present
Change-Id: Icc18c0c22e62340994e5c26aedb72282d61c1541
2018-04-24 14:19:32 -07:00
Elliott Hughes
f7b37121c6 Merge "Switch to PCRE grep."
am: 9aca01907d

Change-Id: Ica9a6728968661172ac141d8f0e404f7c80feb5a
2018-04-24 08:14:58 -07:00
Elliott Hughes
9aca01907d Merge "Switch to PCRE grep." 2018-04-24 15:08:57 +00:00
Ralph Nathan
3b0360a572 Merge "Add a public.libraries.txt file for iot devices."
am: ca07de4214

Change-Id: I4703399a5b003d9624dee5fbb50a48f47ca5ac8f
2018-04-23 17:26:29 -07:00
Elliott Hughes
90a018a87a Switch to PCRE grep.
Bug: http://b/77150016
Test: boots, manual testing
Change-Id: I377ca42ed9783edcceab4daabe43e993ef74e837
2018-04-23 17:00:54 -07:00
Treehugger Robot
ca07de4214 Merge "Add a public.libraries.txt file for iot devices." 2018-04-23 23:20:42 +00:00
Elliott Hughes
c7ca07e039 Merge "Document the switch to toybox dd."
am: a3721db333

Change-Id: I5288cbd2a870ee37823b8a5717a84228de0311aa
2018-04-21 12:35:17 -07:00
Treehugger Robot
a3721db333 Merge "Document the switch to toybox dd." 2018-04-21 19:25:42 +00:00
Elliott Hughes
9edec24a2f Document the switch to toybox dd.
Bug: N/A
Test: N/A
Change-Id: Ia1fd8a14ceb9d9e8661804a126b3818cc066b0ff
2018-04-21 10:49:17 -07:00
Elliott Hughes
7f1c526ea9 Merge "Remove BSD dd."
am: 75d3592cb9

Change-Id: Id7f0a813716ff74603e4e7fc4c4e992b68b229f1
2018-04-20 19:38:14 -07:00
Treehugger Robot
75d3592cb9 Merge "Remove BSD dd." 2018-04-21 02:31:56 +00:00
Josh Gao
3c9ed98fce Merge "libdebuggerd: fix out of bounds write."
am: eb1b202acb

Change-Id: Id3c0b0334fc50812c6e65b307db36977b7eb1150
2018-04-20 19:31:14 -07:00
Josh Gao
d3e2121d8a Merge changes I4b017701,I28aff510
am: 3e378800b8

Change-Id: Iae78bded69ec870b24666b1b0a838bfc0ff10856
2018-04-20 19:30:47 -07:00
Jiyong Park
b36004c96d Merge "Mark libziparchive as double_loadable"
am: a7112f4c9b

Change-Id: Ib2d8fd8e511e67cc6ff0eea3f99bc72c7ba4a940
2018-04-20 19:25:52 -07:00
Treehugger Robot
eb1b202acb Merge "libdebuggerd: fix out of bounds write." 2018-04-21 02:21:55 +00:00
Treehugger Robot
3e378800b8 Merge changes I4b017701,I28aff510
* changes:
  libdebuggerd: clone registers before we Unwind with them.
  libunwindstack: add Regs::Clone.
2018-04-21 02:15:45 +00:00
Treehugger Robot
a7112f4c9b Merge "Mark libziparchive as double_loadable" 2018-04-21 02:14:51 +00:00
Elliott Hughes
21ceafbaac Remove BSD dd.
Bug: N/A
Test: builds
Change-Id: Id80364241434abfc216149b4ce7440cef700abef
2018-04-20 17:55:44 -07:00
Josh Gao
83b8ac24b6 libdebuggerd: fix out of bounds write.
Bug: http://b/78363964
Test: treehugger
Change-Id: I79ae818e4e0c29f064335d59789afc3b1bf87c69
2018-04-20 17:46:50 -07:00
Elliott Hughes
b1281967aa Merge "Lose dd to toybox."
am: b1677c15c2

Change-Id: Idc91fde82512826860288840449d85e63e6a725b
2018-04-20 15:45:05 -07:00
Treehugger Robot
b1677c15c2 Merge "Lose dd to toybox." 2018-04-20 22:33:27 +00:00
Mark Salyzyn
0033edc469 Merge "llkd: bootstat: propagate detailed livelock canonical boot reason"
am: 481a8125a6

Change-Id: I161063e3c33209585d3bbafbd7ee0d1a0c5f151f
2018-04-20 14:17:02 -07:00
Mark Salyzyn
c9692232e3 Merge "llkd: default enabled for userdebug"
am: 1803782064

Change-Id: I82cc7f038f56651db8900a57b0bf2898200c4c6e
2018-04-20 14:16:11 -07:00
Treehugger Robot
481a8125a6 Merge "llkd: bootstat: propagate detailed livelock canonical boot reason" 2018-04-20 21:09:04 +00:00
Treehugger Robot
1803782064 Merge "llkd: default enabled for userdebug" 2018-04-20 21:09:00 +00:00
Mark Salyzyn
e40838d37a Merge "llkd: add live-lock daemon"
am: 656bc24630

Change-Id: I3c5e84cf992488f8d077c3a656cf3f0620d1f060
2018-04-20 13:58:05 -07:00
Ralph Nathan
ab39ce88e4 Add a public.libraries.txt file for iot devices.
Previously on Android Things, we used a vendor public.libraries.txt
file. This cl enables us to tag our library correctly.

Bug: 78226207
Test: test app works
Change-Id: I9e69717e5968a903e84f59c1d889c8e4cf9bcc35
2018-04-20 13:46:55 -07:00
Treehugger Robot
656bc24630 Merge "llkd: add live-lock daemon" 2018-04-20 20:46:41 +00:00
Elliott Hughes
8591440fe2 Lose dd to toybox.
Just the symlink for now. If this sticks, I'll come back to remove the code.

Bug: N/A
Test: `toolbox dd --help`
Change-Id: I9b967e9246f42db0d1f48d9d147c538d57fb3bc8
2018-04-20 13:34:20 -07:00
Elliott Hughes
4a9a08183e Merge changes I1f55c6e1,Ib2adcf0a
am: 395131df7b

Change-Id: Ib0b871e1982828016cefc71976a0e5421388d004
2018-04-20 13:27:17 -07:00
Josh Gao
5d1c14f41b libdebuggerd: clone registers before we Unwind with them.
Bug: http://b/77296294
Test: manual inspection of tombstone generated by crasher
Change-Id: I4b017701d7d2041db4aefbbb90977e99b844c328
2018-04-20 13:23:20 -07:00
Josh Gao
2f37a15472 libunwindstack: add Regs::Clone.
Add a way to copy a Regs object.

Bug: http://b/77296294
Test: libunwindstack_test
Change-Id: I28aff510aa3e1b677d5ae46dc3bfe7652817ce52
2018-04-20 13:23:20 -07:00
Elliott Hughes
395131df7b Merge changes I1f55c6e1,Ib2adcf0a
* changes:
  Move fastboot over to ParseByteCount.
  Add android::base::ParseByteCount.
2018-04-20 20:15:30 +00:00
Elliott Hughes
542370dead Move fastboot over to ParseByteCount.
Bug: N/A
Test: `fastboot flashall` and `fastboot -S 100m flashall`
Change-Id: I1f55c6e10be74780bbf8dc30b2d4be3f362ac662
2018-04-19 19:49:44 -07:00
Elliott Hughes
955b6a4792 Add android::base::ParseByteCount.
Bug: N/A
Test: ran tests
Change-Id: Ib2adcf0a5b9494fcf8259b29974303e8516a9ad9
2018-04-19 19:49:16 -07:00
Luis Hector Chavez
2c3f1d6c43 Merge changes I722d2c41,Ic216ddef
am: c4ad6b6adc

Change-Id: I773f941918a21118eddc09d59cdc667fe22833eb
2018-04-19 19:23:53 -07:00
Treehugger Robot
c4ad6b6adc Merge changes I722d2c41,Ic216ddef
* changes:
  Improve test_adb.py
  adb: Distinguish betwen already-connected and connection failure
2018-04-20 02:13:09 +00:00
Josh Gao
22bce1788e Merge "adb: don't error in handle_host_request if we can't acquire a transport."
am: 224d965be0

Change-Id: If1d8207916095c9fbca83c716f51846f125897b9
2018-04-19 14:52:57 -07:00
Treehugger Robot
224d965be0 Merge "adb: don't error in handle_host_request if we can't acquire a transport." 2018-04-19 21:40:57 +00:00