RogerBW's Blog

Unlocking a Pocophone F1 16 April 2019

My Nexus 6P is jolly good, but its battery has become increasingly unreliable. So I now have a new shinyphone – also running LineageOS. This post covers all the gory details of getting it set up.

The LineageOS install instructions are here, but they don't go nearly far enough. Especially if you're not an Android expert.

In the stock MIUI interface, you need to turn on USB Debugging. Settings, About Phone has lots of hidden multi-tap options, including internal test routines. But the one you want is behind "MIUI version (For POCO)"; tap multiple times to get into Developer Mode.

Then it's Settings, Additional Settings, Developer Options, USB Debugging.

Here are the actual unlock instructions.

Create a Miui account at the official site, and get the MiFlash program. Install it on a Windows machine. (VirtualBox with a disposable evaluation Windows image works.) Install Mi PC Suite too. (Not clear whether this is actually needed. I went down a lot of blind alleys getting here.)

Under Settings, Additional Settings, Developer Options, Mi Unlock Status, Add account and device; log into your account on the phone. (You'll need a SIM in the phone for this.)

Under Settings, Mi Account, set the phone number for that SIM.

Shut down the phone, then power it up into fastboot (hold volume down and power keys).

Run MiFlash and make sure it's updated itself.

Run MiUsbDriver to install those.

Run MiFlash again.

Connect the phone.

Eventually MiFlash will admit the phone is connected and allow you to start the unlock procedure. I had a 72 hour timeout, during which you're supposed to "use the device". Well, the point of installing Lineage is not to have all my crap monitored... but I loaded up a few URLs each day, over wifi and via 3G.

I actually unlocked it after about 71½ hours, so maybe I could have got away with it earlier.

The phone is now unlocked, which has cleared everything but the basic operating system. So you need to get into Developer Mode again; see above.

Back out to the main screen, and on your PC run adb devices to make sure it's connected and authorised. (Authorise on the phone.) Now continue with the installation of TWRP in the official instructions.

There's another trick here. Once TWRP is installed, if you let the machine boot into the standard OS again, it'll wipe TWRP and reinstall its standard recovery. So from the fastboot screen, once you've installed TWRP, hold down volume-up and power until you get the "Pocophone" screen, which should then boot into TWRP.

Then you get told you need more recent firmware (and sites for this vary remarkably, as there doesn't seem to be an official source; searching for "pocophone beryllium firmware" seems to be the best bet), which you need to adb sideload before you can adb sideload the LineageOS image. (All the sites I looked at had the same files, which is either encouraging or very bad news.)

Then, finally within TWRP, Reboot → System. And get a warning: "No OS installed! Are you sure you wish to reboot?" The answer is, apparently, "yes". At least it's working for me…

I feel that this procedure is probably not something a typical user would be happy with doing.


  1. Posted by Owen Smith at 02:21pm on 16 April 2019

    The battery on your Nexus 6P is dying already? That seems like a remarkably short lifetime.

  2. Posted by RogerBW at 02:52pm on 16 April 2019

    I bought it second-hand at a significant discount from new, so I wasn't surprised.

  3. Posted by John Dallman at 08:55pm on 16 April 2019

    I've spotted a use for Lineage OS at work: since we produce native code libraries for Android, we need to offer considerable backwards compatibility, and we need to be able to test that. I have decent 64-bit Android devices running Android 5.1, 7.1 and 8.1, but I don't have anything with Android 6. But Lineage OS 13 is Android 6.0.1.

    So now I have an interesting search problem: what devices is Lineage OS 13 supported on?

  4. Posted by RogerBW at 09:55pm on 16 April 2019

    That'll be downright tricky. 13 was retired in February of 2018; 14 has, I believe, just been retired. So actually getting hold of it may be somewhat challenging.

    Ah, here we go. Archive.org to the rescue. That links to the 14.1 builds on the devices I've looked at, but will at least give you a hardware list.

  5. Posted by John Dallman at 10:43pm on 22 April 2019

    The problem is solvable for Google's devices: Google keeps factory images for their devices online, back to much older than a 6p.

    https://developers.google.com/android/images#angler

Comments on this post are now closed. If you have particular grounds for adding a late comment, comment on a more recent post quoting the URL of this one.

Search
Archive
Tags 1920s 1930s 1940s 1950s 1960s 1970s 1980s 1990s 2000s 2010s 3d printing action advent of code aeronautics aikakirja anecdote animation anime army astronomy audio audio tech base commerce battletech beer boardgaming book of the week bookmonth chain of command children chris chronicle church of no redeeming virtues cold war comedy computing contemporary cornish smuggler cosmic encounter coup covid-19 crime crystal cthulhu eternal cycling dead of winter doctor who documentary drama driving drone ecchi economics en garde espionage essen 2015 essen 2016 essen 2017 essen 2018 essen 2019 essen 2022 essen 2023 existential risk falklands war fandom fanfic fantasy feminism film firefly first world war flash point flight simulation food garmin drive gazebo genesys geocaching geodata gin gkp gurps gurps 101 gus harpoon historical history horror hugo 2014 hugo 2015 hugo 2016 hugo 2017 hugo 2018 hugo 2019 hugo 2020 hugo 2021 hugo 2022 hugo 2023 hugo 2024 hugo-nebula reread in brief avoid instrumented life javascript julian simpson julie enfield kickstarter kotlin learn to play leaving earth linux liquor lovecraftiana lua mecha men with beards mpd museum music mystery naval noir non-fiction one for the brow opera parody paul temple perl perl weekly challenge photography podcast politics postscript powers prediction privacy project woolsack pyracantha python quantum rail raku ranting raspberry pi reading reading boardgames social real life restaurant reviews romance rpg a day rpgs ruby rust scala science fiction scythe second world war security shipwreck simutrans smartphone south atlantic war squaddies stationery steampunk stuarts suburbia superheroes suspense television the resistance the weekly challenge thirsty meeples thriller tin soldier torg toys trailers travel type 26 type 31 type 45 vietnam war war wargaming weather wives and sweethearts writing about writing x-wing young adult
Special All book reviews, All film reviews
Produced by aikakirja v0.1