1. 19 May, 2020 1 commit
  2. 18 May, 2020 8 commits
  3. 17 May, 2020 5 commits
  4. 16 May, 2020 1 commit
  5. 10 May, 2020 2 commits
  6. 09 May, 2020 3 commits
  7. 08 May, 2020 4 commits
  8. 07 May, 2020 2 commits
  9. 05 May, 2020 3 commits
    • topjohnwu's avatar
      87de0e7a
    • topjohnwu's avatar
      Tone down our DTB patching · 85755e30
      topjohnwu authored
      - Do not attempt to patch DTB anywhere outside of boot images as they
      are no longer essential. This makes Magisk installation to only modify
      strictly boot/recovery partitions again.
      - The only required patch for DTB is to strip verity out of partitions
      85755e30
    • topjohnwu's avatar
      Revert DTB patches to in-place binary patches · 02dc1172
      topjohnwu authored
      Since we no longer need to add new properties in the device tree, and
      all the patches we do removes strings, we can just directly patch
      the flat device tree in-place, ignoring basically all the higher level
      DTB structure and format to accomplish 100% compatibility.
      02dc1172
  10. 04 May, 2020 5 commits
    • topjohnwu's avatar
      Force init to load fstab from file in 2SI · dbf8c412
      topjohnwu authored
      Patching DTBs is proven to be difficult and problematic as there are
      tons of different formats out there. Adding support for all the formats
      in magiskboot has been quite an headache in the past year, and it still
      definitely does not cover all possible cases of them out there.
      
      There is another issue: fake dt fstabs. Some super old devices do not
      have device trees in their boot images, so some custom ROM developers
      had came up with a "genius" solution: hardcode fstab entries directly
      in the kernel source code and create fake device tree nodes even if
      Android 10+ init can graciously take fstab files instead (-_-) 。。。
      
      And there is YET another issue: DTBs are not always in boot images!
      Google is crazy enough to litter DTBs all over the place, it is like
      they cannot make up their minds (duh). This means the dt fstabs can be
      either concatnated after the kernel (1), in the DTB partition (2), in
      the DTBO partition (3), in the recovery_dtbo section in boot images (4),
      or in the dtb section in boot images (5). FIVE f**king places, how can
      anyone keep up with that!
      
      With Android 10+ that uses 2 stage inits, it is crutual for Magisk to
      be able to modify fstab mount points in order to let the original init
      mount partitions for us, but NOT switch root and continue booting. For
      devices using dt for early mount fstab, we used to patch the DTB at
      install time with magiskboot. However these changes are permanent and
      cannot be restored back at reinstallation.
      
      With this commit, Magisk will read dt fstabs and write them to ramdisk
      at boot time. And in that case, the init binary will also be patched
      to force it to NEVER use fstabs in device-tree. By doing so, we can
      unify ramdisk based 2SI fstab patching as basically we are just patching
      fstab files. This also means we can manipulate fstab whatever Magisk
      needs in the future without the need to going through the headache that
      is patching DTBs at installation.
      dbf8c412
    • topjohnwu's avatar
      Strip Huawei specific logic · 8c4fd759
      topjohnwu authored
      Users should manually switch to recovery mode instead
      8c4fd759
    • Chris Renshaw's avatar
      scripts: don't abort if /vendor fails to mount · 23dc19ad
      Chris Renshaw authored
      - /vendor is used only on some older devices for recovery AVBv1 signing so is not critical if fails
      - this fixes installation in Lineage Recovery on some older devices where /vendor is actually by-name partitions like oem, cust (or even cache), which likely also don't require the AVBv1 signing
      23dc19ad
    • topjohnwu's avatar
      More complete support for fstab in dt · 0c99c4d9
      topjohnwu authored
      0c99c4d9
    • topjohnwu's avatar
      Workaround realpath FORTIFY crashes · 8ab04533
      topjohnwu authored
      8ab04533
  11. 02 May, 2020 1 commit
  12. 01 May, 2020 1 commit
  13. 30 Apr, 2020 3 commits
  14. 26 Apr, 2020 1 commit