yashsingh1/xdaforums huggingface dataset:
[X Style (Pure) Original Android Development] Hashbang173:
Fixing device decryption from stock nougat will require some device-specific modifications. I will get around to implementing them soon.
[X Style (Pure) Original Android Development] thejase:
moto x pure 2015 backup over adb with twrp issues

Has anyone else had an issu backing up their clark over adb via twrp where if you use the -f (for filename) syntax the phone errors out? If i just let it do it normally i get a backup.ab which is the default backup name. It's perfectly fine as I can just change the name in windows after it's done. I just want to see if anyone else has this issue as it might be a bug.
[X Style (Pure) Original Android Development] Husky34:
hi [MENTION=4630246]Hashbang173[/MENTION] , sorry to bother you , i have some trouble with the twrp recovery(31.1) that maybe with your help i can come over..

yesterday i've updated my rooted stock android 7 with the latest october security update (my bad :S) , of course the update doesen't end very well and now it seems that my phone at every boot try to flash the update instead of bootiong system so i face the recovery at every boot, and i have to go in bootloader and reboot system from there.

i found this topic and even this that hopefully fix this problem but i think the path are incorrect for our device, do you have some suggestion?:)

many thanks in advice!!

edit:

doing some bottom up analysis i think the fix may be:

twrp terminal:

dd if=/dev/zero of=/dev/block/platform/f9824900.sdhci/by-name/misc

because now in the file misc there is somting like:

boot-recoveryrecovery

--update_package=/cache/Blur_version.25.201.3.clark_reteu.reteu.en.EU.zip

--locate=it_IT

qe 1/11

that instead must be blank, am i right? :D
[X Style (Pure) Original Android Development] pshadoww:
Is there a 7.0 factory recovery I can download? I need to flash it. Thank you!
[X Style (Pure) Original Android Development] tuxfusion:
WARNING:

I unlocked the bootloader via moto website and oem info fastboot method

i flashed the the latest twrp image "sudo fastboot flash recovery twrp.img" [OK]

RESULT: FACTORY RESET ! ! !

This crap will ****ing delete all your data. Good Job!
[X Style (Pure) Original Android Development] MacFett:
Wiping data upon bootloader unlock is standard.
[X Style (Pure) Original Android Development] Husky34:
There is a warning on the website and even in the xda guide, unlocking the bootloader perform a factory reset on the device.
[X Style (Pure) Original Android Development] F1rst_Unicorn:
Hi guys,

how is TWRP on clark working with Full Disk Encryption? I would like to encrypt my phone with lineage 14.1 and wonder if this works. Can I backup and restore the relevant partitions (/system, /data)? Can I still install Lineage OS updates via TWRP?

Thanks for your answer
[X Style (Pure) Original Android Development] AsquareX:
I've installed 3.1.1-0 version via adb fastboot on my Moto X Style XT1572. It got installed successfully. I proceeded with taking a full Nandroid backup which was successful as well.

But when I turn on the phone and navigate to any file manager to check the backup, its not visible over there. However when I boot into TWRP recovery again and check for backup in it's file manager, its visible there. I read that its something to do with the permissions on the folder. How can I solve it so that it would be visible in any file manager so I can copy the Nandroid backup to my PC.

My device is just bootloader unlocked + TWRP installed. It's not rooted yet.

SOLVED: Did a backup again but this time selected storage was SD card. The backup is now visible in file managers and in PC.
[X Style (Pure) Original Android Development] Alibaba0101:
I was surprised i didn't see this thread updated with the latest twrp - i believe updated by Hashbang173 (many thanks)

https://twrp.me/motorola/motorolamotox2015pure.html

not sure i would recommend anyone updating to it. I wasn't able to successfully backup my official lineage 14.1 nougat rom (without N modem) with it. I went back to 3.1.1.0. Without a changelog its difficult to say whats changed.

YMMV
[X Style (Pure) Original Android Development] abense:
Any time I try to wipe data, my device reboots.
[X Style (Pure) Original Android Development] Husky34:
You can try the recovery for N sources present in the first post of this thread.

It's also made by Hashbang173 but have some adaptation to prevent reboot after wipe.
[X Style (Pure) Original Android Development] Hashbang173:
Here is a test version of TWRP that includes decryption support on Nougat firmware. https://www.androidfilehost.com/?fid=818070582850499631

Please let me know if this fixes any decryption issues.

Also, if someone is on Marshmallow-based firmware and is encrypted, please see if this version of TWRP doesn't break decryption.

If all goes well, I plan on merging these changes and rolling out a new official build.
[X Style (Pure) Original Android Development] 2be3_80:
Hello, i have flashed yesterday twrp 3.2.1 (latest) from official site. I'm on N modem. Is this recovery right one or should I flash other?
[X Style (Pure) Original Android Development] Hashbang173:
Either recovery should work. However, if you are encrypted, only the recovery I linked in that post will be capable of decrypting data.
[X Style (Pure) Original Android Development] 2be3_80:
Thanks for answering me. I don't plan to encrypt, so I ca stick with official recovery
[X Style (Pure) Original Android Development] newHere:):
If I use adoptable storage SD-Card is it considered encrypted?

Thanks :)
[X Style (Pure) Original Android Development] andreskafe:
What is the correct method of updating the TWRP from 3.1.1-0 for N sources to the latest official version? I currently use RRemix by Antarkish.

Enviado desde mi XT1575 mediante Tapatalk
[X Style (Pure) Original Android Development] andreskafe:
I have been update and have problems with the wipes... Wipe Data, system, caché... The phone reboot into system and no wipe...

Return to 3.1.1-0 for N sources and no problems...

Any option?
[X Style (Pure) Original Android Development] andreskafe:
Again flash Twrp 3.2.1 vía oficial app then try full wipes and while wipes dalvik caché the phone reboot into system...
[X Style (Pure) Original Android Development] hangnail:
I followed the heisenberg write up and was able to flash via fastboot and then load twrp via bootloader. after restarting phone however it seems to be reverting back to stock recovery (dead android with red triangle and !). did i miss a step? should i have set system to writable before restarting? maybe im not booting to recovery properly (vol down + power, then vol down to 'recovery mode')? thanks for the help!

edit: i flashed a second time and ran a backup. It didnt ask to set system to writable on reboot this time. after reboot same result, when i try to load from bootloader i get the dead android icon
[X Style (Pure) Original Android Development] Husky34:
If you are on stock ROM you have to flash root (like magisk) to prevent the original ROM to overwrite your custom recovery with stock recovery! ;)
[X Style (Pure) Original Android Development] hangnail:
thanks husky i didnt see that listed anywhere in the tuts :facepalm:
[X Style (Pure) Original Android Development] klausbritto:
Guys, i have a problem, i cant install the last version of LOS, still on android boot loop (LOS animation screen forever), i stuck on 2017 version, and i try install others ROMS but same problem. My phone is an XT1572. Someone can help me?
[X Style (Pure) Original Android Development] Hashbang173:
TWRP build supporting encrypted data in Oreo ROMs: https://www.androidfilehost.com/?fid=13356325061477270922

https://github.com/HashBang173/andr...mmit/7d2ce663a1b94ddeb955561319306b8f9072e136
[X Style (Pure) Original Android Development] nofroyo:
Moto X Pure "This package supports bootloader(s) 0xA050,0xA04C this device has bootloader 0xA052 any suggestions?
[X Style (Pure) Original Android Development] kadopt:
Downgrade to MM ROM then flash.
[X Style (Pure) Original Android Development] ShapeShifter499:
I'm on stock nougat and none of the TWRP builds I've tried so far work with encryption. Is there a build of TWRP that works with stock nougat full disk encryption? I need it badly because the latest magisk build has caused a bootloop and there is a few files I haven't backed up.

---------- Post added at 08:59 PM ---------- Previous post was at 08:01 PM ----------

@Hashbang173 TWRP decryption is broken for stock nougat.
[X Style (Pure) Original Android Development] ShapeShifter499:
I was able to boot by flashing a older boot.img file from a previous nougat stock. But right now it seems TWRP isn't decrypting for stock nougat builds.
[X Style (Pure) Original Android Development] Hashbang173:
Try https://xdaforums.com/showpost.php?p=76931188&postcount=770

or https://xdaforums.com/showpost.php?p=75851390&postcount=758
[X Style (Pure) Original Android Development] ShapeShifter499:
I was able to flash a older boot.img and get out of the bootloop, so I did backup the files I wanted.

Those two didn't work. I'm getting the message that "Decrypt took too long"
[X Style (Pure) Original Android Development] dzaninov:
Worked for me

Hi,

I just tested this with my phone with enabled encryption and pattern lock running:

lineage-14.1-20180513-UNOFFICIAL-clark.zip you uploaded at androidfilehost to support Nougat Moto X Pure..

It did unlock correctly when entering TWRP.

Before this I was trying to unlock using twrp-3.2.3-0-clark.img and it was not working.

I did not do any extensive testing but it does seem much better.

Let me know if you want me to check something specifically.

Thank you for supporting this phone !
[X Style (Pure) Original Android Development] Hashbang173:
TWRP 3.2.3-1 is now available for clark. Notable changes include updating to Nougat base and adding vold decryption support. This build can decrypt Lineage-15.1
[X Style (Pure) Original Android Development] Aftashok:
-nevermind-
[X Style (Pure) Original Android Development] Somcom3X:
Are you using a prebuilt kernel?
[X Style (Pure) Original Android Development] Thecrazyskull:
Yup since the kernel source isnt released yet ;)
[X Style (Pure) Original Android Development] Thecrazyskull:
delete
[X Style (Pure) Original Android Development] jreyno10:
Can you link me to the xposed file you installed? Just wanna make sure I install the right one. Thanks

Sent from my Moto X Pure
[X Style (Pure) Original Android Development] spotmark:
http://xdaforums.com/attachment.php?attachmentid=3469284&d=1441910102
[X Style (Pure) Original Android Development] jreyno10:
Thanks! So I just flash that and I'm good to go right? I've been on an s6 since it launched so I'm a little out of practice with xposed and I know the lollipop version hasn't been out for a very long time. Just making sure I don't need anything else.

Sent from my Moto X Pure
[X Style (Pure) Original Android Development] thahackr:
i AM a complete noob to this flashing through command things..lol sorry about the question...but what do i download and what do i do in the command window?what adb should i download and how do i flash it?
[X Style (Pure) Original Android Development] spotmark:
Instructions, and files here, http://xdaforums.com/showthread.php?t=3034811.
[X Style (Pure) Original Android Development] jreyno10:
I actually just found that after I replied to you. Thanks for the help though!

Sent from my Moto X Pure
[X Style (Pure) Original Android Development] TonyStark R.I.P.:
Folks please keep conversation regarding TWRP here.

Anything else, search and post in the add on thread you have questions about (kernels, ROMs, xposed etc).

Thank you:good:
[X Style (Pure) Original Android Development] Hashbang173:
Update!

I have uploaded a new twrp image with some fixes.

RTC fixed, now date and time will be correct on backups

twrp.fstab fixes and changes. You can now backups your efs partitions. Removed the ability to mount persist, fsg, and firmware in the TWRP mount menu as that may lead to issues.

OP download link updated
[X Style (Pure) Original Android Development] rahul964:
Using your recovery, I made this tutorial http://androidxda.com/root-motorola-moto-x-style-pure-xt1575 and if possible, please share it with others.
[X Style (Pure) Original Android Development] :
Where is the new twrp downloaded the manager but can't locate the moto x pure "Clark"
[X Style (Pure) Original Android Development] akellar:
It won't be in the app until it's officially supported
[X Style (Pure) Original Android Development] rmckeen:
So I have unlocked boot loader, yea. But I cannot get TWRP Recovery to work. I have flashed it a couple times in fastboot mode and it appears to flash I get no errors and it completes the process. But every time I try to get into recovery I get the triangle with no command underneath. So close but not quite there yet. Any thoughts would be greatly approciated.
[X Style (Pure) Original Android Development] tunez23:
I am right there with you rmckeen. I know when I get the the little droid on his back I press and hold power and then volume up for a second or so and recovery comes up but it is stock.

I have downloaded and re-downloaded TWRP a few times making sure it is not corrupt. When I flash TWRP, it says successful each time but no go getting into it.
[X Style (Pure) Original Android Development] juancaperez2000:
Can we ise Flashify to flash TWRP?
[X Style (Pure) Original Android Development] ddash97:
I had this problem earlier. Debug wasn't confirmed/accepted by the host machine (windows pc in my case)

Just turn debug off/on while its connected and you should get the prompt. Or something along those lines.
[X Style (Pure) Original Android Development] rmckeen:
ddash97, Thanks that did the trick. Now on to gaining root and restoring from my Titanium Back up from Razr HD. Yea!
[X Style (Pure) Original Android Development] akellar:
Only if you already have root
[X Style (Pure) Original Android Development] tunez23:
Stupid question, are you talking about debug in windows or in the phone? Never had this much trouble getting TWRP on anything and it's driving me nuts.
[X Style (Pure) Original Android Development] duckfart:
Same problem. never had so many problems.

I followed How to root instructions step by step.

did the adb devices and it came back fine

did the ad reboot boot loader and it worked

did fastboot flash recovery twrp-2.8.7.0-XT1575.img (thisis the image in my minimal adb folder)

i keep getting error: cannot load 'twrp-2.8.7.0-Xt1575.img

what am i missing???
[X Style (Pure) Original Android Development] Somcom3X:
The file name needs to be identical to the adb path. Judging by the output and obvious spelling mistakes, that isn't true.
[X Style (Pure) Original Android Development] duckfart:
from rahul964 step by step instructions.

You have inconsistent instructions in step 10. you say the command: fastboot flash recovery twrp-2.8.7.0-XT1575.img

but the screen shot has clark-2.img

really appreciate the write up but i have changed my twrp file with several different names including .img and excluding .img at the end and I come back with error each time.

---------- Post added at 09:58 PM ---------- Previous post was at 09:56 PM ----------

i have copied identical name. in this the post i typoed Xt with small t rather than XT. still no go.
[X Style (Pure) Original Android Development] gpz1100:
Paste a screen shot of the output from the DIR command in that particular folder.

Either the file is not there or it's got a double extension...
[X Style (Pure) Original Android Development] silverxbv2:
Can you get a screenshot of your command window with commands and errors?
[X Style (Pure) Original Android Development] JohnMcW:
help

Nevermind
[X Style (Pure) Original Android Development] gpz1100:
Your command line is wrong. Partition recover does not exist. Review the first post again...
[X Style (Pure) Original Android Development] duckfart:
[IMG="dir"]https://www.flickr.com/photos/135477368@N07/shares/950FDM[/IMG]

https://www.flickr.com/photos/135477368@N07/shares/950FDM
[X Style (Pure) Original Android Development] JohnMcW:
DOH...thanks
[X Style (Pure) Original Android Development] gpz1100:
For the novice folks, I suggest doing much more reading before you start hacking at this phone. While motorolas are usually difficult to really screw up, recovery can still be a painful process.

I'm off to bed! :D
[X Style (Pure) Original Android Development] silverxbv2:
[MENTION=437999]duckfart[/MENTION] There is no pic with that link
[X Style (Pure) Original Android Development] duckfart:
https://flic.kr/p/yErHnX
[X Style (Pure) Original Android Development] silverxbv2:
Page not found. Can you post the image here?
[X Style (Pure) Original Android Development] duckfart:
nothing seems to be working tonight.

attached is pic of directory... see it s working now..
[X Style (Pure) Original Android Development] silverxbv2:
Ok. It's definitely in the right folder. Can you view the extensions and make sure its not .img.img?
[X Style (Pure) Original Android Development] duckfart:
its not.

thanks for the help.

I am going to get some sleep and try again tomorrow. I am missing something and too tired.

appreciate all the help.
[X Style (Pure) Original Android Development] rahul964:
It was by mistake.. I have updated the image..

---------- Post added at 11:04 AM ---------- Previous post was at 11:00 AM ----------

You can rename the recovery file to recovery.img then after give the following command: fastboot flash recovery recovery.img
[X Style (Pure) Original Android Development] jmtjr278:
hey guys. with all the naming/spelling errors i've seen in the past gew pages i wonder why people just don't inpit the fastboot flash recovery line and then drag the twrp file. take all spelling and naming right out of the picture.
[X Style (Pure) Original Android Development] GTvert90:
Probably don't know you can do that. I didn't learn it until a week ago
[X Style (Pure) Original Android Development] duckfart:
Ok.

I am an idiot. I cant recall how many phones I have had and rooted and this is the first time I cant get it to work.

I got the recovery image to to flash.

See pic.

after that nothing else.
[X Style (Pure) Original Android Development] NorthfieldMaui:
Thanks hashbang! Really appreciate all your help with this one!!!! definitely looking forward tot he future development of this phone!!!
[X Style (Pure) Original Android Development] Hashbang173:
Just reboot into recovery via adb or the bootloader menu.

If your in the bootloader, use the volume keys to scroll to recovery and then press the power button to boot in recovery.
[X Style (Pure) Original Android Development] JMB2772:
Everything is working fantastic on my Moto X Pure. Quick noob question though, when you post an update to the recovery can I just flash it over my current one without taking any other measures?
[X Style (Pure) Original Android Development] ast11:
Great work.

Can you device encryption support working?
[X Style (Pure) Original Android Development] rahul964:
well, after flashing the twrp recovery, give another command: fastboot boot recovery.img

This will boot your device directly into the twrp recovery mode..
[X Style (Pure) Original Android Development] brusslesprouts:
sorry for the newb question i flashed twrp and cant figure out how to get into it. i hold power and volume down and then select recovery and it shows a android guy and says no command.
[X Style (Pure) Original Android Development] patt2k:
amazing feels good to have this again :) doing stock backup now to SD card. Cheers ! when I get few extra bucks i will donate what I can. Thank you thank you!

also a tip guys: download the adb drivers installer with fastboot drivers etc.. then all you do is open CMD as admin and type commands :)
[X Style (Pure) Original Android Development] yung40oz84:
Well, I had this issue once as well. I reflashed twrp and then I booted directly into recovery after flashing and it came right up. Before that I rebooted device, then into bootloader, the it gave me no command guy. Also, make sure you revoke USB debugging and re-authorize it to make sure that is good, but I think the biggest step is booting directly into the recovery after pushing it, and I have not had an issue since.
[X Style (Pure) Original Android Development] brusslesprouts:
thanks i figured it out. i reflashed the twrp and then gave it the command to reboot into recovery so i could root. all good now
[X Style (Pure) Original Android Development] silverxbv2:
For those having trouble, please read the install directions carefully. This is from the twrp site.

"Note many devices will replace your custom recovery automatically during first boot. To prevent this, use*Google*to find the proper key combo to enter recovery. After typing fastboot reboot, hold the key combo and boot to TWRP. Once TWRP is booted, TWRP will patch the stock ROM to prevent the stock ROM from replacing TWRP. If you don't follow this step, you will have to repeat the install."

The important part is to boot to recovery immediately after flashing twrp
[X Style (Pure) Original Android Development] duckfart:
Thanks everybody for all the help. I really appreciate it.

Finally got it going..
[X Style (Pure) Original Android Development] Hasherx1:
Unlock and Flash Recovery and Root now or wait for Official recovery

So the recovery here is really a modded version just to get this up and working.

Is it better to wait for the official TWRP recovery before unlocking?

Also is there any way to extract your current Logo.bin file prior to unlocking and it being replaced by the nasty gram logo.bin?

So far I like this phone and want to unlock and get rooted but have had issues in the past with unstable TWRP recovery versions and therefore just want to ensure the phone's stability.
[X Style (Pure) Original Android Development] dmichael:
I am not sure what I am doing wrong here but I boot into the bootloader and flash the twrp.img, then use the bootloader to select recovery and go into twrp recovery. So far so good. Then from twrp reboot into system. Then when I try to reboot into the bootloader and select recovery again I get the "No command." message. Does this sound like anything out of order?
[X Style (Pure) Original Android Development] silverxbv2:
I don't have this phone, but from my previous android devices that sounds strange. If you have root already, download quick boot from the play store. It has an option to reboot to recovery, see if that makes a difference
[X Style (Pure) Original Android Development] dmichael:
Wiped it and tried again and it worked fine. Thanks for the help.
[X Style (Pure) Original Android Development] jrummy16:
When I first booted to recovery to test TWRP, a screen popped up asking if I wanted to keep TWRP from modifying my system so I could still receive OTA updates. I thought the same screen would show again when I installed the recovery with the following command:

fastboot flash recovery recovery.img

However, when I reboot into recovery (after installing it in fastboot) my device boots into the system recovery. I can't get the same screen to pop-up again. Any advice?
[X Style (Pure) Original Android Development] silverxbv2:
Root checker app dev jrummy?

If I remember correctly that pop up is only on first boot to recovery.
[X Style (Pure) Original Android Development] wooddale:
Im sorry for dumb question but what exactly is the file name. I renamed to recovery but not having any luck. Thanks.
[X Style (Pure) Original Android Development] gpz1100:
Erase the TWRP folder on the internal or external storage.
[X Style (Pure) Original Android Development] patt2k:
you can make bob if you want.. make sure it has .img

easiest way to flash is to copy recovery to C:/ open CMD or wherever you are accessing adb from.

this is how I did it via CMD: -> open CMD -> Type: C:/ -> fastboot flash recovery C:/bob.img

^as an example or do it like it this should work I think as well. CMD -> C:/ fastboot flash recovery bob.img
[X Style (Pure) Original Android Development] Locklear308:
Is anyone having a problem with it not sticking? Even if I fastboot boot to it, and flash SU it doesn't stick at all. This...is weird.