yashsingh1/xdaforums huggingface dataset:
[E 2015 General] riyan65:
Use this thread to flash the device manually

https://xdaforums.com/moto-e-2015/general/guide-restore-moto-e-2015-stock-firmware-t3044936/amp/

Use the firmware from here.

https://mirrors.lolinet.com/firmware/moto/surnia/official/

And I suggest you to remove the bootloader and gpt command.
[E 2015 General] rddxda:
Thank you for your help, however as I said, the phone is not being recognised in windows/adb so even with mfastboot I still get ">mfastboot oem fb_mode_set" < waiting for device >

I have re-installed motorola drivers and the computer does recognise my other Moto E XT1021 so problem seems to be with Moto XT1524 not booting far enough for windows/adb to recognise phone. As I am relative newbee any help apreciated.
[E 2015 General] riyan65:
Does it connect to PC? And what does it give when connected to PC in device manager?
[E 2015 General] rddxda:
It only connects when in bootloader screen [vol down & power on few secs] mode and shows under Other Devices as Fastboot Surnia S - in Properties for this device it shows as

Device type = Other devices.

Manufacturer = Unkown,

Location = Port_#0003.Hub_#0004

The drivers for this device are not installed. (Code 28)

There are no compatible drivers for this device.

To find a driver for this device, click Update Driver. (done several times)

Hardware ID's

USB\VID_18D1&PID_4EE2&REV_????&MI_00

USB\VID_18D1&PID_4EE2&MI_00

As you can possibly tell I am a retired IT consultant so know my way around Windows but stuggle with phones.
[E 2015 General] riyan65:
If the device connect in bootloader,then why don't you flash the device? You need to be in bootloader to flash the device. To confirm the device is connected. Boot into bootloader and connect to PC and open adb or fastboot and run the command fastboot devices. If your device is shown then start flashing your device with the link I gave you above. If the device is not shown then try updating the driver for Motorola. Or you can just use Lenovo moto smart assistant app. It will flash your device.
[E 2015 General] rddxda:
Thank-you for replying, however I have tried Lenovo Samart Assistant and it does not recognise the device also as I have said before not recognised by windows/adb:

D:\Phones-SDK\platform-tools>adb devices

* daemon not running; starting now at tcp:5037

* daemon started successfully

List of devices attached

D:\Phones-SDK\platform-tools>

As requested:

D:\Phones-SDK\platform-tools>fastboot devices

D:\Phones-SDK\platform-tools>

and to verify

D:\Phones-SDK\platform-tools>adb reboot-bootloader

error: no devices/emulators found

D:\Phones-SDK\platform-tools>
[E 2015 General] riyan65:
Are you using android studio to detect the Device?

Use this fastboot:- https://androidfilehost.com/?fid=745425885120698566

Use this Motorola driver:-

https://support.motorola.com/in/en/drivers

Open the adb and fastboot, connect the device to PC while in bootloader, then enter fastboot devices. Now it should show you the device serial no. Then you can continue to flash the device. And adb only work on a working device, fastboot is used in bootloader and recovery stuff. Using adb in bootloader won't give you any device. Use fastboot command in bootloader.
[E 2015 General] rddxda:
Yes I was using android studio to detect the Device.....Thank-you so much I now have the phone showing after using MIN ADB and the fastboot devices command. I have been working on this all day to no avail until you last post. So I am going to have a rest now and come back to this later with a fresh mind, and see if I can recover the phone. I will have to go back over all of the post to get all the info- but thanks once again. I will let you know the results.
[E 2015 General] rddxda:
So far so good - - First time through the script all went well and as the instructions said wait for the phone to reboot - so I waited but it did not reboot. So I rebooted the phone and it is still in a boot loop showing "Warning Bootloader Unlocked". So I went through all the commands again and included bootloader and gpt commands. Which both threw up a similar error:

mfastboot flash partition gpt.bin target max-sparse-size: 256MB

sending 'partition' (32 KB)...

OKAY [ 0.016s]

writing 'partition'...

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 0.359s

mfastboot flash bootloader bootloader.img target max-sparse-size: 256MB

sending 'bootloader' (2410 KB)...

OKAY [ 0.078s]

writing 'bootloader'...

(bootloader) Motoboot: Preflash validation for aboot

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 0.391s

The rest of the commands went through successfully. So I am sure I can get the phone back now I am using the correct flash tool. I am just not sure how. Possibly something to do with the bootloader as this did not flash. May have something to do with me updating previously to LineageOS 16.1 does this load a different bootloader?

Just a thought now I can flash the phone am I better to flash TWRP and reinstall LineageOS 16.1.
[E 2015 General] riyan65:
Don't flash bootloader and gpt, it will hard brick the device.

Hard brick= bootloader and gpt get bricked, so you can't flash anything (no fastboot).

You can try using the latest stock firmware, it will make your device boot. But if you want to go for custom ROM, you can, as it won't effect anything to device and make the device work more smoothly. But always keep a backup of efs and persist in case you need it.
[E 2015 General] rddxda:
Thanks again however how can I make a backup of efs and persists if I can only access the phone via fastboot? I have looked on the internet and information I can get says that fastboot can only write to phone. Sorry for being such a newbee.

UPDATE A friend of mine had said to use Motorola RDS lite to flash stock firmware. Having looked at the xml file this will flash the gpt and bootloader so I am not sure what I should do. Please advise and thanks.
[E 2015 General] rddxda:
A friend of mine had said to use Motorola RDS lite to flash stock firmware. Having looked at the xml file this will flash the gpt and bootloader so I am not sure what I should do. Please advise and thanks.
[E 2015 General] rddxda:
UPDATE: First of all thank-you for all your help - I have learned a lot over the past 6 days (that's how long I have been trying to fix it). I flashed lineage-17.1-20200814-recovery-surnia and then sideloaded adb sideload lineage-17.1surnia.zip. Phone now rebooted in normal mode and showing on PC now OK. So old Moto E XT1524 on Lineage OS 17.1.
[E 2015 General] riyan65:
You can use rsd lite if you want but remove the file of bootloader and gpt from the firmware, so gpt and bootloader won't get flashed. Mostly it would give error for bootloader and gpt.
[Miscellaneous Android Development] szumial:
Hi there!

Has anyone experienced any headphones compatibility issues? I have dropped the idea of using stock headphones as I find them way behind any different pair that I own. The problems start when I plug the jack into my P8 and put it inside a pocket. It seems that when the jack moves just slightly around the socket, the phone goes crazy changing the volume, randomly stopping the playback or launching some kind of speech assistant. It happens so frequently, that I am not able to listen to a single song on the device.

I am using a pair of Cresyn C520S headphones with a single button and a mic built in the set - they have the exact same size and type of jack as my stock P8 ones.

There was no problem when I plugged a regular, no mic, no remote control, Sennheiser headphones.

As for the software, I am on branded Polish B200 OS and am using the full version of Poweramp (god! this is such a great player!) and a streaming service app Tidal with the premium pack allowing me to listen to music offline from my devices.

Please tell me this is not an issue with my new device, but rather a hardware compatilibity issue. If so, then which headphones could I buy to make it all comfy? Do I need to look for the ones that are made for iPhone (I know they do have a three button remote attached)?
[Verizon Galaxy S 5 Android Development] haggertk:
CM 13.0 has gone official for kltevzw. I may post a test build here or there to this thread, but otherwise get your builds from download.cyanogenmod.org

*** Disclamer

-- You install these at your own risk! You are responsible for anything that happens from flashing these files to YOUR phone! If your phone melts into a pile of goo, catches on fire etc. IT IS NOT MY RESPONSIBILTY BUT YOURS!

FAQ:

Recovery:

Modem/Firmware:

GApps:

Downloads (the thing you were looking for):

Does/Doesn't Work:

Thanks:

Android Version: 6.0.1_r46

I forgot something. I know I did. I'll try to update this post sometime.
[Verizon Galaxy S 5 Android Development] haggertk:
More things...

Source
[Verizon Galaxy S 5 Android Development] ddjr:
Works perfectly! Thank you, thank you, thank you! I have been waiting for marshmallow for so long...
[Verizon Galaxy S 5 Android Development] RichyValents:
Question

Works for any verizon S5?
[Verizon Galaxy S 5 Android Development] haggertk:
FAQ #1 - any that has a dev bootloader, whether that is because you bought the device with one or whether you used the tools (provided you had a Samsung emmc) in the linked thread to flash one.
[Verizon Galaxy S 5 Android Development] coopmaster:
so how do i go about installing this on my device that is now with developer mode
[Verizon Galaxy S 5 Android Development] ddjr:
Download the ROM, make a backup in twrp, and install in twrp
[Verizon Galaxy S 5 Android Development] talktosamson:
Voice and SMS are not working after flashing. LTE data works however.....
[Verizon Galaxy S 5 Android Development] ddjr:
I found that waiting, toggling airplane mode and data worked. Glitch free ROM once you get it dialed in.
[Verizon Galaxy S 5 Android Development] haggertk:
Curious, can you both confirm to me what baseband version is being reported in Settings -> About Phone?
[Verizon Galaxy S 5 Android Development] thewebsiteisdown:
I wonder if they're set to the wrong network mode. I remember that being an issue auto selecting wrong on past cm roms.
[Verizon Galaxy S 5 Android Development] haggertk:
In the bootloader thread you mention flashing a 122715 version of CM13. Where did you get this? If you got any version from anywhere other than my AFH dropbox (https://www.androidfilehost.com/?w=files&flid=52843) then things may not work correctly.

The symptoms make it sound like you have a standard klte version, not one of my kltevzw versions -- klte is a GSM ROM and it's init.cpp doesn't initialize CDMA properties like is done here.
[Verizon Galaxy S 5 Android Development] thewebsiteisdown:
If I am on PB1 already and rooted and unlocked to developer, should I bother with the PB1 firmware? I verified again just for good measure and I am on PB1.
[Verizon Galaxy S 5 Android Development] haggertk:
If you confirmed that your baseband is reporting PB1 then there really is no need. Install a version of TWRP, at a minimum format /system, format /cache, wipe /data, and start installing the ROM and gapps.

A full factory reset would be even better then just wiping /data as far as starting fresh, but that erases /data/media (internal storage) and you may not want to jump that far.
[Verizon Galaxy S 5 Android Development] coopmaster:
How do I install the pb1?
[Verizon Galaxy S 5 Android Development] haggertk:
If your about phone says you have PB1 baseband then you don't have to.

If you don't have that baseband, boot your phone to download mode and flash the .tar.md5 (containing just the modem and non-hlos) in the AP (or PDA if older version) slot of ODIN.
[Verizon Galaxy S 5 Android Development] coopmaster:
Thank you
[Verizon Galaxy S 5 Android Development] thewebsiteisdown:
Factory reset and noticed that it stated it was skipping /data/media and I was like meh, I installed anyway and it booted after optimizing the apps and everything worked and works. Awesome sauce! Thank you everyone!
[Verizon Galaxy S 5 Android Development] talktosamson:
Just replying back, I've got it nailed down now. Wasn't sure what the issue was, but it's all good now.
[Verizon Galaxy S 5 Android Development] coopmaster:
So one question how do i go about updating for each nightly build? do i just flash over it and everything should be fine or ?
[Verizon Galaxy S 5 Android Development] haggertk:
its_happening.gif :good:

http://review.cyanogenmod.org/#/c/140145/
[Verizon Galaxy S 5 Android Development] cyberdeath73:
I'd like to think that the few extra seconds waiting after turning the radio off was the trick, but unfortunately that did not work. I did confirm on My Verizon account that HD Voice is enabled. I had tried this the other day and power cycled my phone a few times as well (I read a Google post where that resolved the issue on another klte variant).

Any suggestions?

OT: I can't blame you for going to prepaid. If I didn't still have unlimited data and have a business need for the data (e.g. tethering for VPN), I'd save the extra money.
[Verizon Galaxy S 5 Android Development] kevin3dy:
I have the 0407 build on my phone, and the Bluetooth stutters like crazy. In my car and on my headphones, the music stutters every two seconds. I have tried turning off Wifi and location scanning. Can someone please help me fix this?
[Verizon Galaxy S 5 Android Development] johnnyrichter:
Still having an issue with text message going unresponsive and crashing. Not very common and only seems to happen with 4+ conversations.

ETA: This is on the 4-7 build.
[Verizon Galaxy S 5 Android Development] ldeveraux:
What are people here doing about external SD support? Do I need to format it as internal before I can write? I'm trying to free up space on the internal with Link2SD, and it's not going well.

Sub question: When I format for use as internal, does it actually format the external SD card?
[Verizon Galaxy S 5 Android Development] bclay12:
Looks available now? http://download.cyanogenmod.org/?device=kltevzw
[Verizon Galaxy S 5 Android Development] jmetcalfe84:
I can't get the Baseband to change from the OE1 to PB1 for the life of me. Not sure what i'm doing wrong. I tried flashing it via Odin in the AP slot two times now and it seems to work but when it boots the baseband still shows OE1.

Also had another issue with superuser and getting it setup without it bootlooping everytime. Do we actually even need it on this rom?
[Verizon Galaxy S 5 Android Development] romyg:
There's some discussion of this in the OP of the Unlock thread (sounds like you might need to have the stock kernel and recovery flashed before you can flash firmware?):

http://xdaforums.com/verizon-galaxy-s5/development/rd-unlocking-galaxys-s5-bootloader-t3337909

I flashed PB1 firmware before unlocking and didn't have issues.

Update: I just flashed cm13, and now baseband is back to bok3...
[Verizon Galaxy S 5 Android Development] haggertk:
Are you fully powering down and then booting directly into download mode (VOL_DN-PWR-HOME simultaneously)?

From my experience, with a real Dev Device (read: possible extra variable in play), it just will not take the update if you reboot into download mode either using adb reboot download, reboot download, rebooting from recovery, or rebooting from power button menu in ROM.

Note that I haven't run stock recovery or kernel since NGC, but have always been able to update the modem appropriately. Again, this may be that additional variable at play.
[Verizon Galaxy S 5 Android Development] romyg:
Download complete, SHA1 match, flashing now...

Rebooting...

Optimizing Apps...

Successfully booted, 4G up, everything looks OK so far.

Thanks for all your work, haggertk!
[Verizon Galaxy S 5 Android Development] TheMasterMindGT:
excellent work, and apply my bootloader unlock now hope that the issue of voice calls is resolved to install this rom.
[Verizon Galaxy S 5 Android Development] jmetcalfe84:
Thanks that appeared to work as now I have PB1 baseband after reboot.
[Verizon Galaxy S 5 Android Development] purplepenguin:
Any explanation for the +70MB in ROM size for 2016.04.12 build? Also congrats on becoming maintainer :)
[Verizon Galaxy S 5 Android Development] romyg:
It's the change from cm11 to cm13. haggertk's unofficial cm13 builds were already at 295MB.
[Verizon Galaxy S 5 Android Development] romyg:
Useful link to see nightly build changelogs for kltevzw cm13: https://www.cmxlog.com/13/kltevzw/
[Verizon Galaxy S 5 Android Development] Bass Clef Builder:
I'd just like to say that this is AWESOME! Thank you , haggertk.

I downloaded 0412 last night and the only issue I've found so far is that audio apps (Smart Audiobook Player, Pocket Casts, and Spotify) either crash or stop playing briefly when I toggle the flashlight on then off. The crash occurs when the flashlight turns off. This is worst with Smart Audiobook Player, which always crashes. Reset is required to get Pocket Casts functioning again.

Any suggestions on cause or resolution of the issue?
[Verizon Galaxy S 5 Android Development] haggertk:
The flashlight toggle being messed up is a known issue with at least all the klte* devices. Sometimes apps crash, sometimes the toggle just disappears for a while, and sometimes the phone goes into a bootloop.

People in the unified thread using a variety of klte* devices are reporting success using some other flashlight apps.
[Verizon Galaxy S 5 Android Development] ldeveraux:
I have 2 issues with this rom, I wonder if it's something I did wrong, or a CM13 thing...

1) I've run out of space on the internal memory, but can't move apps to the external. I tried the native app mover (in storage) but it's not there. I tried encrypting the sd to the phone and using as internal memory, no luck there either. Finally, tried link2sd which says I can't move to an emulated drive.

2) background apps keep closing! If I listen to any music app and minimize it, it will close after~10 seconds. I've never had this happen before, is this a cm thing?

So hopefully someone can classify if these are my fault or not. Without these, I'd have to go back to LL and nobody wants that!
[Verizon Galaxy S 5 Android Development] TheMasterMindGT:
A question companions serve all S5 sensors Verizon, or have small errors in what is the operation?
[Verizon Galaxy S 5 Android Development] damagi123:
some of us who just recently got the unlocked bootloader are having a hard time figuring out everything we have to do to install a rom like this and when and which kernels and whatnot to use. Is there anyway you could do a step by step install from a TW rom?
[Verizon Galaxy S 5 Android Development] romyg:
Once you have unlocked bootloader and installed twrp, it's the same as the S3:

Boot into twrp recovery

Wipe data, cache, dalvik

Flash ROM

Flash gapps

Reboot

Official cm nightlies are here:

http://download.cyanogenmod.org/?device=kltevzw

The latest firmware is not required, the kernel is included in the ROM.
[Verizon Galaxy S 5 Android Development] ozz200127:
Wat other kernels work for this ROM?
[Verizon Galaxy S 5 Android Development] bclay12:
On TW ROMs and on this one I still can't get HD calling to work. Tried everything in other threads too. It once worked back when I first got the phone. All well.....
[Verizon Galaxy S 5 Android Development] ozz200127:
Everytime I update rom I have to redo my sounds
[Verizon Galaxy S 5 Android Development] Fleakm:
Just so I understand. This cm13 rom is for a sm-902l straight talk s5 phone that has the 900v under the battery?
[Verizon Galaxy S 5 Android Development] ozz200127:
It's for the Verizon s5
[Verizon Galaxy S 5 Android Development] Fleakm:
So it could be for straight talk running on the Verizon towers. I've seen on other forums That what the true model is of the straight talk phone is under the battery. Like the phone is a dev model... Under the bat it says fcc id a3lsmg900v. But under the settings it says sm-902l
[Verizon Galaxy S 5 Android Development] ozz200127:
U would have to search it or find out from someone that knows
[Verizon Galaxy S 5 Android Development] Dudash:
Deleted
[Verizon Galaxy S 5 Android Development] haggertk:
That's certainly not normal, at least in my experience of refreshing daily. What is your flash procedure? Any extra mods (Xposed, alternate kernel, anything)? Are your sounds the built-in ones or on SD card?
[Verizon Galaxy S 5 Android Development] ozz200127:
Zedge
[Verizon Galaxy S 5 Android Development] munchy_cool:
how do you do that, earpiece sound is crackling for me as well at full volume.
[Verizon Galaxy S 5 Android Development] vpatel91:
can anyone post some pictures they've taken with any camera app on CM13? I've tried google camera, snap camera (playstore version), and the stock camera and everything is extremely grainy, even when attempting to adjust settings. From reading on another thread CM12 produced decent quality photos on the S5. Obviously can't expect the quality achieved on the touchwiz camera, but really anything would be better than the results I'm seeing right now on my device.

http://xdaforums.com/galaxy-s5/general/solution-how-to-improve-camera-results-t3028319/page3
[Verizon Galaxy S 5 Android Development] mjbram16:
Hey [MENTION=2693412]haggertk[/MENTION], at this point now that your nightlies are on cm, where do we report bugs too? The live display isn't working anymore after the 0414 nightly. I miss have the f.lux feature. :(
[Verizon Galaxy S 5 Android Development] purplepenguin:
I recommend monitoring the changelog (https://www.cmxlog.com/13/kltevzw/). Looks like they're doing modifications to LiveDisplay, like "GETTING THEIR OWN DAMN TILE," for one. I'd just let it progress over time. If several nightlies go by, maybe complain/seek help. But I'm no dev so I prob shouldn't give advice on this scenario.
[Verizon Galaxy S 5 Android Development] haggertk:
You are 100% on-point. cmxlog is a great resource. Another one to see upcoming changes, either still in-work or under-review, is the CM Gerrit.
[Verizon Galaxy S 5 Android Development] haggertk:
They're (Cyanogen, Steve Kondik himself actually) actively working LiveDisplay from the old implementation into cmsdk. It'll be back soon enough.

Bug reports, even for nightly regressions (has to have worked at one point) can be submitted at the CM Jira
[Verizon Galaxy S 5 Android Development] Dudash:
You should either rename your thread or create a new one that says [OFFICIAL] because a lot of people see [UNOFFICIAL] and don't even look at the thread.
[Verizon Galaxy S 5 Android Development] mjbram16:
I do check the change logs before I update. I like to know whats happening. I must have missed it in the 0414 nightly because I don't recall seeing anything about live display, but then again, I'm still not used to associating live display with the f.lux feature

I will keep an eye on either cmxlog or cm gerrit though. I've been using the change log that comes is shown on the phone before I update.
[Verizon Galaxy S 5 Android Development] en11gma:
i have the retail verizon note 3 sm-n900v on official Android 5.0 (OF1) stock rooted, supersu, busybox, twrp and unlocked developer edition bootloader

do i just need to make some changes to build prop to get this working on my phone?

in this link https://download.cyanogenmod.org/?device=kltevzw

i see both the rom and the recovery. do i need to flash the recovery since i already have twrp installed?
[Verizon Galaxy S 5 Android Development] Bass Clef Builder:
Is there a solution yet for gaining write privileges for the SD card? I haven't been able to get a Titanium backup.
[Verizon Galaxy S 5 Android Development] johnnyrichter:
I recently noticed that when someone texts me a pic and I tap on it to view, once it opens up it is terrible quality. Almost like it needs to finish loading but never does.

ETA: Is the first post and thread title going to be updated to reflect the new official nightlies?
[Verizon Galaxy S 5 Android Development] ozz200127:
Why don't we get an update log? How do we know ways been updated