ubports / installer-configs

Install configurations for the UBports Installer
https://github.com/ubports/ubports-installer
GNU General Public License v3.0
57 stars 76 forks source link

Add assertion actions #178

Closed NeoTheThird closed 2 years ago

NeoTheThird commented 2 years ago

Required for https://github.com/ubports/ubports-installer/issues/2505. Will be implemented in https://github.com/ubports/ubports-installer/pull/2529.

Example:

        - adb:assert_prop:
            prop: "ro.ubuntu.recovery"
            value: "true"
        - fastboot:assert_var:
            variable: "ro.ubuntu.recovery"
            value: "true"
        - adb:assert_prop:
            prop: "ro.ubuntu.recovery"
            regex:
              pattern: "true"
              flags: "i"
        - fastboot:assert_var:
            variable: "ro.ubuntu.recovery"
            regex:
              pattern: "true"
              flags: "i"
        - systemimage:install:
              verify_recovery: true