Guide for Safe installation of any custom rom on your stock rom mobile - Sony Xperia ZL

Installation Steps (Warranty can be restored whenever you wish)
-------------------------
Before starting your rom flashing journey it is always better to have Flashtool (latest -by androxyde) installed in your PC and your stock rom handy ; incase of any mishappenings.
Type *#*#7378423#*#* in your phone and see if your bootloader status is unlockable under service-->Configuration. Procede with below steps, only if your device is unlockable.
It is important that you follow the steps in order
1) First step for installing a custom rom over a mobile with stock rom is to backup the existing state of bootloader .Usually warranty will get void if any modification is done to bootloader. The below tool ensures that it takes the backup of existing state of bootloader when device is under warranty.
Goto
Backup TA for Sony Xperia (This tool helps you to have a )
http://forum.xda-developers.com/showthread.php?t=2292598.
Download the tool.This tool will backup your DRM Securtiy keys . Successful backup can only be taken after the existing stock rom is rooted (Use towelroot application if your device is not already rooted) .Root it first then follow the process given in above link .
Once this is over , u will have a backup of the existing state of bootloader/TA partition (If you later wish to move back to stock rom from custom rom use the same tool to restore the backup you have just created.This means you will get your Warranty back);
2) Goto this website , follow the steps and get your unlock code via e mail.
Use fastboot mode to unlock your bootloader (Make sure that you have already backuped your existing DRM keys-Step 1).Follow it fully to unlock your bootloader
http://unlockbootloader.sonymobile.com/unlock/step1
3)Download any custom rom zips with recovery, for your mobile from xda developers forum and have fun.Extract boot.img using winrar or winzip .
Flash boot.img via fastboot mode
fastboot flash boot boot.img
fastboot reboot
4)As the device reboots, when you see your LED glow press volume up or down. It will take you to CWM Recovery or TWRP recovery based on the rom that you have downloaded.
5)Just install the custom rom(*.zip ) from within the recovery.

What if that i already have the custom recovery?
So, just wipe data, dalvik, and cache, then flash the zip?
That's it?

AndreIrawan97 said:
What if that i already have the custom recovery?
So, just wipe data, dalvik, and cache, then flash the zip?
That's it?
Click to expand...
Click to collapse
yes.

AndreIrawan97 said:
What if that i already have the custom recovery?
So, just wipe data, dalvik, and cache, then flash the zip?
That's it?
Click to expand...
Click to collapse
Absolutely right. But before installing an custom rom in the first place i hope you have already backed up your DRM keys for warranty purpose(as mentioned in the guide) since if you unlock your bootloader without backing up your DRM keys, DRM keys might be lost forever .

gokukaushik said:
Absolutely right. But before installing an custom rom in the first place i hope you have already backed up your DRM keys for warranty purpose(as mentioned in the guide) since if you unlock your bootloader without backing up your DRM keys, DRM keys might be lost forever .
Click to expand...
Click to collapse
Can i backup my app on stock rom then restore it to a custom rom?

AndreIrawan97 said:
Can i backup my app on stock rom then restore it to a custom rom?
Click to expand...
Click to collapse
Sure. Easiest way to do it is by using an app called, 'Titanium Backup Pro'.But you have to root your stock rom first for this application to run(Use towelroot if you are yet to root).Except for sony proprietary apps like walkman,Album,etc (will run only on stock rom as they use sony developed system libraries/API'S) other apps will get restored/run fine on a custom rom.

gokukaushik said:
Sure. Easiest way to do it is by using an app called, 'Titanium Backup Pro'.But you have to root your stock rom first for this application to run(Use towelroot if you are yet to root).Except for sony proprietary apps like walkman,Album,etc (will run only on stock rom as they use sony developed system libraries/API'S) other apps will get restored/run fine on a custom rom.
Click to expand...
Click to collapse
And one think left.... How to know if my bootloader is unlocked or not?

AndreIrawan97 said:
And one think left.... How to know if my bootloader is unlocked or not?
Click to expand...
Click to collapse
its in the OP....on the phones dialpad, type: *#*#7378423#*#*
then look in > service > configuration
it should show the status as "bootloader locked", "bootloader unlocked", "bootloader unlockable" or "not unlockable" (sorry wording may not be exact, but you'll get the idea)

foomanjackel said:
its in the OP....on the phones dialpad, type: *#*#7378423#*#*
then look in > service > configuration
it should show the status as "bootloader locked", "bootloader unlocked", "bootloader unlockable" or "not unlockable" (sorry wording may not be exact, but you'll get the idea)
Click to expand...
Click to collapse
no.. i mean, how to know if my bootloader is already unlocked or not?
Anyway, what happened if i flash it without unlocking it first?

Sorry, did you type that in the phone and check the status? That's where it will tell you if its already unlocked or if its even unlockable at all.
Do not try to install a custom ROM on your phone if it is not unlocked! Your phone will not boot.

AndreIrawan97 said:
no.. i mean, how to know if my bootloader is already unlocked or not?
Anyway, what happened if i flash it without unlocking it first?
Click to expand...
Click to collapse
Thanks to @ foomanjackel for answering your questions.Regarding your 2nd question, 'Experience is the mother of invention'.Why don't you try and see what happens...just kidding.Couldn't resist it. Practically speaking of you install a custom rom with an custom kernel on a locked bootloader you will hard brick it.It will not boot and chances are that you might not be able to goto flashmode or fastbootmode anymoreto repair it.Reason this happens is that both your recovery and bootloader resides in the same partition in your mobile.If you try to install custom kernel on a locked bootloader in every probability, it not only corrupts your existing stocks kernel but also might corrupt your recovery leaving u helpless.
Theoretically, You should be able to install any custom-stock based rom on a locked bootloader (which runs exactly on ur stock kernel).In other words a custom rom which doesn't come up with a custom kernel but based on your existing stock kernel should be able to run on a locked bootloader.But my advice is you do not risk it.

foomanjackel said:
Sorry, did you type that in the phone and check the status? That's where it will tell you if its already unlocked or if its even unlockable at all.
Do not try to install a custom ROM on your phone if it is not unlocked! Your phone will not boot.
Click to expand...
Click to collapse
Yes it said boot loader unlockable : yes
And couple months ago, i want to unlock my bootloader, but i dont know what went wrong, but my xperia got boot loop...
So is that bcs i already unlocked it? Or... ?

AndreIrawan97 said:
Yes it said boot loader unlockable : yes
And couple months ago, i want to unlock my bootloader, but i dont know what went wrong, but my xperia got boot loop...
So is that bcs i already unlocked it? Or... ?
Click to expand...
Click to collapse
If you get this message "Bootloader unlockable: yes" then your bootloader is still locked.

gokukaushik said:
If you get this message "Bootloader unlockable: yes" then your bootloader is still locked.
Click to expand...
Click to collapse
Is unlocking bootloader can make me lose my root?

AndreIrawan97 said:
Is unlocking bootloader can make me lose my root?
Click to expand...
Click to collapse
I suppose it won't.I don't see the reason why u want to unlock the bootloader unless you want to install a new custom rom.

Related

[Q] Xperia SL from stock to beast :)

Hi,
I'm new and quite a newbie with android so, please bare with me
I will try to write a comprehensive guide on this during the process.
My device is XperiaSL LT26ii / Android 4.1.2 / Kernel 6.2.B.1.96 (stock, or default kernel) Rooted with bootloader locked. Busybox installed.
So the only thing I'v done after buying is rooting it.
- How to fully-backup / recovery if anything goes wrong
Before doing any operation with it I wanted to backup everything (applications, ROM, System, documents) , and I hear that there is CWM or Xrecovery for that (mentioned in some guides), nandroid, but I found different applications on Playstore and don't know which one is the right one for my device.
I understand that backing up and restoring each of these system parts requries order and probably different applications,
Can we specify here which app should I use and how it's done?
- ROM and Kernel without unlocking possibly
http://forum.xda-developers.com/showthread.php?t=2593806 it looks like possible but considering that now there is cm-11 out and not yet for "nozomi" http://download.cyanogenmod.org/?device=nozomi , I would like to try any stable, fast , light ROM out there which works for my device. Preferibly with possibility to remove any google app .
If not, how can I unlock the bootloader and do the rest?
I saw also http://forum.xda-developers.com/showthread.php?t=1617219 which looks a nice kernel.
So , what's the most adaptive ROM / kernel for my phone and how to install / flash them?
- Getting back the applications
Once it's done, how to restore back applications and data? / with what tool, without loosing anything.
Download flashtool (xda fileserver)
You can use that to unlock your bootloader
Also backbuton = volume up = BOOTLOADET MODE
Menu button = volume down =flashmode
May come in useful for unlocking your Bootloader
Also emma flashtool isnt the same as this flashtool
Also google if your not sure
If you want to know anything else then ask
Sony Xperia S was my first android
Had a nokia brick before (3310)/N95)
Envious_Data said:
Download flashtool (xda fileserver)
You can use that to unlock your bootloader
Click to expand...
Click to collapse
Thanks.
Before unlocking the bootloader , I'd like to backup everything with CWM or Xrecovery or nandroid ,
I tried installing CWM but it said my phone was not supported, so I gues I'm on the wrong place, so could you point to the right CWM?
Also, CWM I think recovers only the ROM and the kernel but no system applications, any app to do that and save everything to my PC?
xperiasl said:
Thanks.
Before unlocking the bootloader , I'd like to backup everything with CWM or Xrecovery or nandroid ,
I tried installing CWM but it said my phone was not supported, so I gues I'm on the wrong place, so could you point to the right CWM?
Also, CWM I think recovers only the ROM and the kernel but no system applications, any app to do that and save everything to my PC?
Click to expand...
Click to collapse
for locked bootloaders recovery try this......http://forum.xda-developers.com/showthread.php?t=2308493.....
after that go into recovery and make a nandroid backup of ur fon.....this will create a backup image of ur fon including rom,kernel,system applications.....them u can save it on ur pc....
mohit378 said:
for locked bootloaders recovery try this......http://forum.xda-developers.com/showthread.php?t=2308493.....
after that go into recovery and make a nandroid backup of ur fon.....this will create a backup image of ur fon including rom,kernel,system applications.....them u can save it on ur pc....
Click to expand...
Click to collapse
Thanks,
on the post it says "rooted STOCK JB ROM .200 with busybox installed"
the only thing is that I donwloaded the official .201 , is there any CWM version for locked bootloaders for that?
xperiasl said:
Thanks,
on the post it says "rooted STOCK JB ROM .200 with busybox installed"
the only thing is that I donwloaded the official .201 , is there any CWM version for locked bootloaders for that?
Click to expand...
Click to collapse
chk out this for XPERIA SL...http://forum.xda-developers.com/showthread.php?t=2245327....
mohit378 said:
chk out this for XPERIA SL...http://forum.xda-developers.com/showthread.php?t=2245327....
Click to expand...
Click to collapse
As you suggested DRW Backup tool I will probably go ahead and unlock the bootloader, the only thing is now that I'm stuck at the backup point,
Before flashing the ROM or any kernel they say "backup", and it's used CWM or other tools, and when you go to install CWM they say backup first before installing...
Am I missing something here?
It's like a loop but no solution on how to backup what it's currently installing before putting any CWM or flashing a kernel...
How did you get out of this?
hey mate first of all backup ur TA partition....then unlock ur bootloaders.....then u can flash any custom kernel with CWM recovery......from recovery u can flash any custom rom or mod .zip file.....
UNLOCKING ur bootloaders voids ur warranty so always make a TA backup before unlocking.....u can search various thread for root,unlocking bootloaders,flashing custom kernel,custom roms within the thread.....
Hope this helps.....
mohit378 said:
hey mate first of all backup ur TA partition....then unlock ur bootloaders.....then u can flash any custom kernel with CWM recovery......from recovery u can flash any custom rom or mod .zip file.....
UNLOCKING ur bootloaders voids ur warranty so always make a TA backup before unlocking.....u can search various thread for root,unlocking bootloaders,flashing custom kernel,custom roms within the thread.....
Hope this helps.....
Click to expand...
Click to collapse
Yep, thanks that's all clear, what I wanted to know is how to backup everything before installing any custome kernel/ROM or Recovery tool (CWM, Xrecovery, etc)..
Got it,
http://forum.xda-developers.com/showthread.php?t=2075736
Basically we need SUS, we update and get the files, than we decrypt and get a perfect image of the system + we backup with PC Companion + We backup the TA partitions with TA-backup and we are ready to go

[Q] [Newbie]Troubles reading ftf files

Hi,
I'm new to rooting and flashing custom ROMs, so any help will be greatly appreciated
I'm using an orange xperia lt15i, that I've decided to root and on which I want to run CyanogenMod 9.1
Here's what I've come up with :
flashing a generic ftf to debrand my phone, in orded to unlock the bootloader
install recovery
unlock boot loader
flash CM
The catch is, flashtool (0.9.16.1) can't read any of the ftf files I put in the firmware directory..any idea ?
Did I get the steps in the right order, is there any way to achieve this at all ?
Thanks
Deathtiny said:
Hi,
I'm new to rooting and flashing custom ROMs, so any help will be greatly appreciated
I'm using an orange xperia lt15i, that I've decided to root and on which I want to run CyanogenMod 9.1
Here's what I've come up with :
flashing a generic ftf to debrand my phone, in orded to unlock the bootloader
install recovery
unlock boot loader
flash CM
The catch is, flashtool (0.9.16.1) can't read any of the ftf files I put in the firmware directory..any idea ?
Did I get the steps in the right order, is there any way to achieve this at all ?
Thanks
Click to expand...
Click to collapse
maybe file is wrong download here a new one. this works 100% LINK
also use normal flashtool not 64bit.
install drives from flastool install dir/drivers for your phone
install android sdk (just leave all like it is & press install)
now to the process:
flashing a generic ftf to debrand my phone, in orded to unlock the bootloader i dont think this is need. on sony bl unlock site theres mentioned how to get in service menu & look if bootloader unlock allowed: yes or no. if yes just proceed. any way, CM requires flashng stock ics ftf b4 so do it after unlock...
install recovery no need if you flash CM's kernel later it was recovery built in (all custom)
unlock boot loader
flash cm kernel via fastboot
flash CM dont forget gapps! (google apps)
bejunk said:
maybe file is wrong download here a new one. this works 100%
also use normal flashtool not 64bit.
install drives from flastool install dir/drivers for your phone
install android sdk (just leave all like it is & press install)
now to the process:
flashing a generic ftf to debrand my phone, in orded to unlock the bootloader i dont think this is need. on sony bl unlock site theres mentioned how to get in service menu & look if bootloader unlock allowed: yes or no. if yes just proceed. any way, CM requires flashng stock ics ftf b4 so do it after unlock...
install recovery no need if you flash CM's kernel later it was recovery built in (all custom)
unlock boot loader
flash cm kernel via fastboot
flash CM dont forget gapps! (google apps)
Click to expand...
Click to collapse
Ok so I rechecked service info and status says no, eventhough I remenbered differently and got an unlocking code from sony..
Anyway, guess the best I can do is now limited to rooting...
Thanks
Deathtiny said:
Ok so I rechecked service info and status says no, eventhough I remenbered differently and got an unlocking code from sony..
Anyway, guess the best I can do is now limited to rooting...
Thanks
Click to expand...
Click to collapse
there are several methods of unlocking the bootloader such as testpoint...but its not that easy for newbe...
http://forum.xda-developers.com/showthread.php?t=2737846
look at this maybe it helps

[Q] How to be sure that Bootloader is Unlocked, still receiving OTA updates

Hi I am a newbie. I had rooted my phone using Towel-root method and am even using xposed framework and am running stock version. After this to Unlock my Bootloader I fallowed procedures as given by sony, but after i entered unlock command in cmd, my xpeira m went into bootloop.
I tried repaing usning pc companion it said that my mobile has been modified and cant repair, and hence using flashtool flashed stock xperia m rom and had to root again.
But the problem is that I still receive OTA updates from Sony for Walkman and album apps. If my booloader is unlocked I shouldn't be recieving those right ? How can I confirm for sure without flashing anything ?
Another question: Now If i flash CWM from here http://forum.xda-developers.com/xpe...ery-philz-touch-6-41-6-xm-dual-t2795778/page2 will that erase my rom ? I mean do I have to flash my stock rom and reroot after flashing CWM for my device to work ?
i think i have an answer
raghu18 said:
Hi I am a newbie. I had rooted my phone using Towel-root method and am even using xposed framework and am running stock version. After this to Unlock my Bootloader I fallowed procedures as given by sony, but after i entered unlock command in cmd, my xpeira m went into bootloop.
I tried repaing usning pc companion it said that my mobile has been modified and cant repair, and hence using flashtool flashed stock xperia m rom and had to root again.
But the problem is that I still receive OTA updates from Sony for Walkman and album apps. If my booloader is unlocked I shouldn't be recieving those right ? How can I confirm for sure without flashing anything ?
Another question: Now If i flash CWM from here http://forum.xda-developers.com/xpe...ery-philz-touch-6-41-6-xm-dual-t2795778/page2 will that erase my rom ? I mean do I have to flash my stock rom and reroot after flashing CWM for my device to work ?
Click to expand...
Click to collapse
Hi raghu,
see answer to ur first question, i dont think bootloader status will effect ur updates , because at first i tried to install CWM and went into bootloop , before that i unlocked my bootloader using flashtool, so i flashed .ftf file and went back to stock , when i tried to flash CWM i noticed that my bootloader was still unlocked , flashing .ftf didnt change it at all. i dont know whether this happened to me accidentally or it will really doesnt effect ur bootloader status but the answer is bootloader status will not effect ur updats ( as far as i knw).
answer to ur 2nd question is no it wont erase ( i am sure about it :good ur current ROM, if u flash it right. Dont worry i tried that recovery before, its gud and flash carefully, dont end up into bootloop once again ..safe flashing
thnx :good::good:
Your device's bootloader is absolutely locked if you are still receiving the OTA updates (and installing ). And I would suggest you to check the Bootloader status in Flashtool.
No flashing the CWM will not affect your current ROM
XDAOwner!! said:
Your device's bootloader is absolutely locked if you are still receiving the OTA updates (and installing ). And I would suggest you to check the Bootloader status in Flashtool.
No flashing the CWM will not affect your current ROM
Click to expand...
Click to collapse
Thnx mate really helped me.
If I flash cwm on Locked Bootloader
Thank you guys for explanation. Please describe how I can check if my bootloader is locked using flashtool ??? and what happens if cwm is flashed on locked bootloader ( Just in case )
raghu18 said:
Thank you guys for explanation. Please describe how I can check if my bootloader is locked using flashtool ??? and what happens if cwm is flashed on locked bootloader ( Just in case )
Click to expand...
Click to collapse
hey there,
open flashtool and look at the figure below
https://www.dropbox.com/s/ncyza0776myusll/Capture.PNG?dl=0
connect ur phone in flashmode and click on the BLU icon , then it will automatically get the code for ur IMEI and all u need to do is click Unlock and if u flash CWM on locked bootloader it wont work and u may end up in bootloop ( nt sure abt that coz never tried till nw )
hit thanks if this helps.:good::good::good:
hope this helps ,
As far as I am aware only the OTA firmware updates no longer work when you unlock your bootloader, the OTA application updates should work as intended.
For installing the kernel, all you have to do is put your device into fastboot mode, select the kernel with flashtool and then let flashtool work its magic. It won't wipe your ROM as it doesn't touch the /system partition.
You don't even need flashtool to check your bootloader unlock status either. Type in *#*#7378423#*#*, tap Service info, tap Configuration. You will see a section what says rooting status. Underneath rooting status you will find your bootloader status, it will read one of three things;
1) Bootloader unlock allowed: No (meaning you cannot unlock your bootloader, you shouldn't see this as you have unlocked yours by the sounds of the first post)
2) Bootloader unlock allowed: Yes (meaning you can unlock your bootloader, if it says this and you plan on unlocking the bootloader I hope you make backups of your TA partition cause you have no way of locking your bootloader again else. This goes for anybody reading this)
2) Bootloader unlock: Yes (meaning your bootloader is unlocked).
gamer649 said:
You don't even need flashtool to check your bootloader unlock status either. Type in *#*#7378423#*#*, tap Service info, tap Configuration. You will see a section what says rooting status. Underneath rooting status you will find your bootloader status, it will read one of three things;
1) Bootloader unlock allowed: No (meaning you cannot unlock your bootloader, you shouldn't see this as you have unlocked yours by the sounds of the first post)
2) Bootloader unlock allowed: Yes (meaning you can unlock your bootloader, if it says this and you plan on unlocking the bootloader I hope you make backups of your TA partition cause you have no way of locking your bootloader again else. This goes for anybody reading this)
2) Bootloader unlock: Yes (meaning your bootloader is unlocked).
Click to expand...
Click to collapse
Thanks a ton man, You cleared all my doubts. Mine says "Boot Unloacked: Yes" , so I will proceed to flashing cwm. and ya I had taken TA backup.
Thank again
Hi my bro @gamer649 how can I backup my TA partition?
Thanx for ur help
kh34d said:
Hi my bro @gamer649 how can I backup my TA partition?
Thanx for ur help
Click to expand...
Click to collapse
May be you can find in here http://forum.xda-developers.com/showthread.php?t=2484622&page=1
Try this ok
Hi my bro @Nicklas Van Dam.... U r my hero man
u helped me every time
I see u Unlocked ur Bootloader and use ROM with CyanogenMod 12 Alpha Unofficial build 20141121
i want to do like you
plz tell me about ur experience is this rom good?? if u want by message or here
many Thanx for helping me
kh34d said:
Hi my bro @Nicklas Van Dam.... U r my hero man
u helped me every time
I see u Unlocked ur Bootloader and use ROM with CyanogenMod 12 Alpha Unofficial build 20141121
i want to do like you
plz tell me about ur experience is this rom good?? if u want by message or here
many Thanx for helping me
Click to expand...
Click to collapse
hi my friend @kh34d i've been send my experience about my rom that i used, just check out on your inbox, and want you be my friend?

[Q] How to lock a relocked htc desire 816 ?

Hi guys I have a relocked HTC desire 816 and I want to return back to a locked phone to receive updates any help please !!��
Gabriel g said:
Hi guys I have a relocked HTC desire 816 and I want to return back to a locked phone to receive updates any help please !!��
Click to expand...
Click to collapse
Do you mean you have an unlocked boatloader and you want to relock it? You need to use ADB/fastboot on a P.C. with your phone in hboot/fastboot mode and enter"fastboot oem lock" into your command prompt window in the ADB folder then your boatloader will relock. You would also need to be on your stock recovery as well with your system unrooted and stock with no alterations to your system files to then do stock updates. Hope this helps.
thoctor said:
Do you mean you have an unlocked boatloader and you want to relock it? You need to use ADB/fastboot on a P.C. with your phone in hboot/fastboot mode and enter"fastboot oem lock" into your command prompt window in the ADB folder then your boatloader will relock. You would also need to be on your stock recovery as well with your system unrooted and stock with no alterations to your system files to then do stock updates. Hope this helps.
Click to expand...
Click to collapse
No, I relocked it and I want to lock it
Gabriel g said:
No, I relocked it and I want to lock it
Click to expand...
Click to collapse
If it's your boatloader you are referring to "locking" and you originally "unlocked" it you just need to use ADB/fastboot and the command prompt I gave you with your phone in hboot/fastboot mode and USB debugging enabled in your developer settings on your phone to "relock" your boatloader. As long as you're on stock recovery and haven't modified any system files you will be able to do stock updates after that. Hopefully that's what your wanting to do and I'm not just misunderstanding what your wanting and if I am I apologize.
thoctor said:
If it's your boatloader you are referring to "locking" and you originally "unlocked" it you just need to use ADB/fastboot and the command prompt I gave you with your phone in hboot/fastboot mode and USB debugging enabled in your developer settings on your phone to "relock" your boatloader. As long as you're on stock recovery and haven't modified any system files you will be able to do stock updates after that. Hopefully that's what your wanting to do and I'm not just misunderstanding what your wanting and if I am I apologize.
Click to expand...
Click to collapse
Thanks a lot but I have another question, when I relock it will I get updates ?
Gabriel g said:
Thanks a lot but I have another question, when I relock it will I get updates ?
Click to expand...
Click to collapse
Yes. As long as your not rooted and have no system modifications and are on stock recovery you will be able to do stock updates
thoctor said:
Yes. As long as your not rooted and have no system modifications and are on stock recovery you will be able to do stock updates
Click to expand...
Click to collapse
Modified how ? I flashed cyanogenmod and installed Dolby audio and beats audio is this consider modifications?
Gabriel g said:
Modified how ? I flashed cyanogenmod and installed Dolby audio and beats audio is this consider modifications?
Click to expand...
Click to collapse
Yes I believe those 2 mods change your system files to allow their codecs to work so they are modifications. Root, Xposed frameworks,WP.mod_ko to enable system write permissions etc... all can be modifications that need to be "undone" before updating a signed stock OTA or signed RUU( Rom update utility). Unsigned stock firmware in the form of compiled zips or TRWP/CWM nandroid backups supposedly need less to be stock but I have never restored from anything but "signed" stock RUU's so YMMV. I personally don't want to flash someone's personal nandroid backup to my phone because I don't know what if anything isn't "stock" on it.
That's a personal philosophy and I know they upload them for a reason to help those who can't find a signed update or use one but as long as I can I will because when you flash someone else's personal backup you flash the good and the bad, if any. Hopefully you backed up your stock rom before flashing Cyanogen mod , as I have it in my phone as well, and then you can just restore it when you want, reflash your stock recovery, lock your boatloader, unroot and then do any stock OTA's. I also believe you can flash your stock recovery , unroot in Cyanogen mod, remove mods and flash a stock RUU over your current ROM but I've also never personally done that . I just restore my stock backup , reflash my stock recovery, unroot, lock my boatloader and do stock update that way.
Best advice I ever got here was to backup and keep my stock ROM in a nandroid backup to micro SD card before any flashing of new custom roms, find your stock zip or RUU exe and save it to your computer just in case and the same for your stock recovery because you never know when you might need it and I have. Multiple times and it's all in a folder on my computer. If it's a U.S. variant the RUU's are on HTC's website. If not most are found online. Just don't flash the wrong firmware or it could brick your device.
thoctor said:
Yes I believe those 2 mods change your system files to allow their codecs to work so they are modifications. Root, Xposed frameworks,WP.mod_ko to enable system write permissions etc... all can be modifications that need to be "undone" before updating a signed stock OTA or signed RUU( Rom update utility). Unsigned stock firmware in the form of compiled zips or TRWP/CWM nandroid backups supposedly need less to be stock but I have never restored from anything but "signed" stock RUU's so YMMV. I personally don't want to flash someone's personal nandroid backup to my phone because I don't know what if anything isn't "stock" on it.
That's a personal philosophy and I know they upload them for a reason to help those who can't find a signed update or use one but as long as I can I will because when you flash someone else's personal backup you flash the good and the bad, if any. Hopefully you backed up your stock rom before flashing Cyanogen mod , as I have it in my phone as well, and then you can just restore it when you want, reflash your stock recovery, lock your boatloader, unroot and then do any stock OTA's. I also believe you can flash your stock recovery , unroot in Cyanogen mod, remove mods and flash a stock RUU over your current ROM but I've also never personally done that . I just restore my stock backup , reflash my stock recovery, unroot, lock my boatloader and do stock update that way.
Best advice I ever got here was to backup and keep my stock ROM in a nandroid backup to micro SD card before any flashing of new custom roms, find your stock zip or RUU exe and save it to your computer just in case and the same for your stock recovery because you never know when you might need it and I have. Multiple times and it's all in a folder on my computer. If it's a U.S. variant the RUU's are on HTC's website. If not most are found online. Just don't flash the wrong firmware or it could brick your device.
Click to expand...
Click to collapse
Thank you very much , one last question , I backed up my "stock Rom" before I do anything , I backed up even the stock system files , then flashed cyanogenmod after that I restored my backup which it's system files are "stock" and relocked the boot loader ,will I receive updates ?
Gabriel g said:
Thank you very much , one last question , I backed up my "stock Rom" before I do anything , I backed up even the stock system files , then flashed cyanogenmod after that I restored my backup which it's system files are "stock" and relocked the boot loader ,will I receive updates ?
Click to expand...
Click to collapse
Yes , as long as you don't "dirty flash" over Cyanogen mod with your stock backup. Always do a factory reset before flashing between different roms then wipe cache and dalvik cache in recovery before reboot into system. You also need your stock recovery flashed back as well before locking your boatloader. Otherwise I use TWRP.
thoctor said:
Yes , as long as you don't "dirty flash" over Cyanogen mod with your stock backup. Always do a factory reset before flashing between different roms then wipe cache and dalvik cache in recovery before reboot into system. You also need your stock recovery flashed back as well before locking your boatloader. Otherwise I use TWRP.
Click to expand...
Click to collapse
Thank you very much man :good:?
Gabriel g said:
Thank you very much man :good:
Click to expand...
Click to collapse
Your welcome and good luck.

Relock bootloader of rooted A2 Lite (Stock Rom)

Hey guys,
i just want to ask if there is a tested method to relock the bootloader of a rooted A2 Lite.
I use the stock rom, just unlocked and rooted it.
I've read something about the MiFlashTool and the Clean and Lock Option.
But I'm not sure about that, because the MiFlashTool is for Miui.
So what are the steps to relock the bootloader?
Thank you for your help
Mansil234 said:
Hey guys,
i just want to ask if there is a tested method to relock the bootloader of a rooted A2 Lite.
I use the stock rom, just unlocked and rooted it.
I've read something about the MiFlashTool and the Clean and Lock Option.
But I'm not sure about that, because the MiFlashTool is for Miui.
So what are the steps to relock the bootloader?
Thank you for your help
Click to expand...
Click to collapse
The MiFlashTool is also for the Stock Rom of the Mi A2 Lite (Not only MIUI!)
Download the Stock Rom and you can flash it via MiFlash. If you choose the option, you can relock the Bootloader when you do this.
Woah there buddy, if you try to lock a rooted phone you will have a hard brick. Don't try to lock the bootloader of a phone that is rooted or have system/boot etc. modifications.
marstonpear said:
Woah there buddy, if you try to lock a rooted phone you will have a hard brick. Don't try to lock the bootloader of a phone that is rooted or have system/boot etc. modifications.
Click to expand...
Click to collapse
And If i First delete the root-rights?
Mansil234 said:
And If i First delete the root-rights?
Click to expand...
Click to collapse
Not sure if it would work, the cleanest way would be to download official fastboot ROM, flash it via MiFlash (select clean and lock option). This will erase all your data and turn your phone to stock ROM. I'm saying this is the cleanest way because you may have issues by unrooting and locking the phone. Maybe it would work. Unsure.
marstonpear said:
Not sure if it would work, the cleanest way would be to download official fastboot ROM, flash it via MiFlash (select clean and lock option). This will erase all your data and turn your phone to stock ROM. I'm saying this is the cleanest way because you may have issues by unrooting and locking the phone. Maybe it would work. Unsure.
Click to expand...
Click to collapse
But you said that this would brick my device?
Mansil234 said:
But you said that this would brick my device?
Click to expand...
Click to collapse
He meant: If you have root acces with magisk first of all uninstall root and relock bootloader
Kineceleran said:
He meant: If you have root acces with magisk first of all uninstall root and relock bootloader
Click to expand...
Click to collapse
Ok, this was a misunderstanding
If you lock your bl at a modified system, you will get the message "your system got destroyed", I once had this. But I was lucky being able to unlock again... So no hardbrick... But doing all that leads to nothing. Btw. it's always useful to have an open bl... For example, if you mess up with a magik module and stuck @boot... Just ignore the stupid message of xiaomi!
Voodoojonny said:
If you lock your bl at a modified system, you will get the message "your system got destroyed", I once had this. But I was lucky being able to unlock again... So no hardbrick... But doing all that leads to nothing. Btw. it's always useful to have an open bl... For example, if you mess up with a magik module and stuck @boot... Just ignore the stupid message of xiaomi!
Click to expand...
Click to collapse
To prevent this, i want to remove the root access in the first place.
That i have a clean stock rom.
I tried it with no-data-loss method and it says, system is destroyed, i have it to unlock it.
With root, you can relock it, but it's useless.
Mansil234 said:
To prevent this, i want to remove the root access in the first place.
That i have a clean stock rom.
Click to expand...
Click to collapse
Backup up everything first
Download MiFlash and the correct ROM (not OTA version)
Then you can flash the Stock ROM which will remove everything
You can also choose to leave unlocked or lock the bootloader (re-lock is selected by default)
As this is a somewhat new device I wouldn't tick the option to save your data.
capajga said:
Backup up everything first
Download MiFlash and the correct ROM (not OTA version)
Then you can flash the Stock ROM which will remove everything
You can also choose to leave unlocked or lock the bootloader (re-lock is selected by default)
As this is a somewhat new device I wouldn't tick the option to save your data.
Click to expand...
Click to collapse
What is the correct rom if not the OTA-Version?
Mansil234 said:
What is the correct rom if not the OTA-Version?
Click to expand...
Click to collapse
Take a look at this thread:
https://forum.xda-developers.com/mi-a2-lite/how-to/ota-v9-6-4-0-odlmiff-t3823913
you can find pretty much all ota's and fastboot rom links.
All full ROMs end with .tgz extension
like this one:
http://bigota.d.miui.com/V9.6.4.0.O...0.ODLMIFF_20180724.0000.00_8.1_4afd3431a2.tgz
you have to extract it to be able to use it with MiFlash but I'm sure you'll find all the answers in the thread above
capajga said:
Take a look at this thread:
https://forum.xda-developers.com/mi-a2-lite/how-to/ota-v9-6-4-0-odlmiff-t3823913
you can find pretty much all ota's and fastboot rom links.
All full ROMs end with .tgz extension
like this one:
http://bigota.d.miui.com/V9.6.4.0.O...0.ODLMIFF_20180724.0000.00_8.1_4afd3431a2.tgz
you have to extract it to be able to use it with MiFlash but I'm sure you'll find all the answers in the thread above
Click to expand...
Click to collapse
Thanks! Everything went fine!
Mansil234 said:
Thanks! Everything went fine!
Click to expand...
Click to collapse
Glad to hear it :laugh:

Categories

Resources