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 460 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

        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