Nexus 5/X

Plasma Phone Reference System

Supported Devices: Nexus 5 (hammerhead), Nexus 5X (bullhead)

If you flash Plasma Mobile for the first time, you likely need to follow steps 1A and 1B.
Aafter successfully done those steps, you can always jump straight to step 2 for future flashing.

1A. Unlock (skip if already unlocked)

How to unlock the Nexus 5: https://www.androidpit.com/how-to-unlock-nexus-5-bootloader
How to unlock the Nexus 5X: https://forum.xda-developers.com/nexus-5x/general/guides-how-to-guides-beginners-t3206930

1B. Put into firmware mode and run once:

CAUTION: This will erase the complete memory of your Nexus 5 device! Please ensure you have a backup of all your data before you proceed.

$ fastboot format cache 
$ fastboot format userdata

2. Flashing Plasma Mobile (PM)

1. Put your Nexus 5/X in fastboot mode (press volume down + power button at once), then open a terminal and run

$ git clone https://github.com/plasma-phone-packaging/pm-flashtool.git
$ cd pm-flashtool 
$ ./flash-plasma-phone 

This will download all files required and store them in ~/.cache/plasmaphone, e.g. for Nexus 5 hammerhead:

  • hammerhead_stamp
  • hammerhead_recovery.img (TWRP recovery img)
  • hammerhead-20170109-135455.zip (stripped down AOSP)
  • pm-rootfs-20161025-140532.tar.gz (Plasma Mobile in an LXC container)
  • lxc-android.tar.gz (binary tools for android, upstream from jenkins.linuxcontainers.org)
  • lxc-system-config (lxc container config files)

Then the TWRP Recovery img is used as a tool to flash all other components to the target device.

Note: The above could take some time (15-20 minutes).

If successfull, you should see the Login Screen.
The password to unlock is ‘1234’.

(the username to enter the login prompt for your phone from an adb shell desktop terminal is ‘phablet’, password is ‘1234’).

See more tips what to do after flashing here.

Here are the links to the files for manual download, just for reference:
plasma-phone reference images meta files
pool files

 

 



OLD INSTRUCTIONS AND ERRATA (no longer needed):

On an *(U)buntu system, install “ubuntu-device-flash” package.
On arch, also install “ubuntu-device-flash” from AUR4: https://aur4.archlinux.org/packages/ubuntu-device-flash/

Then you can flash the latest stable production IMG from your desktop command line:

ubuntu-device-flash --server="http://neon.plasma-phone.org" touch --channel="neon-mobile/devel" --bootstrap --developer-mode --password 1234 

or for latest developer image run:

ubuntu-device-flash --server="http://neon.plasma-phone.org" touch --channel="neon-mobile/devel-proposed" --bootstrap --developer-mode --password 1234 

Note the above could take some time (10-15 minutes). After flashing, you can log into the phone from your desktop with

adb shell

* Notes:

Root-Password on the phone is ‘1234’.

 

 

adb root
wget http://neon.plasma-mobile.org/55-android.rules
adb push 55-android.rules /data/lxc/containers/system/rootfs/etc/udev/rules.d/