└>>> bileto device-upgrade 2180 1234
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 233 100 233 0 0 303 0 --:--:-- --:--:-- --:--:-- 303
adb shell egrep ^deb /etc/apt/sources.list.d/*.list
/etc/apt/sources.list.d/extra-ppas.list:deb http://ppa.launchpad.net/ci-train-ppa-service/stable-phone-overlay/ubuntu xenial main
/etc/apt/sources.list.d/extra-ppas.list:deb-src http://ppa.launchpad.net/ci-train-ppa-service/stable-phone-overlay/ubuntu xenial main
/etc/apt/sources.list.d/proposed.list:deb http://ports.ubuntu.com/ubuntu-ports/ xenial-proposed main restricted universe
adb shell echo -e '#\x21/bin/sh
echo 1234' >/tmp/askpass.sh
adb shell chmod +x /tmp/askpass.sh
adb shell SUDO_ASKPASS=/tmp/askpass.sh sudo -A touch /userdata/.adb_onlock
adb shell SUDO_ASKPASS=/tmp/askpass.sh sudo -A mount -o remount,rw /
adb shell SUDO_ASKPASS=/tmp/askpass.sh sudo -A add-apt-repository -y ppa:ci-train-ppa-service/ubuntu/stable-phone-overlay
gpg: keyring `/tmp/tmpeoxxqb8w/secring.gpg' created
gpg: keyring `/tmp/tmpeoxxqb8w/pubring.gpg' created
gpg: requesting key ECF1204C from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpeoxxqb8w/trustdb.gpg: trustdb created
gpg: key ECF1204C: public key "Launchpad PPA for CI Train PPA Service Team" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK
adb shell SUDO_ASKPASS=/tmp/askpass.sh sudo -A add-apt-repository -y ppa:ci-train-ppa-service/ubuntu/
Cannot add PPA: 'ppa:~ci-train-ppa-service/ubuntu/'.
The team named '~ci-train-ppa-service' has no PPA named 'ubuntu/'
Please choose from the following available PPAs:
* '1319': 1319 - 2016-11-14
* '1640': 1640
* '1647': 1647
* '1658': 1658
* '1679': 1679 - 2016-10-20
* '1721': 1721 - 2016-10-19
* '1873': 1873 - 2016-10-05
* '1889': 1889 - 2016-10-07
* '1924': 1924 - 2016-10-12
* '1949': 1949
* '1952': 1952
* '1961': 1961
* '1969': 1969
* '1982': 1982
* '1984': 1984
* '1985': 1985
* '1990': 1990 - 2016-09-23
* '1996': 1996 - 2016-10-20
adb shell test -e /usr/sbin/policy-rc.d && cp /usr/sbin/policy-rc.d /tmp/policy-rc.d
adb shell echo 'exit 101' | SUDO_ASKPASS=/tmp/askpass.sh sudo -A tee /usr/sbin/policy-rc.d
exit 101