Re Locking Bootloader - Xiaomi Mi 9 Questions & Answers

I'm just wondering if it's possible to like...
Unlock bootloader then restores your Titanium backup apps and then relock.. or no?
Because as far as I know there's no twrp that can read the encrypted memory and MIUI automatically encrypts the system right?
So basically there's no way to install Magisk ..
If anyone know if it's possible let me know please

I don't understand your question.
I have unlocked my Mi9, installed TWRP,deleted DATA partition, flashed xiaomi.eu,flashed magisk than restored a titanium backup taken from my old phone simply by transfer the folder with pc....

And I don't understand why people wanna relock bootloader!? In most cases you brick your phone, because it's not stock.

Guys I mean with stock global ROM not with xiaomi.eu or any other none official ROM.
I wanna lock bootloader in case my device gets stolen, lost etc.
You never know on which hands it can end.

Relock bootloader only if you flash the stock untouched image. It'useless to have a rooted locked device.... And you may cause a brick.

Yeah as we said... Don't do it if you rooted your device or flashed TWRP or anything. Relock only if it's totally stock. You may risk to brick your phone otherwise.

I was asking if it's possible to root only to being able to restore titanium apps, then remove root and then somehow restore default boot img and re lock bootloader.

PriPhaze said:
I was asking if it's possible to root only to being able to restore titanium apps, then remove root and then somehow restore default boot img and re lock bootloader.
Click to expand...
Click to collapse
I wouldn't try that. It's maybe possible but it's also possible to brick phone while there is something more changed after root and twrp. I don't know I'm not a Dev.

PriPhaze said:
I was asking if it's possible to root only to being able to restore titanium apps, then remove root and then somehow restore default boot img and re lock bootloader.
Click to expand...
Click to collapse
I think you will mess the storage due to encription....

Related

One click unroot?

I am facing a dilemma here.
I want to root my phone (probably using towelroot)
But sometime in the future I want to return it to the exactly unrooted state.
The problem is, for that,
I must unlock bootloader
Install CWM and backup my phone in case things go wrong
Maybe install a rom.
BUT.
If I root my phone, how will I go back to exactly the old stock state, because I am creating a backup 'After' rooting?
So If I restore using CWM, the bootloader remains unlocked and still rooted?
If i want to relock bootloader, I need root.
If I want to unroot I need an unlocked bootloader.
Im so confused. Please help.
That brings me to my qn. Any one click restore to stock?
Newbie, have mercy
Why will you unroot? (Or if you don't know exactly what it means: read, read, read and ask)
You can always go back if you flash KDZ file (unroot en relock bootloader -> see thread)
fear2433 said:
I am facing a dilemma here.
I want to root my phone (probably using towelroot)
But sometime in the future I want to return it to the exactly unrooted state.
The problem is, for that,
I must unlock bootloader
Install CWM and backup my phone in case things go wrong
Maybe install a rom.
BUT.
If I root my phone, how will I go back to exactly the old stock state, because I am creating a backup 'After' rooting?
So If I restore using CWM, the bootloader remains unlocked and still rooted?
If i want to relock bootloader, I need root.
If I want to unroot I need an unlocked bootloader.
Im so confused. Please help.
That brings me to my qn. Any one click restore to stock?
Newbie, have mercy
Click to expand...
Click to collapse
You can root and unlock the bootloader and restore everithing. Yes you have to read and understand before act. I suggest you start ro read some here:
http://forum.xda-developers.com/lg-l90/general/guide-flash-stock-kdz-offline-lg-l90-t2803479
http://forum.xda-developers.com/lg-l90/general/guide-fastboot-l90-d415-t2827825
http://forum.xda-developers.com/showthread.php?t=2770938&page=31
Here you can find almost all you need.
Petrpan_2 said:
You can root and unlock the bootloader and restore everithing. Yes you have to read and understand before act. I suggest you start ro read some here:
http://forum.xda-developers.com/lg-l90/general/guide-flash-stock-kdz-offline-lg-l90-t2803479
http://forum.xda-developers.com/lg-l90/general/guide-fastboot-l90-d415-t2827825
http://forum.xda-developers.com/showthread.php?t=2770938&page=31
Here you can find almost all you need.
Click to expand...
Click to collapse
I thank you for the links.
But can you clarify 1 doubt?
How To backup your phone before rooting? (Because CWM requires an unlocked bootloader. An a to unlock bootloader, I must be rooted. Isnt it a paradox?)
Or must I root before backup?
fear2433 said:
I thank you for the links.
But can you clarify 1 doubt?
How To backup your phone before rooting? (Because CWM requires an unlocked bootloader. An a to unlock bootloader, I must be rooted. Isnt it a paradox?)
Or must I root before backup?
Click to expand...
Click to collapse
If you read the links you'll get the answer at your questions.
In any case you don't need to backup before rooting.
Just read and understand all links plus this one "Frequently Asked Questions"
forum.xda-developers.com/lg-l90/help/lg-optimus-l90-faq-t2836981
There is no danger in rooting, only the (wrong) use of root can be dangerous.
Sent from my LG-D405n using XDA Free mobile app

How to relock the bootloader?

Hi,
I've searched and found how to do it but it was for Android 5.1 but I'm on 7.0 and I my recovery is TWRP 3.0.2-0 and apparently there are more steps to do if you are on TWRP, I'm wondering what are they.
Thanks
test84 said:
Hi,
I've searched and found how to do it but it was for Android 5.1 but I'm on 7.0 and I my recovery is TWRP 3.0.2-0 and apparently there are more steps to do if you are on TWRP, I'm wondering what are they.
Thanks
Click to expand...
Click to collapse
First, questions need to go in the Nexus 6 Q&A, Help & Troubleshooting Thread, not the General thread. Second, the steps to lock the bootloader have not changed. It's done from the bootloader with fastboot and the command "fastboot oem lock". It shouldn't matter what recovery you have.
Re-locking needs stock recovery(maybe full stock; boot, recovery, system) if you try to re-lock your boot loader without stock recovery you might hardbrick your phone. So just backup your apps and files, flash a stock image from google and re-lock your boot loader with "fastboot oem lock". Which probably needs wiping your phone.
Before you do anything search these forums for the many people who locked their bootloader and then when they had problems ended up with a bricked and useless device. Unless you have a very special reason for locking, leave it unlocked
dahawthorne said:
Before you do anything search these forums for the many people who locked their bootloader and then when they had problems ended up with a bricked and useless device. Unless you have a very special reason for locking, leave it unlocked
Click to expand...
Click to collapse
this right here...there is really no reason to ever re lock your bootloader
I flashed the factory image and and it went fine. But the bootloader is still unlocked. My main concern for locking the bootloader is to prevent any malicious app to root the phone and hide themselves by like installing as system app or something. And I'm not planning to flash any custom ROM. So:
1- Since I'm on stock ROM, is there still a possibility of hard bricking my phone if I relock?
2- If I leave it unlocked, will malwares be able to tamper with the phone by the means I mentioned or similar approaches?
Thanks
2. No, they don't. Bootloader is on a completly different layer.
test84 said:
I flashed the factory image and and it went fine. But the bootloader is still unlocked. My main concern for locking the bootloader is to prevent any malicious app to root the phone and hide themselves by like installing as system app or something. And I'm not planning to flash any custom ROM. So:
1- Since I'm on stock ROM, is there still a possibility of hard bricking my phone if I relock?
2- If I leave it unlocked, will malwares be able to tamper with the phone by the means I mentioned or similar approaches?
Thanks
Click to expand...
Click to collapse
I feel your concerns. I think the safest bet is to watch where you download apps and content from. And make sure "unknown sources" is turned off. That should minimize your potential for problems. I think the main thing is watching where you get apps from.

DRM keys backup confusion

Hello, after my patience ran out with google play services batter drain issues i have decided to try out moding and i think i messed up DRM recovery part.
I used https://forum.xda-developers.com/z3-compact/general/how-to-root-backup-drm-keys-t3013343 this as a guide.
Things i have done so far in order:
1. flashed 4.4
2. rooted
3. made DRM keys backup
4. unlocked bootloader
5. installed twrp recovery
6. installed this https://forum.xda-developers.com/z3-compact/development/rom-aoxp-rom-v1-t3478863 rom
7. recovered DRM TA zip thing.
Now my problem is, my bootloader is locked, so i guess recovery procedure went ok, but camera perfomance is as awful as without drm keys. Where did i go wrong? What can i do to fix my camera perfomance?
p.s. i am really sorry for my english as it is not my native langue thanks in advice for help.
You don't lock the bootloader when you restore the TA backup it actually locks the bootloader,so try unlocking it again and then restoring the TA backup
Dinkec27 said:
You don't lock the bootloader when you restore the TA backup it actually locks the bootloader,so try unlocking it again and then restoring the TA backup
Click to expand...
Click to collapse
you dont lock it actually locks
that is what i understood, could you be more clear please?
Teraman said:
you dont lock it actually locks
that is what i understood, could you be more clear please?
Click to expand...
Click to collapse
Sorry.
What I meant to say is,when you restore a TA backup from an unlocked bootloader state,it locks the bootloader when you restore it.
So what I am saying is you should unlock the bootloader again,and restore the TA backup as it will lock the bootloader again and should restore camera quality.
Clear now?
Dinkec27 said:
Sorry.
What I meant to say is,when you restore a TA backup from an unlocked bootloader state,it locks the bootloader when you restore it.
So what I am saying is you should unlock the bootloader again,and restore the TA backup as it will lock the bootloader again and should restore camera quality.
Clear now?
Click to expand...
Click to collapse
yes, but one thing. Why do i need to restore twice to get back camera quality?
Thank you a lot!
Teraman said:
yes, but one thing. Why do i need to restore twice to get back camera quality?
Thank you a lot!
Click to expand...
Click to collapse
I dunno tbh I never restored a TA backup since I was an idiot and forgot to back up TA when I was going to unlock my bootloader.
Try it and tell me how it went! Good luck!
No need to restore it twice! Just be sure that you are on stock kernel before you restrore TA.img
Savest way is to flash Kernel+Bootdelivery out of normal FW tft using flashmode (not fastboot !)
Then restore TA.img with Backup tool.
Reboot and done... And Camera is back....
As an alternativre you can flash DRM fix as well... There is also an other projekt running to mount your TA.img from another location.
But this is not yet tested that much... Stay with locked BL and TA - Or with UB and DRM fix.
DRM fix
https://forum.xda-developers.com/crossdevice-dev/sony/xperia-z1-z2-z3-series-devices-drm-t2930672
Sometimes its needed to delete following folders (with all including files) to reset DRM stuff (root needed)
/data/credmgr
/data/drm
/data/mediadrm
Don't be afraid of loosing something - Those folders and files will be created automaticly new on boot....
btw: Why you unlocked your bootloader? For Root we have 2 ways to do it without Unlocking bootloader...
Anyway -if you have an TA backup you are save actually...
fluffi444 said:
No need to restore it twice! Just be sure that you are on stock kernel before you restrore TA.img
Savest way is to flash Kernel+Bootdelivery out of normal FW tft using flashmode (not fastboot !)
Then restore TA.img with Backup tool.
Reboot and done... And Camera is back....
As an alternativre you can flash DRM fix as well... There is also an other projekt running to mount your TA.img from another location.
But this is not yet tested that much... Stay with locked BL and TA - Or with UB and DRM fix.
DRM fix
https://forum.xda-developers.com/crossdevice-dev/sony/xperia-z1-z2-z3-series-devices-drm-t2930672
Sometimes its needed to delete following folders (with all including files) to reset DRM stuff (root needed)
/data/credmgr
/data/drm
/data/mediadrm
Don't be afraid of loosing something - Those folders and files will be created automaticly new on boot....
btw: Why you unlocked your bootloader? For Root we have 2 ways to do it without Unlocking bootloader...
Anyway -if you have an TA backup you are save actually...
Click to expand...
Click to collapse
to install twrp, because in guide i read it needs unlocked bootloader and i needed twrp for best battery rom i found.
Teraman said:
to install twrp, because in guide i read it needs unlocked bootloader and i needed twrp for best battery rom i found.
Click to expand...
Click to collapse
There are also two ways of using TWRP:
One is to flash twrp.img onto former FOTA partition. For this you would need UB... This works only with new bootloaders (LA3.0_M_3 from FW .291 is prefered - This bootloader will be installed if you flash full FW 291 or only bootdelivery and kernel in flashtool)
https://forum.xda-developers.com/z3-compact/general/d5803-z3c-aries-twrp3-0-t3543113
But the other method is putting TWRP files to /system/etc/mm_twrp_recovery on SYSTEM partition...
This works also with LB!
https://forum.xda-developers.com/z3-compact/general/recovery-root-mm-575-lb-t3418714
EDIT
Third one is to have recovery build into kernel...
Just to be complete.. ?

how to keep data while unlocking bootloader

hi, i wanted to unlocked the bootloder of my note 8,
is there any way to retain data and unlock bootloader?
or create a image of /data to restore later?
i just need my data to survive any how.
Not really, you need good backups.
AFAIK you need a custom recovery, meaning an unlocked bootloader, to create a full partition backup, there are people claiming you can make a partial backup through adb but I've never tried it.
Just back as much of your data as you can to google and make a local backup file from settings and every app that has that option and hope you won't loose much.
vinay said:
hi, i wanted to unlocked the bootloder of my note 8,
is there any way to retain data and unlock bootloader?
or create a image of /data to restore later?
i just need my data to survive any how.
Click to expand...
Click to collapse
Simple answer: NO.
Bootloader is locked for security purpose. When you unlock it you get a back door(kind of). Which gives you access to data and other stuffs. That is why backing up data before unlocking bootloader is not possible.
But you can backup photos, videos, whatsapp chat things like these.

Question How to lock bootloader without factory reset?

I've an unlocked bootloader on stock MIUI. I know how to lock the bootloader but this does a factory reset. Is there a workaround so I don't lose all data?
I've seen some older posts for unlocking without losing data, by NOT clicking reboot but turning phone off and on.
Anyone? Thanks heaps.
boland said:
I've an unlocked bootloader on stock MIUI. I know how to lock the bootloader but this does a factory reset. Is there a workaround so I don't lose all data?
I've seen some older posts for unlocking without losing data, by NOT clicking reboot but turning phone off and on.
Click to expand...
Click to collapse
AFAIK you really can't relock bootloader without format data. Either lock it and face format data or keep it unlocked and move to a custom ROM. There are many ways to backup your data but the best method for me is backing up through PC or SD card. If you're worried that having bootloader unlock can prevent you from using certain apps then you can always root and (somewhat) hide that.
BigChungus321 said:
AFAIK you really can't relock bootloader without format data. Either lock it and face format data or keep it unlocked and move to a custom ROM. There are many ways to backup your data but the best method for me is backing up through PC or SD card. If you're worried that having bootloader unlock can prevent you from using certain apps then you can always root and (somewhat) hide that.
Click to expand...
Click to collapse
Thanks. I've moved away from custom ROMs as it's just too time consuming for me.
Google Pay doesn't work when the bootloader is unlocked. Yes, I can install Magisk and Magisk Hide, but with Magisk installed OTA are no longer possible.
boland said:
Thanks. I've moved away from custom ROMs as it's just too time consuming for me.
Google Pay doesn't work when the bootloader is unlocked. Yes, I can install Magisk and Magisk Hide, but with Magisk installed OTA are no longer possible.
Click to expand...
Click to collapse
Still possible but the method is now manually flashing instead of just download and reboot.

Categories

Resources