1. 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
  2. 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
  3. 11 Jan, 2016 1 commit
  4. 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
  5. 05 Jan, 2016 1 commit
  6. 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
  7. 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
  8. 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
  9. 23 Dec, 2015 7 commits
    • Xing's avatar
      do not include stlport headers unless link to it · 0af1ac13
      Xing authored
      Change-Id: I8344d270ddb601694b5fef0fa7b22ea437030728
      0af1ac13
    • Matt Mower's avatar
      init: Add new props triggers · 4251a9bc
      Matt Mower authored
      Both Omni and CM split props loading into load_system_props_action and
      load_persist_props_actions in Android 6.0 instead of all_props action.
      Add these triggers. Unrecognized triggers do not cause failures in init
      for versions of Android which do not have these.
      
      Change-Id: I9682690ff7d378dc0d5e1598754f7a29600c1c2d
      4251a9bc
    • LuK1337's avatar
      Set twrp.action_complete after completing action · 62326f41
      LuK1337 authored
      Change-Id: I078f0659696cc57564b5db0076a0ed9aaea822d4
      62326f41
    • Greg Wallace's avatar
      Add default brightness control · 36ade45b
      Greg Wallace authored
      This lets user set the default brightness so user doesn't cook
      their phone on first boot or loss of settings file, while
      still maintaining the ability to turn brightness to max if
      desired.
      
      Change-Id: Ia801fba46014335148ec573a0b0bbdf0a3ca60ae
      36ade45b
    • Spegelius's avatar
      Changed off_t to loff_t · d69ac2b1
      Spegelius authored
      - off_t is long, loff_t is long long (32bit vs. 64bit)
      - exfat requites 64 bit to support larger than 2GB fs
      
      Change-Id: I70293e45d7d6686317edc759092e738a2ebdd860
      d69ac2b1
    • Matt Mower's avatar
      fuse: Update to 2.9.4 · 523a059f
      Matt Mower authored
      Change-Id: I0877c624531286f47da29a7ab16c7ff3cfac0090
      523a059f
    • Matt Mower's avatar
      exfat: Update to 1.2.2 · 09ef1e41
      Matt Mower authored
      Change-Id: I160389afa074270c398aeb771845500f2445838a
      09ef1e41
  10. 22 Dec, 2015 12 commits
    • Matt Mower's avatar
      exfat: Build fsck and update path to mkfs · 80f7b361
      Matt Mower authored
      * Usage of fsck.exfat is already included in partition.cpp, but the
        tool is missing.
      * Update the path to mkexfatfs so the button is available when changing
        filesystem.
      
      Change-Id: I5f4e27357c6b5a8606043d1bdc2488cc83e55d90
      80f7b361
    • Matt Mower's avatar
      Remove dead code: TW_HAS_DUAL_STORAGE · 2d50cada
      Matt Mower authored
      Nothing sets TW_HAS_DUAL_STORAGE. Remove this dead code.
      
      Change-Id: Id5d10c9ee3883dad6beef69e09d16b0f1350c91d
      2d50cada
    • Matt Mower's avatar
      pixelflinger: Fix local src arch includes · 9a5b8b7f
      Matt Mower authored
      Automatic handling of LOCAL_SRC_FILES_(ARCH) was introduced in Android
      5.0. Lower the SDK version check so these source files don't get
      doubly included.
      
      Change-Id: I8ebc7e3e687f2805f6ecb56499cbf39fc31e9545
      Reference: see build/core/binary.mk and the handling of my_src_files
      9a5b8b7f
    • Matt Mower's avatar
      minzip: Fixup libselinux includes · 231daef2
      Matt Mower authored
      Change-Id: Ic68f307a33e36437b9d21c442265c506b592129c
      231daef2
    • Ethan Yonker's avatar
      Append AOSP recovery commands inline · 3aa66be4
      Ethan Yonker authored
      Appending the AOSP recovery commands to the ORS command file as
      we process the commands will allow us to do things such as install
      multiple zip files, wipe cache, etc and do the actions in the
      order that those actions were originally requested.
      
      Change-Id: I375c1ccd3976123b818f1f492e971e615ec28c91
      3aa66be4
    • xiaolu's avatar
      openrecoveryscript: really append ORS command to ORS script file. · 38c3aa78
      xiaolu authored
      for example, in "/cache/recovery/command" :
      --wipe_data
      --update-package=/sdcard/1.zip
      
      Change-Id: I70c92a868372dca48024e303a0778f9409ab0dc9
      38c3aa78
    • Matt Mower's avatar
      selinux: Only union sepolicy in SDKs 21,22 · 047723c5
      Matt Mower authored
      Manual union is not needed in Android 6.0+.
      
      Change-Id: I7e321fb90b4333da349cc8ad8d2d78d990258b65
      047723c5
    • Matt Mower's avatar
      twrpTar: Remove redundant -g CFLAG · 666d151d
      Matt Mower authored
      Change-Id: Ifefd159b1bc25cd0f54220ae1bd7407c08ca9cfb
      666d151d
    • Matt Mower's avatar
      Remove unnecessary quoting from twres path · 1777cdc9
      Matt Mower authored
      The C flag defines already use -DVAR=\"..\", so stripping these extra quotes
      should not affect those defines.
      
      The makefile does not need the quoting at all.
      
      Makefile example output...
      before: mkdir -p (omitted)/recovery/root"/twres/"
      after:  mkdir -p (omitted)/recovery/root/twres/
      
      Change-Id: I8f557662eb18b5ea40b63bc055d12be4440251e6
      1777cdc9
    • Ethan Yonker's avatar
      Fix CLANG error in cryptfs.c · ceb1e8a5
      Ethan Yonker authored
      Change-Id: If5af8f634bc016160aebaf7d4e6cda6c5650a077
      ceb1e8a5
    • Matt Mower's avatar
      mtp: Address clang compilation errors · 72cf09d6
      Matt Mower authored
      * Move default value of debug_enabled to declaration
      * Set more-correct fake values for MtpProperty sets
      
      Change-Id: Ife3c15ac6c908848c16a609e8e505336e53c19d8
      72cf09d6
    • Matt Mower's avatar
      f2fs: Update make rules for CM compatibility · 58294912
      Matt Mower authored
      * Make sure fsck.f2fs and mkfs.f2fs are built for CM12.1/13.0
      * Add CM13.0 rule for relinking mkfs.f2fs
      * Minor cleanup of nested if/else in prebuilts
      
      Note on CM SDKs: 3=cm-12.1, 4=cm-13.0
      I'm not yet sure whether it is possible that the CMSDK increments
      within the same branch of CM.
      
      Change-Id: I7b521159a8b5d0e0ea639f5e0fdd885100612df0
      58294912
  11. 21 Dec, 2015 1 commit
  12. 20 Dec, 2015 2 commits