Hey guys
I just thought we should have a 1-stop-guide for our amazing Moto Z Play. Generally people have to look through various threads before obtaining the real info, this thread was created so that people would find the resources easily without wasting time, looking here and there for information.. I will try to update the thread on regular basis as and when the new developments arrive...
Note: I want to thank all the devs for their efforts. None of this is my creation , i just collected & compiled all the info from various sources, credit as usual goes to original devs
PS: The thread is complete now...Just have to add the images for easy understanding...All the info posted here is latest development with correct info...There is no chance you will brick your phone by following this guide unless you do something wrong...
************************************************** ************************************************** ***************
INDEX************************************************** ************************************************** ***************
Drivers | ADB installer
Unlocking Bootloader (Official Method)
Flashing TWRP and Rooting via TWRP
Back up / Restoring EFS (IMEI)
Restoring original Boot Logo after unlocking bootloader
Installing Xposed Framework
Flashing/ Restoring back to Stock Rom
Changing DPI without root
Remove Ascending Ringtones/Notifications
************************************************** ************************************************** **************
1) Drivers | ADB installer
1) Motorola Drivers (https://motorola-global-portal.custh...ail/a_id/88481)
2) ADB installer (https://forum.xda-developers.com/sho....php?t=2317790) or (http://forum.xda-developers.com/show...8#post48915118)
_______________________________________
2) Unlocking Bootloader (Official Method)
Files needed:
1) Motorola Drivers (https://motorola-global-portal.custh...ail/a_id/88481)
2) ADB installed (https://forum.xda-developers.com/sho....php?t=2317790) or (http://forum.xda-developers.com/show...8#post48915118)
Note: Unlocking the bootloader erases all the data on the phone, make a backup of your imp stuff before unlocking
Method:
1) First of all visit this official Moto Unlocking site & register yourself or login via Google
https://motorola-global-portal.custh...-a/action/auth
2) Enable USB debugging & OEM unlock on the phone (Go to settings -> development options (if they do not have it enabled go to settings-> about the phone and below where it says "Compilation number" tap 7 times to activate the development options).. In the developer options, select "OEM unlock" it will ask for password / PIN / pattern and once activated, we look for "Debugging via USB" and we activate it also, then proceed to turn off the phone)
3) Turn on the phone by pressing Vol down + Power button together for 5 seconds until we get a screen like this:
4) Open adb command window and type:
Code:
fastboot devices
If your device appears on the command window you can continue with the guide, if your phone is not listed, install the Moto drivers correctly and verify if adb is working or not...
5) In the same adb command window type:
Code:
fastboot oem get_unlock_data
You will see numbers displayed like this, copy the code and paste it into notepad..Now eliminate the paragraph break so that there is only one line without spaces… Copy the entire code & login into your Moto account…Now paste the code on the same Moto webpage which was given above…
The unlock code will be sent to your registered email. There will appear an email with the number similar to this:
5)Without disconnecting the phone from the PC & without closing the window of the CMD, we return & we put this code:
Code:
fastboot oem unlock (enter code that was provided in the email)
6) You will be asked to re-enter the same command again, re-enter the code to confirm and finally unblock the bootloader
7) After re-entering the command, you will bootloader unlocked message
_______________________________________
3) Flashing TWRP and Rooting via TWRP
Note: Custom recovery (TWRP) woks only after unlocking your bootloader… Before flashing this recovery unlock your bootloader and enable USB debugging…
Files required:
1) Motorola drivers (https://motorola-global-portal.custh...ail/a_id/88481)
2) ADB installed (https://forum.xda-developers.com/sho....php?t=2317790) or (http://forum.xda-developers.com/show...8#post48915118)
3) TWRP for Moto Z Play (https://mega.nz/#!yZ4lUCYB!-nN0jj2Ws5Z7RNyBT7S8m4gsrdOxTlK3nTjn9zOtx6s)
Method:
1) Download the above recovery, boot the phone in fastboot mode & open adb command window
2) In the adb command window type
Code:
fastboot flash recovery recovery.img
3) After executing the command, disconnect your phone & with the volume + or volume keys - we move until it says "Recovery Mode" . Press the power button to confirm the entry to the recovery.
4) Once you enter the recovery, select the right button & a menu to choose the language is displayed, it only brings Chinese and English so we will put it in English to know what to do.
5) We will see that it asks for a password, it is the same password that you put to encrypt the phone at the beginning when they set up the factory phone and always asks them to turn on the phone, it can be a password / PIN / pattern
6) Once the password has been entered, the recovery main menu will appear, we will go to "Advanced" and then "Install SU", it will ask if we want to root the phone, we accept by sliding and we wait for it to do the process. Then we give in "Reboot System" to restart and the phone will ignite with root
_______________________________________
4) Backing up / Restoring EFS (IMEI)
Note: This works only if you have TWRP recovery... Please backup your EFS using the method below before flashing any rom including stock rom
Backing up EFS (IMEI):
Method:
1) Boot the phone into TWRP recovery
2) Go to "Backup"
3) Select EFS
4) Create backup by sliding
5) Once finished, restart the phone
6) After restarting the phone, copy the TWRP folder from the internal memory to the SD, DO NOT CUT and PASTE, just copy with a file browser. Later from the SD card can be copied to the PC
Restoring lost IMEI / EFS:
Method:
1) Boot the phone into TWRP recovery
2) Go to "Restore"
3) Select folder (location where you have kept a backup of your EFS)
4) Restore by sliding
5) Wipe cache and dalvik and start phone normally
_______________________________________
5) Restoring original Boot Logo after unlocking bootloader
PS: This is used to remove unlocked bootloader warning when the phone is turned on (the black screen with letters)
Credit goes to : G4liant
Files needed:
1) Motorola drivers (https://motorola-global-portal.custh...ail/a_id/88481)
2) ADB installed (https://forum.xda-developers.com/sho....php?t=2317790) or (http://forum.xda-developers.com/show...8#post48915118)
3) Original Motorola Bootlogo (https://mega.nz/#!zNIFHBiY!hbdgUwl9oWjrXbirwXKijviWW0nS_06MViU48yHmSD4)
Method:
1) Boot the phone in fastboot mode, open adb window on pc and type
Code:
fastboot flash logo logo.bin
2) Once the flashing is finished, restart the phone with this command:
Code:
fastboot reboot
When you turn it on, we will notice that we have the original motorola boot logo again and that the previous warning does not appear even when the bootloader of our device is unlocked
_______________________________________
6) Installing Xposed Framework
Files needed:
1) [FONT="]Have TWRP installed (If not installed refer to section #3 on this thread)
2) Download latest Xposed Installer.zip (http://dl-xda.xposed.info/framework/sdk23/arm/ )
3) Download latest Xposed Apk (https://forum.xda-developers.com/showthread.php?t=3034811)
Optional: Download latest Xposed un-installer but ARM 32 version not ARM 64 (http://dl-xda.xposed.info/framework/uninstaller/ )[/FONT]
Method:
1) Copy Xposed installation .zip, Xposed uninstaller (optional) and the Xposed APK to the internal memory (the TWRP does not mount the external SD so do not bother copying it to the External Memory)
2) Install the Xposed APK but DO NOT open it.
3) Enter recovery mode and open TWRP, Choose language and enter password to decrypt your device
4) Once the password is entered, the main recovery menu will appear, select "Install" and a file manager will appear, we will navigate the file down and look for the Xposed installer .zip, something like this:
5) Select the Xposed installer .zip and it will open a zip installer, slide to accept the flash of the .zip and wait for the process to finish. Then we give in "Wipe Dalvik / cache" and then to "Reboot System" to reboot and the phone will light up with Xposed already working.
_______________________________________
7) Flashing/ Restoring back to Stock Rom
IMPORTANT: First locate the firmware for your country / operator / area / continent to avoid changing baseband or other things that make the phone does not work as it should.
Credit goes to: Khanov XDA
Stock Rom links:
[FONT="]Stock China
http://www.filefactory.com/file/6814...LT_CFC.xml.zip
Rogers Canada
http://www.filefactory.com/file/57g6...LT_CFC.xml.zip
Retail Latino America
http://www.filefactory.com/file/6pt8...%20%281%29.zip
Retail Latin America
https://mega.nz/#!WBYX3awb!qR1zitz1O...M1tnq1OwWDYDYA
Retail Europe
http://www.filefactory.com/file/4ora...C_EMEA.xml.zip
Retail Canada
http://www.filefactory.com/file/64wm...LT_CFC.xml.zip
Movistar Colombia
http://www.filefactory.com/file/10sv...LT_CFC.xml.zip.
Verizon
http://www.filefactory.com/file/60ty...LT_CFC.xml.zip
A Repository with several firmwares including Indian:
https://mirrors.lolinet.com/firmware...ison/official/[/FONT]
[FONT="]
Files needed: [/FONT]
[FONT="]1) Motorola drivers (https://motorola-global-portal.custh...ail/a_id/88481)
2) ADB installed (https://forum.xda-developers.com/sho....php?t=2317790) or (http://forum.xda-developers.com/show...8#post48915118)
3) Firmware chosen from above links[/FONT]
[FONT="]
[/FONT]
Method 1 (Manually by using adb commands):
1) Boot the phone into fastboot mode and open adb command window on pc
Code:
fastboot devices
This will show us if the phone is correctly connected and installed the drivers, it will detect the PC in fastboot mode and we can continue with the tutorial we will put these commands in the order they are, you can put them one at a time and pressing enter to execute it
Code:
[SIZE=2][B][FONT=Century Gothic]fastboot oem fb_mode_set
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash dsp adspso.bin
fastboot flash oem oem.img
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash system system.img_sparsechunk.4
fastboot flash system system.img_sparsechunk.5
fastboot flash system system.img_sparsechunk.6
fastboot flash system system.img_sparsechunk.7
fastboot flash system system.img_sparsechunk.8
fastboot flash system system.img_sparsechunk.9
fastboot flash system system.img_sparsechunk.10
fastboot flash NON-HLOS.bin modem [COLOR=Red]([/COLOR][COLOR=Red][I]can skip this and thus [U]would[/U] prevent loss of IMEI)[/I][/COLOR]
fastboot erase modemst1 [I] [COLOR=Red](can skip this and thus [U]would[/U] prevent loss of IMEI)[/COLOR][/I]
fastboot erase modemst2 [COLOR=Red][I]([/I][/COLOR][COLOR=Red][I]can skip this and thus [U]would[/U] prevent loss of IMEI)[/I][/COLOR]
fastboot flash fsg fsg.mbn [COLOR=Red][I](can skip this and thus [U]would[/U] prevent loss of IMEI)[/I][/COLOR]
fastboot erase cache
fastboot erase userdata [COLOR=Red]([/COLOR][COLOR=Red][I]can skip this and thus [U]would[/U] prevent loss of your data (Internal storage)[/I][/COLOR]
[/FONT][/B][/SIZE][SIZE=2][B][FONT=Century Gothic] fastboot oem fb_mode_clear
fastboot reboot
[/FONT][/B][/SIZE]
Your phone will reboot and will be restored to stock rom
In case an error occurs during OTA, even after doing the above step flash the modem by typing:
NOTE: You will find these files (NON-HLOS.bin, fsg.mbn, adspso.bin etc) along with the systemchunk files you downloaded
Code:
[/FONT][/B][/SIZE][/SIZE][SIZE=2][SIZE=2][B][FONT=Century Gothic]fastboot flash modem NON-HLOS.bin
fastboot flash fsg fsg.mbn
fastboot erase modemst1
fastboot erase modemst2
fastboot flash dsp adspso.bin
Now reboot the phone and apply OTA... It will succeed
Method 2 (Using software ; RSD lite to flash) :
Files needed:
1) Motorola drivers (https://motorola-global-portal.custh...ail/a_id/88481)
2) ADB installed (https://forum.xda-developers.com/sho....php?t=2317790) or (http://forum.xda-developers.com/show...8#post48915118)
3) RSD lite (http://rsdlite.com/rsd-lite-download/)
4) Stock Rom from the links provided above
Method:
1) Enable USB debugging
2) Download RSDlite and Stock Rom zip file
3) Open RSDlite and browse button (next to file name textbox)... Find and select "flashfile.xml" from the downloaded zip file (extract the zip file)
4) Boot the phone into fastboot mode and connect the phone to pc; RSD lite shows ID if connected
5) Click start button…Now flashing process has started…It will flash files one by one…Wait for it till it shows reboot…
[FONT="]6) Handset will automatically restart after flashing process completes[/FONT]
_______________________________________
8) Changing DPI without root
Files needed:
1) Motorola drivers (https://motorola-global-portal.custh...ail/a_id/88481)
2) ADB installed (https://forum.xda-developers.com/sho....php?t=2317790) or (http://forum.xda-developers.com/show...8#post48915118)
Method:
Note: The DPI used here is 420... You can adjust the DPI according to your own taste... The default DPI is 480
1) Open ADB command window and enter:
Code:
[FONT=Century Gothic][B][B][B][FONT=Century Gothic][B][B][B]adb shell wm density 420[/B][/B][/B][/FONT][/B][/B][/B][/FONT]
2) Reboot your phone to apply the effects system wide
Reverting back to stock DPI:
Method:
1) Open ADB command window and enter:
Code:
[FONT=Century Gothic][B][B][B][FONT=Century Gothic][B][B][B][FONT=Century Gothic][B][B][B][FONT=Century Gothic][B][B][B]adb shell wm density 480"[/B][/B][/B][/FONT] or "[/B][/B][/B][/FONT][FONT=Century Gothic][B][B][B][FONT=Century Gothic][B][B][B][FONT=Century Gothic][B][B][B]adb shell wm size reset" (If the 1st one doesnt work or some apps show wrong layouts like Snapchat etc[/B][/B][/B][/FONT][/B][/B][/B][/FONT][/B][/B][/B][/FONT][/B][/B][/B][/FONT][/B][/B][/B][/FONT]
2) Reboot your phone to apply the effects system wide
_______________________________________
9) Remove Ascending Ringtones/Notifications
Files needed:
1) TWRP
2) Ringtones / Notifications mod (http://cloud.tapatalk.com/s/58221f724bc3b/Ascending_audio_fix_motozplay.zip)
Method:
1) Download the mod and copy it to internal storage. Boot the phone in TWRP
2) Select install and locate the file in the file manager... Select the file and flash it
Reverting back to stock (Ascending ringtones):
Method:
1) Download this file [FONT="]https://www.dropbox.com/s/otsir98jjlqnb85/Ascending_audio_stock_motozplay.zip?dl=0https://www.dropbox.com/s/otsir98jjlqnb85/Ascending_audio_stock_motozplay.zip?dl=0
2) Copy it to internal storage & boot the phone in TWRP... Select install and locate the file
3) Select the file and flash it[/FONT]
reserved...
reserved
Nicely work
Really nice thread. Just one thing...
Could you credit me for the modified logo.bin?
https://forum.xda-developers.com/showpost.php?p=69273602&postcount=37
Can I flash logo.bin zip in twrp?
Nope, has to be unzipped and flashed in fastboot, which shouldn't make much of a difference, as it has only to be done once. No need for reflashing after switching your custom rom.
G4liant said:
Really nice thread. Just one thing...
Could you credit me for the modified logo.bin?
https://forum.xda-developers.com/showpost.php?p=69273602&postcount=37
Click to expand...
Click to collapse
Sure man...Edited the OP... :good: Actually i found it on another site it didnt mention anyone so i posted like that only....Anyways nice work
Thanks and very useful.
Hey guys, it takes an incredibly long time to download the stock ROM, anybody have a solution for this? It also just stops and says 'network error' at 0.3gb. So I can't unbrick my phone really.
coolkingler1 said:
Hey guys, it takes an incredibly long time to download the stock ROM, anybody have a solution for this? It also just stops and says 'network error' at 0.3gb. So I can't unbrick my phone really.
Click to expand...
Click to collapse
More firmware found here https://mirrors.lolinet.com/firmware/moto/addison/official/
Sent from my XT1635-02 using XDA-Developers Legacy app
flashallthetime said:
More firmware found here https://mirrors.lolinet.com/firmware/moto/addison/official/
Sent from my XT1635-02 using XDA-Developers Legacy app
Click to expand...
Click to collapse
I found a good mirror at the Rooting thread but thanks!
TWRP flashing file download link dead
3rd section file needed are not expanding when that button is clicked some kind of glitch I think can you share the link directly.
abhilash_s_j said:
3rd section file needed are not expanding when that button is clicked some kind of glitch I think can you share the link directly.
Click to expand...
Click to collapse
Nope works fine for me...anyways here is the direct link:
https://mega.nz/#%21yZ4lUCYB%21-nN0jj2Ws5Z7RNyBT7S8m4gsrdOxTlK3nTjn9zOtx6s
Thank you for the effort
Thanks for your work!
Sent from my Nexus 6 using XDA-Developers Legacy app
TWRP flashing file download link dead
3rd section file needed are not expanding when that button is clicked some kind of glitch I think can you share the link directly.
---------- Post added at 01:37 AM ---------- Previous post was at 01:14 AM ----------
After flashing the original firmware of my device, there is no network signal, i cannot make calls, cannot use data, in general the SIM does not work. Does anyone knows how to solve this?
kkarora said:
TWRP flashing file download link dead
3rd section file needed are not expanding when that button is clicked some kind of glitch I think can you share the link directly.
---------- Post added at 01:37 AM ---------- Previous post was at 01:14 AM ----------
After flashing the original firmware of my device, there is no network signal, i cannot make calls, cannot use data, in general the SIM does not work. Does anyone knows how to solve this?
Click to expand...
Click to collapse
Check your IMEI, I think that you have lost It.
Hitachy said:
Check your IMEI, I think that you have lost It.
Click to expand...
Click to collapse
Yes IMEI is showing 0. How to restore it back...?
kkarora said:
Yes IMEI is showing 0. How to restore it back...?
Click to expand...
Click to collapse
If you have a twrp backup, restore It. If you don't have, assistance.
Hello, this morning I was making a Factory reset on my phone, but when i was gonna login with my Gmail account i realized that i've forgotten the password, and the recovery number was inactive so i couldnt recover my account, then I flashed a Update.app but it didnt work either, then I put the device in fastboot mode to flash a recovery.IMG but when im gonna active the "Unlock OEM" in developer settings (the device is in Cofiguration interface) so when i ingress to Setting Menu, and i give in Compilation Number it doesnt work, so i really dont know what to do now, if anyone can help me ill will apreciate it!!
reynoxo said:
Hello, this morning I was making a Factory reset on my phone, but when i was gonna login with my Gmail account i realized that i've forgotten the password, and the recovery number was inactive so i couldnt recover my account, then I flashed a Update.app but it didnt work either, then I put the device in fastboot mode to flash a recovery.IMG but when im gonna active the "Unlock OEM" in developer settings (the device is in Cofiguration interface) so when i ingress to Setting Menu, and i give in Compilation Number it doesnt work, so i really dont know what to do now, if anyone can help me ill will apreciate it!!
Click to expand...
Click to collapse
I am sorry i couldn't understand the latter half of your post.
What do you want to do? Unlock your bootloader? Flash recovery? or factory reset?
dev.kasibhatla said:
I am sorry i couldn't understand the latter half of your post.
What do you want to do? Unlock your bootloader? Flash recovery? or factory reset?
Click to expand...
Click to collapse
I need to install a custom recovery and to do that I need to unlock bootloader mode
reynoxo said:
I need to install a custom recovery and to do that I need to unlock bootloader mode
Click to expand...
Click to collapse
Fine i ll type down steps in max detail for you.
Go to developer options, enable usb debugging and oem unlock.
download platform-tools by google. (adb)
Extract it. Say at C:\
Now install drivers for your phone
open cmd and navigate to the folder where you extracted platform tools. Follow the code.
Enable usb debugging from developer options
[/LIST]
Code:
cd C:\platform-tools
adb devices
a device and some number should show up with an online status
Code:
adb reboot bootloader
fastboot devices
again, a device and number should show
Code:
fastboot oem unlock
fastboot reboot
if it says success,bootloader is unlocked.
download a recovery.img specific to your phone. rename it to say twrp.img and place it in the same folder as platform tools.
Code:
adb reboot bootloader
fastboot boot twrp.img
the recovery will boot. this is a temporary boot and will wipe off on a reboot. You can also flash the recovery using fastboot flash command.
dev.kasibhatla said:
Fine i ll type down steps in max detail for you.
Go to developer options, enable usb debugging and oem unlock.
download platform-tools by google. (adb)
Extract it. Say at C:\
Now install drivers for your phone
open cmd and navigate to the folder where you extracted platform tools. Follow the code.
Enable usb debugging from developer options
[/LIST]
Code:
cd C:\platform-tools
adb devices
a device and some number should show up with an online status
Code:
adb reboot bootloader
fastboot devices
again, a device and number should show
Code:
fastboot oem unlock
fastboot reboot
if it says success,bootloader is unlocked.
download a recovery.img specific to your phone. rename it to say twrp.img and place it in the same folder as platform tools.
Code:
adb reboot bootloader
fastboot boot twrp.img
the recovery will boot. this is a temporary boot and will wipe off on a reboot. You can also flash the recovery using fastboot flash command.
Click to expand...
Click to collapse
Thank you very much, it was very helpful.
hi,i like unlock bootloader - right check usb debuging,oem unlock?fastboot oem unlock and say this : FAILED (remote:size is wrong)?
I wanted to create a guide which is as simple as rooting a OnePlus 3T. I don’t know if it will work with the OnePlus 3. I’m not responsible for anything. You’re doing it on your own risk, so only do it if you know what you will do, now! It may brick your device.
This is the way it worked for me. I do not guarantee it will work for you!
READ THE WHOLE INSTRUCTIONS FIRST BEFORE YOU DO ANYTHING
What we do:
- Flash TWRP
- Flash an old version of OOS
- Enable dm verity
- Relock the bootloader
- Flash the latest stock rom
What you need:
- Computer (Windows 7 or 10)
- USB Cable
- about 1 hour of your lifetime
YOU WILL LOOSE ALL YOUR DATA - ALSO THE INTERNAL STORAGE WILL BE DELETED (pics, music and all the stuff stored there)
Download to your computer:
Latest TWRP for OnePlus 3T
https://forum.xda-developers.com/on.../recovery-official-twrp-oneplus-3-3t-t3543391
and
latest OOS from OnePlus for your 3T
http://downloads.oneplus.net/
THE USB DRIVERS MUST BE INSTALLED ON YOUR COMPUTER
Download to the phone:
4.0.2 OOS Stock rom (post #2)
https://forum.xda-developers.com/oneplus-3t/development/recovery-twrp-oneplus-3t-t3507308
Flash TWRP:
1. Start your phone in fastboot mode (don’t connect to your PC yet!)
2. Open CMD as Admin (Windows start-menu - type “cmd”, right-click, run as administrator)
3. connect your phone
4. rename the file to “recovery” (don’t type “recovery.img” manually, only “recovery”)
5. type command “fastboot devices” -> device will be listed
6. command “fastboot flash recovery C:\Users\...\recovery.img” (the path where it’s stored)
7. done -> boot to recovery
8. disconnect your phone - leave CMD open
Flash OOS 4.0.2
1. Go into TWRP
2. wipe “System, Data, Cache, Dalvik”
3. Install OOS 4.0.2
4. reboot into fastboot
Enable dm-verity:
1. connect your 3T when it’s back in fastboot
2. type in CMD “enable dm-verity”
3. done - keep CMD open and the phone connected
Relock the bootloader:
1. type in CMD “fastboot OEM lock”
2. Warning message on your phone will pop up -> choose “yes” on your phone by using the volume buttons to lock the bootloader (keep CMD open)
Update to the newest OOS via “sideload”:
1. VOL down to boot into recovery
2. choose “Install from ADB”
3. “Upgrade Android from USB?” -> “Ok”
4. rename the OOS zip file to "update"
5. type in CMD “adb sideload C:\Users\...update.zip”
6. done
7. reboot the device - it will take about 10 minutes, DO NOT INTERRUPT THE PROCESS
Finish
Take your time! Don't do it if you're in a rush.
Please give me feedback if it worked for you or if I have to change something.
enable dm-verity doesnt work
"enable is not recognised..."
chowchillacharlie said:
enable dm-verity doesnt work
"enable is not recognised..."
Click to expand...
Click to collapse
Did you check if the device is listed in fastboot?
You can also try the command "disable" and then "enable"
Sometimes you may need to do it first, even if it's disabled
Thanks for your threat. I tried this but had to do a couple things differently.
I think enabling/disabling dm-verity works only with old firmware.
What I used:
* 4.0.2 firmware from this threat https://forum.xda-developers.com/oneplus-3t/how-to/firmware-modem-collection-flashable-zips-t3565535
* latest oneplus recovery and rom https://downloads.oneplus.com/
* the recovery can be downloaded from a link on the bottom of the rom download site.
I started with twrp and a custom rom.
You need usb debuging enabled and adb and fastboot installed
What I did:
* I did a Nandroid backup, and copied the sdcards content to my computer, because the following completely wiped my phone
"adb pull /sdcard /path/to/my/drive/"
* flash 4.0.2 firmware, with trp
enter adb sideload mode in twrp and
"adb sideload firmware.zip"
* fastboot flash oneplus recovery
"fastboot flash recovery recovery.img"
* using onplus recovery and sideloading installed latest oneplus rom
enter adb sideload and
"adb sideload oneplusrom.zip"
* did a factory reset in oneplus recovery and cheked if my phone would boot
* entered fastboot mode
"fastboot oem disable_dm_verity", then "fastboot oem enable_dm_verity"
"fastboot oem lock"
after that my phone got wiped again, and the next boot took a long time
Then the phone was completely stock
Wanted to post to say thanks to roor7 and WhataHulk - had a rooted 3T I wanted to sell following an upgrade (best price requires the phone to have no sign of root!), and this was the only method that worked for me to enable dm-verity.
As a quick note, I followed roor7's guide, but got the same error message as chowchillacharlie. After sme playing about I found the simplest soultion was using the CMD line provided towards the end of WhataHulk's guide, i.e. - "fastboot oem disable_dm_verity", then "fastboot oem enable_dm_verity". For me, roor7's guide swapping the type "enable dm-verity" in CMD with "fastboot oem enable_dm_verity" worked a treat.
Sorry if that is all incredibly obvious to most people!
Thanks again gents.
This guide worked for every OREO version, and also is working for PIE ! :good:
You will enable camera2 on your phone, and keep it stock afterwards so it can receive future OTA updates. :victory:
1 - Unlocking bootloader
Unlocking bootloader, this command will delete/reset your phone, so do backup of files as needed.
First of all, enable the Developer Option.
To do this go to your Settings -> About -> Software Information -> More -> Now Tap on the Build Number 7-8 Times until you see a toast message “Developer option enabled”.
Now go back to settings -> Enable the OEM Unlock by going to Settings -> Developer Option and Enable OEM Unlock and USB Debugging.
Now connect the phone with your USB cable, use USB port 2.0 on your computer.
It should appear on your phone screen an asking for access privileges of your PC (device, maybe Linux), allow it.
Download ADB if you don't have it.
https://drive.google.com/file/d/1yCdMyAAOD46T4B8haFuZVF57E4-WK8l2/view?usp=sharing
In ADB folder, double click "Open CMD here.bat".
AND FROM THIS TIME, YOU DON'T CLOSE THIS CMD AT ALL, UNTILL YOU FINISH THE WHOLE GUIDE
Code:
adb devices
Your device should appear with some random numbers like this
https://www.howtogeek.com/wp-content/uploads/2012/10/image34.png
If it does, go to next stage, if it's not, you are not installed usb drivers corectly or did not enabled usb debugging.
Link for USB Drivers for Mi A2.
http://dl.adbdriver.com/upload/adbdriver.zip
Code:
adb reboot bootloader
Unlocking bootloader, this command will delete/reset your phone, so do backup of files as needed.
Code:
fastboot oem unlock
Phone will reboot, go to check developer options > usb debugging ON once again.
Code:
adb reboot bootloader
Again in fastboot we are unlocking critical partitions, and once again it will erase verything from the phone, so be sure to do the backup as needed.
Code:
fastboot flashing unlock_critical
Again when the phone reboot, check developer options > usb debugging ON.
2. Rooting the phone (temporarily)
Download stock boot and patched boot of android version you have, if you need versions for OREO, find somewhere in forum, here it is link for PIE.
10.0.9.0 https://drive.google.com/drive/folders/1ZP5jelFGT5z9EJvHRokzLJwAikKtWI8p?usp=sharing
10.0.8.0 https://drive.google.com/drive/folders/1XNE_veO_FvOLQ46oorUBa2g7TKA1PHRv?usp=sharing
10.0.7.0 https://drive.google.com/drive/folders/1kHLYXhaWFpjh58F79xnOkN3kjkuyEdHV?usp=sharing
10.0.5.0 https://drive.google.com/drive/folders/1qCIsk1MVVq_X-mR8BBWa2NeVLB_-4q5y?usp=sharing
10.0.4.0 https://drive.google.com/drive/folders/1piLD_9mQv0XgahyIZdxRqfdwaDbfx2_0?usp=sharing
10.0.3.0 https://drive.google.com/open?id=1uO3yfxHdTr4gv4DmCaLu-naIIt8mprBT
"It seems like 10.0.3.0 OTA is withdrawn by Xiaomi due to numerous bootloops in stock phones."
My recommendation is to skip flashing this version, until next stable comes up !
10.0.2.0 https://drive.google.com/drive/folders/1_cIM0ltKD_PU1mIiWwUE-nMba964NyvN?usp=sharing
10.0.1.0 https://drive.google.com/drive/folders/18tcBVaKwH9cy_RVczf-GSc_tAkFYvn15?usp=sharing
9.6.17.0 https://drive.google.com/drive/folders/1D9RlDZRupdriCyJM4p0ixvntPE2QPP9w?usp=sharing
Put the files in adb folder, both the stock boot.img and patched_boot.img.
NOW !
There are two methods, so you can choose between those two:
1. Faster and easier one with only booting patched boot
2. Slower with flashing, but this one will teach you how to flash and root your phone
1. ENABLING WITH BOOTING PATCHED_BOOT.IMG
In CMD type
Code:
adb reboot bootloader
Code:
fastboot boot patched_boot.img
When the phone starts, wait for magisk to appear in apps, or if it's not there, find it in apkmirror site, magisk manager, download, install from phone it is easier.
https://www.apkmirror.com/?post_type=app_release&searchtype=apk&s=magisk+manager
Then when you start magisk, it will ask you to download full zip, just skip it, your phone will now be rooted.
3. Enabling Camera2 api (lvl3)
In CMD type
Code:
adb shell
Code:
su
(this time look at the phone screen, allow root access ONCE)
Code:
setprop persist.camera.HAL3.enabled 1
For PIE and for using v6 Gcam ports three more commands, for OREO it is not needed.
Code:
setprop persist.vendor.camera.HAL3.enabled 1
Code:
setprop persist.camera.stats.test 5
Code:
setprop persist.vendor.camera.stats.test 5
Press ctrl+c to exit adb shell (windows) or just type "exit" and again "exit"
4. Unrooting the phone
Start magisk again, go to UNINSTALL, choose full uninstall, magisk will reboot the phone in process of uninstalling, and the phone should start normaly without Magisk installed, and with camera2 enabled, because nothing was flashed, you are DONE !
2. ENABLING WITH FLASHING PATCHED_BOOT.IMG
In CMD type
Code:
adb reboot bootloader
Code:
fastboot getvar current-slot
Then when you see your active partition, flash the patched image.
Code:
fastboot flash boot_a patched_boot.img
OR if it was b partition active
Code:
fastboot flash boot_b patched_boot.img
Code:
fastboot reboot
When the phone starts, wait for magisk to appear in apps, or if it's not there, find it in apkmirror site, magisk manager, download, install from phone it is easier.
https://www.apkmirror.com/?post_type=app_release&searchtype=apk&s=magisk+manager
Then when you start magisk, it will ask you to download full zip, just skip it, your phone will now be rooted.
3. Enabling Camera2 api (lvl3)
In CMD type
Code:
adb shell
Code:
su
(this time look at the phone screen, allow root access ONCE)
Code:
setprop persist.camera.HAL3.enabled 1
For PIE and for using v6 Gcam ports three more commands, for OREO it is not needed.
Code:
setprop persist.vendor.camera.HAL3.enabled 1
Code:
setprop persist.camera.stats.test 5
Code:
setprop persist.vendor.camera.stats.test 5
Press ctrl+c to exit adb shell (windows) or just type "exit" and again "exit"
4. Unrooting the phone
Start magisk again, go to UNINSTALL, choose full uninstall, magisk will reboot the phone in process of uninstalling, prepare and hold down the volume button when phone restarts, your phone will go into fastboot.
Type the command for active partition
Code:
fastboot getvar current-slot
Code:
fastboot flash boot_a boot.img
Or
Code:
fastboot flash boot_b boot.img
Code:
fastboot reboot
This is it guys, you have enabled lvl3 (camera2), and unrooted phone, ready for next OTA updates.
Install camera2 probe from gplay to confirm.
https://play.google.com/store/apps/details?id=de.weis.camera2probe&hl=en
Phone needs to stay with unlocked bootloader, because if you lock the phone, you will lose camera2, but do not worry, the future OTA updates will work.
If this guide helped you, please click the thanks button, that's all, cheers. :highfive:
If you're using temp recovery, just fastboot boot patched_boot.img, no need to flash, and once done just reboot
if i flash boot.img back i get stuck in android one screen
idriff said:
if i flash boot.img back i get stuck in android one screen
Click to expand...
Click to collapse
On what android version were you ?
pie, i just flashed back the modified boot and it worked but now im rooted
What version google camera you guys using?
minnuss said:
This guide worked for every OREO version, and also is working for PIE ! :good:
You will enable camera2 on your phone, and keep it stock afterwards so it can receive future OTA updates. :victory:
1 - Unlocking bootloader
Unlocking bootloader, this command will delete/reset your phone, so do backup of files as needed.
First of all, enable the Developer Option.
To do this go to your Settings -> About -> Software Information -> More -> Now Tap on the Build Number 7-8 Times until you see a toast message “Developer option enabled”.
Now go back to settings -> Enable the OEM Unlock by going to Settings -> Developer Option and Enable OEM Unlock and USB Debugging.
Now connect the phone with your USB cable, use USB port 2.0 on your computer.
It should appear on your phone screen an asking for access privileges of your PC (device, maybe Linux), allow it.
Download ADB if you don't have it.
https://drive.google.com/file/d/1yCdMyAAOD46T4B8haFuZVF57E4-WK8l2/view?usp=sharing
In ADB folder, double click "Open CMD here.bat".
AND FROM THIS TIME, YOU DON'T CLOSE THIS CMD AT ALL, UNTILL YOU FINISH THE WHOLE GUIDE
Code:
adb devices
Your device should appear with some random numbers like this
https://www.howtogeek.com/wp-content/uploads/2012/10/image34.png
If it does, go to next stage, if it's not, you are not installed usb drivers corectly or did not enabled usb debugging.
Code:
adb reboot bootloader
Unlocking bootloader, this command will delete/reset your phone, so do backup of files as needed.
Code:
fastboot oem unlock
Phone will reboot, go to check developer options > usb debugging ON once again.
Code:
adb reboot bootloader
Again in fastboot we are unlocking critical partitions, and once again it will erase verything from the phone, so be sure to do the backup as needed.
Code:
fastboot flashing unlock_critical
Again when the phone reboot, check developer options > usb debugging ON.
2. Rooting the phone (temporarily)
Download stock boot and patched boot of android version you have, if you need versions for OREO, find somewhere in forum, here it is link for PIE.
https://drive.google.com/drive/folders/18tcBVaKwH9cy_RVczf-GSc_tAkFYvn15?usp=sharing
Put the files in adb folder, both the stock boot.img and patched_boot.img.
Code:
adb reboot bootloader
Code:
fastboot getvar current-slot
Then when you see your active partition, flash the patched image.
Code:
fastboot flash boot_a patched_boot.img
OR if it was b partition active
Code:
fastboot flash boot_b patched_boot.img
Code:
fastboot reboot
When the phone starts, wait for magisk to appear in apps, or if it's not there, find it in apkmirror site, magisk manager, download, install from phone it is easier.
https://www.apkmirror.com/?post_type=app_release&searchtype=apk&s=magisk+manager
Then when you start magisk, it will ask you to download full zip, let him do it, install full zip, your phone will now be rooted.
3. Enabling Camera2 api (lvl3)
In CMD type
Code:
adb shell
Code:
su
(this time look at the phone screen, allow root access ONCE)
Code:
setprop.persist.camera.HAL3.enabled 1
For PIE one more command, for OREO it is not needed.
Code:
setprop persist.vendor.camera.HAL3 enabled 1
Press ctrl+c to exit adb shell.
4. Unrooting the phone
Start magisk again, go to UNINSTALL, choose full uninstall, magisk will reboot the phone in process of uninstalling, prepare and hold down the volume button when phone restarts, your phone will go into fastboot.
Type the command for active partition
Code:
fastboot getvar current-slot
Code:
fastboot flash boot_a boot.img
Or
Code:
fastboot flash boot_b boot.img
Code:
fastboot reboot
This is it guys, you have enabled lvl3 (camera2), and unrooted phone, ready for next OTA updates.
Install camera2 probe from gplay to confirm.
https://play.google.com/store/apps/details?id=de.weis.camera2probe&hl=en
Phone needs to stay with unlocked bootloader, because if you lock the phone, you will lose camera2, but do not worry, the future OTA updates will work.
If this guide helped you, please click the thanks button, that's all, cheers. :highfive:
Click to expand...
Click to collapse
For me it worked, but in stock camera cant see any diferences, can someone link me a gcam apk to install?
minnuss said:
This guide worked for every OREO version, and also is working for PIE ! :good:
You will enable camera2 on your phone, and keep it stock afterwards so it can receive future OTA updates. :victory:
1 - Unlocking bootloader
Unlocking bootloader, this command will delete/reset your phone, so do backup of files as needed.
First of all, enable the Developer Option.
To do this go to your Settings -> About -> Software Information -> More -> Now Tap on the Build Number 7-8 Times until you see a toast message “Developer option enabled”.
Now go back to settings -> Enable the OEM Unlock by going to Settings -> Developer Option and Enable OEM Unlock and USB Debugging.
Now connect the phone with your USB cable, use USB port 2.0 on your computer.
It should appear on your phone screen an asking for access privileges of your PC (device, maybe Linux), allow it.
Download ADB if you don't have it.
https://drive.google.com/file/d/1yCdMyAAOD46T4B8haFuZVF57E4-WK8l2/view?usp=sharing
In ADB folder, double click "Open CMD here.bat".
AND FROM THIS TIME, YOU DON'T CLOSE THIS CMD AT ALL, UNTILL YOU FINISH THE WHOLE GUIDE
Code:
adb devices
Your device should appear with some random numbers like this
https://www.howtogeek.com/wp-content/uploads/2012/10/image34.png
If it does, go to next stage, if it's not, you are not installed usb drivers corectly or did not enabled usb debugging.
Code:
adb reboot bootloader
Unlocking bootloader, this command will delete/reset your phone, so do backup of files as needed.
Code:
fastboot oem unlock
Phone will reboot, go to check developer options > usb debugging ON once again.
Code:
adb reboot bootloader
Again in fastboot we are unlocking critical partitions, and once again it will erase verything from the phone, so be sure to do the backup as needed.
Code:
fastboot flashing unlock_critical
Again when the phone reboot, check developer options > usb debugging ON.
2. Rooting the phone (temporarily)
Download stock boot and patched boot of android version you have, if you need versions for OREO, find somewhere in forum, here it is link for PIE.
https://drive.google.com/drive/folders/18tcBVaKwH9cy_RVczf-GSc_tAkFYvn15?usp=sharing
Put the files in adb folder, both the stock boot.img and patched_boot.img.
Code:
adb reboot bootloader
Code:
fastboot getvar current-slot
Then when you see your active partition, flash the patched image.
Code:
fastboot flash boot_a patched_boot.img
OR if it was b partition active
Code:
fastboot flash boot_b patched_boot.img
Code:
fastboot reboot
When the phone starts, wait for magisk to appear in apps, or if it's not there, find it in apkmirror site, magisk manager, download, install from phone it is easier.
https://www.apkmirror.com/?post_type=app_release&searchtype=apk&s=magisk+manager
Then when you start magisk, it will ask you to download full zip, let him do it, install full zip, your phone will now be rooted.
3. Enabling Camera2 api (lvl3)
In CMD type
Code:
adb shell
Code:
su
(this time look at the phone screen, allow root access ONCE)
Code:
setprop.persist.camera.HAL3.enabled 1
For PIE one more command, for OREO it is not needed.
Code:
setprop persist.vendor.camera.HAL3 enabled 1
Press ctrl+c to exit adb shell.
4. Unrooting the phone
Start magisk again, go to UNINSTALL, choose full uninstall, magisk will reboot the phone in process of uninstalling, prepare and hold down the volume button when phone restarts, your phone will go into fastboot.
Type the command for active partition
Code:
fastboot getvar current-slot
Code:
fastboot flash boot_a boot.img
Or
Code:
fastboot flash boot_b boot.img
Code:
fastboot reboot
This is it guys, you have enabled lvl3 (camera2), and unrooted phone, ready for next OTA updates.
Install camera2 probe from gplay to confirm.
https://play.google.com/store/apps/details?id=de.weis.camera2probe&hl=en
Phone needs to stay with unlocked bootloader, because if you lock the phone, you will lose camera2, but do not worry, the future OTA updates will work.
If this guide helped you, please click the thanks button, that's all, cheers. :highfive:
Click to expand...
Click to collapse
The post has some errors but I'm here to report you guys how I made it work.
adb devices
adb reboot bootloader
(I had the bootloader unlocked already so I didn't do those steps)
fastboot boot patched_boot.img
(Notice I didn't flash the patched image, you don't need to do that, my current partition was b, but that doesn't matter since I'm not flashing anything, I am just booting into the patched/rooted image)
(Installed magisk manager and rootchecker)
(magisk said it was rooted, so did root checker)
adb shell
su
(I gave the permission on my phone)
setprop persist.camera.HAL3.enabled 1
(If you check the post carefully, this line above is not the same one the OP has, that one is wrong, mine is right)
setprop persist.vendor.camera.HAL3.enabled 1
ctrl+c
adb reboot
(Notice I don't flash anything here as well, since I didn't flash the patched image, so if I reboot, it will boot into my stock boot image)
aaaaaaand it's done.
Thanks to the OP for his work, and please correct the line that is wrong. Cheers. :angel:
Google Camera working fine.
Jamesismo said:
The post has some errors but I'm here to report you guys how I made it work...
Click to expand...
Click to collapse
Hello, thanks a lot!
It's works perfect!
Best regards!!!
hugomoya said:
Hello, thanks a lot!
It's works perfect!
Best regards!!!
Click to expand...
Click to collapse
Please don't quote OP for a single line of comment.
@Jamesismo, thanx, I fixed the typo mistake, did not have the DOT in command line, it was not an error, just a typo, but thanx.
And yes, please guys, do not quote the first post.
In a guide, a neewbie can learn how to unlock bootloader, root the phone, enable cam2, and unroot the phone.
So he can choose, whether he wants to stay with rooted phone or not, or to unroot later if he wants...
I think that with this method, OTA will work even if he has Magisk installed, because nothing is changed in system, but that needs to be confirmed.
I noticed that many people want to lock the bootloader to recieve OTA. It is unnecessary you still receive OTA with an unlocked bootloader provided you have not changed the system folder etc.
Hey @minnuss good job! glad to see this.
I would change one thing i noticed: "Press ctrl+c to exit adb shell."
That's a Windows thing, doesn't work with Linux or Mac. Most people 'should' know how to exit a command prompt, but if not, safer to just say type 'exit' and hit enter. That works on all of the systems.
Cheers
This is it guys, you have enabled lvl3 (camera2), and unrooted phone, ready for next OTA updates.
Install camera2 probe from gplay to confirm.
https://play.google.com/store/apps/details?id=de.weis.camera2probe&hl=en
Phone needs to stay with unlocked bootloader, because if you lock the phone, you will lose camera2, but do not worry, the future OTA updates will work.
If this guide helped you, please click the thanks button, that's all, cheers. :highfive:[/QUOTE]
If may i ask what version of Gcam you recommend? I've tried
Arnova's v8.3b1 and the front facing camera doesn't work on photo mode, but work on video.
Thanks
@minnuss Hey bro, the post does still have a typo, after "setprop" there must be a space, not a dot. (First line)
---------- Post added at 06:09 PM ---------- Previous post was at 05:57 PM ----------
afajri said:
This is it guys, you have enabled lvl3 (camera2), and unrooted phone, ready for next OTA updates.
Install camera2 probe from gplay to confirm.
https://play.google.com/store/apps/details?id=de.weis.camera2probe&hl=en
Phone needs to stay with unlocked bootloader, because if you lock the phone, you will lose camera2, but do not worry, the future OTA updates will work.
If this guide helped you, please click the thanks button, that's all, cheers. :highfive:
Click to expand...
Click to collapse
If may i ask what version of Gcam you recommend? I've tried
Arnova's v8.3b1 and the front facing camera doesn't work on photo mode, but work on video.
Thanks[/QUOTE]
It does work in protrait mode 5mpx, and if you change it from 5mpx to 3mpx, normal selfie works as well.
@[email protected]
@AsItLies
@kishd
@Jamesismo
@afajri
Fix for front cam on Arnova 8.3b1 > go to settings > developer settings > camera.enable_micro UNCHECK (all the way down in developer settings)
Back, back, exit, remove cam from memory, restart the cam...done ! :fingers-crossed::good::laugh:
The google camera APK that I've used in oreo does not work in Pie. Any new suggestions? With night sight preferably! Thanks
@hugopg
There is no version 6 gcam mod that works for our PIE, but you can use this, it works nice, and do the fix for front cam, just a post up from this.
Arnova's v8.3b1: GCam-5.1.018-Pixel2Mod-Arnova8G2-V8.3b1.apk
minnuss said:
@[email protected]
@AsItLies
@kishd
@Jamesismo
@afajri
Fix for front cam on Arnova 8.3b1 > go to settings > developer settings > camera.enable_micro UNCHECK (all the way down in developer settings)
Back, back, exit, remove cam from memory, restart the cam...done ! :fingers-crossed::good::laugh:
Click to expand...
Click to collapse
Works perfectly!
setprop persist.camera.stats.test 5
According to a newly added thread this command makes the gcam 6 version work on pie.What specifically does this command do? The OP of the said thread didnt know.