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

    How can I edit file in /etc folder on UT 20.04 (Focal)?

    Scheduled Pinned Locked Moved Unsolved Support
    3 Posts 3 Posters 597 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.
    • P Offline
      pleca
      last edited by

      Hello community,

      I refer to this thread:
      https://forums.ubports.com/topic/9317/how-can-i-change-scaling-on-20-04-focal-without-ut-tweak-tool-and-without-reboot?_=1698522355620

      I'm running Pixel 3a XL. I would like to change scaling in /etc/deviceinfo/devices/halium.yaml ("GridUnit"), unfortunately file is unwritable.

      As there is no UT Tweak Tool available, so I enabled Developer mode and I tride to follow this: https://ubports.com/en/blog/ubports-news-1/post/terminal-chapter-3-3073 to make fs r/w.

      I tried both ways:

          $ adb shell
      
          $ sudo touch /userdata/.writable_image
      
          $ sudo reboot 
      

      and

          $ adb shell
      
          $ sudo mount -o remount,rw / 
      

      None of above worked, file is still unwritable.

      Therefore my question: How can I make fs r/w to edit halium.yaml in /etc?

      lduboeufL 1 Reply Last reply Reply Quote 0
      • lduboeufL Online
        lduboeuf @pleca
        last edited by

        @pleca
        You can install Tweak tool, this build works for focal even if named xenial... iirc

        https://gitlab.com/myii/ut-tweak-tool/-/merge_requests/109

        1 Reply Last reply Reply Quote 0
        • A Offline
          aimar
          last edited by

          Does not sudo nano /etc/deviceinfo/devices/halium.yaml work?
          Or using chmod does not help?

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post