Commit Graph

14947 Commits

Author SHA1 Message Date
Elliott Hughes 7b071e53fa Switch to toybox ls.
Bug: http://b/21171466
Change-Id: I3fa09db7ca43d337cbda60f10269e7607544982b
(cherry picked from commit 9c94aa9982)
2015-05-15 18:12:16 -07:00
Dan Albert 747a6f22cd Merge "adb: win32: fix key files reading/writing" 2015-05-16 01:04:21 +00:00
Elliott Hughes 374e716019 am 5e1ca285: am 3937120f: Merge "Switch to toybox ls."
* commit '5e1ca285b53e01ab53ed148a8caa219100725fdc':
  Switch to toybox ls.
2015-05-16 01:01:28 +00:00
Dan Albert d916248e06 am e61ecc4b: am 792b4f8c: Merge "Make pty raw in adb shell when non-interactive."
* commit 'e61ecc4b47117e6e4eb869de0181a310ba66c876':
  Make pty raw in adb shell when non-interactive.
2015-05-16 01:01:27 +00:00
Badhri Jagan Sridharan bf11095f92 fastboot: Add support for fastboot flashing commands
Commands added:
fastboot flashing lock
      - Prevents flashing partitions
fastboot flashing unlock
      - Enable user to flashing partitions
fastboot flashing lock_critical
      - Prevents flashing bootloader related
        paritions
fastboot flashing unlock_critical
      - Enables user to flash bootloader
        related partitions
fastboot flashing get_unlock_ability
      - Query bootloader to check if device is
        locked.

Change-Id: Id6db16ba32f7a2b1c3f041a76bd3bdf2d3ab471e
2015-05-15 18:00:50 -07:00
Christopher Ferris 3d190fea13 am 76caf5a5: am a4e7f07f: Merge "Switch UniquePtr to std::unique_ptr."
* commit '76caf5a576dbe8632067d18271b90b1a06c9d6d4':
  Switch UniquePtr to std::unique_ptr.
2015-05-16 00:50:20 +00:00
Elliott Hughes 5e1ca285b5 am 3937120f: Merge "Switch to toybox ls."
* commit '3937120f320523c8464255d29d7173f62bef6e2a':
  Switch to toybox ls.
2015-05-16 00:48:44 +00:00
Dan Albert e61ecc4b47 am 792b4f8c: Merge "Make pty raw in adb shell when non-interactive."
* commit '792b4f8cc2f8bdfcd603e05b03153331eec1f94a':
  Make pty raw in adb shell when non-interactive.
2015-05-16 00:48:43 +00:00
Elliott Hughes 3937120f32 Merge "Switch to toybox ls." 2015-05-16 00:45:28 +00:00
Christopher Ferris 76caf5a576 am a4e7f07f: Merge "Switch UniquePtr to std::unique_ptr."
* commit 'a4e7f07f772397727db6070e8fd183bc81b8212c':
  Switch UniquePtr to std::unique_ptr.
2015-05-16 00:41:38 +00:00
Christopher Ferris f0861f9f8f Switch UniquePtr to std::unique_ptr.
Bug: 21209050
Change-Id: I91d4c44de479b37f2729382fcdf103b8c69aa668
(cherry picked from commit 6e96403b8f)
2015-05-15 17:41:20 -07:00
Dan Albert 792b4f8cc2 Merge "Make pty raw in adb shell when non-interactive." 2015-05-16 00:41:05 +00:00
Christopher Ferris a4e7f07f77 Merge "Switch UniquePtr to std::unique_ptr." 2015-05-16 00:35:34 +00:00
Dan Albert 569a130196 Make pty raw in adb shell when non-interactive.
The main goal here is fixing the line ending translation from \n to
\r\n, but we probably don't want any translation to happen.

Bug: http://b/19735063
Change-Id: I1d6d6c6b57cc741b046c2432cd864b344ce1f28a
2015-05-15 17:33:05 -07:00
Christopher Ferris 6e96403b8f Switch UniquePtr to std::unique_ptr.
Bug: 21209050
Change-Id: I91d4c44de479b37f2729382fcdf103b8c69aa668
2015-05-15 17:30:21 -07:00
Chih-Hung Hsieh 0cda9f554d am 2d543b7d: Enable clang compilation.
* commit '2d543b7d4be5898571c255d2aaaa15762a2e3b77':
  Enable clang compilation.
2015-05-15 23:56:49 +00:00
Elliott Hughes 9c94aa9982 Switch to toybox ls.
Bug: http://b/21171466
Change-Id: I3fa09db7ca43d337cbda60f10269e7607544982b
2015-05-15 16:54:35 -07:00
Dan Albert 2bbbc709c9 am 8fb4d994: am 4e000812: Merge "adb: win32: fix StringPrintf format string checking of %zd and PRIu64"
* commit '8fb4d99478521aeeab86bdbbcb085bb308d38aa7':
  adb: win32: fix StringPrintf format string checking of %zd and PRIu64
2015-05-15 23:14:11 +00:00
Chih-Hung Hsieh 2d543b7d4b Enable clang compilation.
Previous clang/llvm bug was fixed.

BUG: 18790528
Change-Id: Ib12696030d34ebc3c3ef1bca3cad0139d631417e
(cherry picked from commit 1cd02d3443)
2015-05-15 16:13:19 -07:00
Dan Albert 8fb4d99478 am 4e000812: Merge "adb: win32: fix StringPrintf format string checking of %zd and PRIu64"
* commit '4e0008123d0828e8b8ab31c81ebdbc5dc3656e88':
  adb: win32: fix StringPrintf format string checking of %zd and PRIu64
2015-05-15 22:59:36 +00:00
Dan Albert 4e0008123d Merge "adb: win32: fix StringPrintf format string checking of %zd and PRIu64" 2015-05-15 22:49:59 +00:00
Dan Albert c76137ddd5 am e9e6eb82: am 0df06907: Merge "adb: win32: fix daemon acknowledgement"
* commit 'e9e6eb82b6720d658c11aeea8177f1cf8d54d5ea':
  adb: win32: fix daemon acknowledgement
2015-05-15 22:24:41 +00:00
Elliott Hughes dea865b75c am 2181c722: Fix \' escaping in adb.
* commit '2181c722ceac50dde3c4a399950b37e7fd6a5893':
  Fix ' escaping in adb.
2015-05-15 22:15:44 +00:00
Dan Albert e9e6eb82b6 am 0df06907: Merge "adb: win32: fix daemon acknowledgement"
* commit '0df06907b42d5deea3d55411d98e273e204390ab':
  adb: win32: fix daemon acknowledgement
2015-05-15 21:56:44 +00:00
Elliott Hughes 2181c722ce Fix ' escaping in adb.
You can't just use \' inside a single-quoted string.

Bug: http://b/20323053
Bug: http://b/3090932
Change-Id: I73754b097671d02dc11c35052f0534b6dd789e4f
(cherry picked from commit 84b0bf2264)
2015-05-15 14:50:47 -07:00
Dan Albert 0df06907b4 Merge "adb: win32: fix daemon acknowledgement" 2015-05-15 21:47:07 +00:00
Elliott Hughes 43ed529b45 am d09e3169: am d0008c97: Merge "Fix \' escaping in adb."
* commit 'd09e3169065314a5fddd312fc53f107eff4ccedf':
  Fix ' escaping in adb.
2015-05-15 21:33:45 +00:00
Elliott Hughes d09e316906 am d0008c97: Merge "Fix \' escaping in adb."
* commit 'd0008c971dce0e90f49426ac79af190514551f1f':
  Fix ' escaping in adb.
2015-05-15 21:19:21 +00:00
Elliott Hughes d0008c971d Merge "Fix ' escaping in adb." 2015-05-15 21:11:25 +00:00
Elliott Hughes 00c4cc0337 am 651fae3c: Reduce the coldboot timeout to 1s.
* commit '651fae3cbc9183ea1abcccc9b64db49ff76d0e00':
  Reduce the coldboot timeout to 1s.
2015-05-15 20:57:41 +00:00
Christopher Ferris 6938aef388 am eb19e766: Prevent crashes if a map cannot be created.
* commit 'eb19e766322fb57ccde989e0e35b0ac3e28a4ac2':
  Prevent crashes if a map cannot be created.
2015-05-15 20:11:34 +00:00
Adam Lesinski 07edc3b3b3 Prevent integer overflow when allocating native_handle_t
User specified values of numInts and numFds can overflow
and cause malloc to allocate less than we expect, causing
heap corruption in subsequent operations on the allocation.

Bug: 19334482
Change-Id: I43c75f536ea4c08f14ca12ca6288660fd2d1ec55
2015-05-15 13:09:39 -07:00
Elliott Hughes 651fae3cbc Reduce the coldboot timeout to 1s.
5s was already a ridiculously long time to delay booting, and some OEMs are
trying to make it even more insane:

  https://www.codeaurora.org/cgit/quic/la/platform/system/core/commit/?h=lp&id=fd23edd48272976d2fb333f377242173f92aa343

Let's at least ensure that Nexus and Android One devices don't take forever
to boot...

Bug: http://b/19899875
Change-Id: I9680c166a759360f34118e51cd0645e12b6bd5c8
(cherry picked from commit c7331d02d1)
2015-05-15 12:18:41 -07:00
Elliott Hughes 84b0bf2264 Fix ' escaping in adb.
You can't just use \' inside a single-quoted string.

Bug: http://b/20323053
Bug: http://b/3090932
Change-Id: I73754b097671d02dc11c35052f0534b6dd789e4f
2015-05-15 12:06:00 -07:00
Christopher Ferris e7f817ec0b am 11d78d46: am 3f7e06ae: Merge "Prevent crashes if a map cannot be created."
* commit '11d78d46a670fb3ac933dd4b79be1852a0c48b7f':
  Prevent crashes if a map cannot be created.
2015-05-15 18:45:11 +00:00
Christopher Ferris eb19e76632 Prevent crashes if a map cannot be created.
Under some conditions, /proc/<pid>/maps might return nothing. If we
try and unwind in this case, we'll crash. Check this case and fail
the unwind.

Add checks that no other functions try and use map_ without
checking for nullptr.

Add logging when an unwind fails so it's clear what happened.

Bug: 21162746
Change-Id: I56ce51dda0cfc9db20475a441f118108196aa07c
(cherry picked from commit 30c942cf10)
2015-05-15 11:32:53 -07:00
Christopher Ferris 11d78d46a6 am 3f7e06ae: Merge "Prevent crashes if a map cannot be created."
* commit '3f7e06aef5376daba7e8790e575da1d7b52f719c':
  Prevent crashes if a map cannot be created.
2015-05-15 18:32:49 +00:00
Christopher Ferris 3f7e06aef5 Merge "Prevent crashes if a map cannot be created." 2015-05-15 18:25:01 +00:00
Andreas Gampe a6ac9ce98b LibNativeBridge: Version 2
Add a callback function to retrieve "signal handler" from the bridge,
if the bridge wants it to be managed by the runtime. The signal handler
will be invoked after the runtime's own one, and before any other
chained handler.

Add a callback function to check compatibility of the bridge with the
library.

Add a function to expose the native bridge version. Add a test for this
function.

Bug: 20217701
Change-Id: Ic23a60b949f119c7d8b0e7cb27a61e6c16532a23
2015-05-14 20:20:49 -07:00
Christopher Ferris 30c942cf10 Prevent crashes if a map cannot be created.
Under some conditions, /proc/<pid>/maps might return nothing. If we
try and unwind in this case, we'll crash. Check this case and fail
the unwind.

Add checks that no other functions try and use map_ without
checking for nullptr.

Add logging when an unwind fails so it's clear what happened.

Bug: 21162746
Change-Id: I56ce51dda0cfc9db20475a441f118108196aa07c
2015-05-14 17:56:41 -07:00
Elliott Hughes 86920d80b6 am bca8dc6a: am 000c009b: Merge "Reduce the coldboot timeout to 1s."
* commit 'bca8dc6a44b3505e8d72b9247f813f8070211393':
  Reduce the coldboot timeout to 1s.
2015-05-14 20:34:32 +00:00
Andres Morales 96470fdefe am c89a1774: Merge "Move SoftGateKeeper into gatekeeperd" into mnc-dev
* commit 'c89a1774cb483f90f58cb8912e89e58f53dbb6a5':
  Move SoftGateKeeper into gatekeeperd
2015-05-14 20:29:12 +00:00
Elliott Hughes bca8dc6a44 am 000c009b: Merge "Reduce the coldboot timeout to 1s."
* commit '000c009bcc71bf8218d20c5575d3ae44c8bd4cda':
  Reduce the coldboot timeout to 1s.
2015-05-14 20:22:50 +00:00
Elliott Hughes 000c009bcc Merge "Reduce the coldboot timeout to 1s." 2015-05-14 20:14:32 +00:00
Andres Morales c89a1774cb Merge "Move SoftGateKeeper into gatekeeperd" into mnc-dev 2015-05-14 20:06:11 +00:00
Andres Morales 33dfdc7bbc Move SoftGateKeeper into gatekeeperd
Allows for easy determination of whether there's a
hardware module in place. Permits tighter coupling of
software implementation with upper-level stack.

Bug:21090356
Change-Id: I275b57cd976c233c43c476c5869c5a4b29fbc175
2015-05-14 12:58:13 -07:00
Chih-Hung Hsieh 239fb56bcf am 6046f418: am 2cc25440: Merge "Enable clang compilation."
* commit '6046f4180d6a333788ccdab21c909f2e40d2b073':
  Enable clang compilation.
2015-05-14 19:40:52 +00:00
Chih-Hung Hsieh 6046f4180d am 2cc25440: Merge "Enable clang compilation."
* commit '2cc2544024364ec532a6d49131cb842fe9b559ae':
  Enable clang compilation.
2015-05-14 19:27:39 +00:00
Chih-Hung Hsieh 2cc2544024 Merge "Enable clang compilation." 2015-05-14 19:21:22 +00:00
Elliott Hughes c7331d02d1 Reduce the coldboot timeout to 1s.
5s was already a ridiculously long time to delay booting, and some OEMs are
trying to make it even more insane:

  https://www.codeaurora.org/cgit/quic/la/platform/system/core/commit/?h=lp&id=fd23edd48272976d2fb333f377242173f92aa343

Let's at least ensure that Nexus and Android One devices don't take forever
to boot...

Bug: http://b/19899875
Change-Id: I9680c166a759360f34118e51cd0645e12b6bd5c8
2015-05-14 12:03:14 -07:00