Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 495a1790 authored by Jackeagle's avatar Jackeagle
Browse files

Merge branch '1594devices_eos_installer-code-safety-customjs' into 'main'

Revamp Web-Installer fastbootjs and ADB packages and fix all inconsistencies related to installation of /e/OS

See merge request !64
parents 8f21182c 66c90555
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -56,6 +56,14 @@ Open chrome base browser and go to http://localhost:5173/.

        > For oem, recovery, rom and key, we parse these command and execute them. The others commands are not analyzed and executed arbitrarily in the device.
      
    - Optional top-level settings

            | key                  | example | description                                                                                  |
            |----------------------|---------|----------------------------------------------------------------------------------------------|
            | `flash_cooldown_ms`    | `3000`          | Delay in ms between flash operations. Defaults to 2500 if not set. Increase for slow devices |
            | `security_patch_level` | `"2018-01-05"` | When the device's patch level is newer, the `-safe.json` variant is loaded instead            |
            | `skip_clear_halt`      | `true`          | Skip USB clearHalt on connect. Required for MediaTek bootloaders (e.g. Volla Tablet) where proactive clearHalt breaks flashing unlock |

    - Define the folder, an array describing the files involved in the flash process
        - template: 
            ```json
+509 −774

File changed.

Preview size limit exceeded, changes collapsed.

+5 −9
Original line number Diff line number Diff line
@@ -12,21 +12,17 @@
  },
  "devDependencies": {
    "@eslint/js": "^9.17.0",
    "@types/w3c-web-usb": "^1.0.10",
    "eslint": "^9.17.0",
    "globals": "^15.14.0",
    "prettier": "3.4.2",
    "vite": "^6.0.5",
    "vite-plugin-static-copy": "^2.2.0"
    "typescript": "^5.7.0",
    "vite": "^6.0.5"
  },
  "dependencies": {
    "@e/fastboot": "1.1.4",
    "hash-wasm": "^4.11.0",
    "@yume-chan/adb": "1.1.0",
    "@yume-chan/adb-daemon-webusb": "1.1.0",
    "@yume-chan/adb-credential-web": "1.1.0",
    "@yume-chan/stream-extra": "1.0.0",
    "@yume-chan/struct": "1.0.0",
    "@e/fastboot": "2.0.0",
    "@zip.js/zip.js": "^2.7.54",
    "hash-wasm": "^4.11.0",
    "ky": "^1.7.4"
  }
}
+3 −2
Original line number Diff line number Diff line
{
  "android": 14,
  "skip_clear_halt": true,
  "steps": [
    {
      "command": ["reboot bootloader", "delay 15"]
@@ -12,10 +13,10 @@
    {
      "id": "unlocking-mimir",
      "needUserGesture": true,
      "command": ["flashing unlock", "delay 5"]
      "command": ["flashing unlock goto_flashing", "delay 5"]
    },
    {
      "id": "flashing-recovery",
      "id": "flashing",
      "command": [
        "flash dtbo_a dtbo.img",
        "flash boot_a boot.img",
+6 −2
Original line number Diff line number Diff line
@@ -6,13 +6,17 @@
    },
    {
      "id": "connect-bootloader",
      "command": ["connect bootloader", "flashing unlock goto_flashing"],
      "command": ["connect bootloader"],
      "needUserGesture": true
    },
    {
      "id": "unlocking-pixel",
      "needUserGesture": true,
      "command": ["delay 15", "connect bootloader"]
      "command": [
        "flashing unlock goto_flashing",
        "delay 15",
        "connect bootloader"
      ]
    },
    {
      "id": "flashing",
Loading