[GUIDE/TUTORIAL/HOWTO] HTC One M8 Stock to Android 12 - One (M8) General

[GUIDE/TUTORIAL/HOWTO] HTC One M8 from Stock to Android 12.1 / LineageOS 19.1
[GUIDE/TUTORIAL/HOWTO] HTC One M8 any version (single SIM: m8ul, m8vzw and m8spr or dual SIM: m8dug and m8dwg) stock to Android 12.1 / LineageOS 19.1
This detailed step-by-step guide helps you transform your HTC One M8 (any version) to a powerful one with Android 12.
Make sure you have the One M8 model, in Android, go to Settings > About phone and check the model.
CHANGELOG
v6. Moved to Android 12
v5. Moved to Android 11, improve readability, update pack
v4. Prepare for Android 11, Updated pack with latest TWRP
v3. Updated pack with latest Magisk
v2.1. Drop ADB 15 sec installer and use latest adb and fastboot.
v2. Update pack and tutorial for TWRP 3.4.0-1
v1. Initial release
1) DOWNLOAD
- djibe HTC One M8 pack (~40 Mo) : https://bit.ly/djibe-onem8-pack
(includes HTC USB Drivers, recovery TWRP 3.6.1_9-0 for all m8, Magisk Root, adb & fastboot.exe).
Unzip the djibe folder from the zip on root folder of C:\ drive.
- ROM Unofficial LineageOS 19.1: https://forum.xda-developers.com/t/rom-12l-unofficial-m8-m8d-lineageos-19-1-stable.4464733/
Download latest build here (compatible with all M8 signel/double SIMs variants): https://www.androidfilehost.com/?w=files&flid=334966&sort_by=date&sort_dir=DESC
# M8 GPe partition layout is no longer supported. The device must first be converted to Sense firmware, otherwise installation will fail.
# Android 13 is incoming
+ MindTheGApps ARM 12.1: https://androidfilehost.com/?w=files&flid=322935&sort_by=date&sort_dir=DESC
+ Charge phone to 100%
+ MicroSD card formatted in FAT32
+ Copy ROM + Google Apps + both Magisk files on microSD card. Insert it in phone.
WARNING. This tutorial uses Microsoft Windows.
WARNING. Warranty is now void.
WARNING. Read carefully the sentences starting with ###.
2) BACKUP DATA AND INSTALL DRIVERS
Disable Antivirus.
Install drivers from my pack:
right click on HTCDriver.exe > click on Run as administrator and continue the setup.
Connect HTC One (while phone on) to PC, let drivers install.
In Windows explorer, HTC One should be available.
### If not make sure phone connection is in File transfer mode (see Android notifications).
### Phone is still not visible in Windows Explorer ? See fix at end of tutorial.
Collect all personal photos, videos, etc ... and backup these on PC.
Use an app like Backupyourmobile/SMS Backup & Resotre to backup texts, contacts, etc.
Check that backup is located on microSD card.
Then copy the backup on your PC.
Disconnect phone.
Check that you have the latest official updates.
### If your phone is Simlocked/carrier locked/Network locked, don't go further.
Visit official website of your network carrier (or call their support) to retrieve your desimlock code.
Ask them for details on how to remove simlock.
How do I know my phone is simlocked ? When you insert a SIM card from another operator, network is inaccessible.
Only a stock ROM can remove simlock.
To go back from custom ROM to stock, see dedicated section at the end of tutorial.
3) UNLOCK BOOTLOADER
In Android, go to Settings > About > Software information > More.
Tap 7 times on Build number. It unlocks Developer options.
Go back to the About menu, you can see the new Developer options menu.
Tap on it, accept the warning.
Toggle on the USB debugging option.
Connect phone, a message appears on phone : Allow USB debugging?
check Always allow and confirm by tapping on OK.
Now, open a Windows command on my "flash" folder (hold Shift + right click on folder -> Open a windows command here).
### Then navigate to my flash folder (if it is on desktop) with this command :
Code:
cd /d C:\djibe\flash
Enter command :
Code:
adb devices
, confirm by pressing Enter.
Command returns :
Code:
List of devices attached
HT35****** device
### If no device is found, uninstall and reinstall properly the drivers while antivirus is off. Or see fix at the end of this tuto.
### Or start fresh on another PC.
Now type :
Code:
adb reboot bootloader
Phone restarts in Fastboot mode. Wait till phone screen is blank in fastboot mode.
Type:
Code:
fastboot devices
Command returns :
Code:
HT35**** fastboot
### You may have to fix drivers again (see fix at the end of tuto)
Type:
Code:
fastboot getvar all
Bootloader must be in version 3.19 (Thx @sterphles)
Type:
Code:
fastboot oem get_identifier_token
, confirm by pressing Enter.
Command returns multiple lines.
Select with your mouse all the lines from
Code:
<<<< Identifier Token Start >>>>
(included)
to the line
Code:
<<<<< Identifier token end >>>>>
(included).
Now on keyboard copy (Ctrl + C combo), then open Notepad.
In Notepad, paste those lines (Ctrl + V combo).
Now manually remove all the (bootloader) strings from each line.
Your notepad should now look like this :
<<<< Identifier Token Start >>>>
37A5DBF4FE5F0D9F4425E54AA91AFDBF
2A20E9C67C3BB4FAE60263F76BDEC6AC
847BF9FFB11DAEA4AB88AC8710435449
9BC12E93DF4C54FFE3D064C4C810C49A
2CDAF2E0CD3A164FED4A568CB0FD2AC6
C01AA991733D949C00987062D691DE91
8AA1C97CEBC3ACE83FECE75A1D03CE72
62414C7DC36A73AFCBF433E1EBE2EDC7
E272F73309632D3EF8C86E472B65E8EF
37E46B52FE3F94FC69D1854CA3DE6F48
C3E10001B233A70B1EAF35134F51FCC6
353E0CC98534E6E60A241A7063D0BE2F
A5B752E75C1C47E6F739BDBE67D024DA
3292A14278247557632639802722A86C
E61424F7666AE085AA9905096FEED1AD
5ECBBD867544E95ABDDA277690B8CB55
<<<<< Identifier Token End >>>>>
Now visit this website : https://www.htcdev.com/bootloader/
Register on the site. Confirm registration with your email.
In the select menu, chose HTC One (M8), click Begin unlock Bootloader button.
Agree to legal terms.
Next page, go to the bottom and click continue to step 5.
In the bottom of this page, in the lower textarea "My Device Identifier Token",
copy and paste the multiple lines you just edited (my example is just above).
Click Submit.
HTC tells you : Token Submitted Successfully.
Open your mailbox (associated to your HTC account).
Copy the Unlock_code.bin file attached to email in my "flash" folder you unzipped.
In Windows command, type :
Code:
fastboot flash unlocktoken Unlock_code.bin
, confirm with Enter.
Command should return :
Code:
unlock token check successfully
Back to phone, press Volume+ to select "Yes, unlock bootloader", then Power button to confirm flash.
Now wait while phone is going to Factory reset.
Don't let Android restart by holding both Power + Volume- to enter bootloader immediately.
FASTBOOT menu is overlined in red.
4) FLASH TWRP RECOVERY
Using the same Windows command prompt, enter :
Code:
fastboot devices
to make sure phone is still available.
Then
Code:
fastboot flash recovery twrp-3.6.1_9-0-m8.img
Command returns :
Code:
finished. total time: x.xxxxs
Now on phone, press Volume- to highlight HBOOT, confirm with Power button.
You are back to the booloader screen (UNLOCKED is written on top line), press Volume- to navigate to RECOVERY, and confirm with Power button.
Phone reboots in TWRP recovery.
5) BACKUP STOCK SYSTEM
In TWRP, check Never show this screen and Swipe to Allow Modifications.
You land on TWRP Home screen.
Always make a backup of your stock system. We never know when a weird bug will decapitate the system.
Go to Backup menu, select all partitions and Backup to microSD card.
Backup the generated TWRP folder content from your microSD card to PC.
6) WIPE PARTITIONS
Back to Home menu, go to Wipe > Advanced wipe.
Select Dalvik / ART Cache, Cache, System, Data, Internal Storage then Swipe to Wipe, go back to Wipe menu.
### Don't wipe SDcard
7) FLASH ROM, ROOT/MAGISK AND GAPPS
Back to Home screen, tap on Install > choose lineage*.zip,
(if you don't see the files, tap on Select Storage and make sure Micro SDCard is active)
then Add more Zips -> Magisk*.zip,
then Add more Zips -> mindthegapps*.zip,
then Swipe to confirm Flash.
Wait for operation to end (can be long).
When completed successfully, tap on Reboot.
Tap on Do not install when TWRP asks for the app install.
Wait during long first boot.
Setup Android.
8) You can use Backupyourmobile to restore data,
use GPS Status & Toolbox app to enhance GPS fix.
That's it.
Enjoy,
djibe
THANKS to TWRP team, LineageOS team, tarkzim, ckpv5, alray, , Flyhalf205, icxj1, R1ghtC, gimmeitorilltell, All M8 contributors.
##################################################
A) Fastboot devices doesn't show any device connected
Install HTC USB drivers
Reboot PC
Open Windows Device Manager (Windows + R shortcut on keyboard > devmgmt.msc > hit Enter)
Search for phone at Other devices submenu > Device is named Android 1.0 or My_HTC
### If it is My_HTC > select it > right click > Uninstall. Disconnect phone. Reconnect phone. Now recognised as Android 1.0.
Select device Android 1.0 > right click > Update Driver
Search locally for driver > Show a list
Select ASUS Android Device.
Manufacturer: select Google, Inc. and set driver to Android Bootloader Interface
Confirm install.
B) Go back to stock from a custom ROM with a HTC One M8
- Either restore your TWRP backup with TWRP recovery
- Or restore a community TWRP backup with TWRP recovery (https://forum.xda-developers.com/htc-one-m8/help/tutorial-how-to-stock-stock-twrp-t3086860 see posts 2 & 3)
### With S-ON and keep device Unlocked
To find suitable backup for device, boot phone in Bootloader mode (Power + Volume-)
Look at your hboot version (hboot 3.19.0000 is most frequent)
Launch a fastboot command:
Code:
fastboot getvar all
Make sure IMEI is a valid number.
Look at your CID and MID values. Try to find exact same TWRP backups for your phone.
### Flash only exact model versions.
Then wipe all partitions and restore the correct TWRP backup an angel made for you.
- If TWRP restore fails, start with these posts :
You will need a Rom Update Utility (RUU) for your exact model version.
This is compatible with S-ON, will need to relock your Bootloader (save your Unlock_code.bin +++) and need original recovery
https://forum.xda-developers.com/htc-one-m8/help/tutorial-how-to-stock-stock-twrp-t3086860
https://forum.xda-developers.com/htc-one-m8/general/guide-restore-european-htc-one-m8-to-t3072235
C) No IMEI visible and no cellphone network detected with HTC One M8
Composing *#06# shows an empty IMEI dialog window.
or Settings > About phone > IMEI. IMEI: Unknown, IMEI SV: Unknown
Refer to B) tutorial to get back to stock.

Tuto updated for latest TWRP recovery

Please remove the 15 second adb. The OP of adb 15 second states in his post that it's outdated and should not be used.

Never_Sm1le said:
Please remove the 15 second adb. The OP of adb 15 second states in his post that it's outdated and should not be used.
Click to expand...
Click to collapse
Very nice !
Thx, pack and tutorial updated.

Can I use this guide for my m8wl?
And if it's possible, which of the two builds should I download?

Alexcxvtr said:
Can I use this guide for my m8wl?
And if it's possible, which of the two builds should I download?
Click to expand...
Click to collapse
Hi, look at this first: http://droider.eu/2014/09/20/htc-one-m8-models/
Then pick the correct ROM.

Thank you .I did it by following your guide.

murphylim said:
Thank you .I did it by following your guide.
Click to expand...
Click to collapse
Thanks, it is always encouraging to have support.
Still a good phone

Hi, I updated pack with latest Magisk root version and checked download links.

For Windows 10 users, use HTC drivers version v4.17.0.001 - Download them from here - Zippyshare.com - HTC Mobile Driver v4.17.0.001.exe
Everything else works just fine. @djibe89 thank you.

hymnz said:
For Windows 10 users, use HTC drivers version v4.17.0.001 - Download them from here - Zippyshare.com - HTC Mobile Driver v4.17.0.001.exe
Everything else works just fine. @djibe89 thank you.
Click to expand...
Click to collapse
Hi, thanks for feedback.
Drivers 4.2.0.001 didn't work ?

djibe89 said:
Hi, thanks for feedback.
Drivers 4.2.0.001 didn't work ?
Click to expand...
Click to collapse
No. Not on Windows 10.

djibe89 said:
Now type :
Code:
adb reboot bootloader
Phone restarts in Fastboot mode. Wait till phone screen is blank in fastboot mode.
Type :
Code:
fastboot devices
Command returns :
Code:
HT35**** fastboot
### You may have to fix drivers again (see fix at the end of tuto)
Click to expand...
Click to collapse
Hi,
I'm at the stage of trying to unlock the bootloader. The phone restarts in fastboot mode but when i type in fastboot devices nothing happens.
and then if i skip that and type get_identifier_token. the return is waiting for any devices. and nothing happens.
What have I missed?
Thanks
i've since been able to get past this stage. I used htc driver 4.17. I'm now stuck on the token. cmd prompt keeps saying cannot load the file no such file or directory. but i'm so sure i have the file in the right folder

juggled_balls said:
Hi,
I'm at the stage of trying to unlock the bootloader. The phone restarts in fastboot mode but when i type in fastboot devices nothing happens.
and then if i skip that and type get_identifier_token. the return is waiting for any devices. and nothing happens.
What have I missed?
Thanks
i've since been able to get past this stage. I used htc driver 4.17. I'm now stuck on the token. cmd prompt keeps saying cannot load the file no such file or directory. but i'm so sure i have the file in the right folder
Click to expand...
Click to collapse
Hi, when
Code:
fastboot devices
doesn't return anything, it means there is an USB driver problem.
You'll have to try to fix from Windows Device Manager.

hymnz said:
No. Not on Windows 10.
Click to expand...
Click to collapse
Hi, the Driver installer from my pack (HTCDriver_4.2.0.001) sends an error during install, but then drivers finally install.

djibe89 said:
Hi, when
Code:
fastboot devices
doesn't return anything, it means there is an USB driver problem.
You'll have to try to fix from Windows Device Manager.
Click to expand...
Click to collapse
Thanks for your work. I managed to plod my way through everything and get it working. Very happy the old phone can keep going on.

juggled_balls said:
Thanks for your work. I managed to plod my way through everything and get it working. Very happy the old phone can keep going on.
Click to expand...
Click to collapse
Awesome !
Enjoy

Hi, tutorial and pack updated for Android 11

thx for the guide!

seamonkey420 said:
thx for the guide!
Click to expand...
Click to collapse
Hi, glad you liked it !
Enjoy your phone

Related

[Q] Update questions (2.1) (2.2)

Hi forum - I updated my GT540Go to 2.1-update 1. V20a a few months ago using the kdz method and i think i rooted it, I have the superuser icon but some apps say i still need root access??? and would like to go to 2.2 openswift (newest version with most bugs fixed) with recovery and overclock.
Now when i connect to PC Suite IV it says i have an update available so my first question is what will it update my phone to if i do it?
I have now read/watched everything i can find about flashing to 2.2 but it all still looks too complicated, Is there a proper step by step guide anywhere that i can use with some confidence?
Please help me and others like me who are confused how to use ADB and SDK
Thanks.
Best to wait until OpenSwift is out of beta and is nearly complete then install. Really no point in upgrading now if you don't know how to do it.
I am a newb and managed to flash to 2.2 with a guide I found at the android forums. Would be happy to post it here if it might help.
Love the new rom its faster and aside from camera not saving pics and no screen calibrator it is fine.
Dave
Sent from my GT540 using xda app.
I would also be interested in a step by step guide as I have a z4 rooted phone using the Baltic 2.1 V20d kdz.
Sent from my GT540 using XDA App
cheryanne said:
I would also be interested in a step by step guide as I have a z4 rooted phone using the Balkan 2.1 V20d kdz.
Sent from my GT540 using XDA App
Click to expand...
Click to collapse
This is a guide I followed from another forum, and posted elsewhere with some minor additions in case anyone had problems.
The guide is from a forum post at the android forums,it is NOT my work, the added bits are mostly what I have found from browsing here and from asking questions. While I can't be held liable if you mess your phone up having done so myself I thought this could helpa few people and save them searching various threads for answers so hope it helps
The guide
To install this ROM you need to have fastboot enabled on your phone. If you have Android 1.6/2.1 installed from LG, then fastboot is not enabled. I will explain how to enable fastboot on your phone (this involves re-flashing/replacing your currently installed firmware):
I am unable to post links yet so you will have to copy and paste the appropriate link into your browser replacing the ** with tt
KDZ Updater Carphone Warehouse Unlocked.zip can be downloaded at h**p://goo.gl/7aRTc - A link to a zip archive with all the files needed to flash to Android version 2.1 with fastboot (Carphone Warehouse Unlocked)
KDZ Updater Europe Open.zip can be downloaded at h**p://goo.gl/BOcYT - A link to a zip archive with all the files needed to flash toAndroid version 2.1 with fastboot (Europe Open)
Download the version that best applies to you, if you live in the UK, I'd recommend you download the Carphone Warehouse Unlocked version, whereas if you live in Europe, I'd recommend the Europe Open version (simple right? )
I live in the UK and used the open rom from Europe as the Carphone Warehouse rom would not install
Now, how to flash these versions; I'll explain in detail how to flash the ROM's from starting with backing up.
Instructions to install ROM with Fastboot:
1. Before you start, make sure you backup all your data by installing the z4root.1.3.0.apk file onto your phone, then open it and choose 'Permanent Root'. Your phone will root and reboot. Then go to the Market and install 'MyBackup Root', open it and do a backup of your apps and personal data (contacts, sms, call log etc.) Once this is done, go to Settings>SD Card and Phone Storage>Unmount SD Card, a notification in the notification bar should appear saying 'SD Card safe to remove'. Remove the battery cover and remove the SD card and store it in a safe place. Then continue to step 2.
2. Extract the .zip file you downloaded to your computer (e.g. your desktop). Open the folder and install MSXML 4.0 SP3 Parser (msxml.msi).
3. Once that has finished, install LGAndroidDriver_WHQL_ML_Ver1.0_All_Win7.exe which are the drivers so your computer will recognize your phone.
4. Next, open KDZ_FW_UPD.exe
(i) Change 'Type' to '3GQCT' *THIS IS A MUST, THE UPDATE WILL NOT WORK OTHERWISE AND YOU MAY BRICK YOUR PHONE*
(ii) Make sure 'PhoneMode' is set to 'DIAG'
(iii) Browse for the 'V20B_00+Fastboot.kdz' file.
5. Prepare the phone by enabling USB Debugging by going to Settings>Applications>Development>Enable USB Debugging and connect the phone to the computer via USB cable and wait for the drivers to install for the phone.
6. Click 'Launch software update' and do not use your computer until the update is complete. The update will take roughly 10-20 mins to complete.
If you have a problem with this try a different rom, this guide offers two to choose from.
Instructions to install CyanogenMod:
Once the update is complete, your phone will reboot, what you need to do is power off the phone and whilst the phone is off, press and hold the 'Camera' button all the way ANDpower on the phone, make sure you hold the 'Camera' button. The phone will display the LG logo and disappear, then display a blank screen. The phone is now in fastboot mode!
Now you want to download this file: Flashing CyanogenMod.zip and extract it to a folder called 'Android' (without the quotes '') on the C: drive (you'll probably need to make this folder yourself.
1. Now open CMD with administrator privileges (Search for CMD in the start menu and right click on 'cmd' and click 'Run as Administrator' )
2. Connect the phone to your computer via USB cable and wait for the necessary drivers to install.
If when connected with a usb cable the computer says "waiting for device" and nothing else happens try installing the fastboot drivers. You can do this by going to the control panel of your pc, from the Windows start menu, opening the list of devices and where you see the one representing your phone (likely, as was the case with me, it will say android and have a yellow exclamation mark over it). Different versions of Windows do things slightly different but what you need to do is simply update the driver by choosing the icons properties box choosing UPDATE or INSTALL DRIVER and when asked pointing it to the folder where you unzipped the drivers.
3. Then go back to the cmd window and type:
Code:
cd C:\Android
(i) Then type:
Code:
fastboot.exe -w
(ii) Once that's completed, type:
Code:
fastboot.exe erase system
(iii) Once that's completed, type:
Code:
fastboot.exe flash system system.img
(iv) Once that's completed, type:
Code:
fastboot.exe flash boot boot.img
(v) Once that's completed, type:
Code:
fastboot.exe reboot
4. Your phone will now reboot with CyanogenMod 6.1.1 (Android 2.2.1). The first boot might take longer than a normal boot.
If your phone stays at a blank screen you simply forgot to do one of the above steps, in which case simply repeat them. It is likely if that happens that you simply forgot the flash boot image instruction.
5. You can now re-insert your SD card and go to Settings>SD Card and Phone Storage>Mount SD Card
Enjoy!
The instructions for flashing both the firmware with fastboot and flashing CyanogenMod are included in the zip archives called 'Readme'. I'll update the links so that you'll always have the most up to date version of CyanogenMod available for download, note that if you choose to update your phone you will loose all your data including apps etc. so backup before you update
And that, with a few comments added by myself, is the guide.
Once you have set your phone up the way you want power off your phone. Hold the HOME and POWER buttons down while the LG logo appears and you will see a menu appear on screen.
Using the volume down key to navigate the different menu choices, and the camera button to select an option choose the BACKUP OR RESTORE option and from the sub menu that it will give you choose BACKUP.
This will make a backup of your phone AND all your data, if you ever mess up an update or think you have damaged your phone in the future simply holdthe POWER and HOME buttons down and when the menu appears choose the RESTORE option
Perfect.
Sent from my GT540 using Tapatalk
Thank you MisterMentallity
Sent from my GT540 using XDA Premium App
Fastboot is not detecting my device on windows 7
hi ,
i have try to update my device LG GT540 to 2.2 Android OS using fastboot.exe , but its not finding my device . it saying "wating for device " can you please anyone help me
i am using windows 7 64bit.
Thanks
Jega
jega_ms said:
hi ,
i have try to update my device LG GT540 to 2.2 Android OS using fastboot.exe , but its not finding my device . it saying "wating for device " can you please anyone help me
i am using windows 7 64bit.
Thanks
Jega
Click to expand...
Click to collapse
Have u installed the drivers properly?
Sent from my GT540 using XDA Premium App

[Q] Need Help!!! Installing 2.2

Hello,
I want to install the 2.2 rom, but I dont know how, I've searched here, but I couldnt understand much, the link I've tried are dead or in russian (which confuses me a lot).
So I'd really love if someone could make a step by step tutorial to help me out.
Please, include links.
Thanks
And please, if you can, plz help me understand what is the recovery mode, and how to do so...
Thank again
Follow this thread: http://forum.xda-developers.com/showthread.php?t=857213
If you can't understand...I'll post another guide.
This is a guide I followed from another forum, and posted elsewhere with some minor additions in case anyone had problems.
The guide is from a forum post at the android forums,it is NOT my work, the added bits are mostly what I have found from browsing here and from asking questions. While I can't be held liable if you mess your phone up having done so myself I thought this could helpa few people and save them searching various threads for answers so hope it helps
The guide
To install this ROM you need to have fastboot enabled on your phone. If you have Android 1.6/2.1 installed from LG, then fastboot is not enabled. I will explain how to enable fastboot on your phone (this involves re-flashing/replacing your currently installed firmware):
I am unable to post links yet so you will have to copy and paste the appropriate link into your browser replacing the ** with tt
KDZ Updater Carphone Warehouse Unlocked.zip can be downloaded at h**p://goo.gl/7aRTc - A link to a zip archive with all the files needed to flash to Android version 2.1 with fastboot (Carphone Warehouse Unlocked)
KDZ Updater Europe Open.zip can be downloaded at h**p://goo.gl/BOcYT - A link to a zip archive with all the files needed to flash toAndroid version 2.1 with fastboot (Europe Open)
Download the version that best applies to you, if you live in the UK, I'd recommend you download the Carphone Warehouse Unlocked version, whereas if you live in Europe, I'd recommend the Europe Open version (simple right? )
I live in the UK and used the open rom from Europe as the Carphone Warehouse rom would not install
Now, how to flash these versions; I'll explain in detail how to flash the ROM's from starting with backing up.
Instructions to install ROM with Fastboot:
1. Before you start, make sure you backup all your data by installing the z4root.1.3.0.apk file onto your phone, then open it and choose 'Permanent Root'. Your phone will root and reboot. Then go to the Market and install 'MyBackup Root', open it and do a backup of your apps and personal data (contacts, sms, call log etc.) Once this is done, go to Settings>SD Card and Phone Storage>Unmount SD Card, a notification in the notification bar should appear saying 'SD Card safe to remove'. Remove the battery cover and remove the SD card and store it in a safe place. Then continue to step 2.
2. Extract the .zip file you downloaded to your computer (e.g. your desktop). Open the folder and install MSXML 4.0 SP3 Parser (msxml.msi).
3. Once that has finished, install LGAndroidDriver_WHQL_ML_Ver1.0_All_Win7.exe which are the drivers so your computer will recognize your phone.
4. Next, open KDZ_FW_UPD.exe
(i) Change 'Type' to '3GQCT' *THIS IS A MUST, THE UPDATE WILL NOT WORK OTHERWISE AND YOU MAY BRICK YOUR PHONE*
(ii) Make sure 'PhoneMode' is set to 'DIAG'
(iii) Browse for the 'V20B_00+Fastboot.kdz' file.
5. Prepare the phone by enabling USB Debugging by going to Settings>Applications>Development>Enable USB Debugging and connect the phone to the computer via USB cable and wait for the drivers to install for the phone.
6. Click 'Launch software update' and do not use your computer until the update is complete. The update will take roughly 10-20 mins to complete.
If you have a problem with this try a different rom, this guide offers two to choose from.
Instructions to install CyanogenMod:
Once the update is complete, your phone will reboot, what you need to do is power off the phone and whilst the phone is off, press and hold the 'Camera' button all the way ANDpower on the phone, make sure you hold the 'Camera' button. The phone will display the LG logo and disappear, then display a blank screen. The phone is now in fastboot mode!
Now you want to download this file: Flashing CyanogenMod.zip and extract it to a folder called 'Android' (without the quotes '') on the C: drive (you'll probably need to make this folder yourself.
1. Now open CMD with administrator privileges (Search for CMD in the start menu and right click on 'cmd' and click 'Run as Administrator' )
2. Connect the phone to your computer via USB cable and wait for the necessary drivers to install.
If when connected with a usb cable the computer says "waiting for device" and nothing else happens try installing the fastboot drivers. You can do this by going to the control panel of your pc, from the Windows start menu, opening the list of devices and where you see the one representing your phone (likely, as was the case with me, it will say android and have a yellow exclamation mark over it). Different versions of Windows do things slightly different but what you need to do is simply update the driver by choosing the icons properties box choosing UPDATE or INSTALL DRIVER and when asked pointing it to the folder where you unzipped the drivers.
3. Then go back to the cmd window and type:
Code:
cd C:\Android
(i) Then type:
Code:
fastboot.exe -w
(ii) Once that's completed, type:
Code:
fastboot.exe erase system
(iii) Once that's completed, type:
Code:
fastboot.exe flash system system.img
(iv) Once that's completed, type:
Code:
fastboot.exe flash boot boot.img
(v) Once that's completed, type:
Code:
fastboot.exe reboot
4. Your phone will now reboot with CyanogenMod 6.1.1 (Android 2.2.1). The first boot might take longer than a normal boot.
If your phone stays at a blank screen you simply forgot to do one of the above steps, in which case simply repeat them. It is likely if that happens that you simply forgot the flash boot image instruction.
5. You can now re-insert your SD card and go to Settings>SD Card and Phone Storage>Mount SD Card
Enjoy!
The instructions for flashing both the firmware with fastboot and flashing CyanogenMod are included in the zip archives called 'Readme'. I'll update the links so that you'll always have the most up to date version of CyanogenMod available for download, note that if you choose to update your phone you will loose all your data including apps etc. so backup before you update
And that, with a few comments added by myself, is the guide.
Once you have set your phone up the way you want power off your phone. Hold the HOME and POWER buttons down while the LG logo appears and you will see a menu appear on screen.
Using the volume down key to navigate the different menu choices, and the camera button to select an option choose the BACKUP OR RESTORE option and from the sub menu that it will give you choose BACKUP.
This will make a backup of your phone AND all your data, if you ever mess up an update or think you have damaged your phone in the future simply holdthe POWER and HOME buttons down and when the menu appears choose the RESTORE option
Click to expand...
Click to collapse
You also need fastboot drivers.
http://forum.xda-developers.com/attachment.php?attachmentid=495093&d=1295551234
guide to install openswift
please, anybody who has rights to edit first post of openswift thread,
add this link, is very good guide
http://android.modaco.com/content/lg-gt540-optimus-gt540-modaco-com/329916/a-full-guide-to-getting-android-2-2-on-your-phone-for-total-newbs-like-me/
somoant said:
please, anybody who has rights to edit first post of openswift thread,
add this link, is very good guide
http://android.modaco.com/content/lg-gt540-optimus-gt540-modaco-com/329916/a-full-guide-to-getting-android-2-2-on-your-phone-for-total-newbs-like-me/
Click to expand...
Click to collapse
Oh...there's the link. Been trying to find it! Thx =)
MegaBubbletea said:
Oh...there's the link. Been trying to find it! Thx =)
Click to expand...
Click to collapse
you're welcome
Another question, which one should I donwload?
KDZ Updater Carphone Warehouse Unlocked.zip
KDZ Updater Europe Open.zip
My phone is from US, so both would work?
brunouvn said:
Another question, which one should I donwload?
KDZ Updater Carphone Warehouse Unlocked.zip
KDZ Updater Europe Open.zip
My phone is from US, so both would work?
Click to expand...
Click to collapse
Either one will be fine. Those are just for temporary Rom because they have fastboot. You wont be keeping them.
Sent from my GT540 by MBt
little question... how long does it takes to complete the process? my phone is on download mode for like 30 minutes.. kinda nervous here, its stuck at:
3GQCT : wParam = 205, IParam = 0
btw, internet should be on?
What!? You sure u followed the instructions very carefully? Using the KDZ updater tool and correct settings?
yes, followed step by step
What happens if I cancel the process?
Well...which step are you on at the moment?
Step Complete : C Drive Erase
Wo wo wo...so it's done? Finish flashing v2.1 on ur android with fastboot?
dont understand, its done?
Well...what's happening on screen in the updater? Does your phone reboot now? No more safe mode?
If it is rebooting then it's done. Now all you have to do is get into fastboot mode which means holding CAMERA + POWER when turning on your phone.
on the phone is still download mode and the last line on the updater is:
3GQCT : wParam = 205, IParam = 0
Did you uncheck "Mass Storage Only" in the phone before you flashed? That may be ur problem....or try unmounting the SD.
yea, I think mass storage only was off, and sd card isnt in
What about USB debugging mode? That needs to be checked.

[HOW TO] Root Yoga Tablet 2 [STEP-BY-STEP] [NOOB FRIENDLY]

Hi?
I'm posting this thread for all those who want to root their tablet but need a step by step guide for the same. I have condensed the information from many threads and put it into one. All the credit goes to the respective thread owners who have posted the guides. Let's begin:
NOTE: Im not responsible if you brick your device. You are solely responsible for what happens. If you follow the steps correctly it is unlikely that it will harm your device. If you face any issues you can post it here and I will try to solve them ( or someone else will). All good.
Scary stuff apart, let's begin to root your device ?
1. On your device, Go to Settings, Developer Options, and click on Enable USB Debugging. If there is no Developer Options in Settings, Click on About Phone and click 7 times on Build Number. This will give u the option.
2. Once you have enabled it, connect your device to your computer via USB cable.
3. Install the device drivers from the autoplay options.
4. Right click on My Computer and click on Manage
5. A new window will open called Computer Management, under which u have to click on Device Manager.
6. A list of devices connected to your computer will be shown on the right hand side.
If your device is listed under heading Android, as Android ADB Composite Device, then there is no need to download and install adb/fastboot drivers, and you can go ahead with the rooting process.
But its most likely your device will be listed under Other Devices. Under that it will be as MTP device or by the name of your device itself. This means you have to download and install adb/fastboot drivers on your computer before rooting it.
7. Open your browser and click on http://adbdriver.com/upload/adbdriver.zip which will download the adb installer on your computer. Run through the setup and install it. Run the program, it will automatically detect your device and install the necessary adb/fastboot drivers for it on your computer.
Alternatively, you can click on http://forum.xda-developers.com/showthread.php?p=48915118 through which you can install the same. I did it with the first method for my device.
Download and install it in [C drive].
8. Once the drivers are installed, go to Device Manager again (Step 4 and 5), and check on the list of devices. Your device should be listed under the heading Android, and showing as Android ADB Composite Device.
9. Open up C drive, there should be a folder named 'adb' under it. Open that folder and right click anywhere and open a command prompt.
U can also press 'Win+R' keyboard keys and type in 'cmd.exe' to open up a command prompt and use the cd command to come into the right folder. Once your into the adb folder in the command prompt (it should show as "C://adb>".
Type in command 'adb devices' and press enter (without the colons).
This should show you that your device is connected by the name of your chipset as Baytrail******. If it doesn't show this it means the adb drivers are not installed or ur device is not connected to the computer. Only once after it detects your device you have to go ahead with your rooting process.
10. After you have successfully completed all the above steps you are now ready to root your device.
11. Click on this link forum.xda-developers.com/showpost.php?p=57543871&postcount=1 from where you will have to download 'Intel Fastboot Tethered Temporary Recovery Session Launcher' onto your computer and extract it to some folder.
12. Download the UPDATE SuperSU zip file to your device and store it in your internal memory so you can find it easily later.
13. Now open the folder where you have extracted the Intel Fastboot Tethred Temporary Recovery Session launcher. Double click the launcher.bat file to start and type " ACCEPT " case sensitive without quotes to continue.
check that the tool is reporting as either :
DEVICE STATUS: ADB-ONLINE
DEVICE STATUS: FASTBOOT-ONLINE*
If " DEVICE STATUS: UNKNOWN " please check your cable connection and driver installation under Windows Device Manager
If " DEVICE STATUS: UNAUTHORIZED "
Please check if your devices is displaying an authorization prompt.
Be sure to check 'Always allow from this computer' and then press ok.
It will ask for the type of recovery u would prefer to run. Options 1-4 will be TWRP recovery and 5 will be CWM. I selected the CWM recovery. So enter number '5' and press enter.
14. It will display the list of triggers to be selected for the rooting process. Select the trigger to launch the Temporary CWM Recovery Session.
The list will be as follows:
T1 oem startftm ( very few devices support this command , but its the original used so )
T2 oem backup_factory ( limited devices support this command )
T3 oem stop_partitioning ( should work on alot of kitkat builds )
T4 oem stop_partitioning ( probably works on all devices that are supported (Jellybean , KitKat , Lollipop)
15. Select trigger 'T4' if you have upgraded your tablet to Lollypop Android 5.0.1. After selecting the trigger your device should reboot into fastboot and begin to copy files to your device.
note :*If your device hangs at the waiting-for-device screen and you see droidboot CMD Waiting on your devices double check that the fastboot driver installed correctly.
note :*If you see unknown oem command the trigger isn't supported by your device.
16. The temporary cwm recovery session will start at this point on your device.
17. Select install zip from the recovery menu using vol up / vol down to navigate and power to select.
18. Select install zip from sdcard / external_sd depending on where you placed the file and select the UPDATE-SuperSU-vX.Xx.zip you downloaded earlier
19. Confirm the installation.
20. After install completes reboot your device*through the reboot device option in the recovery menu itself.
21. It's going to take a while for the device to reboot. 'Android is upgrading' window will pop up once the screen gets on. After the boot is complete open all apps to see Super SU installed in it.
Now you have successfully rooted your Yoga Tablet 2. Enjoy ☺
NOTE: Follow all steps carefully and correctly so it becomes highly unlikely that you may brick your device. Make sure there is no powercut to your computer during the rooting process if you are not using a laptop or a UPS for your system. You can post any queries or questions in the thread.
All credit goes to the original thread owners, social-design-concepts, workdowg for helping all yoga tablet users to be able to root their devices.
A lot of work has gone into making this NOOB friendly step by step guide. Hit thanks if this helps you. Much appreciated. Have fun rooting.☺
Posted from my Rooted Lenovo Yoga Tablet 2 (830LC).
Much appreciated for this noob guide.
Thanks for the tutorial.
I did all the steps as you said. I am at step 15 and selected t4 and then the command prompt showed waiting for device and then my tab rebooted itself and then came to a fastboot mode.
Now n TAB its showing error that "E: No valid installer medium found"
now when i press the volume keys, the boot option changes and then the error message changes to
"could not open /sys/devices/virtual/backlight"
Please help
Thanks........ successfully rooted yt2 1050L
Sent from my YOGA Tablet 2-1050L using Tapatalk
anilkumar247 said:
Thanks for the tutorial.
I did all the steps as you said. I am at step 15 and selected t4 and then the command prompt showed waiting for device and then my tab rebooted itself and then came to a fastboot mode.
Now n TAB its showing error that "E: No valid installer medium found"
now when i press the volume keys, the boot option changes and then the error message changes to
"could not open /sys/devices/virtual/backlight"
Please help
Click to expand...
Click to collapse
Did u check that ADB/fastboot drivers installed correctly? Try to reinstall those drivers and check again. Did u select the UPDATE SuperSU zip file and install it?
AndroMAN said:
Did u check that ADB/fastboot drivers installed correctly? Try to reinstall those drivers and check again. Did u select the UPDATE SuperSU zip file and install it?
Click to expand...
Click to collapse
How can i make sure they are installed correctly ?
I have reinstalled them and tried again, but still getting the same error.
I am not getting the update Super SU option, or any options to get it installed.
@AndroMAN any idea why my 64gb sdcard is not recognized.
Sent from my YOGA Tablet 2-1050L using Tapatalk
anilkumar247 said:
How can i make sure they are installed correctly ?
I have reinstalled them and tried again, but still getting the same error.
I am not getting the update Super SU option, or any options to get it installed.
Click to expand...
Click to collapse
Step 8 and 9. Check under command prompt. It should show the name Baytrail***** when you type in the command "adb devices". Only then u can go ahead.
sajsaj7829 said:
@AndroMAN any idea why my 64gb sdcard is not recognized.
Sent from my YOGA Tablet 2-1050L using Tapatalk
Click to expand...
Click to collapse
Have you rooted your tablet? Was it detecting it earlier?
AndroMAN said:
Have you rooted your tablet? Was it detecting it earlier?
Click to expand...
Click to collapse
Hv rooted...Yes 32gb was working perfect but 64gb it says blank sdcard
Sent from my YOGA Tablet 2-1050L using Tapatalk
Hi
yes, its showing the device ID
prntscr.com/948uzk
prntscr.com/948ybk
I have blackened the device ID
sajsaj7829 said:
Thanks........ successfully rooted yt2 1050L
Sent from my YOGA Tablet 2-1050L using Tapatalk
Click to expand...
Click to collapse
Good? All the best and enjoy your rooted device. Have you installed Xposed Framework on it yet?
sajsaj7829 said:
Hv rooted...Yes 32gb was working perfect but 64gb it says blank sdcard
Sent from my YOGA Tablet 2-1050L using Tapatalk
Click to expand...
Click to collapse
Try formatting the new sd card via the tablet, even I have put a 64GB card and I had to format it before it could detect.
anilkumar247 said:
Hi
yes, its showing the device ID
prntscr.com/948uzk
prntscr.com/948ybk
I have blackened the device ID
Click to expand...
Click to collapse
Sorry to hear your facing issues. There are already people saying they have successfully rooted their device using this guide. So there must be some step u might have missed or done incorrectly.
Send me the details of your device, model of tablet, which Android version.
AndroMAN said:
Good? All the best and enjoy your rooted device. Have you installed Xposed Framework on it yet?
Click to expand...
Click to collapse
Thanks.. cld u please link me to ver of xposed working on yt2.
---------- Post added at 11:25 AM ---------- Previous post was at 11:21 AM ----------
AndroMAN said:
Try formatting the new sd card via the tablet, even I have put a 64GB card and I had to format it before it could detect.
Click to expand...
Click to collapse
@AndroMAN somebody hv made a exfat binary zip to be flashed via teetherd recovery.... any idea how to go into twrp recovery.
anilkumar247 said:
Hi
yes, its showing the device ID
prntscr.com/948uzk
prntscr.com/948ybk
I have blackened the device ID
Click to expand...
Click to collapse
AndroMAN said:
Sorry to hear your facing issues. There are already people saying they have successfully rooted their device using this guide. So there must be some step u might have missed or done incorrectly.
Send me the details of your device, model of tablet, which Android version.
Click to expand...
Click to collapse
Hey i think i have the solution for your problem because everytime i am facing the same issue
That means at first adb drivers are shown as installed correctly within the window of the 'Intel Fastboot Tethered Temporary Recovery Session Launcher' tool. But after my tablet reboots into fastboot via method t4 it always says "No valid installer medium found".
Note: I have these adb drivers installed http://forum.xda-developers.com/showthread.php?t=2588979
So here is my solution that works for me: (this is my first post so i cant provide any screenshots.. )
1. let the tablet stay within the fastboot mode
2. in windows: navigate to the device manager --> there you should see the symbol "android phone" with a yellow triangle
3. right click on this symbol and choose the first option "update drivers" (sry i don't know if i translated it correctly xD)
4. choose the option "search on pc .."
5. there you select the second option "choose from a list.."
6. within the list you select 'android device'
7. within the next list you select 'google nexus adb device'
8. after that the drivers are installing and the recovery starts on your tablet :fingers-crossed:
1subw00fer1 said:
Hey i think i have the solution for your problem because everytime i am facing the same issue
That means at first adb drivers are shown as installed correctly within the window of the 'Intel Fastboot Tethered Temporary Recovery Session Launcher' tool. But after my tablet reboots into fastboot via method t4 it always says "No valid installer medium found".
Note: I have these adb drivers installed http://forum.xda-developers.com/showthread.php?t=2588979
So here is my solution that works for me: (this is my first post so i cant provide any screenshots.. )
1. let the tablet stay within the fastboot mode
2. in windows: navigate to the device manager --> there you should see the symbol "android phone" with a yellow triangle
3. right click on this symbol and choose the first option "update drivers" (sry i don't know if i translated it correctly xD)
4. choose the option "search on pc .."
5. there you select the second option "choose from a list.."
6. within the list you select 'android device'
7. within the next list you select 'google nexus adb device'
8. after that the drivers are installing and the recovery starts on your tablet :fingers-crossed:
Click to expand...
Click to collapse
That might just work :fingers-crossed:
1subw00fer1 said:
Hey i think i have the solution for your problem because everytime i am facing the same issue
That means at first adb drivers are shown as installed correctly within the window of the 'Intel Fastboot Tethered Temporary Recovery Session Launcher' tool. But after my tablet reboots into fastboot via method t4 it always says "No valid installer medium found".
Note: I have these adb drivers installed http://forum.xda-developers.com/showthread.php?t=2588979
So here is my solution that works for me: (this is my first post so i cant provide any screenshots.. )
1. let the tablet stay within the fastboot mode
2. in windows: navigate to the device manager --> there you should see the symbol "android phone" with a yellow triangle
3. right click on this symbol and choose the first option "update drivers" (sry i don't know if i translated it correctly xD)
4. choose the option "search on pc .."
5. there you select the second option "choose from a list.."
6. within the list you select 'android device'
7. within the next list you select 'google nexus adb device'
8. after that the drivers are installing and the recovery starts on your tablet :fingers-crossed:
Click to expand...
Click to collapse
Hello
That worked
But instead of google nexus adb device in the list, i got only motorola ADB device, but still it worked .
Thanks to both of you for the help.
sajju73 said:
Thanks.. cld u please link me to ver of xposed working on yt2.
---------- Post added at 11:25 AM ---------- Previous post was at 11:21 AM ----------
@AndroMAN somebody hv made a exfat binary zip to be flashed via teetherd recovery.... any idea how to go into twrp recovery.
Click to expand...
Click to collapse
There is no working mode of Xposed on YT2 as far as I have seen. Still have to look into it.
Go to recovery the same way u did last time, through 'Intel fastboot launcher:
Congratulations @anilkumar247. I hope your device is rooted and working well. And thanks to @1subw00fer1 for helping out and contributing to this thread. Great work guys. All good ☺

[GUIDE/TUTORIAL/HOWTO] Sony Xperia SP stock to Android 10

[GUIDE/TUTORIAL/HOWTO] Sony Xperia SP stock to Android 10
[GUIDE/TUTORIAL/HOWTO] Sony Xperia SP (C5303 or huashan) to Android 10 Q / LineageOS 17.1
This detailed step-by-step guide helps you transform your Sony Xperia SP to a powerful one with Android 10 Q.
To make sure you are with a Xperia SP / C5303 / huashan:
On the smartphone, go to Settings > About phone. Check that the "Model number" is correct : C5303.
Just below note the "Android version". It must be 4.3.
### We need to make sure Bootloader can be unlocked before going further.
Open dialer, enter code
Code:
*#*#7378423#*#*
In the follow menu, go to Service info > Configuration > Rooting status.
Bootloader unlock allowed: Yes
If it is set on No, you cannot update your device. You can quit this tutorial and cry, you will never unlock it.
### You must be logged as a Microsoft Windows administrator to run console commands below.
### When you lose control of your Xperia SP, hold Power + Volume+ until tab restarts.
CHANGELOG -------------------
v1. Initial release
1) DOWNLOAD FILES
- djibe Xperia SP pack (~ MB): http://bit.ly/djibe-xperiasp-pack
(contains FlashTool Xperia Driver Pack 1.8 for USB drivers + fastboot + recovery TWRP 3.4.0-0 + flashable TWRP 3.4 + Magisk root + Smartpack Kernel Manager)
+ ROM LineageOS 17.1 https://forum.xda-developers.com/xperia-sp/orig-development/rom-lineageos-17-1-xperia-sp-t4147075
Download latest build: https://mega.nz/folder/r11xAbSL#Lwt5FOvHpV1POu_3OHU6Uw
+ OpenGApps ARM 10 Pico: https://opengapps.org/?arch=arm&api=10.0&variant=pico
+ Charge phone to 100 %.
NB. Use a USB2 port to connect tablet to PC.
2) INSTALL DRIVERS
Commands below are for Windows 10 installation of unsigned drivers.
### For other Windows versions, Google "windows X install unsigned driver".
On the keyboard of PC, use "Windows key + R" combo.
In the command prompt that opens, type:
Code:
shutdown -r -t 0 -o
This opens a Windows menu:
Go to Troubleshooting > Advanced Options > Settings > Restart
Upon restart, press on keyboard : key 7 - Disables drivers signature verification
After boot,
Start Flashtool Xperia Driver Pack 1.8,
check the Flashmode Drivers, Fastboot drivers, Common drivers Viskan board, start the installation and confirm the
forcing the driver installation. It ends by saying that everything was installed.
Restart Windows.
2bis, optionnal, FOR WARRANTY PURPOSE) Backup bootloader
Cannot help you precisely, didn't know about it at the time.
- Root. Follow Bin4ry root : http://forum.xda-developers.com/showthread.php?t=1886460
Download : http://forum.xda-developers.com/showthread.php?t=1886460
- Then Backup TA. https://github.com/DevShaft/Backup-TA
Unzip it in C:\
Make sure partition is saved.
3) BACKUP ALL YOUR DATA
Backup every SMS, photo, app login or sync everything in the cloud.
You will lose everything, including what is contained in the microSD card during bootloader unlock.
So backup everything and transfer every file to your computer.
### Do it now or you will regret it.
4) IMEI NUMBER AND UPDATES
On phone, go to Settings > About phone > Status > IMEI
Note the IMEI (15 digits). Store it.
If your Android version is lower than 4.3 (refer to beginning of tutorial),
connect to your Wifi network,
go to Settings > About phone > Software update > System.
5) MAKE SURE PHONE IS NOT SIMLOCKED
We need to check phone is not SIMlocked.
Open dialer, enter code again
Code:
*#*#7378423#*#*
Go to Service info > SIM lock. If everything is blank/unchecked ( [] ), phone is Desimlocked.
If not, you must contact your network provider for an unlock code.
### Don't move further until phone is simlocked. You cannot debrand/desimlock it using a custom ROM.
6) GENERATE BOOTLOADER UNLOCK CODE
From your PC, go to https://developer.sony.com/develop/open-devices/get-started/unlock-bootloader/
At the bottom of the page, in "Select your device:" menu: select Xperia SP.
Enter your IMEI, check first 2 checkboxes "I acknowledge that", click Submit and complete the captcha to generate unlock key.
Note the unlock code (beginning and end of page paragraph C.)
7) CONNECT PHONE IN FASTBOOT MODE
Phone powered off, hold "Volume up" while you plug phone in USB.
The blue light appears at the front bottom edge, the drivers install in Windows.
8) UNLOCK BOOTLOADER
In Windows, copy the path to the "flash" folder you unziped earlier.
Open a Windows command prompt : Start menu > Command prompt > Start as administrator
Then type
Code:
cd /d thePathToFlashFolder
(ex: E:\root\djibe Sony Xperia SP\flash)
Type:
Code:
fastboot getvar version
If "version: 0.5" is returned, drivers are correctly installed.
Create this text: fastboot -i 0x0fce oem unlock 0xAPPENDYOURUNLOCKCODE
Paste the previous line in windows command:
Code:
fastboot -i 0x0fce oem unlock 0xYOURUNLOCKKEY
confirm with Enter. After 5 seconds, it is displayed Finished. Total time: ...
Bootloader is unlocked !
9) FLASH TWRP RECOVERY 3.4
Still in fastboot, type in console :
Code:
fastboot flash boot twrp-3.4.0-0-huashan.img
. Confirm with Enter.
Wait, then once the confirmed success,
type :
Code:
fastboot reboot
(confirm with Enter).
AND while it restarts, repeatedly click Volume+ AND Volume- buttons to access the recovery (can take a while).
Leave phone connected to PC.
10) BACKUP CURRENT ROM AND USE TWRP RECOVERY
You are now in TWRP recovery,
check Never show this screen during boot again and Swipe to Allow modifications.
Go to Backup, select all partitions.
Tap on Select Storage > select Internal Storage and confirm with OK.
Then swipe to start backup.
Click the TWRP icon to return to home.
Go to Mount. Select Data partition and make sure bottom right button is dsiplaying Disable MTP text.
Phone must be connected to computer.
In Windows Explorer, open Xperia SP device > Internal Storage.
Copy whole TWRP folder and save it somewhere safe on your PC.
Copy twrp-3.4.0-20200808-fota-huashan.zip in your Internal storage folder.
11) INSTALL A PERMANENT TWRP RECOVERY
The TWRP recovery you are using is temporary.
We need to flash it on a partition.
Back to TWRP home menu > Install > tap on twrp-3.4.0-20200808-fota-huashan.zip and Swipe to confirm flash.
12) FORMAT PARTITIONS
### Last warning before losing all your Data. Backup
Go back to Home menu.
Go to Wipe > Data Format, type yes and click OK.
Go Wipe > Wipe Advanced > Select Cache, Data and swipe to confirm flash.
Still from Windows Explorer, copy ROM + OpenGapps + Magisk on phone.
13) INSTALL ROM AND GOOGLE APPS
Still under TWRP home menu.
Go to Install > select lineage*.zip.
### If no file is visible, click Storage > select Internal Storage.
### If you get an error and flash fails, go to Reboot > Recovery and wait for TWRP to reboot.
Add more zip > OpenGapps*.zip file
Swype to confirm flash.
Wait while Install Zips are flashed.
At the end, select Wipe Dalvik and cache, Do not install TWRP app and then Reboot system.
Wait during long first boot.
Enhoy your new phone.
14) ROOT
Magisk grants you superuser privileges from boot.
No extra Root manipulation needed.
Configure Android as you like.
14) OVERCLOCK (optionnal)
Open built-in Files app.
Open microSD folder.
Install Smartpack Kernel Manager app from my pack.
Launch app and grant root access.
Go to CPU menu > Apply on boot, CPU Maximum Frequency 1728 MHz
13) Others
For faster GPS fix, use GPS Status and Toolbox and downlaod A-GPS data.
Your tablet is a rocket, enjoy
Thanks: LineageOS team, TWRP team, OpenGApps team, Flashtool Xperia Driver pack team, @CaHbKaUp, @CyberWalkMaN, @AdrianDC, Chippa_a, @Rootk1t
I respect your diligence. :good:
You have already created 17 guides of this type.
The devil is in the details.
Do you have all these 17 devices and have gone through step by step or have you created the guides based on the information collected from the XDA?
.
Hi @ze7zez.
Good question !
I started with my own Nexus One. It was horrible, XDA is not for mega noobs.
It then took me one whole week to flash Asus transformer Prime from my brother-in-law. Then I started writing detailed tuto for Android.
I hacked my parents phones and mine. But I had too few devices in my hands.
So recently I discovered my tutorials were read by 500.000+ users, so I think it is useful.
Now I buy second hands phones, 36€ for this Xperia SP (the first one was 30€ and Bootloader unlockable )
It took me the day (today) to write this tuto. I made screenshots for the first time and will publish it on ifixit.
I gonna sell both Xperia SP and I want a Nexus 4 now
Need some guidance
Hi, I am coming back to this device after almost 6 years. I was well versed in flashing ROMs etc then but I seem to have lost most of that knowledge now. Last I used this device, I had already rooted it, unlocked bootloader, IIRC changed the kernel, put a custom ROM "CM 11-20150901-SNAPSHOT......." As I recall I also installed both TWRP and CWM recoveries, made a backup of Stock ROM. The thing is I remember having issues with booting into either recovery which I some how corrected, but it again started giving me problems. Right now I can't boot into either of the recovery with either Power+Volume UP/Down, after the Sony logo the screen just remains black. I have to restart the phone with restart button in the back panel. Can you please guide me as to how to proceed. I want to get to this latest build but I can't even get into recovery. Thanks in advance.
Hi @shalabhvickysom, you can activate Developer Options > then Android Debug Bridge ADB.
Then use a computer and a terminal: adb reboot bootloader or adb reboot recovery.
Keep us informed.
Hi @shalabhvickysom, you can activate Developer Options > then Android Debug Bridge ADB.
Then use a computer and a terminal: adb reboot bootloader or adb reboot recovery.
Keep us informed.

[GUIDE/TUTORIAL/HOWTO] Nvidia Shield Tablet K1 Stock to Android 9

[GUIDE/TUTORIAL/HOWTO] Nvidia Shield Tablet K1 (shieldtablet) to Android 9 / LineageOS 16
This detailed step-by-step guide helps you transform your Nvidia Shield Tablet K1 tablet with Android 7 to a fresher one with Android 9.
### I'll make a few notes using this style: PLEASE READ THEM.
Before going further, make sure you have the correct model.
Go to Settings > About tablet > Model number: SHIELD Tablet K1
Make sure you have latest official updates.
Connect tab to Wi-Fi network.
Go to Settings > About tablet > System upgrade. Download if update is available.
See all my tutorials at https://github.com/djibe/Android-tutorials
CHANGELOG
v1. Initial release
1) DOWNLOAD
- djibe Shield pack: https://bit.ly/nvidiashielddjibepack
(contains USB drivers + fastboot & adb + TWRP 3.7 recovery + Magisk root).
Unzip pack on Windows desktop.
- ROM AOSPExtended Unofficial: https://forum.xda-developers.com/t/...ded-rom-v6-7-unofficial-shieldtablet.4063675/
Download latest build: https://androidfilehost.com/?w=files&flid=306219&sort_by=date&sort_dir=DESC
OR Android 8.1 / LineageOS 15 Unofficial: https://forum.xda-developers.com/t/...for-shield-tablet-omx-camera-working.4276915/
Download latest build: https://androidfilehost.com/?w=files&flid=325335&sort_by=date&sort_dir=DESC
And suitable Bitgapps package
+ BitGApps ARM 9 v1.8+: https://github.com/BiTGApps/BiTGApps-Release/releases/
+ Tablet must charged to 100%.
2) INSTALL WINDOWS DRIVERS AND BACKUP
Go to the folder you unzipped earlier.
navigate to SHIELD_Family_WHQL_USB_driver_201801 > SHIELD.
Right click on android_winusb.inf and select Install. Confirm with OK.
Restart Windows.
Make sure Google/provider account is synchronized.
Backup photos, documents, contacts before going any further (ex: use the backupyourmobile app).
Connect tab to PC and retrieve data.
3) UNLOCK BOOTLOADER OF NVIDIA SHIELD TABLET K1
In Android, go to Settings > About tablet.
Tap 7 times on "Build number", a notification confirms Developer menu is unlocked.
Go to Settings > Developer options and switch USB debugging ON.
Go to my /djibe folder you unziped earlier. In Windows address bar (ie E:\root\Nvidia Shield Tablet K1\djibe\flash), type cmd and hit Enter
to open a Windows Command.
Connect tablet to PC.
Enter command
Code:
adb devices
Command starts adb and returns
Code:
0424916025732008b275 unauthorized
ADB (Android Debug Bridge) has started but tab is waiting for authorization.
On tablet, authorize adb commands from Allow USB debugging dialog: tap on OK.
Then enter command
Code:
adb reboot bootloader
Tab restarts and displays nvboot screen.
Make sure [bootloader](version xxx) is 4.00.2016.04.
Go to Windows Device manager.
Check the Fastboot device > right click to update driver.
Select the manual installation and set SHIELD_Family_WHQL_USB_driver_201801 folder to install fastboot USB drivers.
Installation ends with Android Bootloader Interface.
You may have to unplug-replug tablet in USB.
Tablet should now be seen in Windows Device manager as Android Device > Android Bootloader Interface.
To test, back to Windows command, enter:
Code:
fastboot devices
Command returns
Code:
0424916025732008b275 fastboot
Enter command
Code:
fastboot oem unlock
Using Volume+, select Yes - Unlock bootloader, confirm by pressing Power.
Lowest message is now: LOCK STATE - unlocked
### Unable to run fastboot commands: < waiting for device > ? Go to Windows Device Manager
### While in ADB, driver for Android Device should be named Android Composite ADB Interface. In Fastboot: Android Bootloader Interface
### Click on View > Display hidden devices, right click on Nexus 7 > Uninstall. Reinstall drivers. No success ? Try from another computer
Use Volume keys to select Unlock bootloader and Power to confirm.
Tablet is unlocked.
Press Volume- to select Fastboot protocol and confirm with Power.
4) FLASH TWRP 3.7 RECOVERY
From Windows command, enter:
Code:
fastboot flash recovery twrp-3.7.0_9-0-shieldtablet.img
Command returns Finished. Total time: 0.995s
Back to tablet, use Volume keys to select Recovery mode, confirm with Power.
Wait during recovery boot.
Welcome to TWRP recovery.
Check Never show this screen during boot again and Swip to Allow Modifications.
Go straight to Backup > select Boot, System, Data partitions.
Swipe to Backup and wait during backup.
Back to home screen > Mount (tablet still connected to PC).
You can access tablet's storage folders from Windows Explorer if Data partition is checked and bottom right button show Disable MTP (within TWRP Mount menu).
From Windows Explorer, navigate to SHIELD Tablet > Internal Storage.
Copy TWRP folder and paste it somewhere safe on PC.
This is a perfect backup in case of crash.
5) FORMAT PARTITIONS
On tablet, now go to Wipe > Format data.
Type yes and confirm with bottom right check icon.
Now go to Wipe > Advanced Wipe. Select Dalvik / ART Cache, System, Cache, Data, Internal Storage and Swipe to Wipe.
We cannot flash on wiped partitions. Go to Reboot > Recovery and Swipe to Reboot.
6) FLASH ANDROID + GAPPS (+ MAGISK)
On restart, check Never show this screen during boot again and Swipe to Allow Modifications.
Connect tab to PC.
Back to Mount menu.
Copy ROM + GAPPS (+ Magisk) to Internal storage with Windows Explorer.
Go to TWRP Home > then Install.
Navigate to /data/media.
Select aosp-*.zip,
Add more zips > bitgapps*.zip
and Swipe to force install.
(For root, needed for Netflix : Reboot > Reboot to recovery then Install > Magisk.zip)
Android 9 is installed !
When done message prompts, tap on Wipe Cache/Dalvik and Swipe to Wipe.
Disconnect tab from PC.
Then Reboot System.
Let the tab start (a few minutes).
7) OPTIONAL: ROOT WITH MAGISK
### Only if you flashed Magisk via TWRP recovery
Configure Android as you like.
Magisk root starts with Android.
You can manage permissions and extra modules with Magisk Manager app.
10) OTHER APPS
- You can use GPS Status & Toolbox for faster GPS fix.
- Developer options
Settings > About tablet.
Tap 7 times on build number.
Back to Settings > Developer options
Set Windows animation scale, Transition animation scale and Animator duration scale to .5x
- Tablet not seen by Windows ?
Activate Developer options.
Go to Settings > System > Developer options > Default USB configuration > File transfer
That's it.
Enjoy ;-)
Thanks: @followmsi, @k23m, @nbehary, @DevSwift1, @flex1911, @yattodettaman, @emmett.tsai, TopJohnWu, TWRP team, LineageOS team, BitGApps team
------------------------------------------------------------------------------------------
BOOT TO RECOVERY
Hold Power + Volume- until Droid logo appears and release buttons, this is Bootloader.
Press Volume- twice to show Recovery mode and confirm with Power
I've done this, then struggled a bit to pass safetynet, finally was able to install netflix, but it stays on boot logo and after a while gives me error 501 172. How can I make netflix work?
tandero said:
I've done this, then struggled a bit to pass safetynet, finally was able to install netflix, but it stays on boot logo and after a while gives me error 501 172. How can I make netflix work?
Click to expand...
Click to collapse
Same here.
I need time to investigate.
tandero said:
I've done this, then struggled a bit to pass safetynet, finally was able to install netflix, but it stays on boot logo and after a while gives me error 501 172. How can I make netflix work?
Click to expand...
Click to collapse
I'm back,
this tutorial worked like a charm for me at this hour: https://www.droidwin.com/how-to-pass-safetynet-on-rooted-android-12/
But I did pass the safetynet earlier, it is just the application still gave me error 501, 172. I will try to include missing steps because some are the same as I performed and see if application will run.
tandero said:
But I did pass the safetynet earlier, it is just the application still gave me error 501, 172. I will try to include missing steps because some are the same as I performed and see if application will run.
Click to expand...
Click to collapse
What YASNAC app is writing ?
Added Netflix to Zygisk DenyList and cleared app data ?
yasnac:
basic integrity - pass
cts profile match - pass
evaluation type - basic
no, but just did and rebooted and still there is the same problem (i think, it is still on netflix logo, did not give an error yet), i will update this post soon
edit:
resulted in error 500 172 (https://help.netflix.com/en/node/125643)
tandero said:
yasnac:
basic integrity - pass
cts profile match - pass
evaluation type - basic
no, but just did and rebooted and still there is the same problem (i think, it is still on netflix logo, did not give an error yet), i will update this post soon
edit:
resulted in error 500 172 (https://help.netflix.com/en/node/125643)
Click to expand...
Click to collapse
Add Netflix to Zygisk DenyList (+ other services like in Droidwin post) and clear Netflix app data
Done that once again (cleared app data of netflix and google play store, google play servcies and google services framework).
Unfortunately right now it is stuck on logo, and did not give me the error yet. Which method have you used?
Rom works pretty good on my K1, much better/faster than stock. Battery drain is still there but is nowhere near as bad on a stock rom (I have a brand new battery installed).
For some reason the headphone jack is not compatible with this rom at all (plugging in headphones does nothing). Anyone else notice this?

Categories

Resources