OnePlus One

From Segfault
Jump to: navigation, search

Root

Android#Root

Unroot

TBD...

Restore

OnePlus offers fastboot images on their download site. Download a factory images and verify its checksum. We have to reboot into to bootloader, so that we can use fastboot to install the factory image.[1]

Unzip the ...-signed-fastboot.zip image first, we should see something like this:

$ ls -trhgo
total 1.2G
-rw-r--r-- 1 783M Jan  1  2009 system.img
-rw-r--r-- 1 7.4M Jan  1  2009 recovery.img
-rw-r--r-- 1 5.5M Jan  1  2009 boot.img
-rw-r--r-- 1  56M Nov  4 12:06 NON-HLOS.bin
-rw-r--r-- 1  749 Nov  4 12:06 filesmap
-rw-r--r-- 1 284K Nov  4 12:06 tz.mbn
-rw-r--r-- 1  12K Nov  4 12:06 sdi.mbn
-rw-r--r-- 1 296K Nov  4 12:06 sbl1.mbn
-rw-r--r-- 1 186K Nov  4 12:06 rpm.mbn
-rw-r--r-- 1 9.4M Nov  4 12:06 logo.bin
-rw-r--r-- 1 377K Nov  4 12:06 emmc_appsboot.mbn
-rw-r--r-- 1  10M Nov  4 12:06 static_nvbk.bin
-rw-r--r-- 1   14 Nov  4 12:06 android-info.txt
-rw------- 1 134M Nov  4 12:45 userdata.img
-rw------- 1 138M Nov  4 12:45 userdata_64G.img
-rw------- 1  11M Nov  4 12:45 cache.img
-rw------- 1  253 Nov  4 12:45 flash-radio.sh
-rw------- 1  780 Nov  4 12:45 md5sum-fastboot.md5

Reboot into the bootloader:

adb reboot-bootloader                             # Or via holding Vol- while powering on the device.

Flash each via fastboot, the first steps can be done via flash-radio.sh too:

fastboot flash modem NON-HLOS.bin
fastboot flash sbl1 sbl1.mbn
fastboot flash dbi sdi.mbn
fastboot flash aboot emmc_appsboot.mbn
fastboot flash rpm rpm.mbn
fastboot flash tz tz.mbn
fastboot flash LOGO logo.bin
# fastboot flash oppostanvbk static_nvbk.bin      # This is included by flash-radio.sh not not in any tutorials...?

Flash the rest of the sytem:

fastboot flash boot boot.img
fastboot flash cache cache.img
fastboot flash recovery recovery.img
fastboot flash system system.img
fastboot flash userdata userdata_64G.img

Reboot:

fastboot reboot

CyanogenMod

adb push cm-12-xxxx-bacon.zip /sdcard/
adb push UPDATE-SuperSU-v*.zip /sdcard/                    # Really, skip it.[4]
adb push gapps-kk-**.zip /sdcard/
adb push *.md5 /sdcard/                                    # The checksums will be verified upon installation!

Reboot into recovery:

adb reboot recovery
  1. Select "Recovery", we should now be in our recovery mode.
  2. Select "wipe" or "factory reset"
  3. Select "install from SDcard" and then point to the CyanogenMod zip file - and select install
  4. Repeat 4) for other zip files as well (e.g. the GoogleApps package)
  5. Reboot the phone, now CyanogenMod should boot.

Postinstall

...

Update

...

Links


References