Difference between revisions of "Plasma/Mobile/FlashingKubuntuPhonePreparation"

< Plasma‎ | Mobile
Jump to: navigation, search
(Move notice)
 
Line 1: Line 1:
=How to flash Kubuntu Phone on Nexus 5=
+
{{Note|This page is now on [[https://docs.plasma-mobile.org/FlashingNeon.html https://docs.plasma-mobile.org/]]}}
 
 
Useful information can be found here:
 
 
 
* https://wiki.ubuntu.com/Touch/Devices#Server_at_http:.2BAC8ALw-system-image.tasemnice.eu
 
* http://schier.co/post/how-to-root-nexus-5-in-ubuntu-linux
 
 
 
== Prerequisites ==
 
 
 
The device must be connected to the Linux host with the USB cable all the time, unless told to reconnect.
 
 
 
==Configure the host device==
 
 
 
Install Android tools.
 
 
 
On Ubuntu do:
 
 
 
sudo apt-get install android-tools* ubuntu-device-flash phablet-tools
 
Useful information can be found here:
 
 
 
* https://wiki.ubuntu.com/Touch/Devices#Server_at_http:.2BAC8ALw-system-image.tasemnice.eu
 
* http://schier.co/post/how-to-root-nexus-5-in-ubuntu-linux
 
 
 
== Prerequisites ==
 
 
 
The device must be connected to the Linux host with the USB cable all the time, unless told to reconnect.
 
 
 
==Configure the host device==
 
 
 
Install Android tools.
 
 
 
On Ubuntu do:
 
 
 
sudo apt-get install android-tools* ubuntu-device-flash phablet-tools
 
 
 
 
 
Connect the device and type:
 
 
 
lsusb
 
 
 
an output like this will come out:
 
 
 
 
 
Bus 004 Device 010: ID 18d1:4ee1 Google Inc. Nexus 4 / 10
 
 
 
18d1 is the vendor id, 4ee1 is the product id.
 
 
 
Numbers may change with other devices.
 
 
 
Create /etc/udev/rules.d/51-android.rules with:
 
 
 
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666"
 
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4ee1", SYMLINK+="android_adb"
 
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4ee1", SYMLINK+="android_fastboot"
 
 
 
 
 
replace vendor and product identifiers with yours.
 
 
 
Now Reload uev's rules to make these changes effective:
 
 
 
sudo udevadm control --reload-rules
 
 
 
 
 
Reconnect your device.
 
 
 
Type:
 
 
 
sudo adb devices
 
 
 
your device will be listed.
 
 
 
## Unlock the device
 
 
 
Go to the bootloader:
 
 
 
* Power off the phone
 
* Keep volume down and power pressed together until the bootloader is shown (the bootloader has an android with the lid open like this: http://www.androidcentral.com/sites/androidcentral.com/files/postimages/684/android-az-bootloader.jpg)
 
 
 
From the Linux host type:
 
 
 
 
 
sudo fastboot oem unlock
 
 
 
 
 
Select "Yes" on the phone using volume keys, confirm pressing the power key once.
 
 
 
Connect the device and type:
 
 
 
lsusb
 
 
 
an output like this will come out:
 
 
 
 
 
Bus 004 Device 010: ID 18d1:4ee1 Google Inc. Nexus 4 / 10
 
 
 
18d1 is the vendor id, 4ee1 is the product id.
 
 
 
Numbers may change with other devices.
 
 
 
Create /etc/udev/rules.d/51-android.rules with:
 
 
 
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666"
 
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4ee1", SYMLINK+="android_adb"
 
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4ee1", SYMLINK+="android_fastboot"
 
 
 
 
 
replace vendor and product identifiers with yours.
 
 
 
Now Reload uev's rules to make these changes effective:
 
 
 
sudo udevadm control --reload-rules
 
 
 
 
 
Reconnect your device.
 
 
 
Type:
 
 
 
sudo adb devices
 
 
 
your device will be listed.
 
 
 
== Unlock the device==
 
 
 
Go to the bootloader:
 
 
 
* Power off the phone
 
* Keep volume down and power pressed together until the bootloader is shown (the bootloader has an android with the lid open like this: http://www.androidcentral.com/sites/androidcentral.com/files/postimages/684/android-az-bootloader.jpg)
 
 
 
From the Linux host type:
 
 
 
 
 
sudo fastboot oem unlock
 
 
 
 
 
Select "Yes" on the phone using volume keys, confirm pressing the power key once.
 
 
 
Now reboot:
 
 
 
 
 
sudo fastboot reboot
 
 
 
 
 
Since unlocking wipes data, Android will restart the first time wizard. Let the wizard come up, then press Power button to just power off the phone, you will not need to complete the wizard.
 
 
 
== Install TWRP ==
 
 
 
TWRP is an alternative recovery image that offers a lot of flexibility
 
and will be used to install Plasma Mobile.
 
 
 
Download TWRP version: http://build.maui-project.org/phone/openrecovery-twrp-2.8.0.1-hammerhead.img
 
 
 
We assume that at this point the phone is off.
 
 
 
Go to the bootloader:
 
 
 
* Keep volume down and power pressed together until the bootloader is shown (the bootloader has an android with the lid open like this: http://www.androidcentral.com/sites/androidcentral.com/files/postimages/684/android-az-bootloader.jpg)
 
 
 
Now from the Linx host type (make sure the img-file is in the same directory where you start the command):
 
 
 
 
 
sudo fastboot flash recovery openrecovery-twrp-2.8.0.1-hammerhead.img
 
 
 
 
 
Now:
 
 
 
* Press volume up or volume down until the "Recovery Mode" option appears
 
* Confirm pressing the power button
 
 
 
TWRP will now install (this might take a while).
 
 
 
Once installed, the TWRP main menu screen will appear.
 
 
 
== Root phone ==
 
 
 
* Tab Reboot
 
* Tab Recovery
 
* Swipe to Reboot
 
* If asked to "Install SuperSU", swipe to confirm and root the device
 
 
 
== Flashing...==
 
Continue [[Plasma/Mobile/FlashingKubuntuPhone|here...]]
 

Latest revision as of 23:01, 5 February 2019

Note-box-icon.png
Note
This page is now on [https://docs.plasma-mobile.org/]

This page was last edited on 5 February 2019, at 23:01. Content is available under Creative Commons License SA 4.0 unless otherwise noted.