Easy and Detailed Steps for Rooting Sony Xperia Z3 (D6653) - Xperia Z3 Q&A, Help & Troubleshooting

Here i will Explain you how to Root Sony Xperia Z3 D6653
PRE-REQUISITES AND REQUIREMENTS
1. BACKUP YOUR ANDROID DATA
Backup your Data through built in app Backup & Restore or by any other Tools available in Playstore like
a.
HTML:
https://play.google.com/store/apps/details?id=com.idea.backup.smscontacts&hl=en
(Super Backup)
b.
HTML:
https://play.google.com/store/apps/details?id=com.keramidas.TitaniumBackup&hl=en
( Titanium Backup)
2.INSTALL SONY XPERIA Z3 DRIVERS
You need these drivers to connect your device with the computer to follow this guide. Without these USB drivers you can’t connect your device to the PC, first download and install these drivers on your system.
HTML:
http://www.tothemobile.com/download-android-usb-drivers
3. ENABLE USB DEBUGGING MODE
You need to enable USB debugging mode. Without enabling USB debugging mode on your device you can’t start the root or Unlock process.
a. Go to your Phone Settings > About option.
b. From here you can see the Build number of your device. From here Tap “Build number” seven (7) times continuously and after that your Developer options
under Settings are back.
c. Go back to setting and now you can see the new “Developer Option” here. Tap on Developer Option and check USB debugging > ok
Then
a. GO to the Phone the Settings.
b. Tap on “Developer options”.
c. Check the option: “USB debugging”.
d. Check the allow mock location or select mock location app
e. check install from unknown sources
4. Battery
If your device switched off during this process, it could damage or brick the device. Make sure that your Android battery is full charge or near about 55-70% battery level.
BEFORE GOING TO ROOT YOUR MOBILE YOU HAVE TO UNLOCK THE BOOT LOADER
5. UNLOCKING BOOTLOADER
a. Download the Fastboot Drivers from below link
HTML:
http://d-h.st/ibd
( Copy Paste in browser and download )
b. Get the IMEI code for your device: By typing *#06# in phone dialer to find it out, note only the digits or you can get it from About Phone -> Status -> IMEI
c. In your device, open the dialler and enter *#*#7378423#*#* to access the service menu.
Tap Service info > Configuration > Rooting Status. If Bootloader unlock allowed says Yes, then you can continue with the next step. If it says No,
or if the status is missing, your device cannot be unlocked. then you have to backup your TA Partion and continue.
d.
HTML:
http://www.flashtool.net/downloads.php
Download this tool and install .......
1. Install Flashboot and Fastboot drivers of Flashtool (setup file will be on C:\Flashtool\drivers or similar place).
2. Turn on your phone, and connect with usb debugging on.
3. Go to Plugins-> Bootloader Unlock option, start it.
4. Now it will ask to disconnect your phone and reboot in FLASHMODE. ( By Pressing Volume Up and connect the usb cable)
5. it reboot your phone in FASTBOOT mode.
6. It will show a window with your IMEI number in system, insert your unlock key and click "unlock".
To get Your Unlock Code
a. Visit the
HTML:
http://unlockbootloader.sonymobile.com/unlock/step1
and read everything! Now Click on “Yes, I’m sure” button.
b. Now form the next page clock on the “I accept” button to confirm that you accept the legal terms mentioned on the page.
c. On the next page you will see a form in which you have to mention the details like Your Name, Your device IMEI code and the email address.
d. Fill the form and give correct email id .... because it will send you the link for getting the unlock code.
e. Create unlock boot loader key request
f. You should now receive your unique unlock key via Email. Save this key safely, you need this file in next steps.
g. Enter that key in windows which the Window showed in 6 th point in system from flash tool.
Hit enter once you’ve put your unique bootloader unlock key in place.
You’re device should now be bootloader unlocked.
INSTALL TWRP ON SONY XPERIA Z3 (D6653)
1. Once the bootloader is unlocked. Download the recovery file here and save it on your desktop
HTML:
http://d-h.st/5EA
2. Download the Fastboot file for your phone here and extract the folder on your desktop.
HTML:
http://www.mediafire.com/file/yfms6s1j85cae8t/adb-and-fastboot-files.zip
3. Now copy/paste the bootZ3monxtest01.img file to the Fastboot adb folder. (Dont Rename the Recovery)
4. Now press Shift key + Right click on any empty white space inside the folder, and select “Open command window here”. Now you will see the command prompt
window on your desktop.
5. After this Boot your Xperia Z3 into Fastboot Mode. To do this Press and hold the Volume Up button, Connect to your PC using a USB Cable while holding down the Volume Up button on your Xperia Z3.
6. Once your device is in fasboot mode. Enter the following command on command prompt window
fastboot Devices
7. If the command prompt window shows some digits and alphabets, then your device has successfully connected to Fastboot. If now then install the Android USB drivers again and restart the process
8. Now type the following command:
fastboot flash boot bootZ3monxtest01.img
9. Now the flashing process will start on your phone, wait for some time it will take little/some time.
10. Once done, issue the following command to reboot your phone
fastboot reboot
THAT's IT you have installed the TWRP Recovery in your Mobile.
ROOTING XPERIA Z3 (D6653)
1. To get started you have to install the TWRP recovery on your Z3. Check out the instructions here.
2. Download the SuperSu Zip here.
HTML:
https://download.chainfire.eu/1013/SuperSU/SR4-SuperSU-v2.78-SR4-20161115184928.zip
3. Now copy the Zip file on your phone SD card.
4. Boot your Z3 in recovery mode. To do this Switch off your Xperia Z3 first, Switch it back on and the time when you see your phone’s LED notification light turn
Pink! (or any other color) — start pressing either the Volume UP or Volume Down key a couple of times to make your phone boot into recovery mode.
5. Once your phone in recovery mode, Tap on Install » browse to the location where you saved the supersu zip files and tap on it.
6. Now at the bottom of the screen, do a swipe on the Swipe to confirm flash option to begin flashing.
7. This will start the flashing process on your phone and take some time to finish.
8. Go back to the main menu of recovery and tap on Reboot » then, tap on System to reboot your phone.
That’s ALL!. Now your Sony Xperia Z3 is rooted. Now you can Install any Custom ROM to your Model.
Please Press Thanks if You like this Post and Found Usefull. :good:

I don't understand why on this device you need to flash boot instead of recovery....and by the way this method gave me bootloop
Sent from my 6055P using XDA-Developers mobile app

Why would you unlock the bootloader when you have the option to get root and recovery without doing it. Of course this is if you wanna try stock modded roms but for custom you have to.

I have used this rooting method but when i switch my device and open recovery mode. My mobile get hanged and not get recovery mode. Any other alternative methods

can someone send me another link for twrp of that sony xperia z3 d6653?? i can't download from that site

Related

Yuphoria rooting guide new method

Recently i have purchased new yuphoria device which comes with latest YNH1TBS2P2 update. When i tried to root it with methods available on this site , it fails. So i have to discover new method for it. Today i have discovered the new method and I am posting it here. For that download the rooting kit from below and also install pdanet driver from its official site.
Yuphoria new rooting kit
First of all you have to enable developer option in option menu. To do that go to option menu then goto about , search built number and tap it till the message popup that said enabled the developer option. Then go to developer option and start the advance reboot option.
Now plug in the Yuphoria device and copy the TWRP folder from downloaded zip file to in root of phone memory and memory card. Then copy supersu.zip in root of phone memory. Now press and hold power button and select rebbot then bootloader then ok.
Now your mobile boots in fastboot mode. Now run the run.bat file in adb_fastboot folder. After that a command prompt is popup and closed automatically and you hear the sound of device removal in your PC , instantly disconnect the data cable from your phone and wait for a minute. Twrp recovery starts and then select install zip option and select the supersu.zip file from your phone. slide the button at bottom and restart phone. Now your phone is rooted.
Note: you have to unlock bootloader for this method.
edit I have found yu team have made system read-only so general peoples are found difficulties to flash custom recovery and to root.
dharmang1910 said:
Recently i have purchased new yuphoria device which comes with latest YNH1TBS2P2 update. When i tried to root it with methods available on this site , it fails. So i have to discover new method for it. Today i have discovered the new method and I am posting it here. For that download the rooting kit from below and also install pdanet driver from its official site.
Yuphoria new rooting kit
First of all you have to enable developer option in option menu. To do that go to option menu then goto about , search built number and tap it till the message popup that said enabled the developer option. Then go to developer option and start the advance reboot option.
Now plug in the Yuphoria device and copy the TWRP folder from downloaded zip file to in root of phone memory and memory card. Then copy supersu.zip in root of phone memory. Now press and hold power button and select rebbot then bootloader then ok.
Now your mobile boots in fastboot mode. Now run the run.bat file in adb_fastboot folder. After that a command prompt is popup and closed automatically and you hear the sound of device removal in your PC , instantly disconnect the data cable from your phone and wait for a minute. Twrp recovery starts and then select install zip option and select the supersu.zip file from your phone. slide the button at bottom and restart phone. Now your phone is rooted.
Click to expand...
Click to collapse
any one tried it,is it working? is it going to wipe internal memory?
For this method you have to unlock bootloader and unlocking boot loader will erase your internal memory

[GUIDE] Viper4Android for the Moto Z

Oi guys!
So for now i might be alone on this, but i am certain that some few of you have wondered on how to get Viper4Android to work on the Moto Z without flaws. I am here to give you a small guide, because i figured out how to fairly easy add V4A.
There are 3 simple steps, but they can (in case you haven't done the first one yet) take some time.
If you have already Unlocked your Bootloader, disabled Force_Encrypt (either by manually editing the boot.img or flashing @janjan his ROM), installed a RECOVERY like TWRP and ROOTED your device, then you can skip right ahead to STEP 3.
Also, before you go ahead, do a BACKUP of all your important data, as it will CERTAINLY be lost when unlocking the bootloader (this does not count for inserted microSD cards, but just to be safe, remove the microSD or backup your data somewhere else, like your PC or a cloud service).
One more heads-up: You NEED a USB-C Cable that you can connect to your PC, otherwise this guide will be useless for you. Also, all my commands listed in the upcomming guide are listed with " ", but ignore these when entering the commands in the Command Prompts.
STEP 1:
1: As for every Android phone, you need an Unlocked Bootloader and TWRP (and also ROOT, etc).
-1.1: Download the Motorola USB Drivers HERE, and the ADB Fastboot Driver/Tool HERE.
-1.2: Install the Motorola USB Drivers first, then install the ADB All-In-One Tool after that (When installing the ADB AIO, choose yes for all options).
-1.3: On your Moto Z, enable Developer Options by going into the Phone Settings, then the last "About Phone" option, and then scroll to the bottom where it says "Build Number". Tap that "bar" 7 times until it says that you unlocked the Developer Options menu.
-1.4: Go back into the Main Settings Menu of your Phone, and then right above the "About Phone", should be an option called "{ } Developer Options". Go in there, and right in the beginning is an option called "OEM unlocking". Enable that option (when it asks you for your PIN/Password/Pattern, just enter it).
-1.5: Scroll just a little further down in the Developer Options menu, and you will see a section called "Debugging", in which the first option is called "USB debugging". Enable that option as well.
-1.6: Now put your Moto Z into Fastboot Mode. You can do this either by connecting your Moto Z to the PC, then open a Command Prompt (look in Windows for CMD), and type "adb reboot bootloader", OR by turning your Moto Z completely off, and then turning it back on WHILE holding BOTH the Volume Down and Power Button (if your Moto Z turns off all the time, the second the Phone vibrates, let go off the buttons).
-1.7: Now that your Phone is in Fastboot Mode, you will have to connect it to your PC by a USB-C cable. If you have done that, open a Command Prompt in Windows (again, by typing CMD in the Windows Start Search), and type this: "fastboot oem get_unlock_data"
-1.8: You will end up getting a result that will look a little like this (the numbers do NOT work for you, don't try them for steps required later on):
$ fastboot oem get_unlock_data
(bootloader) 0A40040192024205#4C4D3556313230
(bootloader) 30373731363031303332323239#BD00
(bootloader) 8A672BA4746C2CE02328A2AC0C39F95
(bootloader) 1A3E5#1F53280002000000000000000
(bootloader) 0000000
-1.9: Copy the entire string you just got from the Command Prompt, and put it into any kind of Text Field or Text Editor. Remove the bootloader part, and also everything else, like [Info] or the likes, and same goes for empty spaces. The only thing you should be left with looks like this: 0A40040192024205#4C4D355631323030373731363031303332323239#BD008A672BA4746C2CE02328A2AC0C39F951A3E5#1F532800020000000000000000000000
-1.10: Now you go to THIS website to get the Unlock Code for your Phone (You will have to register at Motorola to be able to get the Unlock Code. It is easier if you just use Google+, it is much faster and you can skip the entire register process). There will be instructions there as well to guide you for how to enter the code, just in case you misunderstood my guide.
-1.11: Once you registered and entered the code, click the blue button below called "Can my device be unlocked?". Once Motorola confirms that your Moto Z can be unlocked, you click the "I agree" option, and then the "Request unlock key" button.
-1.12: You will get a pop-up telling you about it voiding your warranty, click "OK" on that one as well.
-1.13: Now, Motorola will tell you that they sent you the unlock code for your device to the E-Mail you registered with, so go and check your E-Mail account for that code.
-1.14: Copy the unlock code, go back to that Command Prompt (in case you closed it, open a new one), and enter this: "fastboot oem unlock UNLOCK_CODE_HERE" <<<< Where the UNLOCK_CODE_HERE means that you will have to replace this with the unlock key from your E-Mail.
-1.15: Now click ENTER, and your device will be Unlocked. After this, your device SHOULD reboot automatically, but if not, pick the REBOOT option in the Fastboot Mode Menu, and click the Power Button to confirm. From now on, every time you start your Phone, you will be greeted with the Unlocked Warning screen, but that is ok, nothing stopping your Phone from working or the likes.
-1.16: Let your Moto Z fully boot up, and when you have done that, shut it down again, and go back into Fastboot Mode using the above mentioned button combination.
-1.17: At this you will have to download the TWRP Recovery Image. You can find this for the Moto Z HERE, or HERE.
-1.18: Rename the downloaded file to just twrp.img, then go back to your Command Prompt (or open a new one), and enter this: "fastboot flash recovery twrp.img"
-1.19: Now let the RECOVERY be flashed, and then in the Fastboot Menu on your Moto Z, use the Volume Keys to navigate up and down, and navigate to "RECOVERY". Use the Power Button to confirm that option, and let it boot into the TWRP RECOVERY. Once you have done that, in TWRP, pick the Reboot option, and click the "System" button, so that the RECOVERY boots into the normal Android OS.
Congratulations, that was step 1 (and all its detailed sub-steps).
Now to STEP 2:
2: As the Moto Z has its entire storage and OS fully force-encrypted, we have to fix that. There are two ways, but as of now, i recommend the best one, as the other one is a bit hard to do unless you are a bit more tech-savvy.
-2.1: You will have to download the currently only actual ROM for the Moto Z from XDA user @janjan . You can find the download HERE. Download the corresponding US or EU version, depending on where you bought your device.
-2.2: I will have to mention here shortly, that the ROM you are about to install currently has one issue, which its severity depends on how much you currently need that "feature". The developer @janjan is working hard to fix, so you might want to wait in case you are disturbed by that "feature" not working. What is that feature you ask? Moto Mods. Some work, some don't, and the Incipio Battery Pack is one of those that do not work. If you can live with this issue until it is fixed, there is nothing stopping you from installing this ROM, but if you feel that you absolutely cannot live without it, then you might want to stop at this point and return when the issue has been fixed.
-2.3: So if you have decided to continue, then congratulations. To continue, you will have to enter the TWRP RECOVERY. Do NOT set up your Phone, as everything will be Wiped once more. So just enter the RECOVERY through the Bootloader (Fastboot). Shut down the Phone, hold the Volume Down and Power Button, wait for the Fastboot Menu to come up, navigate with the Volume Down Key to the RECOVERY option and confirm with the Power Button.
-2.4: Now connect your Phone to your PC with the USB-C Cable, and then go into the "Mount" menu. There it will let you open your Phone storage like on normal Android through MTP. Find the ROM .zip file you downloaded earlier, and put it somewhere in your Phones storage, like the Download folder, or create a new Folder you can easily recognize.
-2.5: If you have transferred the ROM .zip to your Phone, go back to the Main Menu, and pick the "Wipe" option (upper right). Now just Swipe the blue button to the right to do a full Factory Reset.
-2.6: Once it is done with the Factory Reset, go back to the Main Menu, and pick the "Install" (upper left, first option) option. Now navigate to where you uploaded your ROM .zip file, and then click that file once you have found it. Swipe to the right again to Flash the ROM.
-2.7: When it has finished flashing the ROM, Reboot the device, and you do that either by clicking "Reboot" (button to the lower right) right after the ROM has been flashed, or going back to the Main Menu and using the Reboot option.
-2.8: The Phone WILL take a good while to boot, so give it at least 10-15 minutes. If nothing happens by then, hold the Power Button to turn your Phone off and check the steps again and see if you did something wrong. If it did boot successfully, then take the time to setup your Phone, Language, Login Methods, etc.
And congratulations again, this was step 2. At this point you are done with all the time consuming things.
This is the last step, STEP 3:
3: I recommend that you install XPOSED BEFORE installing Viper4Android, as i found problems doing it the other way around. In case you thought about installing the XPOSED Framework, do that FIRST, NOT after having installed V4A.
-3.1: The only working version of Viper4Android i found is the ViperAtmos Universal Edition. You can download it directly HERE, or check the thread HERE (downloads are in the bottom. Remember to download the "ViPERAtmos 4.8 Sony Beats Universal Edition" .zip file).
-3.2: You will also have to download the SELinuxModeChanger app, with the direct link HERE, or the thread HERE.
-3.3: Now you push/transfer the downloaded files to your Moto Z, either by Cable or Wireless, the way you do it is up to you, but put it somewhere where you will find the files easily, like the Downloads folder.
-3.4: Now on your Moto Z download any file manager, go to the directory you pushed the files in, and install the SELinuxModeChanger.apk file. Open the app, give it full ROOT permissions, and then pick the "Permissive" option. Now reboot your device once, and it will automatically set SELinux to Permissive every time you boot your Moto Z (you can choose to let it notify you when it changes the mode).
-3.5: Reboot your Moto Z into the RECOVERY (steps found above). Here you go directly to the "Install" option, navigate to where you put your ViperAtmos .zip file, and install it by Swiping to the right. Do NOT pick the option to clear cache and dalvik/ART, i had problems with this the last time, and V4A wouldn't work (if you feel for it, then you can try clearing cache and dalvik/ART, but i found out that it works just fine not doing any of that).
-3.6: Reboot your Moto Z into the normal Android OS, and now you are done. Remember to check in the SELinuxModeChanger if the mode is set to Permissive, because if it is not, then Viper4Android (ViperAtmos) will crash your Phone, so make sure that is set.
Now you are done installing Viper4Android using the Universal Edition from ViperAtmos, well done!
If you have found any spelling mistakes in my guide and are absolutely annoyed by it/them, then tell me please!
Ok, have a good one everyone!
Really a GREAT guide...
yanniclord said:
oi guys!
so for now i might be alone on this, but i am certain that some few of you have wondered on how to get viper4android to work on the moto z without flaws. I am here to give you a small guide, because i figured out how to fairly easy add v4a.
There are 3 simple steps, but they can (in case you haven't done the first one yet) take some time.
If you have already unlocked your bootloader, disabled force_encrypt (either by manually editing the boot.img or flashing @janjan his rom), installed a recovery like twrp and rooted your device, then you can skip right ahead to step 3.
Also, before you go ahead, do a backup of all your important data, as it will certainly be lost when unlocking the bootloader (this does not count for inserted microsd cards, but just to be safe, remove the microsd or backup your data somewhere else, like your pc or a cloud service).
One more heads-up: you need a usb-c cable that you can connect to your pc, otherwise this guide will be useless for you. Also, all my commands listed in the upcomming guide are listed with " ", but ignore these when entering the commands in the command prompts.
step 1:
1: As for every android phone, you need an unlocked bootloader and twrp (and also root, etc).
-1.1: Download the motorola usb drivers here, and the adb fastboot driver/tool here.
-1.2: Install the motorola usb drivers first, then install the adb all-in-one tool after that (when installing the adb aio, choose yes for all options).
-1.3: On your moto z, enable developer options by going into the phone settings, then the last "about phone" option, and then scroll to the bottom where it says "build number". Tap that "bar" 7 times until it says that you unlocked the developer options menu.
-1.4: Go back into the main settings menu of your phone, and then right above the "about phone", should be an option called "{ } developer options". Go in there, and right in the beginning is an option called "oem unlocking". Enable that option (when it asks you for your pin/password/pattern, just enter it).
-1.5: Scroll just a little further down in the developer options menu, and you will see a section called "debugging", in which the first option is called "usb debugging". Enable that option as well.
-1.6: Now put your moto z into fastboot mode. You can do this either by connecting your moto z to the pc, then open a command prompt (look in windows for cmd), and type "adb reboot bootloader", or by turning your moto z completely off, and then turning it back on while holding both the volume down and power button (if your moto z turns off all the time, the second the phone vibrates, let go off the buttons).
-1.7: Now that your phone is in fastboot mode, you will have to connect it to your pc by a usb-c cable. If you have done that, open a command prompt in windows (again, by typing cmd in the windows start search), and type this: "fastboot oem get_unlock_data"
-1.8: You will end up getting a result that will look a little like this (the numbers do not work for you, don't try them for steps required later on):
$ fastboot oem get_unlock_data
(bootloader) 0a40040192024205#4c4d3556313230
(bootloader) 30373731363031303332323239#bd00
(bootloader) 8a672ba4746c2ce02328a2ac0c39f95
(bootloader) 1a3e5#1f53280002000000000000000
(bootloader) 0000000
-1.9: Copy the entire string you just got from the command prompt, and put it into any kind of text field or text editor. Remove the bootloader part, and also everything else, like [info] or the likes, and same goes for empty spaces. The only thing you should be left with looks like this: 0a40040192024205#4c4d355631323030373731363031303332323239#bd008a672ba4746c2ce02328a2ac0c39f951a3e5#1f532800020000000000000000000000
-1.10: Now you go to this website to get the unlock code for your phone (you will have to register at motorola to be able to get the unlock code. It is easier if you just use google+, it is much faster and you can skip the entire register process). There will be instructions there as well to guide you for how to enter the code, just in case you misunderstood my guide.
-1.11: Once you registered and entered the code, click the blue button below called "can my device be unlocked?". Once motorola confirms that your moto z can be unlocked, you click the "i agree" option, and then the "request unlock key" button.
-1.12: You will get a pop-up telling you about it voiding your warranty, click "ok" on that one as well.
-1.13: Now, motorola will tell you that they sent you the unlock code for your device to the e-mail you registered with, so go and check your e-mail account for that code.
-1.14: Copy the unlock code, go back to that command prompt (in case you closed it, open a new one), and enter this: "fastboot oem unlock unlock_code_here" <<<< where the unlock_code_here means that you will have to replace this with the unlock key from your e-mail.
-1.15: Now click enter, and your device will be unlocked. After this, your device should reboot automatically, but if not, pick the reboot option in the fastboot mode menu, and click the power button to confirm. From now on, every time you start your phone, you will be greeted with the unlocked warning screen, but that is ok, nothing stopping your phone from working or the likes.
-1.16: Let your moto z fully boot up, and when you have done that, shut it down again, and go back into fastboot mode using the above mentioned button combination.
-1.17: At this you will have to download the twrp recovery image. You can find this for the moto z here, or here.
-1.18: Rename the downloaded file to just twrp.img, then go back to your command prompt (or open a new one), and enter this: "fastboot flash recovery twrp.img"
-1.19: Now let the recovery be flashed, and then in the fastboot menu on your moto z, use the volume keys to navigate up and down, and navigate to "recovery". Use the power button to confirm that option, and let it boot into the twrp recovery. Once you have done that, in twrp, pick the reboot option, and click the "system" button, so that the recovery boots into the normal android os.
Congratulations, that was step 1 (and all its detailed sub-steps).
now to step 2:
2: As the moto z has its entire storage and os fully force-encrypted, so we have to fix that. There are two ways, but as of now, i recommend the best one, as the other one is a bit hard to do unless you are a bit more tech-savvy.
-2.1: You will have to download the currently only actual rom for the moto z from xda user @janjan . You can find the download here. Download the corresponding us or eu version, depending on where you bought your device.
-2.2: I will have to mention here shortly, that the rom you are about to install currently has one issue, which its severity depends on how much you currently need that "feature". The developer @janjan is working hard to fix, so you might want to wait in case you are disturbed by that "feature" not working. What is that feature you ask? Moto mods. Some work, some don't, and the incipio battery pack is one of those that do not work. If you can live with this issue until it is fixed, there is nothing stopping you from installing this rom, but if you feel that you absolutely cannot live without it, then you might want to stop at this point and return when the issue has been fixed.
-2.3: So if you have decided to continue, then congratulations. To continue, you will have to enter the twrp recovery. Do not set up your phone, as everything will be wiped once more. So just enter the recovery through the bootloader (fastboot). Shut down the phone, hold the volume down and power button, wait for the fastboot menu to come up, navigate with the volume down key to the recovery option and confirm with the power button.
-2.4: Now connect your phone to your pc with the usb-c cable, and then go into the "mount" menu. There it will let you open your phone storage like on normal android through mtp. Find the rom .zip file you downloaded earlier, and put it somewhere in your phones storage, like the download folder, or create a new folder you can easily recognize.
-2.5: If you have transferred the rom .zip to your phone, go back to the main menu, and pick the "wipe" option (upper right). Now just swipe the blue button to the right to do a full factory reset.
-2.6: Once it is done with the factory reset, go back to the main menu, and pick the "install" (upper left, first option) option. Now navigate to where you uploaded your rom .zip file, and then click that file once you have found it. Swipe to the right again to flash the rom.
-2.7: When it has finished flashing the rom, reboot the device, and you do that either by clicking "reboot" (button to the lower right) right after the rom has been flashed, or going back to the main menu and using the reboot option.
-2.8: The phone will take a good while to boot, so give it at least 10-15 minutes. If nothing happens by then, hold the power button to turn your phone off and check the steps again and see if you did something wrong. If it did boot successfully, then take the time to setup your phone, language, login methods, etc.
And congratulations again, this was step 2. At this point you are done with all the time consuming things.
this is the last step, step 3:
3: I recommend that you install xposed before installing viper4android, as i found problems doing it the other way around. In case you thought about installing the xposed framework, do that first, not after having installed v4a.
-3.1: The only working version of viper4android i found is the viperatmos universal edition. You can download it directly here, or check the thread here (downloads are in the bottom. Remember to download the "viperatmos 4.8 sony beats universal edition" .zip file).
-3.2: You will also have to download the selinuxmodechanger app, with the direct link here, or the thread here.
-3.3: Now you push/transfer the downloaded files to your moto z, either by cable or wireless, the way you do it is up to you, but put it somewhere where you will find the files easily, like the downloads folder.
-3.4: Now on your moto z download any file manager, go to the directory you pushed the files in, and install the selinuxmodechanger.apk file. Open the app, give it full root permissions, and then pick the "permissive" option. Now reboot your device once, and it will automatically set selinux to permissive every time you boot your moto z (you can choose to let it notify you when it changes the mode).
-3.5: Reboot your moto z into the recovery (steps found above). Here you go directly to the "install" option, navigate to where you put your viperatmos .zip file, and install it by swiping to the right. Do not pick the option to clear cache and dalvik/art, i had problems with this the last time, and v4a wouldn't work (if you feel for it, then you can try clearing cache and dalvik/art, but i found out that it works just fine not doing any of that).
-3.6: Reboot your moto z into the normal android os, and now you are done. Remember to check in the selinuxmodechanger if the mode is set to permissive, because if it is not, then viper4android (viperatmos) will crash your phone, so make sure that is set.
Now you are done installing viper4android using the universal edition from viperatmos, well done!
If you have found any spelling mistakes in my guide and are absolutely annoyed by it/them, then tell me please!
Ok, have a good one everyone!
Click to expand...
Click to collapse
thanks very good detailed guide
OK so wait...did I just read a guide on how to get root on the moto z? I've been up all day and am pulling an all nighter at work so I may be delirious, I just want to make sure...lol
Avengeme said:
OK so wait...did I just read a guide on how to get root on the moto z? I've been up all day and am pulling an all nighter at work so I may be delirious, I just want to make sure...lol
Click to expand...
Click to collapse
Yes, there are some better around now but... you are right!

[guide] complete solution all in one to unlock bootloader, stuck at 50%, unknown erro

COMPLETE SOLUTION ALL IN ONE TO UNLOCK BOOTLOADER, STUCK AT 50%, UNKNOWN ERROR -1
I have been looking all the thread but none of them say u need a internet connection even ur phone ia in bootloader mode make sure your pc has internet connection if it has u won't get 50% error and 99% error
And forgot that 86012 chinese error no need try that thing it works without adding on it.
Dear User,
apply for Unlocking Bootloader Permission from en.miui.com/unlock
Make sure your information matches on i.mi.com, en.miui.com and enable Find Device on your phone
**************
REQUIREMENT:
*****************
Thing you need:-
1) A PC With*Windows*xp/7/8/8.1/10 installed
2) A BRAIN
3)A PHONE
4) USB*Cable
4) ADB Drivers and FASTBOOT DRIVER 15 SEC INSTALL FASTEST EVER4. ADB Drivers [*http://forum.xda-developers.com/show....php?t=2588979*]
5. MiFlashUnlock*Tool*[https://drive.google.com/uc?id=0B95Y...xport=download*] grab the letest version if possible
6.*Qualcomm*Driver [http://cloud.xiaomitips.com/utility/...s_QDLoader.zip]
7. A Internet connection
7. Lots of Patience.
****************************************
INSTRUCTIONS (Changing*Phone*Setting)
****************************************
1. Now you are having unlocking permission on your*phone. So login into the*Mi*account in yourphone*with the same id on which you got the unlocking permission.
2. Now remove*Fingerprint*and Pattern Lock.
3. On your*Redmi*3s/3s Prime, go to Settings > About*Phone*> Tap on "MIUI Version" 7 times. This will enable*Developer*Options.
3. Now go to Settings >*Developer*options > enable "USB*debugging" and "OEM unlocking"
4. Open the "MI*Account"*app*on your*phone*and Login with the*Phone*number or id that you used to get the unlocking Permission.
****************************************
INSTRUCTIONS 3 (Downloading & Installing)
****************************************
All Downloading links are given in "Requirement" section.*Install*one by one in sequential order on your laptop/PC.
1. Disable Driver Signature Enforcement in yoursystem*[*http://en.miui.com/thread-237673-1-1.html*]
2. Download &*Install*Mi*PC*Suite.
3. Download &*Install*Mi*Flash*Tool.
4. Download ADB driver and*install*it.
5. Download MiFlashUnlock*Tool*and extract todesktop. It will be easy to find & use from thedesktop.
6. Download and*install*Qualcomm*Driver. (ToInstall*Qualcomm*Driver, you have to extract the downloaded "Qualcomm_Drivers_QDLoader.zip"file*and open the extracted folder. Within some folder u will find the*file*"qcser.inf" Right click on it and click*install. )
7. Restart your PC/Laptop.
*****************************************
INSTRUCTIONS 4 (Unlocking Bootloader)
*****************************************
METHOD
************
1. On your*computer, open MiFlashUnlock folder which you have extract in the*desktop.
2. Right click on MiFlashUnlock.exe and select "Run it as administrator" & click on 'Yes'
3. Login into the unlocking*tool*on*PC*with the same*Mi*account.
4. Reboot your*phone*into Bootloader mode. To do that, simply turn off your*device, press & holdPower*button + Volume down buttons at the same time. Hold until you see*Mi*Bunny Fastboot logo.
5. Now connect your*phone*to the*computerusing its*USB*cable.
6. Once your*phone*is connected, the Unlock button will become active.
7. Simply click on the Unlock button to start the process. The unlock process will take about 10 – 15 seconds to complete.
8. You will see the message in green color "Unlocking Successfully" then you are the luckiest guy in this world who unlocked the bootloader in an easiest way.
9. Follow if you stuck at 50%
Wait for 2-5 days and try again make sure u still have internet connection
10. For those who stuck in 99% and getting error -1 make sure u have internet connection while unlocking and installed drivers.
Source: xda, miui, and

Root (almost) every device with Magisk + Fastboot

ROOT (ALMOST) EVERY DEVICE WITH MAGISK + FASTBOOT
As an Android user, I understand how frustrating it will be when you desperately look for an exact rooting tutorial for your device but end up finding nothing, all one-click root tools do not work, or no custom recovery made for yours.
So, this tutorial shows you how to root a wide range of Android devices (not all, because there will be exceptions, I guess) with Magisk. First, we should take a look at the pros and cons, so that you can generally acknowledge this method.
---------------------------------------------------------------------------
PROS
- No custom recovery (TWRP, ClockworkMod,etc.) needed
- Easy to find prerequisites
- Successful root attempt CONFIRMED on my 10 devices (including popular devices, rare devices, and devices with OS based on Android)
- Support recent Android versions, including Android 10 (tested on Google Pixel XL).
CONS
- Phone brick might occur
- You might not find your device's firmware in .zip format, which will stop you from using this method.
- Not being able to unlock the bootloader (only on some device) will stop you from using this method, too.
That's about the pros and cons. I hope you guys all understand these points before going to read my tutorial and start your attempt.
---------------------------------------------------------------------------
REQUIREMENTS & STEPS
I. REQUIREMENTS
- Your device's Android version is 5.0 or up. If it's below 5.0, then you can root your device easily with any one-click tool.
- A computer & USB cable.
On your phone
- Download & install Magisk
- Download the exact firmware version (in .zip format) of your device and only extract the boot.img to any directory.
On your computer
- Download & install Fastboot, extract the folder to "Downloads" directory
- Download & install Android USB driver for Windows
(I am not sure if XDA allows inserting links in threads or not, so please search for these prerequisites on the internet, it is easy)
II. STEPS
1. Unlocking your phone's bootloader
- Open Settings > About phone > Tap on Build number about 7 times till you see a notification "You are now a developer"
- Now in the About phone tab, you can see the "Developer option". Tap on it and make sure:
+ the OEM unlocking is turned ON
+ The USB Debugging is turned On
- Plug your phone on your computer (with Fastboot & driver fully installed). Allow the USB Debugging notification on your phone
- Open Command Prompt on your computer. Enter commands below steps by steps:
cd Downloads
cd fastboot
adb reboot bootloader
(press Enter after each line to proceed)
- Your phone will reset to the bootloader menu after these commands. Next, enter this:
fastboot oem unlock
- A message asking you to make sure you want to unlock the bootloader. Use the volume and power button to choose "Yes". Your phone will reset data and reboot right after.
*Note: This method works on many Android devices, but doesn't on many devices. You might have to google a method for your own phone
2. Patching the boot.img file
After you extracted the boot.img from your device, use the Magisk app installed on your device to patch it up.
- Click the "Install" button on the first line
- Click "Select and Patch a file"
- Choose the boot.img file extracted. The patching progress will start right after.
- You will receive a file named "magisk_patched.img" after finished.
3. Flashing the "magisk_patched.img"
- Copy the "magisk_patched.img" into the Fastboot folder
- Reboot your phone to Bootloader mode by powering off and then hold Power + Volume down button simultaneously
- Open Command Prompt again, and type:
cd Downloads
cd fastboot
fastboot flash boot magisk_patched.img
- The flashing progress will begin. Wait until it finishes, and type the last command:
fastboot reboot
- Your phone will restart once again, and of course, with root access gained
---------------------------------------------------------------------------
UNROOT DEVICE
- If you want to unroot your device, you just have to flash the original boot.img file, with the same steps with flashing the magisk_patched.img!
---------------------------------------------------------------------------
This instruction is not truly detailed, so maybe you might encounter some difficulties at some point. If any, please feel free to leave your question below.
It is also the first time I create an instruction post, therefore I appreciate all of your comments. Thanks a lot <3
richarshub said:
ROOT (ALMOST) EVERY DEVICE WITH MAGISK + FASTBOOT
As an Android user, I understand how frustrating it will be when you desperately look for an exact rooting tutorial for your device but end up finding nothing, all one-click root tools do not work, or no custom recovery made for yours.
So, this tutorial shows you how to root a wide range of Android devices (not all, because there will be exceptions, I guess) with Magisk. First, we should take a look at the pros and cons, so that you can generally acknowledge this method.
---------------------------------------------------------------------------
PROS
- No custom recovery (TWRP, ClockworkMod,etc.) needed
- Easy to find prerequisites
- Successful root attempt CONFIRMED on my 10 devices (including popular devices, rare devices, and devices with OS based on Android)
- Support recent Android versions, including Android 10 (tested on Google Pixel XL).
CONS
- Phone brick might occur
- You might not find your device's firmware in .zip format, which will stop you from using this method.
- Not being able to unlock the bootloader (only on some device) will stop you from using this method, too.
That's about the pros and cons. I hope you guys all understand these points before going to read my tutorial and start your attempt.
---------------------------------------------------------------------------
REQUIREMENTS & STEPS
I. REQUIREMENTS
- Your device's Android version is 5.0 or up. If it's below 5.0, then you can root your device easily with any one-click tool.
- A computer & USB cable.
On your phone
- Download & install Magisk
- Download the exact firmware version (in .zip format) of your device and only extract the boot.img to any directory.
On your computer
- Download & install Fastboot, extract the folder to "Downloads" directory
- Download & install Android USB driver for Windows
(I am not sure if XDA allows inserting links in threads or not, so please search for these prerequisites on the internet, it is easy)
II. STEPS
1. Unlocking your phone's bootloader
- Open Settings > About phone > Tap on Build number about 7 times till you see a notification "You are now a developer"
- Now in the About phone tab, you can see the "Developer option". Tap on it and make sure:
+ the OEM unlocking is turned ON
+ The USB Debugging is turned On
- Plug your phone on your computer (with Fastboot & driver fully installed). Allow the USB Debugging notification on your phone
- Open Command Prompt on your computer. Enter commands below steps by steps:
cd Downloads
cd fastboot
adb reboot bootloader
(press Enter after each line to proceed)
- Your phone will reset to the bootloader menu after these commands. Next, enter this:
fastboot oem unlock
- A message asking you to make sure you want to unlock the bootloader. Use the volume and power button to choose "Yes". Your phone will reset data and reboot right after.
*Note: This method works on many Android devices, but doesn't on many devices. You might have to google a method for your own phone
2. Patching the boot.img file
After you extracted the boot.img from your device, use the Magisk app installed on your device to patch it up.
- Click the "Install" button on the first line
- Click "Select and Patch a file"
- Choose the boot.img file extracted. The patching progress will start right after.
- You will receive a file named "magisk_patched.img" after finished.
3. Flashing the "magisk_patched.img"
- Copy the "magisk_patched.img" into the Fastboot folder
- Reboot your phone to Bootloader mode by powering off and then hold Power + Volume down button simultaneously
- Open Command Prompt again, and type:
cd Downloads
cd fastboot
fastboot flash boot magisk_patched.img
- The flashing progress will begin. Wait until it finishes, and type the last command:
fastboot reboot
- Your phone will restart once again, and of course, with root access gained
---------------------------------------------------------------------------
UNROOT DEVICE
- If you want to unroot your device, you just have to flash the original boot.img file, with the same steps with flashing the magisk_patched.img!
---------------------------------------------------------------------------
This instruction is not truly detailed, so maybe you might encounter some difficulties at some point. If any, please feel free to leave your question below.
It is also the first time I create an instruction post, therefore I appreciate all of your comments. Thanks a lot <3
Click to expand...
Click to collapse
It's different for a/b devices where root has to be accessed by booting into the phone from recovery to boot with root
([emoji3590]09-09-18[emoji3590])
PoochyX said:
It's different for a/b devices where root has to be accessed by booting into the phone from recovery to boot with root
([emoji3590]09-09-18[emoji3590])
Click to expand...
Click to collapse
Hi PoochyX,
Thanks for your reply, could you be more specific, please? Does it mean that this method cannot work on a/b devices?
I will edit my instruction again if needed.
Thanks for your suggestions!

[GUIDE]Installation of LineageOS 14.1 in Lenovo Vibe B A2016b30 dual sim al732row

Instructions for Unlock bootloader, Root and Installation of LineageOs 14.1 in Lenovo Vibe B A2016b30 dual sim al732row variant by lexiyuri
Credits to: getdroidtips, EduardaMonteiro and CarlosArriaga
Necessary files are uploaded in my androidhostfile space
MTK Drivers:
https://androidfilehost.com/?fid=4349826312261627234
https://androidfilehost.com/?fid=4349826312261627236
Minimal ADB and TWRP 3.1.1.0 Recovery:
https://androidfilehost.com/?fid=4349826312261627232
Stock ROM for Lenovo Vibe B (just in case) of:
https://www.androidfilehost.com/?w=files&flid=303573
Lineage OS 14.1 ROM (Nougat 7.1.2) :
https://androidfilehost.com/?fid=4349826312261627242
SuperSU Root:
https://androidfilehost.com/?fid=4349826312261627240
Gapps (choose ARM 7.1 Stock package):
download from https://opengapps.org/
Make a entire backup of your device, syncing Google and WhatsApp accounts before doing something.
First part: Unlocking bootloader and installing TWRP 3.1.1.0 recovery.
0. Install necessary MTK Drivers from my uncompressed file.
Windows XP to 8.1: uncompress files, and follow on screen instructions
Windows 10 enforces driver signatures by default. This can be disabled to install drivers that are not digitally signed. Use the following steps to disable driver signature enforcement.
Click the Start Start menu and select Settings.
Click Update and Security.
Click on Recovery.
Click Restart now under Advanced Startup.
Click Troubleshoot.
Click Advanced options.
Click Startup Settings.
Click on Restart.
On the Startup Settings screen press 7 or F7 to disable driver signature enforcement. Your computer will restart and you will be able to install non-digitally signed drivers.
Install your mtk unsigned drivers. In this point dont restart computer again. After finishing all the following steps, you can restart your computer again, and the driver signature enforcement will be re-enabled.
Note: Windows XP/7/8 users don't need to do this.
1. Uncompress and pick the minimal adb and twrp provided from the zip file.
Alternatively, you can Download Minimal ADB tool from https://androidmtk.com/download-minimal-adb-and-fastboot-tool
or Download the full setup Android Studio from its official source https://developer.android.com/studio/?gclid=EAIaIQobChMIpdiIlpfh5QIVks13Ch2bUw8REAAYASAAEgJW9PD_BwE
Note: please dont forget do a complete backup of your data before start!
2. In your Lenovo Vibe B, enter Settings and Enable Developer Options:
Settings -> About Phone -> Tap on the Build Number around 7-8 Times until you see a message "Developer option enabled"
Now, you need to enable the OEM Unlock. Go to Settings -> Developer Option and Enable OEM Unlock. Just as simple as you hear!
3. Go to the folder you uncompressed the Adb tools.
Open a command tool right there (CMD or powershell). After that, turn off your phone.
Now press and hold power and volume up button keys at the same time and you'll see three options: Fastboot mode, Normal mode and Recovery mode.
Confirm Fastboot mode pressing Volume up until you point/reach to the fastboot option and confirm pressing volume down to enter, wait for the fastboot message in your phone. Now, connect your phone to the pc using an good usb cable.
4. Type in the cmd screen
Code:
fastboot devices
command and check if the phone is being recognized. This command list the connected devices.
If your phone serial number shows up everything is fine, but if the phone serial number doesn't appear, you must reinstall mtk drivers or choose another usb cable.
5. Check the unlock oem
typing the command
Code:
fastboot oem unlock
and press enter.
Alert: This procedure will erase your data and reset to the default configuration. Be careful! Check unlocked oem confirmation message on your phone screen.
6. Now is the moment of install the TWRP recovery.
To flash, type the following command in the cmd window:
Code:
fastboot flash boot boot.img
Press enter and wait for a confirmation message.
Code:
fastboot flash recovery recovery.img
Press enter and wait for a confirmation message.
7. Turn off the phone. Press and hold power and volume up button keys at the same time and you'll see three options.
With the volume up key, point to the Recovery mode option and confirm with the Volume down key. Wait a little and now you are into twrp 3.1.1.0 recovery. In the finishing touches, configure the twrp recovery and choose power off option.
Second part: install LineageOS 14.1, Gapps and SuperSu to the Lenovo Vibe B
8. Uncompress the LineageOs folder and copy to an external SD the Lineage Os, Gapps and SuperSU zip files.
9.Turn off your phone, pull out the battery, insert your microSD to the phone. Turn on your phone and start it in recovery mode just as stated before in step 7. Now, you are into TWRP
10. Do a wipe in order to delete the Stock rom. Tap Wipe option, then choose advanced wipe and pick the following ones:
Code:
Dalvik /ART Cache
System
Cache
Data
Confirm the wipe option swiping to the right and wait the confirmation message. Press back option and return to the main twrp window
11. In the main twrp window, tap the Install option, locate your microSD as externalSD tapping in the select storage to activate the external SD. Now search the files into the SD, pressing in the "up a level" zone and after you reach it, install the following things in the exact order:
Choose the Lineage OS 14.1 Rom zip file (swipe to confirm) and wait. Dont restart the phone.
After that, choose the Gapps zip file, swipe again to confirm and wait.
Finally, choose the SuperSu zip file included in the folder, do a swipe, wait.
If you want, its possible install all the zip files as a bunch using the "add more zip option" that twrp offers to you, but I prefer do it each one by one.
12. Do a final wipe choosing "wipe Dalvik and Cache".
13. Now choose the restart/reboot option. Wait for the phone initial setup (around a couple of minutes)
14. Configure the phone with your android account preferences. install your favorite apps, sync your info, etc.
15. Configure the SuperSU, install it, and verify the root with the Root checker app (you can found it in the Play store) and you are done!! Enjoy!!

Categories

Resources