Zum Hauptinhalt wechseln

Einleitung

This detailed step-by-step guide helps you transform your Google Nexus 4 with Android 5.1 to a powerful one with Android 10 Q.

This is my first tutorial on iFixit.

Feel free to ask anything if guide is not clear.
You may find all my tutorials on Github.

  1. Before going further, make sure you have the correct model. Go to Settings > About phone > Model number: Nexus 4. If model is not Nexus 4, you can quit this tutorial now. Right below, check for Android version. Normally it is 5.1.1 Right below, check for Android version. Normally it is 5.1.1
    • Before going further, make sure you have the correct model. Go to Settings > About phone > Model number: Nexus 4. If model is not Nexus 4, you can quit this tutorial now.

    • Right below, check for Android version. Normally it is 5.1.1

  2. This step is only if Android version is not 5.1.1. Connect with Wi-Fi network and go to System updates submenu > Check for update > Install updates.
    • This step is only if Android version is not 5.1.1.

    • Connect with Wi-Fi network and go to System updates submenu > Check for update > Install updates.

    • Once all official updates are installed, you can move to next step.

  3. Still in the About phone menu, scroll down to Build number. Tap 7 times on Build number list item. A toast confirms that Developer options are unlocked.
    • Still in the About phone menu, scroll down to Build number.

    • Tap 7 times on Build number list item. A toast confirms that Developer options are unlocked.

    • Now go to Settings > Developer options menu.

  4. In order to control the phone from the computer, we need USB debugging.
    • In order to control the phone from the computer, we need USB debugging.

    • In Developer options menu, scroll down to USB debugging and switch it on.

  5. A set of files is required in order to flash Android on the phone. While you download these, charge phone to 100%.
    • A set of files is required in order to flash Android on the phone. While you download these, charge phone to 100%.

    • You need to download 3 files: my pack , Android 10 for Nexus 4 and Google Apps.

    • Unzip files from my pack to an empty folder.

    • Open that folder and navigate to usb_driver_r13-windows > usb_driver. Right click on android_winusb.inf and select Install. Confirm with OK. Then restart Windows.

    • Connect phone to PC, make sure Connection mode is File transfer.

    • Retreive all photos, documents from phone's memory, all will be lost.

    • Synchronize all your Google, Microsoft accounts. Backup WhatsApp messages, texts/MMS...

  6. Open a Windows command prompt on the /djibe pack folder you unziped earlier: select folder with left click, right click while holding SHIFT on keyboard > Open command windows here. Connect phone to PC.
    • Open a Windows command prompt on the /djibe pack folder you unziped earlier: select folder with left click, right click while holding SHIFT on keyboard > Open command windows here.

    • Connect phone to PC.

    • Enter command: adb devices. confirm commands by pressing Enter.

    • Command starts adb.exe and returns 004d206a1416f1bb unauthorized

    • ADB (Android Debug Bridge) has started but phone is waiting for authorization. On phone, authorize adb commands from Allow USB debugging dialog: tap on OK.

    • Now in terminal, enter: adb devices. Command now returns 004d206a1416f1bb device

    • Finally type: adb reboot bootloader. Phone restarts and prints a Droid with on the last line: LOCK STATE - locked

    • WARNING. All data will be erased ! Enter command: fastboot oem unlock. Then using Volume+, select Yes - Unlock bootloader, confirm by pressing Power. Droid's last line is now: LOCK STATE - unlocked, phone is unlocked ! Then use Volume keys to select Start and Power to confirm. Wait during long boot.

  7. Back to Android, unlock Developer options and activate USB debugging again. Connect phone to PC and in command line enter: adb reboot bootloader. Droid shows up again on phone. Now enter fastboot flash recovery voron00-recovery-mako.img. Command returns Finished. Total time: 1.828s
    • Back to Android, unlock Developer options and activate USB debugging again.

    • Connect phone to PC and in command line enter: adb reboot bootloader. Droid shows up again on phone.

    • Now enter fastboot flash recovery voron00-recovery-mako.img. Command returns Finished. Total time: 1.828s

    • Use Volume keys to select Recovery mode, confirm with Power. Welcome to TWRP recovery. Check Never show this screen during boot again and Swipe to Allow Modifications.

    • Go to Backup > select Boot, System and Data partitions. Swipe to Backup and wait during backup. Back to home screen > Mount. You can access folders from PC if Data partition is checked and bottom right button displays Disable MTP.

    • From Windows Explorer, navigate to Nexus 4 > Internal Storage. Copy TWRP folder and paste it somewhere safe on PC. This is a perfect backup in case of crash.

  8. ROM requires at least 1272 MB on /system partition. WARNING. The following script will work only on stock partition table. WARNING. DO NOT use it on a reconfigured device (but useClamor's script) Copy repartition_mako.zip into Internal Storage partition, along TWRP and DCIM folder (this time from PC > phone). Disconnect phone. Back to TWRP home, go to Install menu. Scroll down to see repartition_mako.zip > tap on it and Swipe to confirm Flash. Wait during repartition, phone auto reboots to TWRP.
    • ROM requires at least 1272 MB on /system partition. WARNING. The following script will work only on stock partition table. WARNING. DO NOT use it on a reconfigured device (but useClamor's script)

    • Copy repartition_mako.zip into Internal Storage partition, along TWRP and DCIM folder (this time from PC > phone). Disconnect phone.

    • Back to TWRP home, go to Install menu. Scroll down to see repartition_mako.zip > tap on it and Swipe to confirm Flash. Wait during repartition, phone auto reboots to TWRP.

  9. Now go Wipe > Advanced Wipe. Select Dalvik / ART Cache, System, Data, Internal Storage, Cache and Swipe to Wipe.
    • Now go Wipe > Advanced Wipe. Select Dalvik / ART Cache, System, Data, Internal Storage, Cache and Swipe to Wipe.

    • Tap on Home button > Reboot > Recovery > Swipe to Reboot.

  10. On restart, check Never show this screen during boot again and Swipe to Allow Modifications. Connect phone to PC. In TWRP, go to Mount menu. Copy zipfiles of ROM + GAPPS + Magisk to Internal Storage.
    • On restart, check Never show this screen during boot again and Swipe to Allow Modifications. Connect phone to PC. In TWRP, go to Mount menu. Copy zipfiles of ROM + GAPPS + Magisk to Internal Storage.

    • Disconnect phone and go to TWRP Install menu. Select lineage-*.zip, and Add More Zips, then open_gapps-arm-10.0-pico*.zip and Swipe to confirm Flash Be patient. NB. If it fails, install zips 1 by 1.

    • Optional: root is only for advanced users. Then back to Home > Reboot > Recovery. Install > Magisk*.zip When done message prompts, tap on Wipe Cache/Dalvik and Swipe to Wipe.

    • Disconnect phone from PC. Then tap on Reboot System. Let the phone boot (about 10 minutes).

  11. Configure Android as you like. Magisk root starts with Android, no extra manipulation needed. You can manage permissions and extra modules with Magisk Manager app.
    • Configure Android as you like.

    • Magisk root starts with Android, no extra manipulation needed. You can manage permissions and extra modules with Magisk Manager app.

    • Root allows to have a total control over Android (customization, overclocking...)

    • For faster interactions: go to Settings > About phone Tap 7 times on build number. Back to Settings > System > Advanced > Developer options Set Windows animation scale, Transition animation scale and Animator duration scale to .5x

Abschluss

Enjoy the brand new user experience of Android 10 on such an old phone.

djibe

Mitglied seit: 13.01.2019

1 Reputation

1 Anleitung geschrieben

Kommentar hinzufügen

Statistik anzeigen:

Letzten 24 Stunden: 3

Letzten 7 Tage: 10

Letzten 30 Tage: 16

Insgesamt: 46