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

    [HowTo] Using Anbox manually to reduce battery drain

    Scheduled Pinned Locked Moved Support
    1 Posts 1 Posters 356 Views 2 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.
      • c4pp4C Offline
        c4pp4
        last edited by c4pp4

        I. Disable Anbox via anbox-tool:

        anbox-tool disable
        

        or make it disabled manually:

        rm /home/phablet/anbox-data/.enable
        stop anbox-session
        sudo stop anbox-container
        

        or alternatively configure Upstart to ignore the start on / stop on stanzas:

        sudo mount -o remount,rw /
        echo "manual" | sudo tee /etc/init/anbox-container.override
        echo "manual" | sudo tee /usr/share/upstart/sessions/anbox-session.override
        sudo sync
        sudo mount -o remount,ro /
        stop anbox-session
        sudo stop anbox-container
        

        II. Remove Anbox icons:

        rm /home/phablet/.local/share/applications/anbox-*
        

        III. Create start script:

        #!/bin/bash
        sudo start anbox-container
        start anbox-session
        

        and stop script:

        #!/bin/bash
        stop anbox-session
        sudo stop anbox-container
        rm /home/phablet/.local/share/applications/anbox-*
        

        IV. Start or stop Anbox:

        bash <nameofscript>
        
        1 Reply Last reply Reply Quote 6
        • First post
          Last post