yashsingh1/xdaforums huggingface dataset:
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] soccerref80:
So I installed TWRP and my Moto G4 is rooted. All working fine. I did a couple of backups and everything seemed to work fine. Then I tried to update my backups and get this " Failed to create ....../backup/.... (I/O Error) Failed to make backup folder" In recovery I can see the 2 previous, in file explorer I an also see the folder. Any ideas how to fix this. I want to do a full wipe and restore, but with no recent backup I reluctant to do this.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] SwiftGFX:
I've tried to do this before on my phone, everytime I install it and reboot my device in the bootloader or the bootloader recovery, it says "no command" and the bootloader itself doesn't take me straight to TWRP, tips?
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] checksamir:
The trick is to boot to TWRP right after flashing else stock OS will rewrite original recovery. Use the following method to retain TWRP recovery after flashing.

Flash twrp using fastboot tool through PC. Hold power and volume down keys and enter the following command

Fastboot reboot

Phone will reboot. Release the keys immediately after phone vibrates. It will reboot phone to TWRP.

Once the phone successfully reboots to TWRP, stock recovery will be replaced.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] SwiftGFX:
I'll attempt this and reply with results, thank you.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] SwiftGFX:
It is now asking for a password saying "failed to decrypt data* ive gotten into the TWRP menu.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] checksamir:
Use default_password or try the following:

#1. Reset the factory settings, it's okay if it's not allowing.

#2. Boot into the rom and remove all passwords and uncheck the "require password on startup".

#3. Boot to Unlocked recovery successfully.

Else try another TWRP build.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] SwiftGFX:
I finally got it to work earlier, luckily I had a backup stored, I tried to flash the .img onto the boot and had to restore, then I went back and installed just the zip and rebooted and I got the root I needed. thank you.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] tasar:
You have xposed installed without root?
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] manojkumar8552:
xposed needs root.

cause xposed modify systsem.

without unlockinG system how will u modify it ?

---------- Post added at 11:56 AM ---------- Previous post was at 11:54 AM ----------

Bro it is long run for android N :D

lets wait and watch for next update :D

---------- Post added at 11:56 AM ---------- Previous post was at 11:56 AM ----------

Bro it is long run for android N :D

lets wait and watch for next update :D
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] amanjeet@msn.com:
after unlocking bootloader ...... i installed twrp ........... and from twrp i installed xposed
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] tasar:
Yes, i know that because i wonder, that amanjeet@msn.com write he has only twrp installed , he write nothing about root ;)
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] amanjeet@msn.com:
Hi ... the phone is bootloader unlocked and twrp installed and xposed is installed as well

now if there is an Android N update .... can i still update my phone and if no ... how do i update my phone

(supersu) is not installed

This is what i wrote ... and i though rooting means installing Super SU ... sorry if i am wrong somewhere
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] :
I never installed Xposed or stuff. I hate Xposed. I have no idea how Xposed will work without root. Okay coming back to the point, you asked if we can get the update. Yes we will get the update. You can't install it though, even if you have not rooted. Any phone that unlocks the bootloader can't install it. Okay so what do you do then? Before downloading the update, relock the bootloader :P simple ain't it? Or if you don't want to relock, then just wait for a flashable zip. That's even more simple :P :D
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] amanjeet@msn.com:
Thanks ... i use xposed cos it gives me an app which vibrates the phone on call connect i find this feature very useful ... less time on staring phone
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] :
If your phone isn't rooted (you mentioned that you haven't flashed SuperSU), how on earth did you install Xposed?

On your question, yes, you should still be able to update via OTA (after relocking bootloader, as told by OP).

Sorry for the duplicate response, my browser didn't show the responses to your quoted post. :p
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] amanjeet@msn.com:
as i said earlier

unlock bootloader- flash twrp- boot into recovery- install xposed from twrp- boot phone - instal xposed apk file- simple

tell me if i am wrong somewhere
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] tasar:
Then you have a "wonder" phone... xposed need root! on every phone
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] amanjeet@msn.com:
Thanks dear ....
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] AmyClaraRose:
You don't actually need root for exposed I have closed without root on my 6p
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] TechnoAnder:
Awesome work bro, some idea of when will be released the first custom rom for this device?
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] vampir4997:
Xposed runs when the phone is booting and doesnt permanently modify anything. Hence you do not need root to use xposed.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] smitharro:
Before ordering this phone: I am now using a Moto G 2014 with TWRP and CyanogenMod 13 happily working together! TWRP is there, I see, but does anyone know if there are any plans for CyanogenMod? Unfortunately I'm not a developer and not able to build it myself (at least not without a proper device tree).

Written with my XT1068 using Tapatalk on CM13
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] Silesh.Nair:
There are test builds available that boot up, but with a lot of bugs. No RIL, No Wifi, No Camera etc...

Sound and sdcard work. There are people working on it. It will come.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] smitharro:
I have the phone! Love it! It's fresh, and the bootloader is still locked. Don't need any root, TWRP or unlocking for now, because there is no workable CM (or other roms), but I'm carefully following the threads!
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] prsepulv:
I installed unlocked bootloader, after thar install TWRP, with the "error message" of "corrupt bootloader". After that went to recovery and installed SuperSU. Later reboot to system...

After that, only moto logo and "powered by android" forever...

What's wrong...?

Regards.

Pedro
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] Silesh.Nair:
You need to flash a rooted kernel (this or this) or try this method to get root.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] Shreps:
Hi there,

It seems that encryption is not available on TWRP, I can't mount my SD card (which is formated as internal storage)

any plan to fix this ?
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] :
Hi, to be frank I got no time to dev nowadays. I did try to fix it along with removing the mouse pointer but was unsuccessful. If you can spend some time and fix those, it would be useful to all.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] Shreps:
TWRP with Encryption support

Hi there, here we go:

Download to my compiled TWRP: https://moto.shreps.fr/?dir=Moto G4 (athene)/recovery

It now supports Encryption, so I can mount my SD Card which is formatted as Internal Memory

TWRP Backup on it works fine.

Here is my repo: https://github.com/Shr3ps/android_device_motorola_athene and the pull-request https://github.com/TeamWin/android_device_motorola_athene/pull/1

Enjoy guys
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] ynshetty:
[MENTION=4493088]Shreps[/MENTION] thanks ! I noticed cm13 builds in your website....are they bootable and usable ? I am sorry I know wrong thread but thought I d ask yiu
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] Shreps:
My build just boots (audio & bluetooth ok), nothing more. For the thread discussion, check here : http://xdaforums.com/moto-g4/how-to/rom-cyanogenmod-13-0-moto-g3-t3412253/
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] jota189:
Hi! Im trying to install TWRP on my MG4+. I unlocked the bootloader and I already have the alert message of it. I followed all the steps to flash the 'twrp-3.0.2-0-athene' image using fastboot; and also appears the " image not signed or corrup" comment after flashing it. But how can i reboot to recovery from fastboot? I tried reboot to bootloader using the 'fastboot reboot bootloader' command and then reboot thinking on reboot recovery from adb but always says 'no command' ???.

Thanks in advance for ur patience and sorry for my english!
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] msturg29:
In order to flash TWRP you would need to flash the recovery, it will say its corrupt or not signed, but thats ok. Just flash recovery and then after use the side button to go to "recovery mode" and TWRP should load up.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] DJTeeJay:
i'm on 3.0.2 on XT-1466 and after restoring stock ROM i lost root. Is this a known issue? Is there a simple fix? If i flash SuperSU i get stuck at "moto".
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] smitharro:
Are sure? An XT1466? Anyway, on stock rom you'll need to flash a boot image first that is suitable for root. By restoring stock rom you change the entire OS. That why you lost root!

Besides: your question has been answered before in this thread, so first search:

Send with my Moto G4 Plus with CM13 (XT1642) using Tapatalk!
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] DJTeeJay:
No No No, 1st I tried restoring my stock rooted ROM with all my apps and had lost root. I did the whole flash back to stock, fastboot recovery, TWRP terminal .SuperSU file, flashed SuperSU, updated su...
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] smitharro:
But you didn't install the needed boot.img....

Send with my Moto G4 Plus with CM13 (XT1642) using Tapatalk!
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] DJTeeJay:
I thought that was only for systemless. Where can I get said boot.img.

---------- Post added at 11:45 AM ---------- Previous post was at 11:40 AM ----------

I am currently rooted, not sure what boot.img your speaking of other then EK. EK caused Mortal Kombat X to crash, which I have been testing for him...

*Edit*

Those boot images are not for 1644 and are also systemless.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] smitharro:
In this thread http://xdaforums.com/showthread.php?t=3405772 everything is explained.

SuperSU in combination with Android 6, is, imho, always systemless. So, when you use a stock rom you'll need one of the boot.img mentioned in the OP of the link I gave you here.

Edit: another link:

http://xdaforums.com/showthread.php?t=3387113

I never used EK. Just the stock kernel and now the CM stock kernel. CM is pre-rooted. The only reason I rooted my stock rom was to be able to make a backup of my apps with Titanium Backup before installing CM. Now that I have CyanogenMod I will not be going back to stock...

Send with my Moto G4 Plus with CM13 (XT1642) using Tapatalk!
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] DJTeeJay:
On the MXP we had an option, root or systemless root. It just worries me that my model wasn't listed so I didn't flash the boot. Thanks for the help, really appreciate it guys
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] pv979:
Does anyone know a method to prevent this from happening ? I want TWRP as my recovery permanently!
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] Shreps:
Like it has been said, you have to reboot in TWRP directly and flash SuperSU, after that, TWRP will not be replaced by stock one.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] SoNic67:
Like it is said, the first boot, before SuprSU zip install, needs to be again in recovery ( now the TWRP) - keep the finger on the Vol - button.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] noetrejo:
how install stock recovery ??
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] hyof:
1. the recovery can read a encrypted rom (MTP and file manager)?

2. It's possible backup a encrypted rom?

Thanks :)
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] claytoncamilleri100:
Today I received an ota update for the moto g4 plus and after I downloaded and tried to install the phone went to TWRP. The update failed and I got an error 7. Is there a way I can update with twrp?
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] smitharro:
No, that's the downside of using a custom recovery with the original stock rom.

OTA updates won't work. You'll have to reinstall the original stock recovery, because that's what the update file expects...

Since I use CyanogenMod I don't need these kind of updates!

Send with my Moto G4 Plus with CM13 (XT1642) using Tapatalk!
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] SoNic67:
I just noticed that the title of the thread is TWRP 3.0.2-2 but the latest version that I could find is 3.0.2-0. It worked for my purpose, but... Just wondering.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] :
Probably this issue persists for 3.0.2-2 as well.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] SoNic67:
Well, seems that that's only for 3.0.2-1: "This has already been fixed in the newer builds! "
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] Joseph9876:
This may be a dumb question, but will this TWRP file work on the Moto G4 amazon prime version SKU: XT1625?
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] SoNic67:
Ask the maintainers:

https://twrp.me/devices/motorolamotog2016.html
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] smitharro:
If it is a ad-version phone, probably not because the bootoader can't be unlocked. Otherwise I wouldn't know.

Send from my IPad, using Tapatalk
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] khaoticking:
It won't work for the prime version unless your bootloader is already unlocked
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] Pranav Kumar:
I'm not the right person to tell u! I'll share my experience. For first time same thing happened.

I did reset(phone) and formatted 3times(sd card) through twrp then I formatted as internal storage. Problem fixed!![emoji6]
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] jorge_culv:
Back to stock _recovery_ not stock _firmware_

Anyone able to isolate just the stock recovery? Hoping to go back to it from TWRP, install OTA update, then back to TWRP...hoping this is trivial. I've tried flashing the recovery.img from the stock firmware .zip with mfastboot, didn't stick...any ideas? Been googling around now for a few days, see lots of requests for stock recovery, does not appear answered. Thanks!
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] smitharro:
If you're still rooted, use Flashify from the playstore to flash the recovery.img you have. That should work...

Otherwise: fastboot flash recovery recovery.img (not fastboot boot recovery recovery.img)

Send with my Moto G4 Plus (XT1642) with CM13 using Tapatalk!
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] jorge_culv:
Got it, that's the exact command I entered. Now when I restart to recovery (power + vol down) I get a dead Android Man with his chest door open and a red triangle with exclamation point, below that is text saying "No command". Appears I have no recovery, stock or otherwise...going to retry "fastboot flash recovery recovery.img" and then give your awesome flashify option a go. Thanks!
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] smitharro:
That dead android is your recovery! You can activate it with a certain combination of buttons! (sorry, I don't remember exacty) It was something like pressing the volume up for 7 seconds and the shortly the on/off button...

But if you install an update it will work automatically! It's not made for 'general' use...

Send with my Moto G4 Plus (XT1642) with CM13 using Tapatalk!
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] trsix:
Total newb i guess.

Unlocked now trying to flash twrp

Tried renaming to twrp.img and using cmd line

fastboot flash recovery twrp.img

twrp.img is in my fastboot folder

I get "error cannot load twrp.img"

Any ideas?
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] Hari Haran:
File corrupted.. reinstall drivers and install system wide fastboot also re-download twrp
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] tinybilbo:
Hi,

I've got a couple of problems with my TWRP....

I am using a Moto G4 2016 Dual-Sim (not a plus)

I unlocked my bootloader and installed TWRP, then made a backup of my current stock firmware (MM).

I tried to move the backup from the phone to my PC to free up some space via USB (MTP), and this when my problems arose...

1) I noticed that when I was in windows explorer I couldn't see the full file structure of my phone compared to what I saw in the file manager of TWRP.

In TWRP there was a lot more folders in the /data folder....

2)The actual TWRP folder was empty in explorer... and missing when I checked on the phone itself (with a (root) file manager), the folder was there but when I tried to enter it... it popped up a toast notification saying it was missing

I was able to find the backup in /data/media,

I'm guessing that some of the symlinks are corrupted or have bad permissions..

and that the missing folders are somehow hidden...

How can I correct the permissions and also see the full file structure?

One final thing is that the thread title states TWRP 3.0.2-2 is available... and in this thread someone mentions that I should use TWRP manager to download it. However I can't find it via the download link or in TWRP Manager.

I'm not too bothered really, except that I thought it might help with my two other problems...

Thanks
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] khaoticking:
Did you have your sdcard adopted as internal storage
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] tinybilbo:
To

Thank you for your reply...

When I made the backup, I did not have an SD in the phone. However I have since put in a card and adopted it...

So during retrieval, yes I have an adopted internal SD...

The problems persist whether I migrate data or not...

Since I'm still setting up the phone I'll detach the card and try again.. (there's nothing on the phone or card anyway)

*Edit*

I've removed and "forgotten" the SD...

The problems still persists...

I also deleted the empty symlink, rebooted, and it's been recreated however I still can't access it.

The actual path is /sdcard/TWRP and I'm using ES file manager in root mode.

The folder does not open and a toast notification pops up saying "path not found"
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] Alejo2108:
TWRP isn't working in my moto g4 Plus Nougat
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] tinybilbo:
Not sure if this helps...

but read from this post in the CM13 thread

http://xdaforums.com/moto-g4-plus/development/xt16xx-cyanogenmod-t3482048/post69268273#post69268273

Good luck!
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] Brock yakharai:
hey i cannot flash twrp it says that to many link and failed
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] rajatgupta1998:
What? Have you installed drivers properly and unlocked bootloader?
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] Brock yakharai:
yes i have installed drivers properly and unlocked bootloader.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] rajatgupta1998:
Redownload the recovery again and flash using the conventional method as mentioned. Maybe it's corrupted. This is what I generally do:

fastboot devices

fastboot erase cache

fastboot flash recovery filename.img

exit

And then boot to the recovery.

no problems at all.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] Brock yakharai:
ok i will try and thanks in advance:)
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] joris1977:
There seems to be something wrong with the encryption of this version of twrp. It can't mount the encrypted data folder. Find the full log here: http://paste.ubuntu.com/23947814/

I asked around on irc & this seems relevant:

(15:16:39): seems there's an issue with your TWRP

(15:17:05) I wonder if the fstab is missing the length=-16384 ir whatever in it

(15:17:28) since the crypto footer stores the key, that would mean formatting/wiping data would wipe the footer too

(15:17:46) but it does appear that your TWRP was compiled with crypto support, - it just isn't working

Hope this is helpful & a fix would be highly appreciated...
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] m_loaiza:
This recovery is not maintained

Enviado desde mi Moto G (4) mediante Tapatalk
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] ronyborsa:
best recovery so far i used in my athene.no errors,nothing.thanks for sharing.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] rajatgupta1998:
Go for the unofficial version 3.0.3-n1 or n2 by [MENTION=4493088]Shreps[/MENTION] .

More maintained. [emoji2]

Sent from Lord Tywin's athene
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] catsruul:
Hmm... not a deal-breaker but OTG is not functional for me for some reason...
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] rajatgupta1998:
Go for the new unofficial build ? this won't be updated for long. And did you mount the otg ?
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] catsruul:
Never mind, it's just kinda spotty for me. Had to jam the adapter in fairly deep (no dirty pun intended) and it worked fine. Even so mounting was kinda sketchy.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] Satzz:
Is the thread even maintained?
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] brundark:
i tink no, but you can get updates here: https://dl.twrp.me/athene/
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] diegomartinezlovey:
new version 3.1.0 is online
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] Rask40:
Don't know what's going on, getting the following errors when I try using any athene twrp on my G4 Plus (not Amazon edition) ....bootloader is already unlocked.

D:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash recovery twrp.img

(bootloader) slot-count: not found

(bootloader) slot-suffixes: not found

(bootloader) slot-suffixes: not found

(bootloader) has-slot:recovery: not found

target reported max download size of 536870912 bytes

sending 'recovery' (15982 KB)...

OKAY [ 0.508s]

writing 'recovery'...

(bootloader) Image not signed or corrupt

OKAY [ 0.145s]

finished. total time: 0.657s

Thoughts? I get the same result no matter which version I use.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] :
Your recovery is installed. Try booting into the recovery. It will be there. Also, try the unofficial recoveries for Athene, available here. They're better and have more partitions to backup.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] Rask40:
My recovery is definitely not installed. ADB Reboot Recovery brought me to a tiny dead android with a Red triangle ! mark. What other recoveries, where? Link please?
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] :
Boot into recovery from fastboot, not the OS.

Search this thread, and you'll find one that begins with [RECOVERY] tag. There's also recovery images by oadam11 and sileshnair in their threads.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] Rask40:
What's the difference from booting into recovery from fastboot vs the OS? I get the same screen if I hit the button combo or if I adb reboot recovery. What am I missing here?