UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    How to test changes

    Scheduled Pinned Locked Moved Porting
    5 Posts 2 Posters 339 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • N Offline
        nintendoeats
        last edited by

        Hello, n00b question incoming. I am very very new to UBT and mobile device development.

        I am running an f(x)tec pro1X. I want to push a change to one of the python scripts in the port. I've already done enough to confirm that my change is theoretically sound, but naturally due dilligence says that I should actually do a system image build and test it.

        The instructions with the port seem to be for doing a full reinstall with a wipe:
        https://gitlab.com/ubports/porting/community-ports/android11/fxtec-pro1x/fxtec-pro1x

        Is it possible for me to just modify the immutable image (like a system update)? This phone isn't a daily driver, but I don't want to wipe it out either. I assume I just need to do a subset of those steps, but I don't know which ones.

        Thanks!

        K 1 Reply Last reply Reply Quote 0
        • K Offline
          kugiigi @nintendoeats
          last edited by

          @nintendoeats I think if you already tested it on your device and it works then you can create an MR then I assume a build can be done from that which you can try flashing.

          N 1 Reply Last reply Reply Quote 0
          • N Offline
            nintendoeats @kugiigi
            last edited by

            @kugiigi Unfortunately what I tested on my device was creating my own script and systemd service that do what I want, but the proper implementation is to merge the functionality into an existing script. So the theory is tested, but the exact code is not.

            As far as I can tell there is no way to just modify the existing script on my device because the filesystem is read-only, but please correct me if I'm wrong.

            1 Reply Last reply Reply Quote 0
            • N Offline
              nintendoeats
              last edited by

              It has been observed to me that of course I can just change fstab to make the filesystem writable...I have gotten too used to locked-down devices 🙂

              Still, the question stands, what is the right way to flash a build as though it were an OTA update?

              K 1 Reply Last reply Reply Quote 0
              • K Offline
                kugiigi @nintendoeats
                last edited by

                @nintendoeats Yes you can make the systel writable. Either via command sudo mount -o remount,rw / or the Tweak tool.

                You can follow the manual iinstructions from the repo's readme. You don't need to do all steps, if your changes only affects the system image then just flash that.

                1 Reply Last reply Reply Quote -1
                • First post
                  Last post