Install ubuntu touch on Nexus7 tablet (by quqi99)

Author: Zhang Hua Published on: 2016-06-11
Copyright statement: You can reprint at will, when reprinting Please be sure to indicate the original source and author information of the article and this copyright notice in the form of a hyperlink

( http://blog.csdn.net/quqi99)

Unlock

1, open the “Debug Mode”

2, After the phone is connected to the Ubuntu 14.04 computer by USB, the device cannot be seen using lsusb. After nearly two hours of tossing, I just changed a USB cable.

3, Install adb and fastboot toolkit
wget http://esausilva.com/wp-content/plugins/cimy-counter/cc_redirect.php?cc=platform-tools-linux&fn=http://esausilva.com/misc/ android/platform-tools-linux.tar.gz
export ANDROID_HOME=/bak/java/android/adt-bundle-linux-x86_64-20131030/sdk
exp ort PATH=$ANDROID_HOME/platform-tools:$PATH

4, Double Check
hua@node1:~$ sudo lsusb |grep Google
Bus 003 Device 041: ID 18d1:4ee2 Google Inc . Nexus 4 (debug)
hua@node1:~$ cat /etc/udev/rules.d/51-android.rules
SUBSYSTEM==”usb”, ATTR{idVendor}==”18d1″, MODE=”0666″, SYMLINK+=”android_adb”
hua@node1:~$ cat ~/.android/adb_usb.ini
18d1
hua@node1:~$ sudo udevadm control –reload-rules && sudo udevadm trigger
hua@node1:~$ adb kill-server && adb start-server
hua@node1:~$ adb devices
List of devices attached
091bbb72 offline
hua@ node1:~$ sudo apt-get install mtpfs mtp-tools gmtp
hua@node1:~$ sudo mtp-detect

5, unlock, to unlock the device, first turn off the device. Next, press and hold the power button and the volume down button at the same time, and the device will start in fastboot mode. Then connect the Nexus device to the computer with a USB cable, open a terminal, and run the following command:
hua@node1:~$ sudo fastboot devices
091bbb72 fastboot

hua@node1:~$ sudo fastboot oem unlock

(bootloader) Unlocking bootloader…
(bootloader) erasing userdata…
(bootloader) erasing userdata done
(bootloader) erasing cache. ..
(bootloader) erasing cache done
(bootloader) Unlocking bootloader done!
OKAY [48.615s]
finished. total time: 48.615s

hua@node1:~ $ sudo fastboot reboot-bootloader
rebooting into bootloader…
OKAY [0.006s]
finished. total time: 0.006s

6, Android will reset after unlocking, open it again “Debug Mode” in “Developer Mode”

Ubuntu Touch and Android dual boot

1, Install UPDATE-UbuntuInstaller.zip on the android tablet and unzip the installation files one by one, download them on the computer, and then download them from the tablet Download and install the decompressed UbuntuInstaller.apk via http. You can also run the script http://humpolec.ubuntu.com/latest/dualboot.sh directly on the computer to install.
wget http://humpolec.ubuntu.com/latest/UPDATE-UbuntuInstaller.zip
unzip UPDATE-UbuntuInstaller.zip
python -m SimpleHTTPServer

2, open UbuntuInstaller to get the graphics Install and switch to Ubuntu Touch. Note: The UbuntuInstaller program should be installed using SuperSu software to give it root privileges. The dualboot.sh script can automatically install SuperSu

3, in fact, I cannot switch to Ubuntu Touch after the installation is successful, so I continue to use the following installation method

ubuntu-device-flash install Ubuntu Touch

sudo add-apt-repository ppa:phablet-team/tools
sudo add-apt-repository ppa:snappy-dev/beta
sudo apt-get update
sudo apt-get install phablet-tools android-tools-adb android-tools-fastboot
sudo apt-get install ubuntu-device-flash
ubuntu-device-flash touch –channel=ubuntu-touch/stable/ubuntu –bootstrap
< /span>


SSH login to Ubuntu Touch on your computer

1, open “Developer mode” in ubuntu touch and restart it. Use usb to connect the computer and the tablet to operate some commands on the computer.
2, open ssh,
adb shell android-gadget-service enable ssh
adb shell mkdir /home/phablet/.ssh
adb push ~/.ssh/id_rsa.pub /home/phablet /.ssh/authorized_keys
adb shell chown -R phablet.phablet /home/phablet/.ssh
adb shell chmod 700 /home/phablet/.ssh
adb shell chmod 600 /home/phablet/. ssh/authorized_keys
adb shell ip addr show wlan0|grep inet
ssh [email protected] -v
3, Read-only file system, sudo mount -o remount,rw /
4, Apt repository
sudo sed -i -e’s/archive.ubuntu.com\|security.ubuntu.com/old-releases.ubuntu.com/g’ /etc/apt/sources.list
sudo dpkg –configure -a
sudo apt-get update

Brush back to Android

1, download the mirror razor-jss15q-factory-4f77b811.tgz,
https://developers.google.com /android/nexus/images#sojus

3, After shutting down, press the power and volume down keys at the same time to enter the bootloader mode

3, razor-jss15q-factory-4f77b811.tgz has boot after decompression .img, recovery.img, system.img, userdata.img, cache.img five Files, use them to execute the following commands to flash.
hua@node1:/bak/tools/nexus7/razor-jss15q$ fastboot devices
091bbb72 fastboot
hua@node1:/bak /tools/nexus7/razor-jss15q$ fastboot flash boot boot.img
sending’boot’ (6880 KB)…
OKAY [0.225s]
writing’boot’…
OKAY [0.760s]
finished. total time: 0.985s
hua@node1:/bak/tools/nexus7/razor-jss15q$ fastboot flash recovery recovery.img
sending’recovery’ (7424 KB) …
OKAY [0.253s]
writing’recovery’…
OKAY [0.317s]
finished. total time: 0.570s
hua@node1:/bak/tools /nexus7/razor-jss15q$ fastboot erase system
******** Did you mean to fastboot format this partition?
erasing’system’…
OKAY [0.254s]
finished. total time: 0.254s
hua@node1:/bak/tools/nexus7/razor-jss15q$ fastboot flash system system.img
erasing’system’…
OKAY [0.099s]
sending’system’ (603355 KB)…
OKAY [19.456s]
writing’system’…
OKAY [27.385s]

finished. total time: 46.940s


MultiROM installation dual system

The above installation of Android and Ubuntu Touch using the UbuntuInstaller.apk tool fails, but it can also To install using MultiROM, you also need the SuperSu tool to give MultiROM permissions. It is enough to pay attention (it always fails when downloading the Ubuntu Touch image with MultiROM because it is walled).

root@flo:/data/media/0/Download/UbuntuTouch # ls
device-e357b4c1570f5d586167571a8e5e5a64224e2b6ec5a14fbbe62304228cbfc289.tar.xz
ubuntu-0144c0d9ab780d8b40477987c3004d4c25d1861e6dd067125e77970c11ec76a1.tar.xz
ubuntu-0144c0d9ab780d8b40477987c3004d4c25d1861e6dd067125e77970c11ec76a1.tar.xz.asc
ubuntu-59b0c7aa8af63dda3a06005a6087c1faa4ed8993321293b276e7f7021d0cb0a3.delta-ubuntu-9757249d38ed16e6f64001d84cbb99e95289955deef433d9f00c0b3bc1f0ab51.tar.xz
ut_test_file
< /p>


Reference

[1] https://github.com/LCTT/TranslateProject/blob/master/published/201405 /Ubuntu%20Touch%20and%20Android%20Dual%20Boot%20Installation.md[2] https://wiki.ubuntu.com/Touch/Devices[3] https://developer.ubuntu.com/en/phone/devices /installing-ubuntu-for-devices/

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 1588 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.