Hi All, I am starting this thread with the very reason to educate and help newbies as well serve as a resource guide that could be used by all.
In this guide I will be explaining about the following:
1) Unlocking Bootloader
2) Flashing TWRP and Rooting
3) Restore to Stock
4) Remove unlocked bootloader warning
Please let me know if anyone needs more info/help on anything. I will try my best to help you and add it to this guide so everybody benefits from it.
Unlocking Bootloader
>>> Unlocking Bootloader will overwrite any data stored on your device, backup your files before proceeding <<<
Unlocking Bootloader:
1- Register
Head to Motorola website and register your E-Mail ID.
Open Setting on your device and go to About Phone. Next, tap 7 times on Build Number and get the Developer Options unlocked.
Head back to Main Settings Menu and go to Developer Options and switch the 'Allow OEM Unlock' option.
2- Getting Unique ID for each device
Reboot to Bootloader (power off, then press the power and volume down buttons simultaneously).
On your desktop, open a command prompt or terminal, and go to the directory where you installed the Android SDK tools (or make sure mfastboot is in your $PATH)
At the prompt, type
Code:
$ mfastboot oem get_unlock_data
You will get something like this:
On a Windows Desktop, the returned string format would be
Code:
$ fastboot oem get_unlock_data
(bootloader) 0240540162024205#4C4D3556313230
(bootloader) 30373as313630330df332323239#BD00
(bootloader) 8A672BA4746C2CE0a328A2AC0C39F95
(bootloader) 1A3E5#1F53280002000000000000000
(bootloader) 0000000
On a Mac OS Desktop, the returned string format would be
Code:
INFO0A40040192024205#4C4D3556313230
INFO30373731363031303332323239#BD00
INFO8A672BA4746C2CE02328A2AC0C39F95
INFO1A3E5#1F53280002000000000000000
INFO0000000
Paste together the 5 lines of output into one continuous string without (bootloader) or ‘INFO’ or white spaces. Your string needs to look like this:
Code:
0240540162024205#4C4D355631323030373as313630330df332323239#BD008A672BA4746C2CE0a328A2AC0C39F951A3E5#1F532800020000000000000000000000
3- Unlocking the device
Check if your device can be unlocked by pasting this string in the specific field on the Motorola website, and clicking “Can my device be unlocked?”
NOTE: If your device is unlockable, a "REQUEST UNLOCK KEY" button will now appear at the bottom of that page. Click on it and wait for the unique code to be sent to your mail.
After you got the code type the following :
Code:
mfastboot oem unlock <code>
and wait your device to reboot !
Flashing TWRP and Rooting
Flashing TWRP:
>>> Flashing TWRP or Rooting will void your warranty. Please ask anything before doing, if your not fully confident on what to be done. <<<
Get the TWRP image file from http://forum.xda-developers.com/mot...p-twrp-3-0-2-2-recovery-moto-g4-plus-t3386586
Next, get the adb and mfastboot from https://drive.google.com/file/d/0B5jlU9JnLAZGbVU0UzJ3N3p4X2M/view?usp=sharing
Unzip the file and place the image file inside the extracted folder.
Reboot to Bootloader (power off, then press the power and volume down buttons simultaneously).
Open a new command prompt or terminal window and do the following:
Code:
mfastboot flash recovery twrp_*version*_athene.img
Rooting Device:
>>> The old guide is outdated. Will be updated shortly. <<<
Restore Stock Firmware
>>> Please know your model number properly. I am not responsible if you flash the wrong firmware. <<<
NOTE: Flashing the wrong firmware may only leave you with no RIL temporarily but always be careful.
Flashing Stock Firmware:
1) Download the correct firmware for your device from http://www.filefactory.com/folder/c6cdedc45a775d27
2) Download adb and fastboot from https://drive.google.com/file/d/0B5jlU9JnLAZGbVU0UzJ3N3p4X2M/view?usp=sharing
3) Extract the firmware into the folder containing abd and fastboot.
4) Reboot the phone into Bootloader (power off, then press the power and volume down buttons simultaneously).
5) Execute these commands and make sure you receive an 'OKAY' after each command.
Code:
mfastboot oem fb_mode_set
mfastboot flash partition gpt.bin
mfastboot flash bootloader bootloader.img
mfastboot flash logo logo.bin
mfastboot flash boot boot.img
mfastboot flash recovery recovery.img
mfastboot flash dsp adspso.bin
mfastboot flash oem oem.img
mfastboot flash system system.img_sparsechunk.0
mfastboot flash system system.img_sparsechunk.1
mfastboot flash system system.img_sparsechunk.2
mfastboot flash system system.img_sparsechunk.3
mfastboot flash system system.img_sparsechunk.4
mfastboot flash system system.img_sparsechunk.5
mfastboot flash system system.img_sparsechunk.6
mfastboot flash system system.img_sparsechunk.7
mfastboot flash modem NON-HLOS.bin
mfastboot erase modemst1
mfastboot erase modemst2
mfastboot flash fsg fsg.mbn
mfastboot erase cache
mfastboot erase userdata
mfastboot erase customize
mfastboot erase clogo
mfastboot oem fb_mode_clear
mfastboot reboot
OR
5) You can use the script I have attached below(Windows only) to flash it for you. Just download the zip and extract it into same folder and run it.
Device will now Reboot into Stock.
>>> Irritated by the Unlocked Bootloader Warning? <<<
Download the attached file.
Download adb and fastboot from here : https://drive.google.com/file/d/0B5j...ew?usp=sharing
Extract the downloaded file into the same folder as adb and fastboot is extracted to
Open a command prompt and type in the following:
Code:
mfastboot flash logo logo.bin
Reboot
Reserved!
Flash this- LazyFlasher - https://goo.gl/dBzV6q After flashing SuperSU! Device should reboot fine!
Or else we can create modified boot image and flash it and then flash SuperSU
TheDj408 said:
Flash this- LazyFlasher - https://goo.gl/dBzV6q After flashing SuperSU! Device should reboot fine!
Or else we can create modified boot image and flash it and then flash SuperSU
Click to expand...
Click to collapse
We need modified boot.img for now but I am busy with work so can't get full time on it. Will try to get root asap!
boot.img need to disable selinux it interferes with root
Please download the TWRP to another site, Android File Host is updated.
TheDj408 said:
Flash this- LazyFlasher - https://goo.gl/dBzV6q After flashing SuperSU! Device should reboot fine!
Or else we can create modified boot image and flash it and then flash SuperSU
Click to expand...
Click to collapse
Did you try with lazy flasher? TWRP and Root worked?
carreddy said:
Did you try with lazy flasher? TWRP and Root worked?
Click to expand...
Click to collapse
you had to download the TWRP before the site went to repair?
Good Collection..
"At last but not least"
You forget to mention... This Process will void your cell phones Warranty
sirtbhopal said:
Good Collection..
"At last but not least"
You forget to mention... This Process will void your cell phones Warranty
Click to expand...
Click to collapse
I will update OP with that. Thanks
wizard-dima said:
you had to download the TWRP before the site went to repair?
Click to expand...
Click to collapse
wizard-dima said:
boot.img need to disable selinux it interferes with root
Please download the TWRP to another site, Android File Host is updated.
Click to expand...
Click to collapse
AFH is up now. I have also uploaded to G Drive. Please check the TWRP thread for links.
no networks or wifi after flashing stock rom
after flashing stock rom there is no mobile network or wifi turning on
also while flashing partition i am getting following error
writing 'partition'...
(bootloader) Security version downgrade
(bootloader) Image primary_gpt failed validation
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.046s
Srbjitkng said:
after flashing stock rom there is no mobile network or wifi turning on
also while flashing partition i am getting following error
writing 'partition'...
(bootloader) Security version downgrade
(bootloader) Image primary_gpt failed validation
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.046s
Click to expand...
Click to collapse
Which file did u download? I believe you have the wrong file. Link it here or pm me or find me on facebook.com/yeshwanthvshenoy for faster help.
EDIT : This is the correct stock rom for Indian devices http://www.filefactory.com/file/64m...24.139-23.1_cid50_subsidy-DEFAULT_CFC.xml.zip
yeshwanthvshenoy said:
Which file did u download? I believe you have the wrong file. Link it here or pm me or find me on facebook.com/yeshwanthvshenoy for faster help.
EDIT : This is the correct stock rom for Indian devices http://www.filefactory.com/file/64m...24.139-23.1_cid50_subsidy-DEFAULT_CFC.xml.zip
Click to expand...
Click to collapse
Yeshwant did u started developing something for our moto g
link which i have downloaded
yeshwanthvshenoy said:
Which file did u download? I believe you have the wrong file. Link it here or pm me or find me on facebook.com/yeshwanthvshenoy for faster help.
hi,i have moto g4 plus xt1643
i downloaded my stock rom named
G4_XT1641-XT1643_ATHENE_6.0.1_MPJ24.139-13.1_cid50_subsidy-DEFAULT_CFC.xml.zip
Click to expand...
Click to collapse
Srbjitkng said:
yeshwanthvshenoy said:
Which file did u download? I believe you have the wrong file. Link it here or pm me or find me on facebook.com/yeshwanthvshenoy for faster help.
hi,i have moto g4 plus xt1643
i downloaded my stock rom named
G4_XT1641-XT1643_ATHENE_6.0.1_MPJ24.139-13.1_cid50_subsidy-DEFAULT_CFC.xml.zip
Click to expand...
Click to collapse
Check my previous post. I have already provided the link for you. I am pretty sure if you flash it, it will solve the issues. I had the same issue few days back. It is confusing their naming convention for the file. We have XT1643 and there are lot of files that refer to XT1643. Technically, it is the same device but with different radio(you might have flashed the uk firmware or the eu firmware, maybe). I know its a bit confusing but for now just download the link I gave you and you will be back to normalcy. Peace
Click to expand...
Click to collapse
Worked!!!
Thanks!!!for the link....Got back to stock....every thing is working
will the phone be under warranty if I restore the "stock firmware"?
If not, is it possible anyhow to regain phone's warranty?
Related
After tried to root my device without the assist of PC (only using apk), my device only starts on AP Fastboot Flash Mode (Secure).
I downloaded the brazilian firmware, tried to flash it but I can't.
Was getting this ERROR: "(bootloader) Preflash validation failed".
My bootloader is locked, so I tried to unlock it following the Motorola's guide. Got my device ID via fastboot, copy and paste on their site and requested the unlock key.
Then again, when I use "fastboot oem unlock CODE"
(bootloader) Check 'Allow OEM Unlock' in Developer Options.
FAILED (remote failure)
finished. total time: 0.016s
The problem is that I can't pass trough flash mode screen.
I've been reading some threads over here, and one guy which had his bootloader locked on XT1563 tried to flash the Canadian firmware and didn't get any error, then he was able to fully unlock his bootloader and after this he was able to flash the Brazilian firmware.
I didn't try to flash the Canadian firmware yet. How risky is this? There is another way to unlock the bootloader?
If you flash the right firmware for a locked phone (model and version), it won't give the prevalidation error. Then it can boot again and you can turn on the OEM unlock, and unlock the bootloader.
Try to use the right firmware for your phone.
TImMaia said:
After tried to root my device without the assist of PC (only using apk), my device only starts on AP Fastboot Flash Mode (Secure).
I downloaded the brazilian firmware, tried to flash it but I can't.
Was getting this ERROR: "(bootloader) Preflash validation failed".
Click to expand...
Click to collapse
I don't believe it is possible to root without first unlocking your bootloader (which will factory reset your device). What apk were you attempting to install?
MrTooPhone said:
I don't believe it is possible to root without first unlocking your bootloader (which will factory reset your device). What apk were you attempting to install?
Click to expand...
Click to collapse
I'm a real noob at this issue. I tried to root with Kingroot. I took the device to the Motorola Tech Support in my city yesterday afternoon and it is ready to pick up.
Thank you guys for helping me :good::good::good:
TImMaia said:
I'm a real noob at this issue. I tried to root with Kingroot. I took the device to the Motorola Tech Support in my city yesterday afternoon and it is ready to pick up.
Thank you guys for helping me :good::good::good:
Click to expand...
Click to collapse
If you really want to root, you need to follow these instructions. Although you can use the latest version of TWRP, do not use any other version of Supersu except v2.62-3. Any other methods will most likely soft brick your phone.
Boys, is not difficult, not just fiddling around to fix it.
Motorola install drivers
Install ADB and fastboot
Looking for your stock rom here: " github dot com dash motoxplay dash stock dash releases " for example.
Saddled with fastboot Tooda the rom (eye, if downloaded from out there commands, you may be wanting to them upload any image rom, this drove me crazy to me all one day until I realized I was missing two sparsechunk).
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 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 modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot reboot
On the subject battery, the XT1563 charge the batt when it is in this mode, we just have to leave it connected to the charger and is loading very slowly.
On the bootloader issue, I have LOCK, and may do so without problems because they look the same version of rom that he had.
About not having DEPURACION USB, I did not have it on, and yet I could do it.
My stay in Fastboot mode I when installing the app Kingroot, and turned off the phone and start no more.
In this way it is solved, 100% sure I did not do myself. Do not try other methods like TWRP or things like that because with locked bootloader will hit the wall every time.
Anyone who needs a hand, ask or send mail.
Sorry if he had been resolved, but it was a big achievement for me, so I leave the info. I cost a lot to buy the cell phone and had ****ed the other day.
Regards!
(Sorry, its googletranslated, im from argentina)
Yeah, what ever @jonatandirocca1 said is right
i also once faced the problem of missing sparse file but after flashing every file you can make your Phone revoke
if you want to install STOCK FIRMWARE , you dont need to unlock bootloader, you just need your phone detected in ADB
Device: XT1031 converted to XT1028 for use on Page Plus. Bootloader unlocked. Rooted with SuperSU 2.46 Running Stock Verizon 5.1 ROM 221.26.7.falcon_cdma.Verizon.en.US
Recovery: TWRP 2.8.7.0
I accepted the new security update - http://forum.xda-developers.com/moto-g/general/moto-g-1st-gen-actually-security-update-t3362323
and when it tried to install the update, the phone just rebooted into TWRP Recovery.
So I flashed stock recovery from the Verizon 5.1 ROM and then tried the update again. This time it completed the update and rebooted but is now stuck at the Motorola bootlogo.
I'm able to reboot into fastboot.
I tried flashing system.img_sparsechunk.0, .1, .2, and .3, and rebooted but there is no change.
What can I try to get past this?
Before starting this I made a backup using TWRP Recovery, can I reinstall TWRP and restore that backup?
it would help to see a log of the flashing process. Copy and paste command prompt screen. Take screenshots if necessary.
Fastboot Tutorial: http://forum.xda-developers.com/showthread.php?t=2542219
If the TWRP backup is still on phone, it might be worth transferring it to a PC / external OTG usb drive, as using the following fastboot command will erase it, along with everything else on internal storage:
fastboot command erase userdata
lost101 said:
it would help to see a log of the flashing process. Copy and paste command prompt screen. Take screenshots if necessary.
Fastboot Tutorial: http://forum.xda-developers.com/showthread.php?t=2542219
If the TWRP backup is still on phone, it might be worth transferring it to a PC / external OTG usb drive, as using the following fastboot command will erase it, along with everything else on internal storage:
fastboot command erase userdata
Click to expand...
Click to collapse
The TWRP backup was saved to an external OTG USB drive, so that's safe.
I was originally going to do the same as I did for the last update - http://forum.xda-developers.com/showpost.php?p=63976723&postcount=109 but tried it first and when it went straight to recovery, I figured I needed to flash stock recovery. I also figured I needed to flash system also, but it through me off when the sparsechunks were numbered 0 - 3 instead of 1 - 4.
I didn't see any errors when I did the flashes.
Right now my battery is drained all the way to 0%. Hopefully it charges back up.
I appreciate the response. Thanks.
Do all fastboot commands including erase userdata. Change sparsechunk names to match the files in the firmware folder you have downloaded. Phone should charge on fastboot screen, but probably not if at a very low percentage.
lost101 said:
Do all fastboot commands including erase userdata. Change sparsechunk names to match the files in the firmware folder you have downloaded. Phone should charge on fastboot screen, but probably not if at a very low percentage.
Click to expand...
Click to collapse
I'm using this stock ROM: XT1028_FALCON_VERIZON_5.1_LPB23.13-33.7_cid2_CFC.xml.zip
The sparsechunk files in that zip are named:
system.img_sparsechunk.0
system.img_sparsechunk.1
system.img_sparsechunk.2
system.img_sparsechunk.3
and I need to rename them:
system.img_sparsechunk1
system.img_sparsechunk2
system.img_sparsechunk3
system.img_sparsechunk4
Correct?
Then I would run the following commands one at a time and checking for an OK on each, correct?
fastboot flash partition gpt.bin
fastboot flash motoboot motoboot.img
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img_sparsechunk1
fastboot flash system system.img_sparsechunk2
fastboot flash system system.img_sparsechunk3
fastboot flash system system.img_sparsechunk4
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot reboot
After that I can check that I can boot into the OS and then I can flash TWRP and restore my saved backup.
Does that sound right?
Thanks.
Don't rename the sparsechunk files. I said change the name when doing the fastboot commands.
mfastboot flash system system.img_sparsechunk.0
mfastboot flash system system.img_sparsechunk.1
mfastboot flash system system.img_sparsechunk.2
mfastboot flash system system.img_sparsechunk.3
Edit: Use mfastboot: https://www.androidfilehost.com/?fid=24052804347778493
lost101 said:
Don't rename the sparsechunk files. I said change the name when doing the fastboot commands.
mfastboot flash system system.img_sparsechunk.0
mfastboot flash system system.img_sparsechunk.1
mfastboot flash system system.img_sparsechunk.2
mfastboot flash system system.img_sparsechunk.3
Edit: Use mfastboot: https://www.androidfilehost.com/?fid=24052804347778493
Click to expand...
Click to collapse
OK, I got an error on the first one I tried:
C:\Moto G Flashing\MotoG_Verizon_5.1_ROM>mfastboot devices
TA965000I5 fastboot
C:\Moto G Flashing\MotoG_Verizon_5.1_ROM>mfastboot flash partition gpt.bin
target max-sparse-size: 256MB
sending 'partition' (32 KB)...
OKAY [ 0.029s]
writing 'partition'...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.318s
C:\Moto G Flashing\MotoG_Verizon_5.1_ROM>
And on the Moto G's screen:
cmd: getvar:max-sparse-size
cmd: download:00008000
cmd: flashartition
version downgraded for primary_gpt
Is that a problem?
Try flashing the latest available XT1028 Verizon 5.1 Factory Firmware Image:
XT1028_FALCON_VERIZON_5.1_LPBS23.13-33.7-2_cid2
lost101 said:
Try flashing the latest available XT1028 Verizon 5.1 Factory Firmware Image:
XT1028_FALCON_VERIZON_5.1_LPBS23.13-33.7-2_cid2
Click to expand...
Click to collapse
OK, that worked. I was able to flash back to the stock ROM.
I'm wondering if there would be any issue if I were to flash TWRP recovery and restore my saved backup?
Thanks for your help.
bw 1 said:
I'm wondering if there would be any issue if I were to flash TWRP recovery and restore my saved backup?
Click to expand...
Click to collapse
I don't personally restore TWRP backups because of bad experiences, but as long as you are using the latest available TWRP you should be okay.
lost101 said:
I don't personally restore TWRP backups because of bad experiences, but as long as you are using the latest available TWRP you should be okay.
Click to expand...
Click to collapse
I decided to start over and not try to recover from the saved file. I don't think there was anything on there that I really needed anyway. All my pictures and stuff was synced to Google.
I'm guessing that I ran into a problem by not flashing the 4 system sparsechunks from the stock ROM to remove root and I wasn't able to flash the same 5.1 that I had on there since it was updated. Flashing the latest newer build Verizon ROM worked because it was the same as what was contained in the update.
I didn't receive another OTA update and system update shows my phone as up to date with:
Android version: 5.1
Android security patch level: 2016-03-01
System version: 221.201.2.falcon_cdma.Verizon.en.US
Build number: LPBS23.13-33.7-2
I'm back to having a working phone. Thanks for your help. Hopefully this will help others too.
Disclaimer: I am not responsible for anything that happens as a result of flashing these files. Your destiny is your own.
This firmware can be flashed on Both locked and Unlocked Bootloaders
Moto G4 Plus [XT1640/XT1641/XT1642/XT1643/XT1644] ATHENE NPJ25.93-14 FASTBOOT + Relock Bootloader
Requirements:
1. Download the Minimal ADB and Fastboot = https://www.androidfilehost.com/?fid=745425885120698566
2. Install Minimal ADB and Fastboot = https://forum.xda-developers.com/showthread.php?t=2317790
3. Moto Drivers
For Windows: http://www.devfiles.co/download/5eExXq3a/MotorolaDeviceManager_2.5.4.exe
For Mac:http://www.devfiles.co/download/i51GYJjz/MDM_Installer_2.2.9.dmg
4. Download Fastboot ROM Zip : https://drive.google.com/file/d/0Bx6eXSiwEdFFWXZyYjB5S0xlZWs/view :good:
Firmware via FASTBOOT:
1. Download the rar file and unzip it.
2.Extract all the files to your fasboot folder.
3.Restart the Moto G4 in fastboot mode.
4. Make sure that usb debugging is on.
5.Connect the Phone in fastboot mode to the computer
Run the "OEM Flash.bat" script that is inside the folder that is created when you unzip the file.(If you want to lock your bootloader Use "OEM lock.bat")
You Can also do it Manually In adb fastboot folder shift+right click and then in the pop up click open command window here
fastboot oem lock begin
fastboot oem lock begin
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 modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot erase customize (optional: will erase any customizations if ordered through motomaker)
fastboot erase clogo (optional: will erase the custom boot logo if ordered through motomaker)
fastboot oem lock
fastboot reboot
NOTE:
1. If you dont want to lock your bootloader just skip the "fastboot oem lock" and "fastboot oem lock begin" Commands
2. Since this file was compressed using 7zip you need 7zip to extract it using Winrar or Winzip will give you an error you can download 7zip from http://www.7-zip.org/download.html
3.Using the "OEM Flash.bat" or "OEM lock.bat" will wipe your data and all the Customizations like Root and Xposed and get it to Factory Condition if You are Reverting back to Stock from a Custom Rom Or Upgrading Stock it is Strongly Advised to Wipe your Data to avoid bugs and crashes(system/app)
In any case if you don't want to wipe data just remove this command "fastboot erase userdata" from the bat file or skip it if your flashing manually
HIT THANKS IF I HELPED YOU !
FOR FURTHER ASSISTANCE JOIN THE TELEGRAM GROUP FOR OUR G4 FAMILY https://telegram.me/g4plus
Works on XT1622 ?
kosmasgr said:
Works on XT1622 ?
Click to expand...
Click to collapse
May work not confirmed
kosmasgr said:
Works on XT1622 ?
Click to expand...
Click to collapse
Yes it does. Just used it to re lock my uk 1622. All seems to be working perfectly. Shows the correct model in about settings
oldsoulsong said:
Yes it does. Just used it to re lock my uk 1622. All seems to be working perfectly. Shows the correct model in about settings
Click to expand...
Click to collapse
Can confirm.
Just re-locked the bootloader on my European XT1622 with this.
Don't forget to enable OEM Unlocking and USB Debugging in Developer Options!
How about xt1641
Sent from my Moto G (4) using XDA-Developers Legacy app
Can i use this for rooted ressurection remix
Sent from my Moto G4 Plus using Tapatalk
tonypooyappallil said:
Can i use this for rooted ressurection remix
Click to expand...
Click to collapse
Yes
daeshawn said:
How about xt1641
Click to expand...
Click to collapse
Yes it works on xt1641
Greekgodmerwyn said:
Yes
Click to expand...
Click to collapse
So if i use this, i will relock my bootloader, then iam eligible for warranty?
Sent from my Moto G4 Plus using Tapatalk
tonypooyappallil said:
So if i use this, i will relock my bootloader, then iam eligible for warranty?
Click to expand...
Click to collapse
No you have received an unlock key from Motorola to unlock your bootloader hence when they enter your serial no they will find out in their data base that your device was unlocked
Greekgodmerwyn said:
No you have received an unlock key from Motorola to unlock your bootloader hence when they enter you serial no they will find out in their data base that your device was unlocked :good:
Click to expand...
Click to collapse
Okay. But the device will get locked bootloader right?
Sent from my Moto G4 Plus using Tapatalk
tonypooyappallil said:
Okay. But the device will get locked bootloader right?
Click to expand...
Click to collapse
Yes use the oemlock.bat or if you are doing it manually then use the OEM lock commands this will only work if you are upgrading
Greekgodmerwyn said:
Disclaimer: I am not responsible for anything that happens as a result of flashing these files. Your destiny is your own.
Moto G4 Plus [XT1640/XT1641/XT1642/XT1643] ATHENE NPJ25.93-14 FASTBOOT + Relock Bootloader
Requirements:
1. Download the Minimal ADB and Fastboot = https://drive.google.com/file/d/0B1M...ew?usp=sharing
2. Install Minimal ADB and Fastboot = https://forum.xda-developers.com/showthread.php?t=2317790
3. Moto Drivers
For Windows: http://www.devfiles.co/download/5eExXq3a/MotorolaDeviceManager_2.5.4.exe
For Mac:http://www.devfiles.co/download/i51GYJjz/MDM_Installer_2.2.9.dmg
4. Download Fastboot ROM Zip : https://drive.google.com/file/d/0Bx6eXSiwEdFFWXZyYjB5S0xlZWs/view :good:
Firmware via FASTBOOT:
1. Download the rar file and unzip it.
2.Extract all the files to your fasboot folder.
3.Restart the Moto G4 in fastboot mode.
4. Make sure that usb debugging is on.
5.Connect the Phone in fastboot mode to the computer
Run the "OEM Flash.bat" script that is inside the folder that is created when you unzip the file.(If you want to lock your bootloader Use "OEM lock.bat")
You Can also do it Manually In adb fastboot folder shift+right click and then in the pop up click open command window here
fastboot oem lock begin
fastboot oem lock begin
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 modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot erase customize
fastboot erase clogo
fastboot oem lock
fastboot reboot
NOTE:
If you dont want to lock your bootloader just skip the "fastboot oem lock" and "fastboot oem lock begin" Commands
HIT THANKS IF I HELPED YOU !
FOR FURTHER ASSISTANCE JOIN THE TELEGRAM GROUP FOR OUR G4 FAMILY https://telegram.me/g4plus
Click to expand...
Click to collapse
The image is corrupted plz upload new image in google drive
a-2-k said:
The image is corrupted plz upload new image in google drive
Click to expand...
Click to collapse
Use 7Zip to Extract it is a 7zip file if you try to extract it with winrar or WinZip you will definitely get an error and please don't quote the whole thread while replying
Greekgodmerwyn said:
Use 7Zip to Extract it is a 7zip file if you try to extract it with winrar or WinZip you will definitely get an error and please don't quote the whole thread while replying
Click to expand...
Click to collapse
sorry I don't see....7zip
xploder270 said:
Can confirm.
Just re-locked the bootloader on my European XT1622 with this.
Don't forget to enable OEM Unlocking and USB Debugging in Developer Options!
Click to expand...
Click to collapse
What about your baseband version now ? Is it still EMEA ? (I am extra cautious not to lose European LTE bands).
a-2-k said:
sorry I don't see....7zip
Click to expand...
Click to collapse
download from here:
http://www.7-zip.org/download.html
rjtgupta84 said:
download from here:
http://www.7-zip.org/download.html
Click to expand...
Click to collapse
I think he meant to say that he didn't know that it was 7zip
Greekgodmerwyn said:
I think he meant to say that he didn't know that it was 7zip
Click to expand...
Click to collapse
Yes you got it
Disclaimer: I am not responsible for anything that happens as a result of flashing these files.
Latest Build Nougat:NPJS25.93-14-18 Tested on: All retail variants: XT1621, XT1622, XT1640, XT1641, XT1642, XT1643, XT1644
Latest Build Oreo: OPJ28.111-22-1 Tested on: All retail variants: XT1621, XT1622, XT1640, XT1641, XT1642, XT1643, XT1644
Note: Motorola doesn't allow downgrading so once u flash O via OTA/Fastboot it isn't recommended to go back to N or any older build than OPJ28.111-22 .
Downloads:
Stock N: ATHENE_NPJS25.93-14-18_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip
Stock O: ATHENE_OPJ28.111-22-1_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip
Note: If you're looking for a TWRP flashable version instead, please download that zip from the thread below, thanks to @Jleeblanch for providing this zip. Keep in mind that you can't take OTAs on this version as you'll be having TWRP and these zips don't upgrade your bootloader/gpt.
[ROM] TWRP Flashable Stock Firmware [7.0][8.1.0]
Procedure:
You must already have ADB and fastboot setup, check here if you haven't already as using adb/fastboot isn't within the scope of this thread.
How to Install ADB on Windows, macOS, and Linux
1. Download the file and extract the zip archive
2. Extract all the files to your fastboot folder. (Not needed if you have adb and fastboot added to the path, if you want to know how to do this, check this guide: How to Use ADB or Fastboot From Any Directory on your Windows/Linux PC)
3. Restart the device in fastboot/bootloader mode and connect to your PC.
4. Make sure the system detects the device in fastboot mode, to verify this your command window/terminal shows a serial number when you type:
Code:
fastboot devices
5. Use the following commands now or you can use the flash scripts provided as attachments to this post:
NOTE: SKIP the oem lock begin and the oem lock commands if you dont want to lock your bootloader
Linux users will need to change the extension to .sh and add sudo before each command or directly run it as a root user .
To simply flash, run the "OEM Flash" file; to lock the bootloader, run "OEM Lock" file.
Manual method:
Code:
fastboot oem lock begin
fastboot oem lock begin
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 modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot erase customize (optional: will erase any customizations if ordered through motomaker)
fastboot erase clogo (optional: will erase the custom boot logo if ordered through motomaker)
fastboot oem lock
fastboot reboot
Note: Many people have reported than flashing stock ROM after flashing a 64 bit Pie custom ROM leads to loss of IMEI. Just in case this happens to you, the fix has been made available by @Heeth21 . Also, some people suffer from having messed up Baseband, fingerprint detection or wrong IMEIs. Checkout both the threads here:
[Guide] [XT16XX] [Solve] Moto G4/Plus IMEI=0 issue.
[Guide] [XT16XX] [Solve] G4+ Baseband/Network/Volte issue, Lost 1 IMEI & fingerprint
For someone who has hardbricked his device , please refer to the following thread to get the raw bootloader and partition table and then flash the ROM as mentioned above.
[GUIDE] Moto G4 Plus HardBrick SOLVED - ULTIMATE UNBRICKING GUIDE
Credits:
TeamReviver
Motorola Mobility LLC
Android File Host
XDA-Developers
Thanks OP, i have a question, i am right now using NPJ25.93-11 from november 2016 on my XT1641. Can i just enter those commands:
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 modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
Click to expand...
Click to collapse
without loose any data? thanks in advance.
was looking forward to this, thank you OP!
moonlightdrive said:
Thanks OP, i have a question, i am right now using NPJ25.93-11 from november 2016 on my XT1641. Can i just enter those commands:
without loose any data? thanks in advance.
Click to expand...
Click to collapse
Those commands look okay - as always, try to back up your data as much as you can before flashing, in case you have to factory reset your device. I personally would also include 'fastboot erase cache' as a command (without the quotes), to wipe your cache, which shouldn't affect your data. You may experience a longer initial boot time as your system rebuilds the cache.
It's up to you if you wish to flash and update your gpt and bootloader as well - I don't know if not updating to the latest bootloader and gpt may affect future updates.
echo92 said:
Those commands look okay - as always, try to back up your data as much as you can before flashing, in case you have to factory reset your device. I personally would also include 'fastboot erase cache' as a command (without the quotes), to wipe your cache, which shouldn't affect your data. You may experience a longer initial boot time as your system rebuilds the cache.
It's up to you if you wish to flash and update your gpt and bootloader as well - I don't know if not updating to the latest bootloader and gpt may affect future updates.
Click to expand...
Click to collapse
Thank you for your complete answer:good:. I will take your suggestion of wiping cache.
moonlightdrive said:
Thank you for your complete answer:good:. I will take your suggestion of wiping cache.
Click to expand...
Click to collapse
Good luck with flashing - also, might be worth flashing the logo.bin too, so your flashing list would look more like (if including the gpt and bootloader):
Code:
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 modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot reboot
moonlightdrive said:
Thanks OP, i have a question, i am right now using NPJ25.93-11 from november 2016 on my XT1641. Can i just enter those commands:
without loose any data? thanks in advance.
Click to expand...
Click to collapse
EDIT:
I report that it works perfectly (without loss of data).
---------- Post added at 02:36 PM ---------- Previous post was at 02:34 PM ----------
echo92 said:
Good luck with flashing - also, might be worth flashing the logo.bin too, so your flashing list would look more like (if including the gpt and bootloader):
Code:
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 modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot reboot
Click to expand...
Click to collapse
I just finished the flashing process, and it's all ok, everything works good now. thanks for helping me!
moonlightdrive said:
EDIT:
I report that it works perfectly (without loss of data).
---------- Post added at 02:36 PM ---------- Previous post was at 02:34 PM ----------
Good luck with flashing - also, might be worth flashing the logo.bin too, so your flashing list would look more like (if including the gpt and bootloader):
I just finished the flashing process, and it's all ok, everything works good now. thanks for helping me!
Click to expand...
Click to collapse
Cool, will add it to the OP that it works fine on xt1641
How does one know which variants the referenced stock ROM applies to? I'm supposing it's any phone that lists NPJS25.93-14-4 under build number. Also, is this an official build direct from Motorola?
flroots said:
How does one know which variants the referenced stock ROM applies to? I'm supposing it's any phone that lists NPJS25.93-14-4 under build number. Also, is this an official build direct from Motorola?
Click to expand...
Click to collapse
Yes the ROM is officially signed by moto. Initial upload was done by the Moto Firmware team. It is confirmed to work on XT1641 and XT1643. Just like the Dec 1 Security firmware, this should probably work on the xt164* devices, as long they are retail versions. :good:
I will ask more people to try the same. :good:
A .bat file for commands would be really great..ease of use !
Thanks !
Sharp404 said:
A .bat file for commands would be really great..ease of use !
Thanks !
Click to expand...
Click to collapse
A zip containing the bat files has been attached to the OP. :good:
Great Job
I am now back to stock thanks for creating the fastboot rom i was eagerly waiting for it thank u
Anyone try it on xt1621?
Enviado desde donde estoy ahora. ¿Que esperabas?
tywinlannister7 said:
Yes the ROM is officially signed by moto. Initial upload was done by the Moto Firmware team. It is confirmed to work on XT1641 and XT1643. Just like the Dec 1 Security firmware, this should probably work on the xt164* devices, as long they are retail versions. :good:
I will ask more people to try the same. :good:
Click to expand...
Click to collapse
Can confirm it works on XT1640
Fede79 said:
Anyone try it on xt1621?
Enviado desde donde estoy ahora. ¿Que esperabas?
Click to expand...
Click to collapse
I dit, it works fine!
---------- Post added at 05:32 PM ---------- Previous post was at 05:31 PM ----------
It is laggy, am i the only one?????
It only happens when i flash the firmware from PC!
When i install marshmallow and i updated to Nougat it worked so smooth. What could be the problem?
Is this rom compatible with XT1626? If yes: can anyone share a screenshot with system infos? Thanks in advance.
At first thanks to tywinlannister7.
Anyone tried the rom on the XT1622?
where is the files OEM Flash" file; "OEM Lock" file. ???????
diegomartinezlovey said:
where is the files OEM Flash" file; "OEM Lock" file. ???????
Click to expand...
Click to collapse
Check the attachment in the OP.
Recently I rooted my phone and flash the resurrection remix naught in moto g3 xt1550....
For some reason I start to flash firmware ROM .....but it is not flashing.... Shows " preflash validation failed " and on system image " invalid image" .......... I tried many times but it didn't flash......when I skip the partition gpt file then every image file start flashing and phone start..,..
But their is no network......
After that whenever I switch off or reboot or go to recovery rather than that it start boot loader....
Then I flashed the resurrection remix again..... When I press reboot after flashing then it goes to boot loader......
At boot loader I press power on then it start booting and there is no network in this ROM too......
What can I do now ...... Please help.........
To clear the Fastboot mode, in fastboot enter "fastboot oem fb_mode_clear" and after that it should start the OS without going into fastboot each time.
The fact this is happening leads me to believe your other problem is related... meaning you didn't flash the stock images properly. If you have no network then you need to reflash the radio stack and boot.img file, they must match and you have to erase the modemstX partitions for the radios to work properly.
yes U will get the error of "preflash validation failed" cause of the security update which motorola released for the month of October, January and recent April.... Do one thing again flash the appropriate stock rom according to ur mobile But skip these two steps/Files >>> 1) fastboot flash partition gpt.bin and 2) fastboot flash bootloader bootloader.img and enter the remaining command/or follow the whole procedure but skip these two file mentioned above U will succed:fingers-crossed::good:
For ur simplicity im providing u commands and plz CHECK UR SPARSECHUNK Files it varies according to mobile I have 7 thats y 7 sparsechunk files DO CHECK URs ok>>>>
fastboot oem fb_mode_set
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.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 modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot erase customize
fastboot erase clogo
fastboot oem fb_mode_clear
fastboot reboot
Do it ur own risk Im not responsible for any damage :laugh:
everything went well except my network .........i checked in about phone < status < imei no is " 0 ".......how to restore that...........i think thats why the network isn't showing.......................
acejavelin said:
To clear the Fastboot mode, in fastboot enter "fastboot oem fb_mode_clear" and after that it should start the OS without going into fastboot each time.
The fact this is happening leads me to believe your other problem is related... meaning you didn't flash the stock images properly. If you have no network then you need to reflash the radio stack and boot.img file, they must match and you have to erase the modemstX partitions for the radios to work properly.
Click to expand...
Click to collapse
where I find radio stack...... I don't know........and I didn't flash the stock images correctly because I have to skip the partition gpt and bootloader......
give me something else to solve it......
btw thanks sir......:good:
heisenberg1546 said:
where I find radio stack...... I don't know........and I didn't flash the stock images correctly because I have to skip the partition gpt and bootloader......
give me something else to solve it......
btw thanks sir......:good:
Click to expand...
Click to collapse
The "radio stack" is the relevant radio portions of the firmware image...
Code:
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
It is not uncommon that they don't take the first time, repeat it and the boot.img command. Verify EVERY command returns an OKAY response, if not, repeat it.
And do not copy and paste the commands all at once, type them out and look at the response, or at least copy and paste each command individually.
acejavelin said:
The "radio stack" is the relevant radio portions of the firmware image...
Code:
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
It is not uncommon that they don't take the first time, repeat it and the boot.img command. Verify EVERY command returns an OKAY response, if not, repeat it.
And do not copy and paste the commands all at once, type them out and look at the response, or at least copy and paste each command individually.
Click to expand...
Click to collapse
isn't working sir........
I did without copy paste.........
boot img command gives preflash validation failed....
heisenberg1546 said:
It is not uncommon that they don't take the first time, repeat it and the boot.img command. Verify EVERY command returns an OKAY response, if not, repeat it.
And do not copy and paste the commands all at once, type them out and look at the response, or at least copy and paste each command individually.
isn't working sir........
I did without copy paste.........
boot img command gives preflash validation failed....
Click to expand...
Click to collapse
You didn't do the boot.img... but Might want to look at the IMEI 0 recovery thread... I don't have any more ideas.
acejavelin said:
You didn't do the boot.img... but Might want to look at the IMEI 0 recovery thread... I don't have any more ideas.
Click to expand...
Click to collapse
After those commands ...... I flash again all img's including the boot.img......
How to restore the imei file ..... Like in mediatek device ,,, we can write by sn tools .....
heisenberg1546 said:
After those commands ...... I flash again all img's including the boot.img......
How to restore the imei file ..... Like in mediatek device ,,, we can write by sn tools .....
Click to expand...
Click to collapse
I don't know... There is a thread here specifically about it, you will have to look there.
I want to keep the custom rom (RR-O-v6.0.0-20180511-ospreyl) with all networks
acejavelin said:
To clear the Fastboot mode, in fastboot enter "fastboot oem fb_mode_clear" and after that it should start the OS without going into fastboot each time.
The fact this is happening leads me to believe your other problem is related... meaning you didn't flash the stock images properly. If you have no network then you need to reflash the radio stack and boot.img file, they must match and you have to erase the modemstX partitions for the radios to work properly.
Click to expand...
Click to collapse
Hey, I have installed RR-O-v6.0.0-20180511-osprey on Moto G(3rd Generation), and now the error is: "No sim Detected ", IMEI number is fine. I want to flash radio firmware in this custom Rom. Will flashing radio stack of stock rom 6.0.1 (Moto G3 x1550) work?
adb reboot bootloader
fastboot flash modem NON-HLOS.bin (That must of Moto G3?)
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot flash boot boot.img (Is it to be of RR or of Moto?)
fastboot reboot
Is there any other option or solution then please mention.
You need to flash stock firmware first then your network problem solved then you can install custom roms?
Good Luck!