Commit Graph
2175 Commits
Author SHA1 Message Date
Tao Baoandandroid-build-merger 0813c01c8b Merge "recovery: Handle devices without /cache partition." am: 479d9dc2f2 am: f2726712ea
am: c36b919525

* commit 'c36b91952573dc632dfb855085a88303df583aab':
  recovery: Handle devices without /cache partition.
2016-03-04 20:32:45 +00:00
Tao Baoandandroid-build-merger 558a1942c5 Merge "Fix the improper use of LOCAL_WHOLE_STATIC_LIBRARIES." am: f639490a51 am: 038c294453
am: d29a16afc7

* commit 'd29a16afc7918ee921a995950f31dd1d6be6823f':
  Fix the improper use of LOCAL_WHOLE_STATIC_LIBRARIES.
2016-03-04 20:32:38 +00:00
Tao Baoandandroid-build-merger c36b919525 Merge "recovery: Handle devices without /cache partition." am: 479d9dc2f2
am: f2726712ea

* commit 'f2726712ea1e02fdabf595ece1cfeab9a6147386':
  recovery: Handle devices without /cache partition.
2016-03-04 20:28:38 +00:00
Tao Baoandandroid-build-merger d29a16afc7 Merge "Fix the improper use of LOCAL_WHOLE_STATIC_LIBRARIES." am: f639490a51
am: 038c294453

* commit '038c294453865161680777f08ce7adbf42d8f6e3':
  Fix the improper use of LOCAL_WHOLE_STATIC_LIBRARIES.
2016-03-04 20:28:30 +00:00
Tao Baoandandroid-build-merger f2726712ea Merge "recovery: Handle devices without /cache partition."
am: 479d9dc2f2

* commit '479d9dc2f2601f5858726913e82aac69c1aa22d2':
  recovery: Handle devices without /cache partition.
2016-03-04 20:26:06 +00:00
Tao Baoandandroid-build-merger 038c294453 Merge "Fix the improper use of LOCAL_WHOLE_STATIC_LIBRARIES."
am: f639490a51

* commit 'f639490a51655a4d372663e2f7000666748d7fda':
  Fix the improper use of LOCAL_WHOLE_STATIC_LIBRARIES.
2016-03-04 20:25:59 +00:00
Tao BaoandGerrit Code Review 479d9dc2f2 Merge "recovery: Handle devices without /cache partition." 2016-03-04 20:17:11 +00:00
Tao BaoandGerrit Code Review f639490a51 Merge "Fix the improper use of LOCAL_WHOLE_STATIC_LIBRARIES." 2016-03-04 20:16:50 +00:00
Alex Deymoandandroid-build-merger 2bdef0937a Merge "Restore labels on /postinstall during recovery." am: 60eae72ac6 am: f6ffefb116
am: 20bb31bbd3

* commit '20bb31bbd3a74667ff1da59ef4ead37d065dc80d':
  Restore labels on /postinstall during recovery.
2016-03-04 05:49:06 +00:00
Alex Deymoandandroid-build-merger 20bb31bbd3 Merge "Restore labels on /postinstall during recovery." am: 60eae72ac6
am: f6ffefb116

* commit 'f6ffefb11690ca3604df7c8c0ddda74387d26eba':
  Restore labels on /postinstall during recovery.
2016-03-04 05:47:16 +00:00
Alex Deymoandandroid-build-merger f6ffefb116 Merge "Restore labels on /postinstall during recovery."
am: 60eae72ac6

* commit '60eae72ac6c35567ea71035d379d4f2300cec77c':
  Restore labels on /postinstall during recovery.
2016-03-04 05:45:27 +00:00
Alex DeymoandGerrit Code Review 60eae72ac6 Merge "Restore labels on /postinstall during recovery." 2016-03-04 05:40:14 +00:00
Tao Baoandandroid-build-merger d79baad222 uncrypt: Communicate via /dev/socket/uncrypt. am: 3a2bb594df
am: 21c0054766

* commit '21c005476699a3892a3b5c16a1cd7a4907988c6b':
  uncrypt: Communicate via /dev/socket/uncrypt.
2016-03-04 01:26:59 +00:00
Tao Baoandandroid-build-merger 21c0054766 uncrypt: Communicate via /dev/socket/uncrypt.
am: 3a2bb594df

* commit '3a2bb594df4b48c6afb1f029041dd6db0735de58':
  uncrypt: Communicate via /dev/socket/uncrypt.
2016-03-04 01:00:53 +00:00
Tao Bao d80a99883d Fix the improper use of LOCAL_WHOLE_STATIC_LIBRARIES.
If two libraries both use LOCAL_WHOLE_STATIC_LIBRARIES and include a same
library, there would be linking errors when generating a shared library
(or executable) that depends on the two libraries both.

Also clean up Android.mk files.

Remove the "LOCAL_MODULE_TAGS := eng" line for the updater module. The
module will then default to "optional" which won't be built until needed.

Change-Id: I3ec227109b8aa744b7568e7f82f575aae3fe0e6f
2016-03-03 14:52:44 -08:00
Tao Bao 3a2bb594df uncrypt: Communicate via /dev/socket/uncrypt.
We used to rely on files (e.g. /cache/recovery/command and
/cache/recovery/uncrypt_status) to communicate between uncrypt and its
caller (i.e. system_server). Since A/B devices may not have /cache
partitions anymore, we switch to socket communication instead.

We will keep the use of /cache/recovery/uncrypt_file to indicate the OTA
package to be uncrypt'd though. Because there is existing logic in
ShutdownThread.java that depends on the existence of the file to
detect pending uncrypt works. This part won't affect A/B devices without
/cache partitions, because such devices won't need uncrypt service (i.e
the real de-encrypt work) anyway.

Bug: 27176738
Change-Id: I481406e09e3ffc7b80f2c9e39003b9fca028742e
2016-03-02 23:23:32 -08:00
Tao Bao 26112e5870 recovery: Handle devices without /cache partition.
Since we may not have /cache partition on A/B devices, let recovery
handle /cache related operations gracefully if /cache doesn't exist.

(1) Disable the wipe for /cache partition.

(2) Skip wiping /cache while wiping /data (i.e. factory reset).

(3) Disable logging-related features, until we figure out better
ways / places to store recovery logs (mainly for factory resets on A/B
devices).

Bug: 27176738
Change-Id: I7b14e53ce18960fe801ddfc15380dac6ceef1198
2016-03-02 15:33:32 -08:00
Alex Deymo 6bcc8af6e5 Restore labels on /postinstall during recovery.
This patch mirrors what was done in the main init.rc to relabel
/postinstall.

Bug: 27178350
Bug: 27177071
Change-Id: I39cd03f3c55a42c03367957e8c259c9a3155203c
2016-03-02 14:35:51 -08:00
Mattias Nisslerandandroid-build-merger 4934bb7e85 Merge "Remove dumpkey build guards after completing code move." am: 5ffc038be6 am: ea0e0faae6
am: c4d143356e

* commit 'c4d143356ef1a406bb641b2f1504ab72f083a6bd':
  Remove dumpkey build guards after completing code move.
2016-03-01 16:42:22 +00:00
Mattias Nisslerandandroid-build-merger c4d143356e Merge "Remove dumpkey build guards after completing code move." am: 5ffc038be6
am: ea0e0faae6

* commit 'ea0e0faae6c0e57deb1a53683b00ff4651a65502':
  Remove dumpkey build guards after completing code move.
2016-03-01 16:38:50 +00:00
Mattias Nisslerandandroid-build-merger ea0e0faae6 Merge "Remove dumpkey build guards after completing code move."
am: 5ffc038be6

* commit '5ffc038be6cffd9155fce4f2212ff351415ee7ba':
  Remove dumpkey build guards after completing code move.
2016-03-01 11:48:54 +00:00
Mattias NisslerandGerrit Code Review 5ffc038be6 Merge "Remove dumpkey build guards after completing code move." 2016-03-01 11:46:27 +00:00
Prashant Malaniandandroid-build-merger 08bae03c94 Merge "Fixes to wear recovery for N" into nyc-dev am: 9db7964834
am: 30f368fde0

* commit '30f368fde096a746d5ac407754955691abfc48b7':
  Fixes to wear recovery for N
2016-02-29 23:02:44 +00:00
Prashant Malaniandandroid-build-merger 30f368fde0 Merge "Fixes to wear recovery for N" into nyc-dev
am: 9db7964834

* commit '9db7964834694e10ce0945e17ac7fefc066d8deb':
  Fixes to wear recovery for N
2016-02-29 22:59:30 +00:00
Prashant MalaniandAndroid (Google) Code Review 9db7964834 Merge "Fixes to wear recovery for N" into nyc-dev 2016-02-29 22:56:30 +00:00
Tao Baoandandroid-build-merger 4d88a5d8f4 Merge "uncrypt: Retire pre-recovery service." into nyc-dev am: 65f35b5c35
am: bc11dd8b7c

* commit 'bc11dd8b7c675ff21ca505d9d67154f04d2862a9':
  uncrypt: Retire pre-recovery service.
2016-02-28 18:47:55 +00:00
Tao Baoandandroid-build-merger bc11dd8b7c Merge "uncrypt: Retire pre-recovery service." into nyc-dev
am: 65f35b5c35

* commit '65f35b5c3513571c179974829eb93ba069693d2b':
  uncrypt: Retire pre-recovery service.
2016-02-28 18:46:29 +00:00
Tao BaoandAndroid (Google) Code Review 65f35b5c35 Merge "uncrypt: Retire pre-recovery service." into nyc-dev 2016-02-28 18:44:38 +00:00
Prashant Malani 0eb41c3f37 Fixes to wear recovery for N
Bug: 27336841

Change-Id: If4632e9791cce2c39590a4012687271f59a60af1
2016-02-26 17:01:37 -08:00
Mattias Nissler b66f047d41 Remove dumpkey build guards after completing code move.
Bug: 27326256
Change-Id: Ia713b23e3c898c1f10af7c61ea67f34601fdcbe3
2016-02-26 11:20:18 +01:00
Mattias Nisslerandandroid-build-merger 25fb74bc83 Merge "Move dumpkey tool to the recovery repo." am: 5197fde242 am: b652678953
am: 95b96d98ca

* commit '95b96d98caf6dbaefcfe7b52ba35d27babd70245':
  Move dumpkey tool to the recovery repo.
2016-02-26 08:22:01 +00:00
Mattias Nisslerandandroid-build-merger 95b96d98ca Merge "Move dumpkey tool to the recovery repo." am: 5197fde242
am: b652678953

* commit 'b652678953f1ff3920bebdd97836eda061a9a36b':
  Move dumpkey tool to the recovery repo.
2016-02-26 08:19:34 +00:00
Mattias Nisslerandandroid-build-merger b652678953 Merge "Move dumpkey tool to the recovery repo."
am: 5197fde242

* commit '5197fde242e00d6ee112896846da8d0be6303c56':
  Move dumpkey tool to the recovery repo.
2016-02-26 08:18:02 +00:00
Mattias NisslerandGerrit Code Review 5197fde242 Merge "Move dumpkey tool to the recovery repo." 2016-02-26 08:16:34 +00:00
Paul Lawrenceandandroid-build-merger e048f0ba7f Move recovery\'s convert_fbe folder to /tmp am: 661f8a69f2
am: 8c3922f4ab

* commit '8c3922f4ab9755180d42e3f8162590892a029247':
  Move recovery's convert_fbe folder to /tmp
2016-02-25 21:45:00 +00:00
Paul Lawrenceandandroid-build-merger 8c3922f4ab Move recovery\'s convert_fbe folder to /tmp
am: 661f8a69f2

* commit '661f8a69f2b12f3244deed664ab69a9d2efad7fb':
  Move recovery's convert_fbe folder to /tmp
2016-02-25 21:37:01 +00:00
Paul Lawrence 661f8a69f2 Move recovery's convert_fbe folder to /tmp
The cache folder is no longer available at this time

Bug: 27355824
Change-Id: I74e33266c1ff407364981b186613f81319dd22dc
2016-02-25 13:07:16 -08:00
Mattias Nissler 03b72b0f37 Move dumpkey tool to the recovery repo.
The dumpkey tool is used to dump encryption keys in a custom format
used by the recovery code. Nobody else uses this format AFAICT, so
it's more appropriate to keep the code of the tool alongside the
recovery code instead of next to mincrypt.

BUG:27326256
Change-Id: I30176845617972be1d6e46e9a9218e161fbf0680
2016-02-24 14:53:10 +01:00
Josh Gaoandandroid-build-merger 61d1bd7156 Merge "minadbd: update for adb_thread_create signature change." into nyc-dev am: 0757a093c1
am: 744284bea0

* commit '744284bea06f806f30f67ea3364b200ed871dcb6':
  minadbd: update for adb_thread_create signature change.
2016-02-24 01:00:20 +00:00
Josh Gaoandandroid-build-merger 744284bea0 Merge "minadbd: update for adb_thread_create signature change." into nyc-dev
am: 0757a093c1

* commit '0757a093c187b64867a9ca7c97b80d9aa7d665cf':
  minadbd: update for adb_thread_create signature change.
2016-02-24 00:53:17 +00:00
Josh GaoandAndroid (Google) Code Review 0757a093c1 Merge "minadbd: update for adb_thread_create signature change." into nyc-dev 2016-02-24 00:50:36 +00:00
Yabin Cuiandandroid-build-merger 8cb6069499 recovery: check battery level before installing package. am: 99281df8e2
am: 2be10be7d0

* commit '2be10be7d0721ecbff3d0270c5f3026456902b6a':
  recovery: check battery level before installing package.
2016-02-23 23:13:56 +00:00
Yabin Cuiandandroid-build-merger 2be10be7d0 recovery: check battery level before installing package.
am: 99281df8e2

* commit '99281df8e2eb6a302ccbcfd790a6889392541264':
  recovery: check battery level before installing package.
2016-02-23 23:00:48 +00:00
Tianjie Xuandandroid-build-merger 90c75ddc05 Merge "Surpress warnings in minzip/Zip.c" am: 4b3cdce702 am: 0d63468171
am: cc5372006f

* commit 'cc5372006f6e423e4c3f68b3dc81694fd92a7046':
  Surpress warnings in minzip/Zip.c
2016-02-23 19:38:05 +00:00
Tianjie Xuandandroid-build-merger cc5372006f Merge "Surpress warnings in minzip/Zip.c" am: 4b3cdce702
am: 0d63468171

* commit '0d63468171a80bd84a859fbd36b8d874f030c764':
  Surpress warnings in minzip/Zip.c
2016-02-23 19:30:13 +00:00
Tianjie Xuandandroid-build-merger 0d63468171 Merge "Surpress warnings in minzip/Zip.c"
am: 4b3cdce702

* commit '4b3cdce702fefa7eac0626f57d09ff018127c191':
  Surpress warnings in minzip/Zip.c
2016-02-23 19:25:11 +00:00
Tianjie XuandGerrit Code Review 4b3cdce702 Merge "Surpress warnings in minzip/Zip.c" 2016-02-23 19:16:42 +00:00
Tianjie Xu 6629655476 Surpress warnings in minzip/Zip.c
bootable/recovery/minzip/Zip.c:514:5: warning: Value stored to 'compRemaining' is never read
    compRemaining = pEntry->compLen;
        ^               ~~~~~~~~~~~~~~~
  bootable/recovery/minzip/Zip.c:778:9: warning: Null pointer argument in call to memory copy function
    memcpy(p, helper->targetDir, helper->targetDirLen);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Bug: 27229894
Change-Id: I0482bac3a4fcddc191783d1e5b5a83cf29fa4e85
2016-02-23 11:15:43 -08:00
Yabin Cui 99281df8e2 recovery: check battery level before installing package.
Bug: 26879394

Change-Id: I63dce5bc50c2e104129f1bcab7d3cad5682bf45d
(cherry picked from commit 53e7a0628f)
2016-02-23 11:03:10 -08:00
Yabin Cuiandandroid-build-merger fc993df953 Fix integer overflows in recovery procedure. am: 1273956e69 am: 5978a71d29 am: 877dcba47a am: f4ee1720f3 am: cae056f219 am: 682d691052 am: ae68f02272 am: a3604da6e1 am: 089fe38ac5
am: 71c06eb1f7

* commit '71c06eb1f733b4afed3698566477a97487ed22aa':
  Fix integer overflows in recovery procedure.
2016-02-23 07:01:59 +00:00