1. 22 Jan, 2016 8 commits
  2. 21 Jan, 2016 2 commits
    • Matt Mower's avatar
      Fix a bunch of messages · 3c36697b
      Matt Mower authored
      * Find and rename/remove duplicate string variable names
      * Add missing string variables to en language file
      * Fix display of some strings missing @ in front of variable name
      * Fix several %s --> {1}
      * Be consistent in usage of cancelled vs. canceled (both spellings
        acceptable)
      
      Tip for finding strings missing from language files:
      
      1) Find all messages:
      egrep -hr "gui_msg.+=" > /tmp/msgs.txt
      
      2) Regex replace to trim them down
      WHAT: ^\s+gui_msg(?:[^"]+)"([a-zA-Z0-9_]+)=([^"]+).+
      WITH: $1
      Note that $2 can be used to retain the message
      
      3) Find missing strings:
      for i in $(cat /tmp/msgs.txt); do
          if ! grep -q $i gui/theme/common/languages/en.xml; then
              echo $i;
          fi
      done
      
      Change-Id: Ic193162e4b5468bf027472928a370be39840ea1d
      3c36697b
    • Ethan Yonker's avatar
      Ensure that a base language is loaded before custom theme · 8e5692ff
      Ethan Yonker authored
      Main goal of this patch is to improve error handling when a custom
      theme does not contain a valid theme version. We were getting a
      message saying that the theme_ver_err resource did not exist as
      well as an error saying that the package had failed to load. Now
      we properly get a single error message about the theme version.
      
      Change-Id: I361ef2d139220bbeaf2e856be919dc3a50ae4299
      8e5692ff
  3. 20 Jan, 2016 1 commit
  4. 19 Jan, 2016 3 commits
  5. 18 Jan, 2016 7 commits
  6. 16 Jan, 2016 1 commit
    • Ethan Yonker's avatar
      Add theme version checking · 1308d53e
      Ethan Yonker authored
      Add a themeversion value to the ui.xml details section. Check this
      value against a define during early theme loading. If we are
      loading a custom theme, then reject the custom theme if the
      version does not match (or not defined) and load the stock theme.
      If it is the stock theme, show a warning but continue loading.
      
      Also fix an issue with changing overlays. Not sure how it ever
      worked before, but it works now.
      
      TLDR: Use the stock theme if the custom theme version does not
      match.
      
      Change-Id: I0277cbe035cbec7e16b6327500762dadf9c1c5c8
      1308d53e
  7. 14 Jan, 2016 2 commits
    • Ethan Yonker's avatar
      Add toybox getprop and setprop for M trees · 6bb26b5f
      Ethan Yonker authored
      Change-Id: I5827b3545f3f0118bd0d9407f812bd62fd26d97c
      6bb26b5f
    • Ethan Yonker's avatar
      Improve sdcard partitioning process · 483e9f45
      Ethan Yonker authored
      -Improve code for partitioning sdcards
      -Allow user to select a device for partitioning (must be removable)
      -Use sgdisk to partition sdcards
      -Set default sizes for ext and swap to 0
      -Change increments for ext to 256MB and swap to 64MB
      
      Note: sgdisk is included in 6.0. I have included a static prebuilt
      sgdisk for trees that do not have sgdisk, however the prebuilt
      sgdisk is a decent bit larger than the old parted binary. The old
      parted binary is quite old at this point and we only have it for
      armv7a. sgdisk should be maintained by AOSP and can be built from
      source so it should work across architectures.
      
      Change-Id: Ib80882d9b5776e5e9358b11340fba392e6f1ae09
      483e9f45
  8. 13 Jan, 2016 1 commit
    • z31s1g's avatar
      gui: theme changes for terminal · 56189520
      z31s1g authored
      Done:
      
      Portrait HDPI, MDPI
      Landscape HDPI, MDPI
      Watch
      
      Also still includes ugly changes for the old portrait theme to test the
      terminal emulator.
      
      Change-Id: If32af1c69b85417522a8a2fb9c20be515b4d70fc
      56189520
  9. 11 Jan, 2016 1 commit
  10. 07 Jan, 2016 2 commits
    • that's avatar
      gui: add terminal emulator · 1964d19c
      that authored
      Emulates enough of a VT-100 to run busybox vi.
      
      Change-Id: I99c829c6c9de2246194ecb8b8b3cdf4ac34a0606
      1964d19c
    • that's avatar
      gui: add keyboard support for Ctrl layer and more special keys · 8834a0ff
      that authored
      - rename NotifyKeyboard to NotifyCharInput
      - input: handle arrow keys in NotifyKey with standard KEY_* codes
      - fix page handler to return 0 from NotifyKey if key was handled
      - fix GUIAction::NotifyKey to not swallow all keys
      - change home button code from KEY_HOME to KEY_HOMEPAGE
        (to avoid collision with Home/End, conforms to Android 3.0+)
      
      Change-Id: Ib138afa492df8d0c1975415e8b5334c8778ccc90
      8834a0ff
  11. 05 Jan, 2016 1 commit
  12. 04 Jan, 2016 7 commits
    • dianlujitao's avatar
      Generate new format /etc/fstab · 7d304c71
      dianlujitao authored
      
       * Toybox's mount can't work with the old-fashioned fstab.
       * Busybox mount is compatible with the new one.
      
      Change-Id: I16b7d6424a4424c2a92d82846a706733bf58f8e1
      Signed-off-by: default avatardianlujitao <dianlujitao@gmail.com>
      7d304c71
    • Andreas Blaesius's avatar
      partitions.hpp: some formatting · 123fcd02
      Andreas Blaesius authored
      tabs > spaces for line-comments to be consistent
      
      Change-Id: I4e859fab61c54a5ae86e719a656398a085cfd7fb
      123fcd02
    • Greg Wallace's avatar
      gui: Fix partition repair message · 2d65340c
      Greg Wallace authored
      The message was named something non-existent.  Fix the spelling error
      and add the default message into the language files.
      
      Change-Id: I4e9e10d2705b1edf75b185d3badba59eb86ffb8b
      2d65340c
    • Greg Wallace's avatar
      gui: Fix typo of formatting_using message · 4b44fef5
      Greg Wallace authored
      Change-Id: I6df4937658815350366ed3dd2cf92156f98c96c4
      4b44fef5
    • Greg Wallace's avatar
      ntfs-3g: Fix cm-13 compatibility · b39e6c60
      Greg Wallace authored
      CM-13 tree completely changes the names of the binaries that are created
      for ntfs-3g.  If we are using a CM-13 tree (CM SDK 4) make sure the
      dependencies and relinking are adjusted accordingly.
      
      Also, adapt partition code so it can make use of whichever set of
      binaries are present.
      
      Change-Id: I810caafa818f18281fd29dcf8f31b3053133b5ed
      b39e6c60
    • Olivier K.'s avatar
      Remove no-op · 94b06502
      Olivier K. authored
      Change-Id: I2bb2c44dd97974fa3cc19ccb6c6c7f0c3ef9bc58
      94b06502
    • that's avatar
      Fix Recursive_Mkdir if path doesn't end with "/" · f1408b3c
      that authored
      Somewhat surprisingly, Recursive_Mkdir(TWRES "customlanguages")
      did not create the "customlanguages" directory because it expected
      a trailing slash. Fixed by rewriting the loop to be more like
      Create_Dir_Recursive.
      
      Also fixed error handling for the final directory, and fixed incorrect
      return value handling for "mkdir" ORS command.
      
      Change-Id: I1ab418ddda695cbb595a9db2817f00fc7b171f51
      f1408b3c
  13. 02 Jan, 2016 1 commit
    • Aleksa Sarai's avatar
      gui: PatternPassword: allow any N*N grid · b25a1839
      Aleksa Sarai authored
      
      Rather than only supporting a 3x3 grid, allow for multiple grid sizes
      (using the CyanogenMod method of generating passphrases for non-3x3
      grids). Also fix the detection of touches, as the old code was far too
      sensitive for larger grids (and also didn't make much sense).
      
      Change-Id: I343ef654e6d29ce0cb790a28281be7c7c9b171d9
      Signed-off-by: default avatarAleksa Sarai <cyphar@cyphar.com>
      b25a1839
  14. 29 Dec, 2015 3 commits
    • Andreas Blaesius's avatar
      twrp: fix a typo and remove whitespace · 54f34fc3
      Andreas Blaesius authored
      Change-Id: I783e2bbc15ad8e10aab81d14d140a995681e860f
      54f34fc3
    • that's avatar
      gui: fix screenshot_saved message · 677b13f7
      that authored
      Change-Id: I7d047fe3436100dbe7c7515860a143a97f7ef0d4
      677b13f7
    • that's avatar
      get rid of console thread for OpenRecoveryScript · 10ae24ff
      that authored
      - CLI commands run in a threaded action "twcmd"
      - Console is displayed via "singleaction_page"
      - move ORS execution code from GUI action to OpenRecoveryScript class
      - remove unused function gui_changePackage
      - don't change PageManager package in home action
      - fix that /tmp/openrecoveryscript was not deleted after execution
      
      Change-Id: Ic688c0b04647ce09e9db979b0bc5123f47cf4f70
      10ae24ff