Commit Graph

40383 Commits

Author SHA1 Message Date
Bowgo Tsai 7e50de4449 Adding product.img for `fastboot flashall`
Bug: 64195575
Test: fastboot flashall

Change-Id: Ifd119650dd3316508870df0dfc770099e95ae1d1
Merged-In: Ifd119650dd3316508870df0dfc770099e95ae1d1
(cherry picked from commit 0afc6b07f1)
2018-03-27 09:40:35 +08:00
Treehugger Robot c41ff1b366 Merge "Adding product.img for `fastboot flashall`" 2018-03-27 01:37:42 +00:00
Luis Hector Chavez f6965c793a Allow android::base::ScopeGuard in STL containers
This change lets android::base::ScopeGuard be useful in STL containers
(e.g. std::vector<android::base::ScopeGuard<std::function<void()>>>). It
also provides perfect forwarding for android::base::make_scope_guard.

Bug: 34764308
Test: libbase_test

Change-Id: I7d1e5494b0f0695763cff0700efdb9ec18ae85c8
Merged-In: I7d1e5494b0f0695763cff0700efdb9ec18ae85c8
(cherry picked from commit b77035b89a)
2018-03-27 00:38:06 +00:00
Tom Cherry e034b0d561 Merge "Verify the SELabels used in property_contexts" am: 324e27d284
am: 7608894fe0

Change-Id: I0fd3ab6353bc6009b28526db97427025a4c600c5
2018-03-26 23:54:33 +00:00
Tom Cherry 7608894fe0 Merge "Verify the SELabels used in property_contexts"
am: 324e27d284

Change-Id: Ie2529102d2f5c28ed083462f3692732d67e9ccdc
2018-03-26 23:46:32 +00:00
Rajeev Kumar f09c593dd5 Merge "Use usel_mkd_stats_log build variable while compiling lmkd with stats logging feature." into pi-dev
am: 42c17c8ee5

Change-Id: I4d5b2851bb465dfaf0c8c7b863611685aedaf03d
2018-03-26 23:34:24 +00:00
Tom Cherry daaf3aa226 Verify the SELabels used in property_contexts
Verify that the SELabels used in property_contexts correspond to a
real type in the SEPolicy and that this type has the property_type attribute.

Bug: 74078792
Test: Build property_contexts on bullhead successfully
Test: See failure when using a faulty SELabel in property_contexts
Change-Id: If1618c2c3dae4c0cd3efa5f88056478a6db6bd0b
(cherry picked from commit 882faa6448)
2018-03-26 16:32:05 -07:00
Tom Cherry 324e27d284 Merge "Verify the SELabels used in property_contexts" 2018-03-26 23:28:30 +00:00
Luis Hector Chavez 072108f560 Merge "Allow android::base::ScopeGuard in STL containers" am: 3b279aa5c7
am: 94a480d21f

Change-Id: I1b8daea74c1779f30b724a1c03a55b374870a2e7
2018-03-26 23:21:46 +00:00
Luis Hector Chavez 94a480d21f Merge "Allow android::base::ScopeGuard in STL containers"
am: 3b279aa5c7

Change-Id: I0c57afc84e8bd3ab9de7c1bcb9f743c272d04aaa
2018-03-26 23:15:25 +00:00
TreeHugger Robot 42c17c8ee5 Merge "Use usel_mkd_stats_log build variable while compiling lmkd with stats logging feature." into pi-dev 2018-03-26 23:14:23 +00:00
Treehugger Robot 3b279aa5c7 Merge "Allow android::base::ScopeGuard in STL containers" 2018-03-26 23:05:25 +00:00
Rajeev Kumar 716fe89b88 Fix compilation issue when LMKD_LOG_STATS is defined.
am: 1c669f764d

Change-Id: I750b6a13b1a897b3dc77e1823a997afe0c40e4a3
2018-03-26 21:46:22 +00:00
Martijn Coenen f733da8e91 [automerger skipped]Merge "Add new trace tag for AIDL." am: 80dce0127c
am: f7a1378384  -s ours

Change-Id: Ieb10fb76f22d7047b6430691918d53d07e8eb0f9
2018-03-26 20:39:50 +00:00
Luis Hector Chavez b77035b89a Allow android::base::ScopeGuard in STL containers
This change lets android::base::ScopeGuard be useful in STL containers
(e.g. std::vector<android::base::ScopeGuard<std::function<void()>>>). It
also provides perfect forwarding for android::base::make_scope_guard.

Bug: 34764308
Test: libbase_test

Change-Id: I7d1e5494b0f0695763cff0700efdb9ec18ae85c8
2018-03-26 13:30:09 -07:00
Martijn Coenen f7a1378384 Merge "Add new trace tag for AIDL."
am: 80dce0127c

Change-Id: I31e5546ed42672d21f2195eb1f56d42568a582ef
2018-03-26 20:26:57 +00:00
Luis Hector Chavez 006cf308f8 Merge "adb: Open FunctionFS files with more restrictive access modes" am: f78ff013d0
am: e74b0f224c

Change-Id: I0d11be7750f0a05838ecb9b9accd02e6a0b0fb2f
2018-03-26 19:03:48 +00:00
Martijn Coenen 80dce0127c Merge "Add new trace tag for AIDL." 2018-03-26 19:00:57 +00:00
Luis Hector Chavez e74b0f224c Merge "adb: Open FunctionFS files with more restrictive access modes"
am: f78ff013d0

Change-Id: I867878aba35e47c66a9f501cd1cf9b979d5bc8a9
2018-03-26 18:56:38 +00:00
Treehugger Robot f78ff013d0 Merge "adb: Open FunctionFS files with more restrictive access modes" 2018-03-26 18:48:25 +00:00
Rajeev Kumar 1c669f764d Fix compilation issue when LMKD_LOG_STATS is defined.
Note: The breakage was caused by http://ag/3621623

Test: mmma system/core/lmkd/
Change-Id: I17033aeedb3183d4777dacb89ec84430ff061b3c
Bug: 74443701
(cherry picked from commit fb25ddd9c9)
2018-03-26 18:15:25 +00:00
Tom Cherry 882faa6448 Verify the SELabels used in property_contexts
Verify that the SELabels used in property_contexts correspond to a
real type in the SEPolicy and that this type has the property_type attribute.

Bug: 74078792
Test: Build property_contexts on bullhead successfully
Test: See failure when using a faulty SELabel in property_contexts
Change-Id: If1618c2c3dae4c0cd3efa5f88056478a6db6bd0b
2018-03-26 09:22:55 -07:00
Martijn Coenen 24426e96a5 Add new trace tag for AIDL.
So we can auto-generate tracing code for AIDL interfaces.

Bug: 74416314
Test: inspect atrace output
Change-Id: I91b14b3b16d8d7a29f531101b14ddf10dbc61a5a
Merged-In: I91b14b3b16d8d7a29f531101b14ddf10dbc61a5a
2018-03-26 09:59:21 +02:00
Bowgo Tsai 0afc6b07f1 Adding product.img for `fastboot flashall`
Bug: 64195575
Test: fastboot flashall
Change-Id: Ifd119650dd3316508870df0dfc770099e95ae1d1
2018-03-26 15:47:59 +08:00
Christopher Ferris 3c3e8ad05d Merge "Method to avoid skipping frames for local unwinds." am: 43cb7ea4ed
am: 47aaa8ce06

Change-Id: I8ee135aa0b7871abcfccdd1b4d5dfc4aac1ba35e
2018-03-24 19:40:25 +00:00
Christopher Ferris 47aaa8ce06 Merge "Method to avoid skipping frames for local unwinds."
am: 43cb7ea4ed

Change-Id: I1c2c9e88d30e56d00e28ea1ae79060f80d9b4b57
2018-03-24 19:32:15 +00:00
Christopher Ferris 43cb7ea4ed Merge "Method to avoid skipping frames for local unwinds." 2018-03-24 19:20:16 +00:00
Martijn Coenen a9545889cf Merge "Add new trace tag for AIDL." into pi-dev
am: ffeb7ecc3f

Change-Id: I03f6abc14abf96d6d588937fc0a6a83fdc3a8d5b
2018-03-24 06:19:08 +00:00
Martijn Coenen ffeb7ecc3f Merge "Add new trace tag for AIDL." into pi-dev 2018-03-24 05:58:25 +00:00
Mark Salyzyn 1aff9f5883 Merge "storaged: owner adjustment" am: 387319307a
am: 785c18d4d1

Change-Id: I8fc93957370c2ef95ddbea5ce1d3f16ada31611d
2018-03-23 23:34:40 +00:00
Mark Salyzyn 785c18d4d1 Merge "storaged: owner adjustment"
am: 387319307a

Change-Id: I0faa3fd6cc6bbe0b33db5873f9a44f83909aaf74
2018-03-23 23:19:40 +00:00
Josh Gao f8a97c1f14 adb: start building windows test again.
Test: mma
Change-Id: Iea2a3055cc3642905a1bbdd18550a9fc12702da8
2018-03-23 15:37:20 -07:00
Mark Salyzyn 387319307a Merge "storaged: owner adjustment" 2018-03-23 22:01:55 +00:00
Mark Salyzyn 133c9111a3 storaged: owner adjustment
Added salyzyn@ for final owner review on adjustments to storaged.

Test: none
Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Change-Id: Iac73403ea416a4820f72689f5860aa88931def06
2018-03-23 14:37:53 -07:00
Rajeev Kumar b7273785a2 Use usel_mkd_stats_log build variable while compiling lmkd with stats logging feature.
Bug: 74443701
Test: Tested manually
Merged-In: Ifa13cc7d1c3ff3ac71a16cf55be5a48ce808ef59
Change-Id: Ifa13cc7d1c3ff3ac71a16cf55be5a48ce808ef59
(cherry picked from commit 083be30783)
2018-03-23 20:33:57 +00:00
Josh Gao 2e1e789e2a adb: fix windows test build.
The switch over to soong unintentionally turned off building the
Windows tests (and there's a bug preventing them from being turned on).
Preemptively fix the build breakages that'll happen when we turn them
back on.

Test: mma with Android.bp 's/cc_test_host/cc_binary_host' hacks
Change-Id: I6582cfc61b96052537d50d8ba90533dbb66e3e1d
2018-03-23 13:03:28 -07:00
Christopher Ferris 458f4e725d Method to avoid skipping frames for local unwinds.
In cases where there might be a crash in the unwind library itself,
we need a method to avoid skipping these frames or we won't be able
to see the actual crash.

Added unit test for this behavior.

Bug: 74121887

Test: Ran unit tests on host and target.
Change-Id: I45825020c174016af39dd8ffdc67acb72a24ad4d
2018-03-23 13:01:44 -07:00
Yabin Cui b8223780c0 Merge "Support a map that represents gdb jit elf data." am: 7102f7c98d
am: 9b987e4bde

Change-Id: I10ed04440213f7c7098bca790c3318cff515a80e
2018-03-23 17:44:22 +00:00
Yabin Cui 9b987e4bde Merge "Support a map that represents gdb jit elf data."
am: 7102f7c98d

Change-Id: I8233d4f8f05885ac07cebe4594bc0d9e3a71a56e
2018-03-23 17:39:23 +00:00
Yabin Cui 7102f7c98d Merge "Support a map that represents gdb jit elf data." 2018-03-23 17:27:58 +00:00
Jerry Zhang d3d2461662 adb: Retry io in case of interrupt
am: 6e9a327504

Change-Id: Icd93e7cd983924c3b8b85af2987d1e36b385030b
2018-03-23 05:12:41 +00:00
Jerry Zhang 6e9a327504 adb: Retry io in case of interrupt
io_submit sleeps waiting for the gadget
to be enabled. Currently if that sleep
is interrupted it will shut down adb,
causing it to have to start back up again.

Rather than return EINTR if interrupted,
io_submit actually completes and the EINTR
is found later when looking through events.
Since an io that is interrupted will be
small anyway, add a loop to retry small ios.

Also upgrade aio logs in accordance with
their importance.

Fixes: 75981904
Test: adb works, logs show successful interrupt handling
Change-Id: I35973fce130ee849ce59fef80d15b65afb816ba4
2018-03-23 00:11:05 +00:00
Mark Salyzyn cfc702e548 Merge "bootstat: refine "Kernel panic - not syncing"" am: 3b353ed41c
am: cf63c66865

Change-Id: I102019c09fb52fc3963ded5f08097283b00587bd
2018-03-23 00:02:27 +00:00
Mark Salyzyn cf63c66865 Merge "bootstat: refine "Kernel panic - not syncing""
am: 3b353ed41c

Change-Id: I59a9cf50c398c5231a3fa1ef00ba3c4bed249992
2018-03-22 23:51:49 +00:00
Treehugger Robot 3b353ed41c Merge "bootstat: refine "Kernel panic - not syncing"" 2018-03-22 23:17:40 +00:00
Mark Salyzyn 3f48fa9cb2 bootstat: refine "Kernel panic - not syncing"
Provide some easy kernel panic subreasons mined from last kmesg,
generates a canonical boot reason (system boot reason) that
may aid triage.

Notably report kernel_panic,hung if [khungtaskd] triggers on
a livelock condition, forms a signals on the dashboards.

Helper function getSubreason modified to optionally enable checking
for a single quote resulting in a refactoring to ease maintenance of
the termination detection in the face of single bit errors heuristics.

Test: boot_reason_test.sh
Bug: 63736262
Bug: 33808187
Change-Id: I7fdd1e57e7a26095738175074306f0d2d59b1d69
2018-03-22 13:57:31 -07:00
Jerry Zhang 50108b3f49 Remove sys.usb.ffs.mtp.ready property
With the usb control fd changes, there
is no longer a need to wait for this
property to trigger before starting the
connection.

Bug: 72877174
Test: switch config to mtp/ptp
Change-Id: Ib29419e7948025be3f3295106cad18943d314f0b
2018-03-22 11:35:20 -07:00
Josh Gao 5651db553a Merge changes I5fe02059,Iea8bf298,I0630c302,Ifc4b8fe9,I29319bda am: d888e343b7
am: 32e239f139

Change-Id: I49fa0688d55b5e02637990f05cfd7f19cbb3d327
2018-03-22 04:07:46 +00:00
Josh Gao 32e239f139 Merge changes I5fe02059,Iea8bf298,I0630c302,Ifc4b8fe9,I29319bda
am: d888e343b7

Change-Id: I312a8cc960d967f246f53e3e5677ab7008934951
2018-03-22 04:00:33 +00:00
Treehugger Robot d888e343b7 Merge changes I5fe02059,Iea8bf298,I0630c302,Ifc4b8fe9,I29319bda
* changes:
  adb: bump the local socket backlog to the maximum.
  adb: fix unicode file path test.
  adb: delete vestigial SHELL_EXIT_NOTIFY_FD.
  adb: don't immediately close a socket when write fails.
  adb: make fdevent_run_on_main_thread's fd nonblocking.
2018-03-22 03:48:38 +00:00