1. 15 Apr, 2016 1 commit
    • Elliott Hughes's avatar
      Update the system update animation. · 498cda6e
      Elliott Hughes authored
      Switch to a Wear-like intro/loop system. We don't have an intro yet,
      but hopefully this will let Wear delete more code when they move to N.
      Unlike them, we don't hard-code the number of frames: we just look to
      see what we have available. We do hard-code the fps though.
      
      Also add a graphics test mode so you can see a demo of the UI components
      without having to actually apply an OTA.
      
      Also fix a bug where default locale is null rather than en-US: it's
      more useful to show _some_ text if we don't have a locale (which should
      only be during development anyway).
      
      Bug: http://b/26548285
      Change-Id: I63422e3fef3c41109f924d96fb5ded0b3ae7815d
      498cda6e
  2. 13 Apr, 2016 1 commit
  3. 08 Apr, 2016 1 commit
  4. 05 Apr, 2016 4 commits
  5. 31 Mar, 2016 2 commits
    • Mark Salyzyn's avatar
      recovery: use __android_log_pmsg_file_write for log files · 13aca598
      Mark Salyzyn authored
      (cherry-pick from commit a4f701af)
      
      - Add call to __android_log_pmsg_file_write for recovery logging.
      - Add call to refresh pmsg if we reboot back into recovery and then
        allow overwrite of those logs.
      - Add a new one-time executable recovery-refresh that refreshes pmsg
        in post-fs phase of init. We rely on pmsg eventually scrolling off
        to age the content after recovery-persist has done its job.
      - Add a new one-time executable recovery-persist that transfers from
        pmsg to /data/misc/recovery/ directory if /cache is not mounted
        in post-fs-data phase of init.
      - Build and appropriately trigger the above two as required if
        BOARD_CACHEIMAGE_PARTITION_SIZE is undefined.
      - Add some simple unit tests
      
      NB: Test failure is expected on systems that do not deliver either
      the recovery-persist or recovery-refresh executables, e.g. systems
      with /cache. Tests also require a timely reboot sequence of test
      to truly verify, tests provide guidance on stderr to direct.
      
      Bug: 27176738
      Change-Id: I17bb95980234984f6b2087fd5941b0a3126b706b
      13aca598
    • Bill Yi's avatar
      Import translations. DO NOT MERGE · f1b27851
      Bill Yi authored
      Change-Id: Id992a2cff5d431b5862f7c27f3823dbffe52f5c7
      Auto-generated-cl: translation import
      f1b27851
  6. 29 Mar, 2016 4 commits
  7. 26 Mar, 2016 1 commit
  8. 24 Mar, 2016 1 commit
  9. 23 Mar, 2016 2 commits
    • Tianjie Xu's avatar
      Skip stashing source blocks in verify mode · 0188935d
      Tianjie Xu authored
      Currently block_image_verify() stashes source blocks to /cache and
      in some case triggers I/O errors. To avoid this risk, We create
      a map from the hash value to the source blocks' range_set. When
      executing stash command in verify mode, source range is saved but block
      contents aren't stashed. And load_stash could get its value from
      either the stashed file from the previous update, or the contents on
      the source partition specified by the saved range.
      
      Bug: 27584487
      Bug: 25633753
      Change-Id: I775baf4bee55762b6e7b204f8294afc597afd996
      0188935d
    • Jed Estep's avatar
      Correct caching behavior for should_inject_cache · 88dd7796
      Jed Estep authored
      Bug: 27800498
      Change-Id: I5255283c1d04a385ed719c5bc2be461cae9f3648
      88dd7796
  10. 19 Mar, 2016 1 commit
  11. 18 Mar, 2016 1 commit
    • Prashant Malani's avatar
      recovery: Move SwipeDetector into common location · 9020e0f1
      Prashant Malani authored
      The SwipeDetector class is used almost unchanged in all locations.
      
      This patch moves it into the recovery module, from which devices can
      reference it if required.
      
      The class is now renamed to WearSwipeDetector.
      
      Bug: 27407422
      Change-Id: Ifd3c7069a287548b89b14ab5d6d2b90a298e0145
      9020e0f1
  12. 17 Mar, 2016 1 commit
  13. 16 Mar, 2016 1 commit
  14. 14 Mar, 2016 2 commits
  15. 12 Mar, 2016 3 commits
  16. 11 Mar, 2016 2 commits
    • Prashant Malani's avatar
      recovery: Remove SetColor, and other refactoring for WearUI · 7a491225
      Prashant Malani authored
      The only difference from SetColor in ScreenRecoveryUI is the that the
      LOG messages have slightly different colors. That's not enough to
      warrant a duplicate function. So this patch removes SetColor and uses
      the parent class version.
      
      This patch also moves the DrawTextLine* functions into ScreenRecoveryUI
      since they're mostly the same. It also moves char_width and char_height
      into the class instead of keeping them as static variables.
      
      Bug: 27407422
      Change-Id: I30428c9433baab8410cf710a01c9b1c44c217bf1
      7a491225
    • Yabin Cui's avatar
      applypatch: use vector to store data in FileContents. · 1c522df2
      Yabin Cui authored
      Cherry pick this patch because it fixes the problem that
      a newed Value is released by free().
      
      Bug: 26906416
      Change-Id: Ib53b445cd415a1ed5e95733fbc4073f9ef4dbc43
      (cherry picked from commit d6c93afc)
      1c522df2
  17. 10 Mar, 2016 4 commits
    • Prashant Malani's avatar
      recovery: Remove duplicate variables and functions · 0ba21cff
      Prashant Malani authored
      The function that modifies rtl_locale exists only in the base class,
      and so the variable should not have a duplicate in the derived class,
      otherwise there may be incosistent values when it is read by the derived
      class (the thinking being that invoking the function will modify the
      base class version of the variable, and not the derived class version).
      
      Remove the updateMutex variable, and instead re-use the one in the base
      class.
      
      Also remove LoadBitmap from WearUI since it is identical to the one in
      ScreenRecoveryUI.
      
      Bug: 27407422
      Change-Id: Idd823fa93dfa16d7b2c9c7160f8d0c2559d28731
      0ba21cff
    • Tianjie Xu's avatar
      d345de66
    • Tianjie Xu's avatar
      Reboot and retry on I/O errors · fa12b973
      Tianjie Xu authored
      When I/O error happens, reboot and retry installation two times
      before we abort this OTA update.
      
      Bug: 25633753
      Change-Id: Iba6d4203a343a725aa625a41d237606980d62f69
      (cherry picked from commit 3c62b67f)
      fa12b973
    • Prashant Malani's avatar
      Revert "recovery: More refactoring of WearUI" · f7f9e505
      Prashant Malani authored
      This reverts commit 1c7b2230.
      
      This change can lead to the derived class indirectly (and incorrectly) calling some functions from the base class, which can lead to unpredictable behavior.
      
      Bug: 27407422
      Change-Id: I126a7489b0787dc195e942e2ceea6769de20d70c
      f7f9e505
  18. 08 Mar, 2016 2 commits
    • Prashant Malani's avatar
      recovery: More refactoring of WearUI · 1c7b2230
      Prashant Malani authored
      
      This patch performs the following modifications:
      - Remove setBackground function, and currentIcon member variable.
      - Remove common Progress*, Redraw and EndMenu functions.
      
      Bug: 27407422
      Change-Id: Ic3c0e16b67941484c3bc1d04c9b61288e8896808
      Signed-off-by: default avatarPrashant Malani <pmalani@google.com>
      1c7b2230
    • Prashant Malani's avatar
      recovery: Begin refactor of WearUI to use ScreenRecoveryUI · 7d9fd96d
      Prashant Malani authored
      This is the first of a series of changes which move WearUI to subclass
      ScreenRecoveryUI, to take advantage of several functions which are
      common between the two recovery UI implementations, and already defined
      in ScreenRecoveryUI.
      
      This patch changes the base class of WearUI, removes redundant
      header includes, and also removes a common function.
      
      Bug: 27407422
      
      Change-Id: I8fd90826900f69272a82e23bd099790e8004d511
      7d9fd96d
  19. 05 Mar, 2016 1 commit
  20. 04 Mar, 2016 2 commits
    • Alex Deymo's avatar
      Restore labels on /postinstall during recovery. · 080f522f
      Alex Deymo authored
      This patch mirrors what was done in the main init.rc to relabel
      /postinstall.
      
      Bug: 27178350
      Bug: 27177071
      
      (cherry picked from commit 6bcc8af6)
      
      Change-Id: I8320559f014cfb14216dcc350e016fc1db05cb14
      080f522f
    • Tao Bao's avatar
      recovery: Handle devices without /cache partition. · ae6408d1
      Tao Bao authored
      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
      (cherry picked from commit 26112e58)
      ae6408d1
  21. 03 Mar, 2016 1 commit
    • Tao Bao's avatar
      uncrypt: Communicate via /dev/socket/uncrypt. · 3a2bb594
      Tao Bao authored
      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
      3a2bb594
  22. 29 Feb, 2016 1 commit
  23. 28 Feb, 2016 1 commit