yashsingh1/xdaforums huggingface dataset:
[Moto G4 Plus Guides, News, & Discussion] eta82:
Thanks. Yesterday I returned to [N] without uploading GPT and bootloader. I lost IMEI but I had an EFS backup in TWRP. I restored the copy and recovered IMEI.

The phone is working properly

Thanx ! ! !

Sory for bad english [emoji3525]

Wysłane z mojego Redmi 6 przy użyciu Tapatalka
[Moto G4 Plus Guides, News, & Discussion] iurd2007:
Bro. I have a Moto G4 XT1625 (AMAZON prime) . Can i flash the firmware? I flash it via fastboot and the phone dont boot, still in the unlocked bootloader alert for several minutes. Nothing to do?

---------- Post added at 12:05 PM ---------- Previous post was at 12:03 PM ----------

The 8.1 doesn't work with your phone?

Yes , always is good to have efs backup
[Moto G4 Plus Guides, News, & Discussion] eta82:
8.1 works on my phone but the battery drops terribly fast

Wysłane z mojego Redmi 6 przy użyciu Tapatalka
[Moto G4 Plus Guides, News, & Discussion] tseeling:
can you please explain how to apply the OTA file? Can I flash with TWRP?
[Moto G4 Plus Guides, News, & Discussion] echo92:
The OTA update requires stock recovery and a fully stock/unmodified device (bootloader being unlocked does not matter). OTA updates cannot be applied with TWRP unless they're modified.

If you still want to keep TWRP, I'd look at the OPJ28.111-22-1 TWRP flashable here: https://xdaforums.com/showpost.php?p=79748241&postcount=478

Make sure you have a TWRP backup before using the flashable, just in case.
[Moto G4 Plus Guides, News, & Discussion] $Ail.A$ce:
is there difference in os performance or something in between flashing stock oreo rom through TWRP and adb fastboot .
[Moto G4 Plus Guides, News, & Discussion] iurd2007:
No. The same. Flash via twrp. Because if you flash the adb version, you cannot downgrade to android 7 anymore without the risk of a hard brick
[Moto G4 Plus Guides, News, & Discussion] $Ail.A$ce:
Well don't wanna downgrade cuz nougat sucks .. Oreo is far better ..
[Moto G4 Plus Guides, News, & Discussion] iurd2007:
Battery Drain , sound issues. But yes, better :V
[Moto G4 Plus Guides, News, & Discussion] $Ail.A$ce:
Well I have not faced issue you mentioned good for me
[Moto G4 Plus Guides, News, & Discussion] ronsan:
In this latest version of oreo is it possible to install twrp and root?
[Moto G4 Plus Guides, News, & Discussion] pankajkh:
Yes, you can even root with the stock kernel
[Moto G4 Plus Guides, News, & Discussion] ronsan:
Thanks!
[Moto G4 Plus Guides, News, & Discussion] flroots:
It's been a long time since I updated my XT1644. I'm currently rooted with TWRP at NPJS25.93-14.7-5. Once I've un-rooted can I flash NPJS25.93-14-18 directly or must I revert to the current version first? Thanks

Update: decided to go for it: success! Now I wonder if it's worth upgrading to Oreo. Can someone tell me if there are issues or is it bug free. If there are issues I'll stick with Nougat. Thanks for any comments.
[Moto G4 Plus Guides, News, & Discussion] Pranav:
For some users(including me) the speaker isn't working correctly (it always sounds minimum). Mine is xt1643.

Otherwise stock oreo is very good, and very smooth also.

It's worth trying.
[Moto G4 Plus Guides, News, & Discussion] flroots:
Thanks for the feedback. The only issue I have with Oreo 8.1 so far is how to start the launcher. I want 4 icons across width rather than 5. Any suggestions?

Update: think I just found the launcher, but no option to change the home screen grid? Am I needing a new launcher or am I missing something? thanks
[Moto G4 Plus Guides, News, & Discussion] Pranav:
Get nova launcher
[Moto G4 Plus Guides, News, & Discussion] wfantasma:
You can use cpl https://xdaforums.com/android/apps-games/app-fork-aosp-version-launcher-3-t3746559/post75489816
[Moto G4 Plus Guides, News, & Discussion] flroots:
Thanks. I'm really liking Nova, but I do have one odd problem. I installed Nova onto both my and wife's (identical) phones. On hers there is a small up arrow above dock that opens the app drawer. On mine the up arrow is missing and I had to find an icon (white with 6 black dots) to launch app drawer. I really like the up arrow. Any idea how to get it back. It's actually part of the default launcher.

Update: solved. I had to uninstall it and re-install. It's one of the setup parameters on how to launch app drawer
[Moto G4 Plus Guides, News, & Discussion] SpiralX15:
Used the Nougat in OP to downgrade.
[Moto G4 Plus Guides, News, & Discussion] xerdcire:
bootloader flash: assertion failed, core dump

Edit, solved: Seems it's a problem with my android-tools version, bugs.archlinux.org/task/63370

Hi, bootloader flash is failing and I'd like to ask for help (first post).

❯ fastboot flash bootloader bootloader.img
(bootloader) has-slot:bootloader: not found
fastboot: core/libsparse/sparse.cpp:131: int write_all_blocks(struct sparse_file *, struct output_file *): Assertion `pad >= 0' failed.
[1] 2086 abort (core dumped) fastboot flash bootloader bootloader.img

Does anyone know what that assertion failure indicates, and can suggest next steps?

Thanks

History:

- XT1644 started stock, unlocked bootloader and flashed TWRP then AOSiP and used happily on ATT for awhile.

- Switched to Verizon, no LTE just 3G. Read I need to update radio. Loathe to wipe my AOSiP install, I tried to just flash radio following post 700 (can't link). Result: no network at all. Looking at fastboot vars, no change in baseband version listed. Guessing I need to update some other image alongside radio.

- Attempted TWRP flash of repackaged OTA linked in OP. Result: "hello Moto" bootloop. Maybe I needed to wait longer.

- Decided to attempt fastboot flash, error above
[Moto G4 Plus Guides, News, & Discussion] Hitesh_agg:
Hey pal

I just want to install the stock ROM but i m unable to connect my device to pc via a USB cable my phone just keeps on charging and doesn't goes on MTP mode and hence the device in not recognised by pc and i cant proceed further i have tried doing everything installing reinstalling drivers and nothing happens it stays as a unknown device in my Device Manager i checked the mount stats in twrp recovery but nothing

as far as i think i accidently removed some usb drivers from my device but i can't find them on the internet

can u help me with this
[Moto G4 Plus Guides, News, & Discussion] Pranav:
Just install Motorola Device Manager

And enable usb debugging from developer options.
[Moto G4 Plus Guides, News, & Discussion] Hitesh_agg:
i have tried that also but still their is no connection as I said may be from my device root directory I must have removed some files mandatotry for MT protocol their is no problem from the PC side i have also checked different types of cables
[Moto G4 Plus Guides, News, & Discussion] Pranav:
For users having Sound issue on stock oreo,

1. Flash the latest ElementalX kernel.

2.Get kernel auditor from Play Store.

3.Go to sound section under the app menu.

4.Increase speaker gain.

Done.:)

(Not fully functional but slightly improved.)
[Moto G4 Plus Guides, News, & Discussion] SumeetSK98:
a little help here!

cant relock my bootloader it shows enable "allow oem unlock" in developer settings but my bootloader is already unlocked
[Moto G4 Plus Guides, News, & Discussion] echo92:
1) What firmware are you using to lock your device? The firmware must be as new or newer than your bootloader version (e.g. if your bootloader version, as shown in bootloader mode, is B1:07, you must lock with NPJS25.93-14-18 or newer. If your bootloader is B1:09, you need the Oreo firmware).

2)To clarify, in Settings>Developer Options, OEM unlocking is turned on?

3)How are you flashing the firmware, are you using a script or flashing the commands manually?
[Moto G4 Plus Guides, News, & Discussion] SumeetSK98:
1)bootloader is B1:09

2)OEM unlocking is greyed out and shows bootloader is already unlocked

3)flashing with a script
[Moto G4 Plus Guides, News, & Discussion] echo92:
1) Okay, so you're trying to re-lock with the OPJ28.111-22 firmware?

2)If your OEM unlocking is greyed out, then that might be a cause of your problems. If you're still on a custom ROM or on the stock firmware, try to root with magisk, then check the OEM unlocking toggle after rebooting. Verify you're signed into a Google account too. Those steps should hopefully activate your OEM unlocking toggle and confirm your device is eligible for bootloader unlocking (this toggle does NOT indicate if your bootloader is locked/unlocked. It simply allows you to unlock/lock your device).

3)As long as you're using the OEM lock script (should be a script beginning with two OEM lock commands).

I would try to get your OEM unlocking toggle active before attempting to flash, else your device will not lock. Be warned also that re-locking will erase all data from your device.
[Moto G4 Plus Guides, News, & Discussion] SumeetSK98:
okay thank you i will try this.

just one more thing i want to ask, rebooting my phone takes me to twrp also turning on my device takes me to recovery. i have tried different roms its the same.

for a normal startup i have to open bootloader and then start from there. is there any fix for this ?
[Moto G4 Plus Guides, News, & Discussion] echo92:
Hmm, you could try the steps mentioned here, https://xdaforums.com/moto-g4/help/troubleshooting-twrp-boot-loop-ota-t3714325

See if that clears the boot to recovery.
[Moto G4 Plus Guides, News, & Discussion] SumeetSK98:
Thanks a lot man it worked !
[Moto G4 Plus Guides, News, & Discussion] vividroid:
I have the same issue.. flashed OPJ28.111-22-1 using fastboot

Now OEM Unlock toggler in dev options seems greyed.

The 'OEM Lock' script fails and shows 'Enable Allow oem unlock in dev optios' in command window.

twrp is replaced by system recovery..when entering to recovery mode it shows a resting android and a text saying 'No command'

pls help me out to lock the bootloader

OPJ28.111-22-1

Bootloader B1.09

No root
[Moto G4 Plus Guides, News, & Discussion] echo92:
Sounds like the fastboot flash worked (as you mentioned, the stock recovery is present, the no command screen can be passed with holding the power button, then tap the volume up key, then release).

To get your OEM unlocking toggle active, verify you're logged into your Google account. If that does not work, then you may have to root with magisk (boot TWRP, then flash magisk to your device). That might get your OEM unlocking toggle active - if so, then flash the fastboot firmware with OEM locking commands.
[Moto G4 Plus Guides, News, & Discussion] SumeetSK98:
yep ! working after flashing magisk. Thanks a lot !
[Moto G4 Plus Guides, News, & Discussion] vividroid:
Thanks bro..

I've no twrp rec now. Should I flash twrp first for setting up magisk ?
[Moto G4 Plus Guides, News, & Discussion] echo92:
No need to flash TWRP. As I mentioned above, you can boot into TWRP via fastboot. After that, you can flash magisk and then reboot.
[Moto G4 Plus Guides, News, & Discussion] sarang25:
i am currently on marshmello i downgraded from nougat and i don't have TWRP installed so can i go from marshmallow to oreo through this method?
[Moto G4 Plus Guides, News, & Discussion] echo92:
Yes, you should be able to. A few things to note:

1) if you do not wish to lock your bootloader (and erase your device), ensure you do not include the commands containing OEM lock (there's three in total, two OEM lock begin commands at the beginning and the OEM lock command towards the end of the list of commands).

2) also, if you want to try to keep your data, ensure you do not use the fastboot erase userdata command.

3) this will formally update your bootloader to Oreo. Should you choose to downgrade back to marshmallow or Nougat, do not use stock OTA updates after downgrading. You may hard brick your device.
[Moto G4 Plus Guides, News, & Discussion] shawgluz:
ATHENE_NPJS25.93-14-18_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip

for the Motorola Moto G4 Plus(XT1643), by rajatgupta1998

OOPS!

no mirrors found.
[Moto G4 Plus Guides, News, & Discussion] echo92:
You can find the firmware at firmware.mirror https://mirrors.lolinet.com/firmwar...ubsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip
[Moto G4 Plus Guides, News, & Discussion] sintoo:
My G4 is on latest Oreo and there's a HIDDEN 2nd Sim slot (hidden under the SECOND black plastic battery cover). Does anybody know if flashing some xt1642 or 1640 files will make my xt1641 detect the 2nd sim ? (I put 2nd sim, it was not detected by phone).

Thank you all.
[Moto G4 Plus Guides, News, & Discussion] Grypa:
I can confirm that this way is right: I did it and I have all my data.Thank's every one for grate job!Respect.:good:
[Moto G4 Plus Guides, News, & Discussion] sanskar1:
No network after installing oreo zip

after installing zip the imei numbers are fine but there is no network
[Moto G4 Plus Guides, News, & Discussion] crisleo94:
Same here

I have the same issue even after installing a different ROM, I also followed the instructions described here https://xdaforums.com/moto-g4-plus/how-to/guide-g4-baseband-network-volte-issue-t3865608 and does not work for neither of the simcards, it just says there's no network

Thanks in advance
[Moto G4 Plus Guides, News, & Discussion] RehanSiddiqui:
Hey, I followed the twrp recovery method to root my phone

and my complete phone data got wiped

i can just access the twrp recovery when i open my phone

I came here to reinstall my ROM and i was unable to do so

I cant see my phone files anywhere and I am very lost

can someone please help
[Moto G4 Plus Guides, News, & Discussion] Yudh:
Thankyou @rajatgupta1998 very much it helped me to restore my moto g4 plus xt1643 indian variant to its original condition and updated it with oreo build .

used windows 10 admin powershell setup.

for adb and fastboot i created environment variables.

Locked the bootloader and solved imei problem along with it
[Moto G4 Plus Guides, News, & Discussion] thoughtpolice:
Worked for my Moto G4 Plus XT1644.

Flashed ATHENE_OPJ28.111-22-1_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip for Oreo goodness.

Everything is fast and smooth. Did not check voice/data. I use this phone as a tablet.

Thanks OP!
[Moto G4 Plus Guides, News, & Discussion] chuy19312:
Something that is curious for me is this:

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.

I downgraded my Moto G4 XT1621 from this firmware to Nougat then restored EFS partition and i never got any problem, i even got way more battery duration for some reason
[Moto G4 Plus Guides, News, & Discussion] Droid King:
guys I flashed the oem locak.bat file but my bootloader is still unlocked.
[Moto G4 Plus Guides, News, & Discussion] chuy19312:
On fastboot, put those commands

fastboot oem lock begin

fastboot oem lock begin

It will ask you to flash signed partitions, do it then use the fastboot oem lock begin command again, you will have your bootloader locked
[Moto G4 Plus Guides, News, & Discussion] FarazM30s:
I have installed installed 64 bit ROM arrow OS Android 9 ( Pie ).

Will I be able to go back to 32-bit Original Android 7 ?
[Moto G4 Plus Guides, News, & Discussion] rajatgupta1998:
Yes.
[Moto G4 Plus Guides, News, & Discussion] jaboto:
Log in in just to say that while trying to relock the boot loader in this phone I had the issue of having disabled the bootloader in the Developer Settings Mode. I tried several options described in many guides: flash TWRP, Magisk, connect to the internet, etc... In the end, the only thing that worked was flashing the stock rom several times and now the message is not there and the phone is as new.
[Moto G4 Plus Guides, News, & Discussion] gutosilva:
[MENTION=7970352]echo92[/MENTION] Hi man, can you help me? My device is XT1626 (Brazilian version with DTV, dual chip).

So... will my device lose DTV or dual chip if I flash this ROM?
[Moto G4 Plus Guides, News, & Discussion] echo92:
Honestly, I do not know if your DTV chip will be affected or not. The fact this is a stock Motorola signed ROM should mean all the functions, including the DTV chip, work. Also, the OTA patch that this stock ROM includes appears to have been first deployed in Brazil, and I've not seen any reports that it broke any Brazilian devices with regards to DTV. However, I've only seen a few reports of XT1626 devices on XDA!

So, it may be okay to flash this stock ROM (since it should be the same as what you'd get from the OTA), I cannot guarantee if DTV will work though. I'd recommend having a stock ROM that you know to have working DTV with just in case.
[Moto G4 Plus Guides, News, & Discussion] kevinarol:
Thanks for the rom, working great on XT1641 Dual SIM
[Moto G4 Plus Guides, News, & Discussion] dgk823:
THANK YOU.

Because of your file and your perfect instructions that you graciously shared, I have restored my Moto G4 back to its original stock beauty. I've lost 2 full nights of sleep trying to get my phone back. I am so thankful. You absolutely rock, and made my day so much better.

All you guys out there, beware before you try to unlock your Moto phone, because Moto/Lenovo doesn't provide any proper files in order to restore your phone. It is only through XDA geniuses like this one, who can make the impossible, possible.

Phone Model that this worked on: XT1625. USA, Moto G4, Software channel: RETUSA, unlocked
[Moto G4 Plus Guides, News, & Discussion] danilomrx:
Sorry for tooking so long to try it out. I've tried it today and I was able to flash stock ROM, but I've encountered some issues. First, the ROM I flashed was the 6.0.1, Wich is very weird, but thats is easy to fix.

The second problem is: I couldn't lock the bootloader, when I gave the "fastboot OEM lock" command it said the image wasn't signed and then the system wouldn't even boot up anymore (so I flashed it again).

The last one: If I try to update via OTA will it work? I'm afraid it may brick the device.

Thanks again.
[Moto G4 Plus Guides, News, & Discussion] echo92:
Double check what ROM you're flashing, the file structure is the same for both Nougat and MM stock ROMs (at least for Moto G4/Plus devices). Also, with the 'image not signed' error, was this with the MM ROM or with this Nougat stock ROM and with which partitions?

If you update with OTA, it might work, but updating with OTA will not lock your device. If you're worried about bricking, the safest way is to flash the NPJS25.93-14-4 fastboot ROM, which will update your device in one go. It is a big file, but if you're intent on locking your device (especially since you updated to the NPJS25.93-14.4 update previously), you need this fastboot file. If you're just updating, use the OEM flash script in the opening post.

EDIT - Again, if you're looking to lock, try:

Flash the March 2017 fastboot ROM with the OEM flash script (do not use fastboot OEM lock).

Boot to the stock ROM. Under Settings>About Phone, tap the build number 7 times.

Go to Settings >Developer Options, toggle OEM unlocking.

Reboot to bootloader

Reflash the March 2017 fastboot ROM with the OEM lock script.
[Moto G4 Plus Guides, News, & Discussion] danilomrx:
Thats the ROM I flashed, I extracted it to the minimal adb and fastboot folder. The exact name of it is: ATHENE_NPJS25.93-14-4_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.info.

I've followed the other guide u sent me. I'm confused..
[Moto G4 Plus Guides, News, & Discussion] echo92:
Now I'm confused too... (as far as I recall, the guide I mentioned is the first post of this thread, unless you mean another guide?)

Okay, let's take it from the top.

1) What ROM do you currently have on your device?

2)Can you delete the ROM files you have in your minimal adb folder, extract the NPJS25.93-14.4 ROM files and copy the freshly extracted files to your minimal adb folder, please? Just to ensure you have the correct files in the directory, also ensure the scripts you're using are in the minimal adb folder too.

3)If you repeat the flash now (with the OEM flash script - do not lock at this moment, I want to establish we can flash successfully), do you get any errors, or can you boot?

4)Did you see my edit above?
[Moto G4 Plus Guides, News, & Discussion] danilomrx:
1) I have the 6.0.1 stock installed now. (Everything is working fine).

2) I deleted everything, downloaded again the rom and the minimal adb & fastboot and extracted it again. All clean.

3)I will try this as soons as I get home.

4) I saw the last reply.
[Moto G4 Plus Guides, News, & Discussion] echo92:
Ah, thanks - that clears things up. I recall previously that you had another ROM from that Youtube guide you found, which was a Marshmallow ROM, so hopefully that's now been replaced by the Nougat ROM from this thread. EDIT - one thing I remember is that my minimal adb folder is in C:\Program Files (x86), and because of that location I was unable to directly extract ROM files to that directory because of denied permissions. I had to extract the files to another directory and then copy the files to the adb folder, accepting the warnings and checking that the timestamps of the files I copied over were the same (and checked the md5 checksums with those in the servicefile.xml to make sure they were the correct ones). Just something to watch out for (I'm on Windows 10 though).

Let us know how you get on (and hopefully you'll have Nougat and be on the way to locking your device).
[Moto G4 Plus Guides, News, & Discussion] match95:
Hello guys,

I flashed the stock rom after unsuccessfully trying LineageOS. I'm using this rom since four weeks and now I want to relock bootloader. Is there any possibility to relock the bootloader without wiping data?

Thank you!
[Moto G4 Plus Guides, News, & Discussion] echo92:
To the best of my knowledge, there is no way to re-lock your device without wiping your data. If you want to try to re-lock your device, you could use Titanium Backup or another tool to back up your app data to your SD card/internal storage, then transfer those backups to your computer (or if your SD card is portable, eject your SD card. This won't work if your SD card is formatted as adoptable storage).

Then, head to your Settings>About Phone, tap the build number 7 times to activate Developer Options.

Go to Settings > Developer Options and then toggle OEM Unlocking.

Then, reboot to bootloader, and with the same stock ROM/this latest ROM, you can try locking your device with the following fastboot commands (in the adb terminal):

fastboot oem lock begin
fastboot oem lock begin
fastboot oem lock
fastboot reboot

[NB fastboot oem lock begin is the step at which your data is wiped]

If that doesn't lock, then you'll have to flash this stock ROM with the locking commands to re-lock your device (either using the full commands list on the opening post or the OEM lock script, also attached to the opening post).

NB - re-locking a bootloader will only work if the stock ROM you're using is the same or newer build than the latest build you had previously on your device. This March 2017 fastboot ROM is currently the latest build for our devices.
[Moto G4 Plus Guides, News, & Discussion] kevinarol:
I've istalled this OTA successfully on XT1641 :)

[OTA-UPDATE] June security patch [NPJS25.93-14-8]

https://xdaforums.com/moto-g4-plus/how-to/ota-update-june-security-patch-started-t3632792
[Moto G4 Plus Guides, News, & Discussion] danilomrx:
Sorry for the late response, I had problems with my Notebook. I was able to flash nougat Ron and lock the bootloader, I tried doing it on Ubuntu and it worked first try!

Thank you very much for all your help, sir!
[Moto G4 Plus Guides, News, & Discussion] Sharp404:
Hello Xdians

I flashed this stock ROM and locked my bootloader..got a security patch

Can I install it safely?
[Moto G4 Plus Guides, News, & Discussion] rajatgupta1998:
Yep, but remember that if you plan to unlock your bootloader again, you won't be able to relock it in the future until the NPJS25.93-14-8 fastboot firmware is available. :good:
[Moto G4 Plus Guides, News, & Discussion] shiva ram MCA:
Shiva

Its have any reboot problem?

Sometimes any incoming calls or message was receive suddenly device was shutdown :confused: