Ubuntu – Ubuntu touch – remote access to device


in our company we developed an android app installed on nexus 7 tablets and on tablet we release to several customers. This app stays in foreground active 24/7 but we have problems in monitoring the devices due to the restrictive access policies of unrooted Android devices.

We can't for example reboot the device remotely.

We are evaluating the possibility of installing Ubuntu touch to replace android on this tablets.
Does Ubuntu touch offer more freedom for the remote access of the device? May I do remotely everything I could do normally with the tablet?

Moreover, are the apps developed with ubuntu sdk stable enough to run 24/7?


Best Answer

To allow communication between your Nexus 7 and your host system you'll need to enable the developer mode on your Ubuntu-touch device.

Go to System Settings -> About this phone -> Developer mode:

enter image description here

With the developer mode activated, you have several options to start a ssh connection to your device:

  1. From the Ubuntu SDK (you can even reboot from there):

    enter image description here

  2. Using the phablet-tools package (sudo apt-get install phablet-tools):

    Start the connection with phablet-shell and once connected type sudo reboot as you would normally do on a desktop system:

    $ phablet-shell
    /home/sylvain/.ssh/known_hosts updated.
    Original contents retained as /home/sylvain/.ssh/known_hosts.old
    Warning: Permanently added '[localhost]:2222' (RSA) to the list of known hosts.
    Welcome to Ubuntu Utopic Unicorn (development branch) (GNU/Linux 3.4.0-3-flo armv7l)
     * Documentation:  https://help.ubuntu.com/
    Last login: Fri Oct 17 09:50:34 2014 from localhost.localdomain
    phablet@ubuntu-phablet:~$ sudo reboot
    [sudo] password for phablet: 
Related Question