#mkdir /home/chroot#cd /home/chroot#cat /etc/lsb-release | grep CODENAME#wget http://cdimage.ubuntu.com/ubuntu-touch/vivid/daily-preinstalled/current/vivid-preinstalled-touch-armhf.tar.gz#tar -zxvf vivid-preinstalled-touch-armhf.tar.gz#rm vivid-preinstalled-touch-armhf.tar.gz#cd /#mount -o bind /dev /home/chroot/dev#mount -o bind /sys /home/chroot/sys#mount -o bind /tmp /home/chroot/tmp#mount -t proc none /home/chroot/proc#chroot /home/chroot#export PS1="(chroot) $PS1"#rm /etc/resolv.conf#echo 'nameserver 8.8.8.8' > /etc/resolv.conf#apt update && apt upgrade
Showing posts with label ubuntu_phone. Show all posts
Showing posts with label ubuntu_phone. Show all posts
# Ubuntu phone: chroot
Labels:
chroot,
ubuntu_phone
# Ubuntu phone: Writeable image and ssh access
$phablet-config writable-image$adb shell$sudo su -#cat /etc/init/ssh.override#setprop persist.service.ssh true#ssh-keygen -A#service ssh start#netstat -putan#reboot
$ssh phablet@mx4$sudo su -#apt-get update#apt-get upgrade
Labels:
ubuntu_phone
# Ubuntu phone: adb (Android Debug Bridge) commands
Architecture
__Phone__ _______________Host______________
[Daemon]-----<USB/TCP>-----[Server]-----<TCP>-----[Client]
/usr/bin/adbd /usr/bin/adb -P 5037 fork-server server
/usr/bin/adb <command>Commands
$adb -h$adb kill-server$adb start-server$adb devices -l$adb get-state# offline | bootloader | device $adb get-serialno$adb get-devpath$adb status-window# watch 'adb get-state' $adb push /local/path /remote/path$adb pull /remote/path /local/path$adb reboot [bootloader|recovery]$adb sync /local/path# if local_file is newer then adb push $adb shell [command]
Labels:
adb,
ubuntu_phone
# Ubuntu phone: Image files
$ ubuntu-device-flash query --device=arale --channel=ubuntu-touch/stable/meizu.en --show-image
Metadata : version.tar.xz Nexus | BQ | Meizu : custom.tar.xz Ubuntu : ubuntu.tar.xz Nexus 4 | E4.5 | MX4 : device.tar.xz
Labels:
mx4,
ubuntu_phone
# Ubuntu phone: ubuntu-device-flash
$adb devices$adb shell grep ro.product.name /system/build.prop$adb shell grep build.id /system/build.prop$adb shell grep ro.product.device /system/build.prop$ubuntu-device-flash query --device=arale --list-channels$wget http://people.canonical.com/~alextu/tangxi/recovery/recovery.img$adb reboot recovery$fastboot flash recovery recovery.img$fastboot reboot-bootloader$ubuntu-device-flash touch --device=arale --channel=ubuntu-touch/stable/meizu.en --developer-mode --password=1234 --wipe
Labels:
flash,
mx4,
ubuntu_phone
Subscribe to:
Posts (Atom)