Unlocking the bootloader - Xperia Z2 Q&A, Help & Troubleshooting

Hey guys, call me stupid but...
Is there a definite guide on how to download fastboot ?
Everywhere I look, the links are pointing to the android SDK but it's a 2GB download and an executable rather than a zip file.
I am confused. Can someone point me to the correct HOWTO ?

DjGeNeSiS said:
Hey guys, call me stupid but...
Is there a definite guide on how to download fastboot ?
Everywhere I look, the links are pointing to the android SDK but it's a 2GB download and an executable rather than a zip file.
I am confused. Can someone point me to the correct HOWTO ?
Click to expand...
Click to collapse
You can use this: https://mega.nz/#!RotVRSSC!j44hpB6BD_tUFsjqs2R7wH2fG3uZ_EB1cNuzBq1l3GY

raminta said:
You can use this: https://mega.nz/#!RotVRSSC!j44hpB6BD_tUFsjqs2R7wH2fG3uZ_EB1cNuzBq1l3GY
Click to expand...
Click to collapse
thank you, I downloaded Fastboot from your link and its working now.
I also had to install the Xperia dirvers from here:
https://forum.xda-developers.com/showthread.php?t=2635830&page=12
Moreover, I had to switch the USB mode to anything else rather than MTP because ADB would not recognise the device
Then I had to use this thread to make the drivers work:
https://forum.xda-developers.com/showpost.php?p=39856834&postcount=3
Then, use these commands to unlock the bootloader.
fastboot.exe devices (to make sure that your phone is properly connected)
and then:
fastboot.exe -i 0x0fce oem unlock 0xKEY and replace KEY with the key which you received earlier on your email box on Step

Related

[Q] Bootloader unlocked, but root won't flash!

Please help! C:\Documents and Settings\Tom Revell>fastboot\fastboot flash system play_modded.img
I don't know the answer to your problem, but I assume you just want Root. If that is the case, I suggest you to re-lock your bootloader and use Gingerbreak, since you don't gain any advantage of unlocking your bootloader if you just want Root
Since you already have your bootloader unlocked, you'd do better flashing Doomlord's kernel, which roots your phone by itself, instead of downloading a huge system.img. Here's the thread: http://forum.xda-developers.com/showthread.php?t=1176502
And by the way, I assume you're having issues with fastboot not being recognized as an executable, blah, blah, blah?
therevell said:
Please help! C:\Documents and Settings\Tom Revell>fastboot\fastboot flash system play_modded.img
Click to expand...
Click to collapse
This part:\Tom Revell>fastboot\ looks wrong to me, i'm at work now so can't really check.
But does it work if you go to the folder where you saved fastboot and then somewhere in the folder, as long as it is not on an icon, press shift + right mouse click > open command window here and then only type fastboot flash system play_modded.img ?
make sure play_modded.img is in the same folder as fastboot.exe
Aerox912 said:
This part:\Tom Revell>fastboot\ looks wrong to me, i'm at work now so can't really check.
But does it work if you go to the folder where you saved fastboot and then somewhere in the folder, as long as it is not on an icon, press shift + right mouse click > open command window here and then only type fastboot flash system play_modded.img ?
make sure play_modded.img is in the same folder as fastboot.exe
Click to expand...
Click to collapse
^^^^^ that...and does ginger break root ur phone without unlocking the BL?

Where exactly does the fastboot reside inside the flash on phone?

I had did a wrong boot.img flash and now fastboot is gone. I just want to verify that fastboot was actually located somewhere inside the boot.img.
Side notes..... I have a phone now that doesnt power on cuz the preloader is cooked by flashing that boot.img. If you try to charge the phone ,the battery charging icon does not show so that means I hard bricked phone.
lextacy said:
I had did a wrong boot.img flash and now fastboot is gone. I just want to verify that fastboot was actually located somewhere inside the boot.img.
Side notes..... I have a phone now that doesnt power on cuz the preloader is cooked by flashing that boot.img. If you try to charge the phone ,the battery charging icon does not show so that means I hard bricked phone.
Click to expand...
Click to collapse
Fastboot doesn't actually reside on the phone it is a communication protocol used to flash the specific partitions of the phones layout. Specifically fastboot itself is just a binary (.bin on OS X and Linux and .exe on windows) used to communicate with the fastboot protocol. Correct me if I'm wrong but what I'm guessing what you did is you meant to flash a boot.img to the boot partition and instead you flashed that to the bootloader/preloader partition erasing the bootloader. There is a flag when the bootloader is complied that allows the bootloader to have support for fastboot. Your best bet is to to try and find a factory image for your phone to try and re-flash the stock bootloader through fastboot. A second option is find a friend who has the same phone model as you and that is rooted, then dump there bootloader using terminal emulator or a similar app, transfer it to your computer and then flash it using fastboot. If you have any more questions or just want some more clarification on what I said feel free to ask more then happy to help !
shimp208 said:
Fastboot doesn't actually reside on the phone it is a communication protocol used to flash the specific partitions of the phones layout. Specifically fastboot itself is just a binary (.bin on OS X and Linux and .exe on windows) used to communicate with the fastboot protocol. Correct me if I'm wrong but what I'm guessing what you did is you meant to flash a boot.img to the boot partition and instead you flashed that to the bootloader/preloader partition erasing the bootloader. There is a flag when the bootloader is complied that allows the bootloader to have support for fastboot. Your best bet is to to try and find a factory image for your phone to try and re-flash the stock bootloader through fastboot. A second option is find a friend who has the same phone model as you and that is rooted, then dump there bootloader using terminal emulator or a similar app, transfer it to your computer and then flash it using fastboot. If you have any more questions or just want some more clarification on what I said feel free to ask more then happy to help !
Click to expand...
Click to collapse
Good info here , I did not know that fastboot was outside the android environments. The command I ran was "fastboot flash boot boot.img" if that makes sence. This was on a chinese smartphone that has a chinese only text bootloader. So no other friends will have this phone where I can grab an image from. I ordered a new phone (surprise , surprise right? ) haha , BUT I would still like to get this brick working for learning purposes and root practice.
lextacy said:
Good info here , I did not know that fastboot was outside the android environments. The command I ran was "fastboot flash boot boot.img" if that makes sence. This was on a chinese smartphone that has a chinese only text bootloader. So no other friends will have this phone where I can grab an image from. I ordered a new phone (surprise , surprise right? ) haha , BUT I would still like to get this brick working for learning purposes and root practice.
Click to expand...
Click to collapse
Glad I could help you out ! It must be a bad boot image then that you flashed, but that shouldn't prevent you from accessing the bootloader. When you get your new phone and root it you should be able to pull that stock boot image and then get your old phone working again. As always any questions let me know !
So fastboot doesn't reside in the phone?
I understand that it's a protocol, but how does the phone know to act like a server for the PC fastboot client?
Where does the phone load the protocol rules from?
Can fastboot mode run even without any partition on the phone?
If so the phone would be virtually unbrickable.
I'm just trying to understand.
JackSlaterIV said:
So fastboot doesn't reside in the phone?
I understand that it's a protocol, but how does the phone know to act like a server for the PC fastboot client?
Where does the phone load the protocol rules from?
Can fastboot mode run even without any partition on the phone?
If so the phone would be virtually unbrickable.
I'm just trying to understand.
Click to expand...
Click to collapse
Perhaps the best way to understand how fastboot works is to take a look at it's source code found here https://android.googlesource.com/platform/system/core/+/master/fastboot/fastboot_protocol.txt and the general fastboot code here https://android.googlesource.com/platform/system/core/+/master/fastboot. Let me know if you still have questions.
shimp208 said:
Perhaps the best way to understand how fastboot works is to take a look at it's source code found here https://android.googlesource.com/platform/system/core/+/master/fastboot/fastboot_protocol.txt and the general fastboot code here https://android.googlesource.com/platform/system/core/+/master/fastboot. Let me know if you still have questions.
Click to expand...
Click to collapse
Thanks, I saw but there is no answer there.

ONLY ROOT.

Hello ?
I'm looking to root my m4 aqua E2303 6.0.1 Bootloader unlock: yes
However I don't want any twrp stuff, last time I rooted this phone I found something on this forum, connected my phone to a pc via USB ran an exe and it got rooted it was soooo simple, and everything worked great, however after Sony released the firmware update(from 5.0.0 to 6.0.1) root dissappeared. Isn't there a similar tool for 6.0.1? I really don't want to get into all the twrp stuff and ehhh you understand, I want to keep it simple.
Thanks in advance.
Procow said:
Hello
I'm looking to root my m4 aqua E2303 6.0.1 Bootloader unlock: yes
However I don't want any twrp stuff, last time I rooted this phone I found something on this forum, connected my phone to a pc via USB ran an exe and it got rooted it was soooo simple, and everything worked great, however after Sony released the firmware update(from 5.0.0 to 6.0.1) root dissappeared. Isn't there a similar tool for 6.0.1? I really don't want to get into all the twrp stuff and ehhh you understand, I want to keep it simple.
Thanks in advance.
Click to expand...
Click to collapse
in Android 6.0.1 Without Unlock Bootloader is Impossible, but if you have Unlock Bootloader Use it,( Just Flash boot.img) : http://forum.xda-developers.com/m4-aqua/general/root-twrp-sony-xperia-m4-aqua-t3503369
And you can try KingoRoot Soft for root without Unlockbootloader
Whaaaaatt?
It just says waiting for device,
Debugging on oem on
Procow said:
It just says waiting for device,
Debugging on oem on
Click to expand...
Click to collapse
Maybe its not working.
Good luck
Yo
EHSAN™ said:
Maybe its not working.
Good luck
Click to expand...
Click to collapse
Let me explain, I'm doing the adb method, when I say fastboot flash boot boot.img it just says waiting for device
My phone doesn't react at all
I haven't manually unlocked the Bootloader it's so hard and time consuming to download all those programs.
I want only the root nothing else.
Procow said:
Let me explain, I'm doing the adb method, when I say fastboot flash boot boot.img it just says waiting for device
My phone doesn't react at all
I haven't manually unlocked the Bootloader it's so hard and time consuming to download all those programs.
I want only the root nothing else.
Click to expand...
Click to collapse
Need to unlock Bootloader for Root With ADB.
I did now
EHSAN™ said:
Maybe its not working.
Good luck
Click to expand...
Click to collapse
EHSAN™ said:
Need to unlock Bootloader for Root With ADB.
Click to expand...
Click to collapse
I did but now when I type fastboot devices
Hdjebshshd(that phone ID u know)
Then I type
Fastboot flash boot boot.img
It says something about downloading, max file size and then says FAILED
Procow said:
I did but now when I type fastboot devices
Hdjebshshd(that phone ID u know)
Then I type
Fastboot flash boot boot.img
It says something about downloading, max file size and then says FAILED
Click to expand...
Click to collapse
You must be going on Fastboot Mod Then Type this in ADB, And Read There Topic that i give you.
Well
EHSAN™ said:
You must be going on Fastboot Mod Then Type this in ADB, And Read There Topic that i give you.
Click to expand...
Click to collapse
I just open a command prompt in the adb folder and type it, it says command line is not allowed even if I try doing it in the administrator rights.
First it says max file size
,,OKAY"
Loaded(0.703seconds)
....,,boot"
Failed(command line is not allowed)
Something similar to this.
What am I doing wrong? How can I check if I actually unlocked the Bootloader(pretty sure I did)
So weird.
Procow said:
I just open a command prompt in the adb folder and type it, it says command line is not allowed even if I try doing it in the administrator rights.
First it says max file size
,,OKAY"
Loaded(0.703seconds)
....,,boot"
Failed(command line is not allowed)
Something similar to this.
What am I doing wrong? How can I check if I actually unlocked the Bootloader(pretty sure I did)
So weird.
Click to expand...
Click to collapse
*#*#7378423#*#* > Service Info > Configuration > Rooting Status:
Figured everything out, just don't know how lol
In the end I now have root ty.
Tell me how you fixed it

[Moto G6 Plus] 1: Preparing to Unlock Bootloader

THIS GUIDE IS FOR THE MOTO G6 PLUS ONLY
1: Preparing to Unlock Bootloader
Moto does a fine job of breaking down how to unlock the bootloader, but they do not give you much information on using the adb and fastboot programs that are part of the "Android Software Developer Kit(SDK) Platform Tools" which contain over 700+ files. For the procedures listed in this guide, we only need 2 files, adb and fastboot. XDA Moderator @hackslash has created a tool to simplify using adb and fastboot that doesn't include the other 700+ files you don't need.
1A. ADB and Fastboot Installer for Windows - (Download) - When prompted to install a driver type the number 0 and hit enter. This will install the latest version of adb and fastboot where it is system-wide. This eliminates the need for adb.exe or fastboot.exe to be in the same folder as the files you will be working with. NOTE: Windows will flag this as a virus! The installer is open source and made by a Moderator here on XDA. It is a False Positive. You can view a VirusTotal report (https://www.virustotal.com/en/file/25dc5dca2494d1b1d93832b37ba9852b4f076bba86cf5029b4c944a28a1a01a1/analysis/]HERE[/url]). 26 out of 67 virus scanners report it as a virus. If your Anti-Virus is one of the ones that flag it as a virus, I would suggest you explore other Anti-Virus software, but that’s not what this guide is about.
1B. As per the instructions on Moto’s site, you need to download and install the latest official drivers from Moto. (Download)
1C. Head over to the Moto website and follow the instructions to unlock your bootloader. (Moto Website)
After you are done on the Moto website your bootloader will be unlocked! This is necessary to be able to modify system files for root, roms, and other various tweaks!
Hi, the official drivers link not working for me.
https://motorola-global-en-roe.cust...prod_answer_detail/a_id/99344/p/30,6720,10383 <-- Installs the whole Motorola Device Manager along with the usb drivers, which can be also used to update firmware. I don't know if this is good or bad for rooted phones.
https://motorolausbdriver.com/download/motorola-moto-g6-plus <-- just the driver for windows
Thanks for this article and the work that has gone into it.
Just a quick editing note. The 1B line includes a typo in the href attribute, the value of which is:
http://https//motorola-global-portal.custhelp.com/app/answers/detail/a_id/88481
Click to expand...
Click to collapse
Thanks.
Will the bootloader unlock trigger a factory reset?
Hobbygamer27 said:
Will the bootloader unlock trigger a factory reset?
Click to expand...
Click to collapse
Yes
Sent from my SM-A505U using Tapatalk
I can get into the bootloader on my phone, with `adb reboot bootloader` or pressing the power and volume down key. The problem is that once I'm in the bootloader in fastboot on my pc it doesn't recognise my phone, usb debugging + oem unlock is on in dev settings. I got in once, but after many tries I wasn't able to have a connection anymore. On my phone it says that the usb is connected, so that isn't the problem. I haven't tried it on a 2.0 usb slot yet.
Xplorer4x4 said:
THIS GUIDE IS FOR THE MOTO G6 PLUS ONLY
1: Preparing to Unlock Bootloader
Moto does a fine job of breaking down how to unlock the bootloader, but they do not give you much information on using the adb and fastboot programs that are part of the "Android Software Developer Kit(SDK) Platform Tools" which contain over 700+ files. For the procedures listed in this guide, we only need 2 files, adb and fastboot. XDA Moderator @hackslash has created a tool to simplify using adb and fastboot that doesn't include the other 700+ files you don't need.
1A. ADB and Fastboot Installer for Windows - (Download) - When prompted to install a driver type the number 0 and hit enter. This will install the latest version of adb and fastboot where it is system-wide. This eliminates the need for adb.exe or fastboot.exe to be in the same folder as the files you will be working with. NOTE: Windows will flag this as a virus! The installer is open source and made by a Moderator here on XDA. It is a False Positive. You can view a VirusTotal report (https://www.virustotal.com/en/file/25dc5dca2494d1b1d93832b37ba9852b4f076bba86cf5029b4c944a28a1a01a1/analysis/]HERE[/url]). 26 out of 67 virus scanners report it as a virus. If your Anti-Virus is one of the ones that flag it as a virus, I would suggest you explore other Anti-Virus software, but that’s not what this guide is about.
1B. As per the instructions on Moto’s site, you need to download and install the latest official drivers from Moto. (Download)
1C. Head over to the Moto website and follow the instructions to unlock your bootloader. (Moto Website)
After you are done on the Moto website your bootloader will be unlocked! This is necessary to be able to modify system files for root, roms, and other various tweaks!
Click to expand...
Click to collapse
I need to lock my bootloader again, how do I do that?
andreym_costa said:
I need to lock my bootloader again, how do I do that?
Click to expand...
Click to collapse
Same as unlocking but in reverse order.
Unlocking:
- activate OEM unlocking
- use command 'fastboot oem unlock'
=> First boot with an unlocked bootloader loads your unmodified stock ROM until you flash another ROM.
Here you start locking the bootloader with the same conditions. This means you have to flash the latest stock ROM before doing anything else.
Then (after you successfully boot your unmodified stock ROM once!!) you can boot into fastboot mode and execute 'fastboot oem lock'.
NEVER EVER deactivate the OEM unlock option before everything is ok!! The meaning of ok is, that your locked device will boot into system AND you have a functional Wifi and mobile connection. After this step (and only after that!) you can deactivate the OEM unlocking option.

Question how to use Magisk root this device ?

i try the version of Magisk 23.0 but this is not worked.
It's the same with all other Xperia devices without customise recovery.
You first use Unsin (can find it in XDA) to the boot_blahblahblah.sin from stock firmware for unsin it. Therefore you will see a .IMG is generated.
Second, you transfer the .IMG to your phone, and use Magisk to patch (install - select file and patch) the boot file.
After it's patched (you can find it in the Download folder). Transfer the patched one back to your PC, and make phone enter fastboot mode (or the blue light mode). Then you run this command on Windows Shell (Google it, it's easy)
Fastboot flash boot the_file_name.img
After it's done, boot into your phone, you can find icon of Magisk, install it, and your phone is rooted in this stage.
Nevermind figured it out
Kylewolf said:
Nevermind figured it out
Click to expand...
Click to collapse
Before you do anything, a unlocked bootloader is must required.
JaneValley said:
It's the same with all other Xperia devices without customise recovery.
You first use Unsin (can find it in XDA) to the boot_blahblahblah.sin from stock firmware for unsin it. Therefore you will see a .IMG is generated.
Second, you transfer the .IMG to your phone, and use Magisk to patch (install - select file and patch) the boot file.
After it's patched (you can find it in the Download folder). Transfer the patched one back to your PC, and make phone enter fastboot mode (or the blue light mode). Then you run this command on Windows Shell (Google it, it's easy)
Fastboot flash boot the_file_name.img
After it's done, boot into your phone, you can find icon of Magisk, install it, and your phone is rooted in this stage.
Click to expand...
Click to collapse
good job my friend.
JaneValley said:
Before you do anything, a unlocked bootloader is must required.
Click to expand...
Click to collapse
Hello
Did you find Xperia 1 iii on Sony Developer site?
Or how did you achieve the unlock file?
Regards,
Olavbson
Where the hell do i find the official firmware, thats where im stuck
ya id like to unlock bootloader so i can achieve root on us xperia 1 iii. nothing has worked. and xperia 1 iii isnt on sony develope site to unlock bootloader. either. how are people doing this.
jporter396 said:
ya id like to unlock bootloader so i can achieve root on us xperia 1 iii. nothing has worked. and xperia 1 iii isnt on sony develope site to unlock bootloader. either. how are people doing this.
Click to expand...
Click to collapse
same am stuck at bootloader unlock rn. Cannot flash
olavbson said:
Hello
Did you find Xperia 1 iii on Sony Developer site?
Or how did you achieve the unlock file?
Regards,
Olavbson
Click to expand...
Click to collapse
Sorted it? Rooted mine earlier on. To unlock the bootloader you can just pick Xperia 1 or 1II it doesn't matter 1III will be added eventually but doesn't make a difference.
AJHutchinson said:
Sorted it? Rooted mine earlier on. To unlock the bootloader you can just pick Xperia 1 or 1II it doesn't matter 1III will be added eventually but doesn't make a difference.
Click to expand...
Click to collapse
What about DRM keys? how do u deal with that.
AJHutchinson said:
Sorted it? Rooted mine earlier on. To unlock the bootloader you can just pick Xperia 1 or 1II it doesn't matter 1III will be added eventually but doesn't make a difference.
Click to expand...
Click to collapse
Hey sorry another question, i know rooting will kill netfleex and such but did u notice any other side effects, can you still view HDR
rom4ster said:
Hey sorry another question, i know rooting will kill netfleex and such but did u notice any other side effects, can you still view HDR
Click to expand...
Click to collapse
I haven't noticed anything that's not working buddy
AJHutchinson said:
I haven't noticed anything that's not working buddy
Click to expand...
Click to collapse
Thanks, sorry to bother you more but how did you unlock the phone exactly?
I am getting this error on fastboot
fastboot oem unlock 0x2DC728328A49EEAB
FAILED (remote: 'Command not supported in default implementation')
fastboot: error: Command failed
rom4ster said:
Thanks, sorry to bother you more but how did you unlock the phone exactly?
I am getting this error on fastboot
fastboot oem unlock 0x2DC728328A49EEAB
FAILED (remote: 'Command not supported in default implementation')
fastboot: error: Command failed
Click to expand...
Click to collapse
Mine was doing the same buddy, make sure you have entered the correct IMEI and that you have OEM unlock and usb debugging turned on in the developer settings
AJHutchinson said:
Mine was doing the same buddy, make sure you have entered the correct IMEI and that you have OEM unlock and usb debugging turned on in the developer settings
Click to expand...
Click to collapse
i verified OEM unlock is on in settings I am copying the IMEI reported by ADB directly, and USB debugging is on yet the error persists. What solved it for you?
rom4ster said:
i verified OEM unlock is on in settings I am copying the IMEI reported by ADB directly, and USB debugging is on yet the error persists. What solved it for you?
Click to expand...
Click to collapse
Check the IMEI by dialing *#06# see if it matches up with that one, if using Dual SIM variant use the first code
AJHutchinson said:
Check the IMEI by dialing *#06# see if it matches up with that one, if using Dual SIM variant use the first code
Click to expand...
Click to collapse
Also is
Code:
Fastboot devices
showing a device? Maybe it's not installed properly?
same issue here. command not supported error. did everything on sony guide to the t. us variant, windows 10. not sure what to do
fastboot shows device too
jporter396 said:
same issue here. command not supported error. did everything on sony guide to the t. us variant, windows 10. not sure what to do
fastboot shows device too
Click to expand...
Click to collapse
Annoying aye, my issue was with the IMEI I must have been putting a wrong digit in but it worked eventually

Categories

Resources