yashsingh1/xdaforums huggingface dataset:
[E 2015 Android Development] merothh:
Seems like a new version of TWRP is out v3.1.0
[E 2015 Android Development] Sid32:
Not uploaded for Surnia yet. More details on Twrp.me, would wait to Squid tests it and reports.
[E 2015 Android Development] xpmule:
Yup.. https://www.xda-developers.com/twrp...-support-for-adb-backup-ab-ota-zips-and-more/

Sounds interesting and i hope Squid can hook us up and revert the swipe behavior regression on the last build ;)

I wonder if he will kill the install official app prompt too. (i think he should probably especially if it won't do any good)
[E 2015 Android Development] squid2:
Squid TWRP 3.1.0-r1

I've rebased my TWRP fork on the latest upstream code, and switched to a nougat build environment. As a reminder of the differences between my TWRP fork and the upstream TWRP, mine has no SuperSU, no TWRP app, my green theme, updated compression code, and I removed some cruft. The download for my new build is up on the downloads tab as usual. I've also fixed the touch screen response regression of the last build.
[E 2015 Android Development] Sid32:
Thanks! Installed and it looks like its working. Will report after weekly LineageOS update.
[E 2015 Android Development] ZeroAlphawolf:
Thanks, i hate these stupid variant bull crap, i need to get back to using just Nexus devices soooo much easier.
[E 2015 Android Development] squid2:
2.8.7-r2 release

I've posted a new TWRP build that fixes the issue that made wiping partitions very slow. The download is up on the downloads tab. The fix was to disable secure wipe and instead use quick formatting. You no longer need to use the rm -rf option to wipe in a timely manner. Thanks to [MENTION=3877985]prbassplayer[/MENTION] for the tip that let me fix this.
[E 2015 Android Development] nodio:
Could you please provide a ROM 5.1 or a kernel to fix camera issue on 5.0.2 which works with the variant xt1523, i've looking around but there is no post regarding this variant
[E 2015 Android Development] EB20XY:
Great stuff. :good:

Thanks man ! :highfive:
[E 2015 Android Development] Saleitor:
Updates

First of all, thanks for the kernel and the twrp!!

But, a question... In the other thread "[Kernel][surnia] Squid Kernel for Moto E LTE (2015)" in the downloads is the "twrp-surnia-2.8.6-r3.img " version... But here is the "twrp-surnia-2.8.7-r2.img "

Why is that? Do you update this thread?

Thanks!
[E 2015 Android Development] squid2:
The surnia and otus recoveries are different. I put out new "-r#" releases when I fix bugs for a specific device. For otus, the -r2 release is my current version.

Edit: I misread your question. The version here (2.8.7-r2) is the newest.
[E 2015 Android Development] Saleitor:
I'm sorry!!! I didn't notice the "2.8.6" and "2.8.7" difference... i'm so stupid. I believed that both was the same version (i.e 2.8.7) but the other thread has the r3 release and here was the r2. That is the reason for my question. Sorry!

Thanks again!
[E 2015 Android Development] MameTozhio:
Thank you, this works very well.
[E 2015 Android Development] diafero:
The hardware encryption support does not seem to work. I have my device encrypted, and when I boot this TWRP, it does not ask for a password. When I try to mount data, it doesn't work, and the log says "Unable to mount `/data`", and further at the top "Could not mount /data and unable to find crypto footer".

(The other crypto-enabled TWRP does ask for a password, so that part seems to work slightly better - but it doesn't let me change the size of the pattern, so I'm also unable to mount.)
[E 2015 Android Development] threePwny:
Why torrent?

Any chance we'll get a non-torrent download? 0/0 seeders/leechers makes it impossible to download. It's completely useless.

---------- Post added at 02:06 AM ---------- Previous post was at 02:02 AM ----------

Nevermind. I'm a herpy-derpin' today. Did not realize "direct download" does not mean direct .torrent file. Mah bad.
[E 2015 Android Development] dreckgos:
Same problem here...
[E 2015 Android Development] :
just to get some things straight here,

Does this really need unlocked bootloader to get it work or can you use it without unlocked bootloader or will it give you issues when trying to replace it within dd comnmand?

2.nd the 2nd Gen E seems to come in both 3G/4G which variant is supported, i haven't really understood what variant is what, The Styx seems to be same as Surnia version according to http://xdaforums.com/moto-e-2015/general/moto-e-lte-2-gen-2015-xt-1527-aka-moto-t3129305 where it is stated: - second generation "moto e 2. gen" of 2015 --- Surnia (earlier known as "Styx") however i don't know :confused:

according to: http://www.droidviews.com/install-5-1-lollipop-on-moto-e-2015-lte-surnia/

Make sure you are using the Moto E LTE version, code name Surnia

so i guess it's safe to flash this on the "Styx" variant since it's the same as Surnia ?

However afaik Moto E "Styx" is the 4G model which powers the Proc ARM Cortex-A53

SoC (System on Chip)

Qualcomm Snapdragon 410 MSM8916
[E 2015 Android Development] squid2:
This requires an unlocked bootloader. This TWRP build is meant for the LTE model.
[E 2015 Android Development] thathtcguy:
What makes this better than twrp without your kernal?
[E 2015 Android Development] squid2:
Read the post you quoted.

P.S. Please don't quote the entire first post on development threads. It takes up excessive space unnecessarily, making the thread harder to read. Thanks.
[E 2015 Android Development] thathtcguy:
I meant what does the squid kernal change, not the other fixes, although I'm definitely flashing this recovery
[E 2015 Android Development] squid2:
The kernel doesn't really matter in the recovery as long as it works. It's a newer kernel version than the stock Motorola kernel, and I tweaked the defconfig to make it a bit smaller, but that's about it.
[E 2015 Android Development] thathtcguy:
okay, downloading rn
[E 2015 Android Development] yelupic:
[MENTION=6485916]squid2[/MENTION] - I read over in your kernel thread for the Moto E LTE that you are fishing for new "headaches" (challenges). - How about a "perfect" TWRP with this encryption thingy (crypto footer/changing security settings) solved for all of us (running a scritch nightly/custom ROM)? - I would kiss the ground behind you on my knees ... (okay, maybe not in public space, but you got the point).

Thank you for thinking about it.
[E 2015 Android Development] squid2:
Sure, I'll look into it.
[E 2015 Android Development] DroidFreak32:
Awesome! I love your theme! So much that I want to request this, even though it might be stupid: Could you make a separate theme zip of it so I can use it for my other devices' TWRP?
[E 2015 Android Development] Sher1234:
Thanks,

& Working awesome
[E 2015 Android Development] Cookie Ninja:
Thanks! Working Great! Good for our venerable lil Surnia...
[E 2015 Android Development] Rahul kumat:
Thank you for new recovery
[E 2015 Android Development] kushalchauhan98:
Back on build 3.0.2-r5, when I used to perform a backup, I used to get 4 options to check - System, Data, Cache and Boot. In the recent build 3.1.0-r1, I'm getting 6 options - System, System Image, Data, Cache, Boot and Recovery. What is this 'System Image' ? What does it store?
[E 2015 Android Development] prbassplayer:
Not sure what why it would show up here but system img is a partition thing used on more recents devices, specially nexus.
[E 2015 Android Development] Letitride:
Thank you - I can affirm that this is working great. XT-1521 global/dual sim unlocked bootloader, running latest RR-OS Resurrection Remix 3/17/17 build (Nougat 7.1.1_r25-NOF27B)

D/L and copied into SD card, flashed IMG with last TWRP (within Recovery) - reboot & confirmed that it's up & running. Thank you for helping to bring the device up-to-date & current.
[E 2015 Android Development] kushalchauhan98:
Then am I gonna lose something if I don't back it up? Because its size is quite big - over 1 GB.
[E 2015 Android Development] :
No, it is only another way to backup system. It will create a system.img just like if you used a terminal to pull the system.img instead of the normal backup. No need to use it unless you want a system.img.
[E 2015 Android Development] prbassplayer:
Interesting
[E 2015 Android Development] merothh:
Wow that's quite useful for pulling the stock rom. Had a TWRP backup before (Contains only system and kernel). Guess I'll restore and take a system image backup.

Can I take a backup of the kernel image too ?
[E 2015 Android Development] squid2:
System Image is an option to back up the system partition as a disk image rather than the usual tar.gz format. The main reason for its existence is that on devices enforcing dm-verity, even a single bit change in the system partition will break its signature. Motorola devices, at least of this device's generation, don't eforce dm-verity, so it's not too important.

The option to back up the system partition as a disk image was added by Dees-Troy in https://github.com/sultanqasim/andr...mmit/2853683fefc31f1c0df5673bfc34807129b9e7fc when he copied my device trees over to the official TeamWin repositories. I left his addition in for this last build, but I'm not sure whether or not I'll keep the option of backing up the system partition as an image on these devices. While some users might like the option of backing up system as an image, it's not really a required option on this device, and it might cause more confusion than it's worth (as it did for you).

EDIT: With regards to fastboot flashing - I don't remember if Motorola has changed this behaviour on newer devices, but at least on old devices, their implementation of fastboot did not allow flashing regular disk images beyond a certain size (around 256 MB). Thus, if it still behaves the way I remember it used to, you won't be able to flash a system image backup directly on this device. When you large single system.img files in Motorola releases, they're not actually normal disk images but rather Motorola sparse images. There might be a publicly available tool to convert a regular disk image to a sparse one, but I'm not aware of one.

As for wanting an image backup that can be restored in a way that preserves bit for bit integrity and signatures in case you want to re-lock the bootloader in the future: this may be a valid use case for system image backups here, but even if you manage to sparsify the image, I don't remember if the sparse chunks are individually signed or not. If they're individually signed fastboot may refuse to flash the image.
[E 2015 Android Development] :
Sorry, I was wrong. The img it creates isn't quite the same as using a terminal or fastboot to pull the image. It will be labeled system.emmc.win rather than the normal system.ext4.win, I believe so it would still need to be converted to a regular system.img if you wanted to flash it with fastboot. The boot.img will also be labeled boot.emmc.win.

Edit: it's been a little while since I've played with it, but I believe this program will convert the TWRP img to a regular system.img.

https://xdaforums.com/chef-central/android/best-android-roms-editor-assayyedkitchen
[E 2015 Android Development] Cookie Ninja:
Think I spoke too soon. Back to 3.0.2-r1/r5 for me. Tried TWRP backup of Tesla OS LP 5.1.1. Backup process is significantly slower as compared to 3.0.2 (all variants). There is some touch to swipe inconsistency, as reported in the Osprey thread. Cancelled backup and tried to reflash 3.0.2r5 from within TWRP and lost all TWRP recovery (only bootloader comes on). Needed to flash recovery using fastboot from PC. Now back on 3.0.2-r5. Maybe this recovery is good only for custom N /stock or custom MM builds...
[E 2015 Android Development] xpmule:
I was not expecting an update but it's a nice surprise thanks Squid !

I read about the dm-verity stuff a while back on the XDA news topic posted..

https://www.xda-developers.com/twrp...-support-for-adb-backup-ab-ota-zips-and-more/

It has additional info for those of you wanting more (see the comments too)
[E 2015 Android Development] skullkid383:
Thanks update works great
[E 2015 Android Development] xpmule:
Tested 3.1.0 r1 and it seemed to work fine doing a default settings backup for me.

I did it lots before and it seemed to work about the same i think.

The swipe behavior seems normal too.

I have never had the time zone work properly so on upgrades etc i usually have to put it an hr back or forward.

Other than that it seems fine to me.

I tested it on XT1527_SURNIA_RETCA-TELUS_6.0_MPI24.71-4_cid14

I also have never ever used a custom ROM.

I used Squid's kernel though.
[E 2015 Android Development] Adi-ct:
problem:

trying to apply OTA upgrade from

lineage-14.1-20170324-nightly-surnia-signed.zip

to

lineage-14.1-20170331-nightly-surnia-signed

will fail on twrp-surnia-3.1.0-r1.img when the device is encrypted. (used to work just fine on twrp-surnia-3.0.2-r5.img)

TWRP prompts for the encryption password and after i enter it it just opens the main recovery menu instead of applying the OTA upgrade.

edit: I tried multiple times - multiple re-downloads of the OTA package just in case of a bad download... all ended the same way with twrp opening the main menu.

Note that my wireless is rock stable, i regularly get 60+ Mbps on wifi on phone. /edit

i had to install the upgrade manually from SD card.
[E 2015 Android Development] hajj_3:
Official TWRP 3.1.0-0 for Surnia was released 4 days ago: https://eu.dl.twrp.me/surnia/twrp-3.1.0-0-surnia.img
[E 2015 Android Development] vayavalla:
According to comments around, squid's one works better than official.
[E 2015 Android Development] DroidFreak32:
Yep! You'll notice it. Plus it has the amazing theme
[E 2015 Android Development] FanboyStudios:
Mine works great! No issues so far, as for the theme it's OK... I prefer blue, black, and gold (it would match my system theme for my YouTube channel.. Pics attached)... Oh well. Lol
[E 2015 Android Development] kskillz2000:
For some reason now I can't make a backup gives an error of createTarFork() process ended with ERROR: 255

Backup failed. Cleaning Backup Folder.

Any ideas guys
[E 2015 Android Development] Wechy77:
My search result: link

one/some of your "file is corrupt in some way and the backup will never finish"
[E 2015 Android Development] :
Check /data/app for partial downloads of apps from play store, or partially installed/uninstalled substratum themes. Delete any if you see them and try your backup again. This can also happen if /data isn't mounted properly in recovery. You can try remounting /data and rebooting​.
[E 2015 Android Development] kskillz2000:
I checked, the folder was empty and I don't have any substratum themes
[E 2015 Android Development] :
Hmm, may be something else, but to show you what I meant, the .tmp file in the screen shot. Usually when I have a backup problem I find something like that in /data.
[E 2015 Android Development] kskillz2000:
What I did was dirty flash an update to my rom and all is good again
[E 2015 Android Development] raggaboi:
[MENTION=6485916]squid2[/MENTION]

Any chance you will update this to 3.1.1?

Just wondering before I flash the latest one you have currently.
[E 2015 Android Development] squid2:
Squid TWRP 3.1.1-r1

I've rebased my TWRP fork on the latest upstream release. It brings miscellaneous bug fixes from upstream. As usual, the download is on the downloads tab.

I've also updated the kernel with recent security and bug fix patches - I'm in the process of bringing my "Squid Kernel" project back up to date. A new Squid Kernel release will probably come some time next week.
[E 2015 Android Development] Adi-ct:
Unfortunately twrp-surnia-3.1.1-r1 is still broken with updating encrypted devices. It still displays the main menu after it asks for the encryption password instead of applying the update.

I tried updating from lineage-14.1-20170707-nightly-surnia-signed to lineage-14.1-20170714-nightly-surnia-signed using the built-in updater in LineageOS and after twrp-surnia-3.1.1-r1 asks for the encryption password it will display the main menu instead of applying the update. This is the same behaviour as twrp-surnia-3.1.0-r1.

Applying the update manually still works OK and i've been doing this weekly because of that issue.
[E 2015 Android Development] jakson7474:
Would you like to put password option to enter the twrp
[E 2015 Android Development] Sid32:
Why? Couldn't I just plug the phone into my computer and flash twrp again?
[E 2015 Android Development] xpmule:
A nice surprise.

He has the best Moto mods.. his TWRP Kernel + TWRP + Stock Marshmallow served me well.

I will have to get and try out this update soon.

Although i am not using my Moto E much lately.. have a Galaxy S7 and LG G3 taking up my time / efforts.. oh and an Acer Tablet which was nasty to get rooted with TWRP ahahhaha

I did not expect much more from Squid though.

He did a lot for this phone for a long looooong time.

His topics deserve a bump though because if you just want Stock with root .. then you want his stuff !

His kernel and TWRP with Marshmallow rooted is awesome !
[E 2015 Android Development] Adi-ct:
update: today i decided to stop doing manual updates and i tried the built-in updater. Updating from the Settings menu from lineage-14.1-20170825-nightly-surnia-signed.zip to lineage-14.1-20170901 continued normally after it asked for the encryption password.

I then tried a second update, lineage-14.1-20170901 to lineage-14.1-20170901 (i.e. a reinstall) and it worked correctly too.

So, looks like this wasn't a TWRP recovery bug, it was a LineageOS bug.

Thanks :)
[E 2015 Android Development] kfiven:
i flashed twrp successfully, but its folder is not opening when i try.
[E 2015 Android Development] :
You need to access the twrp folder by going to /data/media/0/TWRP.
[E 2015 Android Development] V-Droid:
[MENTION=6485916]squid2[/MENTION], first I'll like to thank you for all the work you've donne for this device. I owned a surnia variant for.About a year unfortunately I lost it. Any way, now I own a Moto g 2015 (Osprey), is it possible that your could port you recovery to work on this device as well? Not asking for any ETA.
[E 2015 Android Development] :
What's wrong with this?

https://xdaforums.com/2015-moto-g/orig-development/twrp-twrp-moto-g-2015-t3170537
[E 2015 Android Development] V-Droid:
Jajaj ?, would you believe me if I told you that I had search for this and never came across it? I seriously though this didn't exist, that's why I asked for it ??? thank you man
[E 2015 Android Development] squid2:
Squid TWRP 3.2.0-r1

I've posted a new build of my TWRP with the latest changes from upstream. It brings better support for Oreo zips while still supporting older ones. It also has improvements to the reliability of backups.
[E 2015 Android Development] basicreece:
Dumb question does this work only on Moto? Have LG g6 unmount issue and EVERY thread brings me here lol

Everyone saying squids twrp will fix it.
[E 2015 Android Development] fivefour:
You can't use this on your device.
[E 2015 Android Development] squid2:
Squid TWRP 3.2.1-r1

I've posted an updated build of my TWRP fork. It brings bug fixes related to the ADB backup feature, and also executes automated recovery scripts (such as wipe and update commands) without first waiting for the user to enter a decryption password. As usual, the download is on the downloads tab.
[E 2015 Android Development] kskillz2000:
Got it running. Flashed with no problems thanks again
[E 2015 Android Development] vayavalla:
I can't access sdcard with latest build.
[E 2015 Android Development] kskillz2000:
Just confirmed the SD is accessible for me

Did u mount it?
[E 2015 Android Development] vayavalla:
Thanks for the tip.

I never had to mount it on previous versions.

I've tried to mount it on latest version, but no success.

I have xt1524
[E 2015 Android Development] kskillz2000:
Are you talking about internal memory or the ext sd

I'm not sure about that version
[E 2015 Android Development] vayavalla:
External sdcard
[E 2015 Android Development] kskillz2000:
Ok let me take my card out the e⁴ and try that

Dunno I can access it
[E 2015 Android Development] DroidFreak32:
Is it in the FAT file system? Or did you format it to NTFS
[E 2015 Android Development] vayavalla:
Fat
[E 2015 Android Development] vayavalla:
I guess something is wrong with my sd card.

I have tried downgrading TWRP and it didn't work, so I tried another sd, and it's working.

Sorry for the inconvenience.
[E 2015 Android Development] kskillz2000:
A corrupt card will do it every time....was it working b4
[E 2015 Android Development] vayavalla:
Yes, it was working before
[E 2015 Android Development] kskillz2000:
You could always just try a previous version but it's not twrp mine updated fine
[E 2015 Android Development] vayavalla:
As explained before, it was the sdcard that was unreadable. Just coincidence (who knows) that it was broken right after I updated TWRP.
[E 2015 Android Development] cloudblue:
It's been awhile. I have Squids 3.0.2.r5 Yes , way back machine. Can I flash the latest Squid TWRP using that rather than Fastboot? Permanently...or Do I have to use fastboot to make it stick? I also am on an old CM14.1-20161225-Nightly-surnia I'd like to move to an Official Lineage 15 nightly, with updater and Root. Can someone point me to the best source. There are a LOT of lineage imposters out there.
[E 2015 Android Development] fivefour:
https://dl.twrp.me/surnia/

https://download.lineageos.org/surnia

There is no official LineageOS 15 for your device.
[E 2015 Android Development] cloudblue:
Yep, sorry. I did flash the latest LOS14.1 nightly, pico gapps and addon su. that will put in line for 15.1 if and when it's available for surnia. It's working flawlessly. Thanks. The other question: Can I flash this TWRP directly using the old twrp without using ADB?
[E 2015 Android Development] vayavalla:
You can,but better use the latest squid's version
[E 2015 Android Development] cloudblue:
Thanks all. I have Squids latest Twrp and official LOS 14.1 nightly and updates enabled. It's all good, man (Saul Goodman)
[E 2015 Android Development] squid2:
Squid TWRP 3.2.3-r1

I've posted an updated build of my TWRP fork that has been rebased off the latest upstream version. As usual, the download is on the downloads tab.
[E 2015 Android Development] jony797:
Thank you for keeping the Moto E Surnia
[E 2015 Android Development] Vortell:
Anyone know if this will work with the cdma version of xt1526? Just rooted the device with kingroot and want custom recovery. So I can delete kingroot! Haha. Also want cool custom os but seems like cdma version is stuck on cm 12.1 but I haven't read much yet. Just tried to search to find TWRP for the device. Maybe the device trees have been unified. From the s5 though I'm weary since there is a separate os build for those devices. Sorry for rambling a bit.
[E 2015 Android Development] esykas:
thank you

install Android 9

Surnia 1524
[E 2015 Android Development] MotoJunkie01:
Yes, these TWRP builds are ideal for the xt1526.
[E 2015 Android Development] Vortell:
Thanks I have already found that out. It's pretty cool mod too. Honestly it would not let me do factory bootloader unlock until I replaced boot file on the phone. Then was able to use the website to unlock it load this recovery and flash Los 16! So cool! Actually I am fallowing the unbuntu thread too.
[E 2015 Android Development] MotoJunkie01:
Cool. The xt1526 is one of the longest supported budget devices in the Android community. There are so many dozens of custom ROMs for it (and kernels, radios, and recoveries) that I can't keep track. For a $40 device that's nearly 4 years old, I'm truly impressed on the development attention it receives -- and still today.
[E 2015 Android Development] Vortell:
Didn't know there was a way to mod the radios. I will have to look into it. Do you have a link? Mines a boost one and would love to be able to use on Verizon as a back up. I read some where might be able to gsm unlock but none of it is clear. Right now it's just used as a toy to play with custom roms. I got it for $25 with the free limited service. Honestly though thinking about other motos as a primary phone because of custom support. Plus they just hold their value.