User Tools

Site Tools


lineageos_on_pocophone_f1

If you want to send us your comments, please do so. Thanks
More on comments


Installing LineageOS on the Xiaomi Pocophone F1 beryllium

Please read our Disclaimer

Installing LineageOS on beryllium

Pocophone F1 Upgrade from version 18 to 19
Pocophone F1 Upgrade from version 19 to 20

This subject is licensed under CC BY-SA 3.0
Copied from Install LineageOS on beryllium and updated with our experiences and use on Debian

Alternatives

Usage of this page

It is of course an annoyance but it is advised to also check the original LineageOS page since they could have been updated. Maybe it is a good idea to follow the LineageOS page and check here for additional information

Warning: We did the procedure just for one phone. So it might not always be accurate, but it is more accurate, extensive, written out, then what you find on the LineageOS page (status 15 May 2021)
Again: Use the information on this website at your own risk. Read our disclaimer!
It took us a huge lot of effort to figure out how to get LineageOS on the device. In the end, we succeeded. We have to clean up this page “a bit”. It can be confusing but all the information to succeed is here

Where “device” is mentioned, most of the time a smartphone is ment. In our case a Xiaomi Pocophone F1

About the Pocophone F1

Some privacy considerations when performing the initial set up

You can not initiate the telephone without a mobile data SIM card inserted

When you start the phone for the first time Xiaomi asks a lot of permissions and data like your phone number
Xiaomi wants you to connect to its cloud. When setting up the cloud access you can give permission to access all your data on the telephone. Also you can give Xiaomi permission to be able to make telephone calls and send SMS'es
You can turn off sync and find device

Basic requirements

Warning and Important: Please read through the instructions at least once completely before actually following them to avoid any problems because you missed something! Also read the Mi Devices Bootloader Unlocking FAQ

  1. Make sure your computer has adb and fastboot working
    1. The original setup instructions can be found on the LineageOS adb fastboot guide page
  2. Enable USB debugging on your device

Unlocking the bootloader

  1. Note: The steps below only need to be run once per device
  2. Warning: Unlocking the bootloader will erase all data on your device! Before proceeding, ensure the data you would like to retain is backed up to your PC and/or your Google account, or equivalent.
  3. Enable developer options in: Settings > About Phone by repeatedly tapping “MIUI version (For POCO)”
    1. This is a strait forward action. Make sure javascript is enabled. We did not encounter complications.
    2. Tip: A Mi account is required to unlock the bootloader. Beware that one account is only allowed to unlock one unique device every 30 days
    3. Add a telephone number to your Mi account
      1. Log in into your just created Mi account
      2. Now we go and search where to enter the telephone number
        1. Click on “Privacy settings”
          1. You have to enter your e-mail address click on “Submit”
          2. Check your e-mail for an e-mail from “Xiaomi Corporation notice@global.mail.api.xiaomi.net
          3. Enter the 6 digit code in the field below the “Send verification code to your e-mail address” text. If there is no field visible click on “Submit”. Now the field will appear
          4. Then we got a white websitepage. After lowering our privacy and security settings a bit we could view the page. No telephone number in these settings
        2. Click on 'Signing in and security“
          1. You have to enter your e-mail address click on “Submit”
          2. Check your e-mail for an e-mail from “Xiaomi Corporation notice@global.mail.api.xiaomi.net
          3. Enter the 6 digit code in the field below the “Send verification code to your e-mail address” text
          4. You get a popup
            1. Enter your mobile telephone number
            2. You receive a SMS
            3. Enter the 8 digit code into the field
            4. Click on “Submit”
          5. Your number is verified, now you return to the “Signing in and security” page where the telephone number looks like "+31 612***678"
  4. Insert a SIM into your device
    1. If you do not have a SIM in the device you get a popup message: “Insert SIM card and try again.”
  5. Install the latest official MIUI weekly package on the device, before proceeding with unlock
    1. We could not find the MIUI weekly package in the Google appstore
    2. We found in Settings > About phone > System update. This is the MIUI system update. We did not find any mention of weekly. From version 9 to 10.0.3.0 to 10.0.9.0 to 11.0.5.0 to 12.0.3.0 took about three hours for downloading and installation and 5,4 GB of data to download.
  6. Link the device to your Mi account
    1. Goto: Settings > Mi Account and follow the steps. Maybe you do not have to enter a telephone number. We did because of the misleading button coloring. You can also directly login with e-mail address and password. This is below the blue telephone number button. However the telephone number seems to be needed to send a code from the Windows program to the device to link the device to the program. That code is valid for 5 minutes.
  7. In: Settings > … Additional settings > Developer options > Mi Unlock status. In newer versions of MIUI ”… Additional settings“ is called “Additional settings”
    1. We enabled “OEM unlocking”. There is a warning which has to be acknowledged
    2. We tapped on “MI Unlock status”
      1. If you have not done so before, you have to link your Mi account to the device
        1. There was a popup message. We missed the contents. It shows for a few seconds
        2. Preparing to add account and device. “Edit successfully. Mi account is associated with this device now”
      2. If you already have linked your Mi account to your device you get and have to agree to: “Permissions required: Mi Unlock needs access to your Mi Account, CPU ID, IMEI, IMSI to work normally. We collect, use, and process your data in accordance with our Privacy Policy. Agree?” to view this information
        1. Tap on “Agree”
        2. Of course it is still locked.
        3. Scroll down and read the unlock instructions
          1. Tap on Add account and device
          2. A small popup mentions “Preparing to add account and device”
  8. The following instructions require a machine running Windows 7 or newer
    1. Do not use the link to Mi Unlock app mentioned by the smartphone, this points to the Unlock Your Mi Device page. One of these pages is insecure. Goto the Mi Unlock app page (from the first two pages mentioned you also get here), of which the link is mentioned on the LineageOS page
    2. Follow the instructions on this page
    3. Run the Mi Unlock app and follow the instructions provided by the Mi Unlock app
      1. Click on “Sign in” in the Mi Unlock app
      2. Login with your e-mail address and password
      3. Make the program send a verification code by SMS to the mobile telephone number belonging to the Mi account
      4. Receive the SMS on the device which has the simcard inserted containing the mobile telephone number belonging to the Mi account
      5. Enter the 6 or 8 digit number in the Mi Unlock app
      6. Shut down your device manually
      7. Hold Volume down key and Power button to enter Fastboot mode
      8. Connect your device to PC using USB cable
      9. Now the device should show up in the Mi Unlock app
        1. We had to use an other computer and run the Mi Unlock app on it to make the device show up
        2. We continued on this other computer
      10. Highlight the entry with the device by clicking on it. Maybe this is not needed.
      11. Click “Unlock(F6)” in the Mi Unlock app
      12. The message field says: “Unlocking”
      13. Wait a bit until ready
      14. The entry of the device disappears in the Mi Unlock app
        1. If the device does not show up in the Mi Unlock app
          1. Click on “Refresh(F5)
      15. Note: The program may tell you that you have to wait up to 30 days. If it does so, please wait the quoted amount of time before continuing to the next step
      16. Check if the device is unlocked by going to … then
        1. After a while, still being connected to the PC via USB, the device jumped out of the Fastboot screen
        2. On windows we got a message “Setting up your device” and “Your device is ready” or something like it
        3. The device showed a MIUI12 screen
          1. We tapped on the circle with a > in it
          2. A screen showed up: “Taal kiezen
          3. We choose “English (United Kingdom)”
          4. We tapped on the blue ”>
          5. “Choose your region”. “Netherlands” is selected. We leave it as it is
          6. Tap on the blue ”>“ icon
          7. “Terms and conditions” 4 documents about User Agreement and Privacy Policy are mentioned”. These are lengthy documents
            1. Scroll the text on the bottom of the screen up so you can see the “I've read and agree to the User Agreement and Privacy Policy.” text
          8. Tap on the circle left to this text
          9. Tap on the blue “>” icon
          10. “Connect to network”: Do “Skip”
          11. “Checking for updates” (not possible because we did not set up a network)
          12. “Copy apps & data”: Do “Don't copy”
          13. Google “Sign in”
            1. On the popup: Do “Skip”
          14. Google services. Set to your needs
            1. Tap on “Accept”
          15. “Review additional apps”. Tap on “OK”
          16. Adding finishing touches“ “this may take a few minutes” followed by
          17. Sign in to your Mi Account”: Do “Skip” and do “Skip” again
          18. Set password: Do “Skip this step” or set if if you need it (better for safety, not needed if you are going to install LineageOS)
          19. Additional settings. Set to your needs
          20. Tap on the blue “>” icon
          21. Choose a theme. Select what you like
          22. Tap on the blue “>” icon
          23. “Setup complete”
          24. We tapped on the circle with a > in it
            1. Setting up apps appears briefly
            2. A popup showed briefly “Facebook keeps stopping”
        4. Back to business, the device is still connected via USB to the computer
        5. Checking if the device is unlocked
        6. Goto Settings > … Additional settings > Developer options
          1. Hmm, Developer options are switched off. To turn them on see step 3.
        7. Goto Settings > … Additional settings > Developer options > Mi Unlock status. In newer versions of MIUI ”… Additional settings“ is called “Additional settings”
          1. Is says “Unlocked”. Great !!!
    4. Since the device resets completely, you will need to re-enable USB debugging to continue
    5. Tip: A Mi account is required to apply for permissions. You don’t need to re-apply for permissions to unlock new devices, but beware that one account is only allowed to unlock one unique device every 30 days
  9. After device and Mi account are successfully verified, the bootloader should be unlocked
  10. Since the device resets completely, you will need to re-enable USB debugging to continue

Old version

  1. Visit Xiaomi’s official unlocking website and apply for unlocking permissions.
  2. Wait until you get the approval, which may take some days
  3. At the same time, link the device to your Mi account in: Settings > Additional settings > Developer options > Mi Unlock status
    1. This step is mandatory and will trigger a countdown of 360 hours, the waiting period before a device can be unlocked
  4. Once you get the approval, visit the website again and you will be redirected to the Mi Unlock appdownload page
  5. Download the Mi Unlock app (Windows is required to run the program)
  6. Once the 360 hours waiting period is over, run the Mi Unlock app and follow the instructions provided by the Mi Unlock app
  7. After device and Mi account are successfully verified, the bootloader should be unlocked
  8. Since the device resets completely, you will need to re-enable USB debugging to continue
  9. Tip: A Mi account is required to apply for permissions. You don’t need to re-apply for permissions to unlock new devices, but beware that one account is only allowed to unlock one unique device every 30 days

Installing a custom recovery using fastboot

  1. Download a custom recovery. You can download the LineageOS Recovery. Simply download the latest recovery file, named something like lineage-18.1-20210511-recovery-beryllium.img
    1. Download the sha265 checksum file
    2. In a terminal run an if statement to check the sha256 sum or do it manually
      1. Run sha256sum lineage-18.1-20210511-recovery-beryllium.img
      2. Do cat lineage-18.1-20210508-recovery-beryllium.img\?sha256
      3. Check if the hashes are the same. If not check it out, contact LineageOS. If they are the same continue
  2. You can also continue with the next chapter an_other_attempt_to_install_the_recovery or just read, not execute, what follows until you get to an_other_attempt_to_install_the_recovery. Reading what follows is preferred
  3. Connect your device to your PC via USB. Our device was already turned on when we connected it
  4. On the computer, open a command prompt (on Windows) or terminal (on Linux or macOS) window, and type:
    1. adb devices to check if there is a connection. The output should look like
      List of devices attached
      abcdef12        device
  5. Run adb reboot bootloader to get into fastboot mode
    1. You can also boot into fastboot mode via a key combination: (With the device powered off), hold Volume Down + Power. Keep holding both buttons until the word “FASTBOOT” appears on the screen, then release
  6. The screen will go black and the device will reboot in Fastboot. The FASTBOOT screen shows up
  7. Once the device is in fastboot mode, verify your PC finds it by typing: fastboot devices
    1. This yielded:
      # fastboot devices
      abcdef12	fastboot 
    2. Tip: If you see no permissions fastboot while on Linux or macOS, try running fastboot as root
  8. Flash the LineageOS recovery onto your device: fastboot flash recovery <recovery_filename>.img
    1. Tip: The file may not be named identically to what stands in this command, so adjust accordingly
    2. Tip: Some devices have buggy USB support while in bootloader mode, if you see fastboot hanging with no output when using commands such as fastboot getvar .. , fastboot boot …, fastboot flash … you may want to try a different USB port preferably a USB Type-A 2.0 one on the backside of your computer or, if the one on the backside of your computer does not work one on an USB hub
    3. The output of the fastboot command (with fastboot version 1:8.1.0+r23-5) looks like
      target reported max download size of 805306368 bytes
      sending 'recovery' (65520 KB)...
      OKAY [  2.657s]
      writing 'recovery'...
      OKAY [  0.302s]
      finished. total time: 2.959s
    4. The output of the fastboot command (with fastboot version 3db08f2c6889-android) looks like
      target reported max download size of 805306368 bytes
      sending 'recovery' (65520 KB)...
      OKAY [  2.568s]
      writing 'recovery'...
      OKAY [  0.296s]
      finished. total time: 2.864s

When booting into recovery buy turing the device off and then turn it on by pressing the Volume up + Power buttons we still got the stock recovery “Main Menu MI-Recovery 3.0”

An other attempt to install the recovery

  1. Starting over after point 1. in the previous chapter
  2. The device is off
  3. Connect the device via an USB cable with the computer
  4. Log in as root in a terminal on Debian. The “#” is the root prompt
  5. Do
    # adb --version
    Android Debug Bridge version 1.0.41
    Version 31.0.2-7242960
    Installed as /opt/Android-ADB-platform-tools/adb
    # fastboot --version
    fastboot version 31.0.2-7242960
    Installed as /opt/Android-ADB-platform-tools/fastboot
    # adb devices
    * daemon not running; starting now at tcp:5037
    * daemon started successfully
    List of devices attached
    abcdef12	unauthorized
  6. Turn the device on
  7. Goto the main screen by swiping up
  8. Do
    # adb devices
    List of devices attached
    abcdef12	device
    # adb reboot bootloader
    (The FASTBOOT screen shows up)
    # fastboot devices
    aa5e1b5e	fastboot
    # fastboot flash recovery lineage-18.1-20210515-recovery-beryllium.img
    Sending 'recovery' (65520 KB)                      OKAY [  2.578s]
    Writing 'recovery'                                 OKAY [  0.295s]
    Finished. Total time: 2.878s
  9. While still in the FASTBOOT screen press the Volume up + Power buttons and hold until “POCO” shows up in the middle of the screen. Now we got the LineageOS recovery version 18.1 (20210515) :-) It is purple and has these buttons:
    1. Reboot system now
    2. Apply update
    3. Factory reset
    4. Advanced (which has some other options)
      1. Back from Advanced to the initial menu:
        1. Press Volume up until the back arrow in the upper left corner gets highlighted
        2. Press the Power button
  10. Succes, you have installed the LineageOS recovery !

Old version

  1. Download a custom recovery - you can download TWRP. Simply download the latest recovery file, named something like twrp-x.x.x-x-beryllium.img
  2. Connect your device to your PC via USB
  3. On the computer, open a command prompt (on Windows) or terminal (on Linux or macOS) window, and type: adb reboot bootloader
  4. You can also boot into fastboot mode via a key combination: With the device powered off, hold Volume Down + Power. Keep holding both buttons until the word “FASTBOOT” appears on the screen, then release
  5. Once the device is in fastboot mode, verify your PC finds it by typing: fastboot devices
    1. Tip: If you see no permissions fastboot while on Linux or macOS, try running fastboot as root
  6. Flash recovery onto your device: fastboot flash recovery twrp-x.x.x-x-beryllium.img
    1. Tip: The file may not be named identically to what stands in this command, so adjust accordingly
  7. Now reboot into recovery to verify the installation
    1. With the device powered off, do in a terminal: adb reboot recovery. Alternatively, hold Volume Up + Power. Keep holding both buttons until the “POCO” logo appears on the screen, then release

More old version

  1. Probably not needed: Disconnect the device from the computer
  2. While still in FASTBOOT turn the device off
    1. The device will automatically boot again
    2. Not needed: Turn the device off again
  3. Boot into recovery to verify the installation
    1. With the device powered off do in a terminal: adb reboot recovery. Alternatively, hold Volume Up + Power. Keep holding both buttons until the “POCO” logo appears on the screen, then release
      1. If you got the FASTBOOT screen again you probably did Volume down in stead of Volume up
      2. If you get the “Main Menu MI-Recovery 3.0” screen (this is the default Pocophone F1 recovery, not the LineageOS recovery) flashing the LineageOSrecovery did not succeed. The “Main Menu MI-Recovery 3.0” screen has the following options, control is done with the volume and power buttons,
        1. Reboot
        2. Wipe Data
        3. Connect with MIAssistant
      3. If you do not take action, after a while, the device goes to the reboot screen. Here you can choose
        1. Reboot to System
        2. Back to Main Menu
      4. If you still take no action the device will reboot
      5. However, the “Main Menu MI-Recovery 3.0” is the stock Pocophone F1 recovery. It is not the LineageOS recovery. How we can install the LineageOS recovery is not clear to us at this point
        1. Flashing with these fastboot versions did succeed in installing the LineageOS recovery
          1. fastboot version 1:8.1.0+r23-5
          2. fastboot version 31.0.2-7242960
          3. fastboot version 3db08f2c6889-android (platform-tools-25.0.6)

Installing LineageOS from recovery

  1. Download the LineageOS installation package that you would like to install from the download page
  2. On the computer, open terminal window, log in as root. The “#” is the root prompt
  3. Turn the device off
  4. Connect the device to the computer with an USB cable
    1. The device starts charging
  5. Turn the device on
  6. Run adb reboot bootloader
    1. The word “FASTBOOT” appears on the screen
  7. Press the Volume up + power buttons and wait until “POCO” shows up in the middle of the screen
    1. After the “POCO” screen the device should continue to the LineageOS recovery version 18.1 (20210515) screen
    2. Do Volume down and select “Factory Reset”
    3. Press the power button to activate
    4. “Format data/factory reset” is selected. It is what we want to do
    5. Press the power button to activate
    6. Read all the text. This can not be undone. Make sure you have a backup of your data
    7. Do Volume down and select “Format data”
    8. Press the power button to activate
    9. Select, with Volume up, the back arrow in the upper left corner. This points to the main menu
    10. Press the power button to activate
    11. Sideload the LineageOS .zip package
    12. On the device
      1. In the main RECOVERY version 18.1 (20210515) screen do Volume down and select “Apply Update”
      2. Press the power button to activate
      3. “Apply from ADB” is selected
      4. Press the power button to activate and to begin the sideload on the device
    13. On the computer sideload the package using by running adb sideload filename.zip
      1. The srceen of the device goes black. On the bottom left the progress can be followed
      2. The process succeeded with “Script succeded: result was [1.000000]”
    14. On the device, select, with Volume up, the back arrow in the upper left corner. This points to the main menu
    15. Press the power button to activate
    16. “Reboot system now” is highlighted
    17. Press the power button to activate
  8. LineageOS starts up. Succes !
    1. Select your preferred language and tab “NEXT”
    2. Set the timezone and the date and time and tab “NEXT”
    3. Set up a Wifi network
      1. Select the one you need
      2. Fill in the password
      3. Tab on connect
      4. Tab on “Next”
      5. Localisation services “Allow apps that have asked your permission to use your location information. This may include your current and your past location”
        1. We turned it off for now
      6. Tab on “Next”
      7. Update Lineage Recovery. “Updates Lineage Recovery on first boot subsequent to every update. Recovery will be updated as soon as you finish the setup. If you wish to keep it intact, disable this feature.” It is disabled by default. We enabled “Update Lineage Recovery alongside the OS
      8. Tab on “Next”
      9. LineageOS features. Send diagnostic and usage data to LineageOS. Make your own choice
      10. Fingerprint setup: We did “SKIP”.
      11. Protect your phone. Make your own choice how to protect your phone
      12. Restore apps and data. If needed restore them otherwise tab “Skip”
      13. LineageOS logo with start in the bottom right corner. Tab “START”
      14. You get in the main screen. Succes :-) !!!
      15. The show continues, we got a popup about setting up Trust. Read the settings and set to your needes
      16. In the main screen we
        1. Removed the Google search icon (second from the right). Later, it is not the Google search icon, it is the browser icon. In browser settings, we like our privacy. These are our suggestions
          1. Change “Search engine”, which defaults to “https://google.com” (strange we did not expect this on LineageOS to what you need from the list. We think the most privacy friendly one is DuckDuckGo
          2. Change “Suggestions provider” to DuckDuckGo
          3. Change “Home page” to about:blank
          4. Turn advanced share off
          5. Turn Reach mode off
          6. Turn LookLock on
          7. Turn Javascript off (for now, probably it is needed for websites to work)
          8. Turn Location off
          9. Turn Do Not Track on
          10. Turn Cookies off (for now, probably it is needed for websites to work)
          11. Tab on “Clear “Cookies”
        2. Tested the camera (icon on the right) and could not get out of the camera. The < o square icons did not show up and we could not figure out how to have them show up. A, yes we figured it out.
          1. Tab on the icon in the bottom left corner
          2. A selection list shows up
          3. Tab on the QR code icon on the top of the list
          4. Tap on the dot on the bottom row of icons
          5. Now you should be back in the main screen

Old version

This is the obsolete information from the LineageOS website mixed with our actions to attempt to use that information

This is not valid yet since we are stuck installing the custom recovery using fastboot. We were initially confused. We thought the “Main Menu MI-Recovery 3.0” was the recovery. But, no, it is the default Xiaomi Mi recovery. So somehow the recovery did not install

  1. Download the LineageOS installation package that you would like to install or build the package yourself
    1. Optionally, download an application package add-on such as Google Apps (use the arm64 architecture)
  2. If you are not in recovery, reboot into recovery. Do one of these two options to get in recovery
    1. Maybe you need to do the installing of the custom recovery using fastboot again. We did not test it since we did not need to so far
  3. On the computer, open terminal window, log in as root. The ”#“ is the root prompt
  4. Excecute adb reboot recovery
    1. With the device powered off do in a terminal: adb reboot recovery. Alternatively,, hold Volume Up + Power. Keep holding both buttons until the “POCO” logo appears on the screen, then release
    2. You will get the “Main Menu MI-Recovery 3.0” (this is the default Pocophone F1 recovery, not the LineageOS recovery) screen with the following options, control is done with the volume and power buttons,
      1. Reboot
      2. Wipe Data
      3. Connect with MIAssistant
  5. Now tap Factory Reset
    1. We did not see a “Factory Reset” button. There is a “Wipe Data” botton. With the volume and power keys we selected and activated “Wipe Data”
      1. You get the “Wipe Data” screen
      2. The “Wipe All Data” button is blue highlighted
      3. Press the power button to activate “Wipe All Data”
      4. You get the ”Confirm Wipe of All Data“ screen
      5. With the volume down key select “Confirm”
      6. Activate with the Power button
      7. A percentage counter starts running
      8. The ”Data wiped Successfully“ screen appears with a blue “Back to Main Menu” button.
      9. Press the power button to go back to the main screen
        1. We did not see, and got stuck,
      10. Format data / factory reset so we could not continue with the formatting process. This will remove encryption and delete all files stored in the internal storage, as well as format your cache partition (if you have one)
        1. Return to the main menu
        2. Sideload the LineageOS .zip package: On the device, select “Apply Update”, then “Apply from ADB” to begin sideload
        3. On the host machine, sideload the package using: adb sideload filename.zip
        4. Tip: If the process succeeds the output will stop at 47% and report adb: failed to read command: Success
        5. (Optionally): If you want to install any add-ons, repeat the sideload steps above for those packages in sequence
      11. Note: Add-ons aren’t signed with LineageOS’s official key, and therefore when they are sideloaded, Lineage Recovery will present a screen that says Signature verification failed, this is expected, please click Continue
        1. Note: If you want the Google Apps add-on on your device, you must follow this step before booting into LineageOS for the first time!
        2. Once you have installed everything successfully, click the back arrow in the top left of the screen, then “Reboot system now”.
        3. Warning: Depending on which recovery you use, you may be prompted to install additional apps and services. We strongly advise you to opt out of installing these, as they may cause your device to bootloop, as well as attempt to access or corrupt your data.
      12. We selected and activated, in the Main Menu of Mi-Recovery 3.0, “Connect with MIAssitant
        1. Then you get in a screen which tells your to connect the device to the computer via an USB cable. There is a URL: pcsuite.mi.com. So this is going nowhere in our case
        2. We turned the device off with the power button. It came back with the “Main Menu of Mi-Recovery 3.0” screen
        3. In the termial adb devices nor fastboot devices shows any device
        4. We did a reboot. The device is still connected to the computer via an USB cable
          1. The MIUI logo appears. Then nothing more wihtin a minute
        5. We truned the device off
        6. The device rebooted. The “POCO” and after that, the MUIU logo apeared. Then we got at the point we got before, the “Taal Kiezen” screen
        7. We did < in the bottom right of the screen
        8. That brought us back to the MUIU 12 start sreeen. No further back there.
        9. We turned the device off, it rebooted to the green battery charging icon
        10. We turned the device on with the Volume down and power keys into fastboot
        11. In the termial
          1. fastboot devices shows the device
          2. We did fastboot flash recovery lineage-18.1-20210515-recovery-beryllium.img again
          3. We shut down the device (fastboot screen > install screen > shut the device down again > battery screen)
          4. Start the device by pressing Volume Up and Power
          5. No success, got the same Main Menu.
          6. Rebooted the device and went througe the MUIU 12 setttings setup screens. See above
          7. After that we got back into the Android / MIUI main screen.
          8. We checked in Settings if USB debugging is turned on. See above for how to do it. We had to turn it on
          9. We turned the device off
          10. We ran in the terminal “adb devices” and the device showed up. See the previous output above
          11. We ran “adb reboot recovery” and got
            error: device unauthorized.
            This adb server's $ADB_VENDOR_KEYS is not set
            Try 'adb kill-server' if that seems wrong.
            Otherwise check for a confirmation dialog on your device.
          12. Did adb kill-server
          13. Did
            # adb devices
            * daemon not running; starting now at tcp:5037
            * daemon started successfully
            List of devices attached
            abcedf12	unauthorized
          14. Tap “OK” in the “Allow USB debugging? slide-up in the bottom of the screen
          15. Run adb devices again
            1. Now you should get
              List of devices attached
              abcedf12	device
          16. Booted in recovery with Volume up and Power keys
          17. Did Wipe data again in the Main Menu Mi-Recovery 3.0 screen
          18. Rebooted to system form the Main Menu Mi-Recovery 3.0 screen
          19. We are now going to follow those instructions
          20. Download the latest recovery from the TWRP page
            1. Check the this img with its sha256 sum
          21. We made sure USB debugging is on. How to do it, see above
          22. # adb devices
            List of devices attached
            abcdef12	device
          23. adb reboot bootloader
            1. This results in the FASTBOOT screen
          24. # fastboot flash recovery
            fastboot: error: ANDROID_PRODUCT_OUT not set
            1. This means that the image name is missing. So the right command is: fastboot flash recovery twrp-3.5.2_10-0-beryllium.img
          25. # fastboot reboot
            Rebooting                                          OKAY [  0.000s]
            Finished. Total time: 0.101s
          26. Turn the device off
          27. Turn the device via Volume Up + Power
          28. We still got in “Main Menu MI-Recovery 3.0” (this is the default Pocophone F1 recovery, not the LineageOS recovery)
          29. We did the “Wipe Data” button actions again
          30. After that, no new menu items in “Main Menu MI-Recovery 3.0”
          31. Still stuck
          32. Searched for “Main Menu MI-Recovery 3.0”. No solutions
          33. Went back to the Windows PC on which the unlock suceeded
            1. Downloaded lineage-17.1-20210327-recovery-beryllium.img and the 3 other files (nightly and two sha256 checksumfiles)
            2. Installed lineage-17.1-20210327-recovery-beryllium.img. See the procedures above.
              1. In Windows 10 do the sha256 checksum with certUtil -hashfile lineage-18.1-20210515-nightly-beryllium-signed.zip SHA256
            3. No luck. Still the “Main Menu MI-Recovery 3.0” screen
            4. Connected the device to the Windows 10 computer
            5. Did, accidently, power off, power on and got in the lock screen. Swiping up brought us in the main Android screen.
            6. We gave up for now.

More old version

  1. Download the LineageOS install package that you’d like to install or build the package yourself
    1. Optionally, download additional application packages such as Google Apps (use the arm64 architecture)
  2. If your device isn’t already booted into recovery, do so: With the device powered off do in a terminal: adb reboot recovery. Alternatively, hold Volume Up + Power. Keep holding both buttons until the “POCO” logo appears on the screen, then release
    1. (Optional, but recommended): Tap the Backup button to create a backup. Make sure the backup is created in the external sdcard or copy it onto your computer as the internal storage will be formatted later in this process
  3. Go back to return to main menu, then tap Wipe
  4. Now tap Format Data and continue with the formatting process. This will remove encryption as well as delete all files stored on the internal storage
  5. Return to the previous menu and tap Advanced Wipe
  6. Select the Cache and System partitions to be wiped and then Swipe to Wipe
  7. Sideload the LineageOS .zip package: On the device, select “Advanced”, “ADB Sideload”, then swipe to begin sideload
  8. On the host machine, sideload the package using: adb sideload filename.zip
    1. (Optional): Install any additional packages using the same method
    2. Note: If you want Google Apps on your device, you must follow this step before the first boot into Android!
  9. (Optional): Root the device by installing the LineageOS SU Addon (use the arm64 package) or using any other method you prefer
  10. Once installation has finished, return to the main menu, tap Reboot, and then System.

Good to know

Trebuchet is the launcher on LineageOS builds

Privacy

  • App's like WiFi Automatic and SleepyWiFi can not function when the device is in flight mode. When the device is not in flight mode the device switches to 4G when WiFi is turned off
    • Smarter WiFi Manager needs location information
    • WiFi Manager needs celltower information, so it needs a SIM card
    • WifiAutOff does not seem to work
  • When Bluetooth is on it might be needed to turn Location on for some apps to function

Issues

SIM card isn't installed or activated

  1. Goto Settings > MI Account > Devices > POCOPHONE F1
  2. Check the “SIM card” entry
    1. Although we have a working SIM card installed in the SIM only slot in the SIM card / SD card tray the entry says: “SIM card isn't installed or activated”
    2. At this point it is not clear what the consequences are in relation to unlocking the device

Screen keeps turning on

When charging from a QI charger the screen keeps turning on
Also when not charging. After a while it seems to stay off
Solutions:

  1. Do not allow apps to turn the screen on: Settings > Apps > Special app access > Turn screen on > Set all apps to 'Not allowed'
  2. Turn the screen saver of: Settings > Display > Screen saver > Slide to off
  3. Turn the 'Prevent accidental wake-up' on: Settings > Display > Prevent accidental wake-up > Slide to on
  4. Turn 'Wake on plug' off: Settings > Display > Wake on plug > Slide to off
  5. Turn hte 'Ambient display' off: Settings > Display > Lock screen > Ambient display > Use ambient display > Slide to off
  6. Settings > Do Not Disturb > Display options for hidden notifications > Custom restrictions > Don't turn on screen > Turn check mark on
  7. Developer options:
    1. Strict mode enabled: off
    2. Stay awake: off

Main subjects on this wiki: Linux, Debian, HTML, Microcontrollers, Privacy

RSS
Disclaimer
Privacy statement
Bugs statement
Cookies
Copyright © : 2014 - 2024 Webevaluation.nl and the authors
Changes reserved.

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
lineageos_on_pocophone_f1.txt · Last modified: 17-01-2024 23:25 by wim