[HowTo] Using Anbox manually to reduce battery drain
-
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>