← Back to team overview

ubuntu-phone team mailing list archive

Testing rest scope on the device

 

Hi guys,

While developing a rest scope (lp:ubuntu-rest-scopes) I found there was no
convenient way to test the scope on a real device itself. Here's a way you
can achieve that.

0. First, ensure your work machine and phone are on the same network

On your work machine in ubuntu-rest-scopes/
1) Update server entry in configs/development.yaml to reflect your
workstation IP, e.g.
    server: http://192.168.1.10:8000
2) make start

On the phone, in adb shell:
$ su - phablet
$ /sbin/stop smart-scopes-proxy
$ /usr/lib/arm-linux-gnueabihf/smartscopesproxy/smartscopesproxy
http://YOUR_IP:8000 /usr/share/unity-scopes-api/Runtime.ini &
$ /sbin/restart scope-registry

Now browse the Scopes scope, launch your scope and enjoy.

Note that rest scope icons won't show up in the "Scopes scope", because of
licensing they don't live in lp:ubuntu-rest-scopes.

Thanks to mhr3, Saviq, and Facundo.

karni

-- 
Software Engineer
Professional and Engineering Services
Canonical Ltd.

Ubuntu - Linux for human beings | www.ubuntu.com