yashsingh1/xdaforums huggingface dataset:
[HTC Desire 310 Guides, News, & Discussion] MaRtYy01:
Check it in the main post,link there works(just tested it).
[HTC Desire 310 Guides, News, & Discussion] MilkyPL:
Fixed. Something weird happened when i copied it for some reason
[HTC Desire 310 Guides, News, & Discussion] maXies86:
phone bricked for over a yr. Installed the right mkt drivers but vcom wont stay on so i keep getting brom error.

Disconnect!

BROM Exception! ( BROM ERROR : S_BROM_DOWNLOAD_DA_FAIL (2004)

[H/W] Fail to download DA to baseband chip's internal SRAM!

[HINT]:

1. There's an cable communication problem between FlashTool and BootROM.

2. Target might be shutdown unexpectedly or target lost power supply.

[ACTION]

1. Try again.

2. Proceed H/W checking in download cable and target side com port.

3. Monitor if power-drop occured in target side.)((ConnectDA,../../../qt_flash_tool/Conn/Connection.cpp,127))

Someone pls help :(
[HTC Desire 310 Guides, News, & Discussion] MaRtYy01:
Try flashing only preloader first(if it gives error that nothing selecter or something like that,try older version of sp flash tools) then flash the rest of the rom.BTW trying on windows 7 always gives best results.
[HTC Desire 310 Guides, News, & Discussion] malivrag11:
htc desire 320

My htc desire stopped working 5 days ago, it has bootloop :(

I try to flash firmware with sp flash tool and 3 other programs, i can't format it it stays at 0%

I use SP_Flash_Tool_v5.1348.01_SEC

i downloaded 3 firmwares, try all usb ports.No way to flash :eek:

I get two errors in sp flash tool

BROM ERROR : S_FT_DOWNLOAD_FAIL (4008) or BROM ERROR 8

Please help me to fix it :good::highfive::)
[HTC Desire 310 Guides, News, & Discussion] malivrag11:
Any help ?? :confused::confused:
[HTC Desire 310 Guides, News, & Discussion] MaRtYy01:
Check the driver and try other sp flash tool version.If doesnt help,flash preloader first and after that the rest of the firmware.Windows 7 is the best for flashing btw.
[HTC Desire 310 Guides, News, & Discussion] malivrag11:
i check all drivers,try all versions of flash tool and always get error ( s_ft_download_fail (4008) )

I always use DA_SWSEC.bin as download agent

only if I use SP_Flash_Tool_v5.1348.01_SEC it starts to format :(
[HTC Desire 310 Guides, News, & Discussion] paryshaan:
run SP_Flash_Tool_v5.1348.01_SEC in windows 7 or compatible with windows 7.

with the settings specified in main post.
[HTC Desire 310 Guides, News, & Discussion] malivrag11:
I done it but same problem :):o
[HTC Desire 310 Guides, News, & Discussion] MarkoCCA:
is htc going to get us that source code soon?
[HTC Desire 310 Guides, News, & Discussion] MaRtYy01:
Lol no.More like never XD

EDIT: So I remember the disscussion we had with one guy here a month ago:

'' Would that work?I believe if it was easy as that somebody could have already done it.

Also mtk is closed source in general,so yeah...

Yes,it would work.It is as easy as that. GPL strictly prevents closing the source of your programs derived from other GPL programs so they can't close the kernel sources(but they can distribute their code as proprietary blobs).I found this site,maybe they can help gpl-violations.org''

Anyone wanna try this?
[HTC Desire 310 Guides, News, & Discussion] MaRtYy01:
Mokee 3 marshmallow added:

https://www.dropbox.com/s/ok7x8rz1gbhbz2m/mokee3-mm-d310-141116.zip?dl=0

bugless(vpn also works),just 2g switch bugged

ported by [MENTION=7598704]Swoopae[/MENTION]

btw if you havent noticed I also added miui 8 for d310 before a few days(didnt make a post to announce it)
[HTC Desire 310 Guides, News, & Discussion] maXies86:
Thanks but it didnt work on windows 7, 8 and 10 either. Vcom wont stay connected
[HTC Desire 310 Guides, News, & Discussion] Voltigo:
I cannot flash Swoopae's MiUI 8 on my desire 320. It says status 4, anything that I can do?
[HTC Desire 310 Guides, News, & Discussion] MaRtYy01:
Its made for d310.Thats miui 8 for d320: https://cloud.mail.ru/public/DSJL/Jfd67vV49
[HTC Desire 310 Guides, News, & Discussion] gekko1ro:
Hi guys. Do you know if this procedure is safe for htc desire 310 dual sim build number 1.00.411.7? I don`t want to brick my phone :)

Thanks.
[HTC Desire 310 Guides, News, & Discussion] Black Eyez:
Bugs

Bugs for all 6.0.1 roms

Front Camera Black And White

Screen Recorder Not working (not in [14.11.2016]Mokee 3)

Screen Rotation Not Working

what to do now???
[HTC Desire 310 Guides, News, & Discussion] Bobernator:
Fixes

Hi. Tell me please - is this white short line on the top of the screen, and screen orienation bug already fixed? I mean in the CM13 rom for HTC Desire 310.
[HTC Desire 310 Guides, News, & Discussion] MaRtYy01:
You mean installing d320 firmware?Its the same for all build numbers,so yes,its safe.
[HTC Desire 310 Guides, News, & Discussion] MaRtYy01:
-front camera black and white is a bug in nearly all custom roms in general,no matter 6.0.1,5.1.1,4.4.2 or 4.2.2 based.As far as I know enabling and disabling any filter fixes it for the moment.As far as I know cm12.1 doesnt have this issue.

-I think on many roms there is a problem with the hw lib for screen recording,use software screen recording instead.

-screen rotation and white line are kernel issues,cant be fixed without kernel source(fuuck htc)
[HTC Desire 310 Guides, News, & Discussion] MaRtYy01:
Cant be fixed without kernel source :(
[HTC Desire 310 Guides, News, & Discussion] Bobernator:
OK. One more question - os there any posibility to turn off this pixels, or change its color to black? They are wasting energy...

(PS. By "kernel source" you mean this? - www[dot]htcdev[dot]com/devcenter/downloads

Screenshot: postimg[dot]org/image/mom5o8ocz/ )
[HTC Desire 310 Guides, News, & Discussion] MaRtYy01:
No,but dont worry,they dont reduce battery life.I remember that I had 4 hours screen on time on cm12.1 which is overall the max for the phone.
[HTC Desire 310 Guides, News, & Discussion] P4WN3D:
Trying to install miui 8 by swoopae on desire 310, error: status 4

What can i do? [MENTION=6326747]MaRtYy01[/MENTION]
[HTC Desire 310 Guides, News, & Discussion] mclarence:
I don't know if you know about this, or have been told this many times, I may be wrong, but isn't the source code for the Desire 310 kernel available at http://www.htcdev.com/devcenter/downloads ?

Upon downloading the EU and AU versions and opening them, I am shown with the following:

As I said, I may be wrong and I'm not an expert in this area. I did compare the files with another kernel source code and they do indeed look similar.
[HTC Desire 310 Guides, News, & Discussion] onasre:
the only good rom is the galaxy s6 . there are some bugs but at least it allow you to use the sdcard as app storage .miui 8 dose that too but i did not like it .. the rest of the rom's useless for me .. and i tried all of them .
[HTC Desire 310 Guides, News, & Discussion] el1guana:
I´ve tried all the roms in my Desire 320 and the only one that recognize the sim and the wifi together is miui 8 but is also the slowest of all, in the others work the sim or the wifi but i cant manage to make them work at the same time.

It could be because most of the roms are made for the 310 and the patch doesn´t solve the issue.

If somebody could help to 320 owners would be great.

Thanks in advance.

Sorry for the bad english.
[HTC Desire 310 Guides, News, & Discussion] Stefan7650606:
(couldn't post the full quote because I'm a new user)...

Yes, but we need Desire 320 kernel source.Android above 4.2 refuses to run on Linux versions under 3.4.67 and 310 is stuck on 3.4.5. We could alternatively leech the kernel source from another MTK 6582 phone running Kitkat+(Acer Liquid Jade and BLU Studio Energy are examples).
[HTC Desire 310 Guides, News, & Discussion] MaRtYy01:
In the first post there is CM13 especially made for D320,from a guy who owns D320 and everything works on it.
[HTC Desire 310 Guides, News, & Discussion] Hardeep Kang:
Bro can u port custom recovery for HTC desire 326g dual SIM then please port recovery for this device.

Please
[HTC Desire 310 Guides, News, & Discussion] MaRtYy01:
Its a speadtrum device,not mtk like d310/320,so I have no idea how to do it.
[HTC Desire 310 Guides, News, & Discussion] MrCzAjNiK:
Hi all D310/20 owners! Thank's [MENTION=6326747]MaRtYy01[/MENTION] for this awsome thread ;)

I flashed succesfully D320 FW into my girlfrend D310(First my MTK flash ever by the way :D)

I faced with imei null state problem, fixed it without problem.

But i have no Wi-Fi and Bluetoth option to enable. Can someone know if i could fix it?

I was thinking to left this phone on this firmware.

If it cannot be fixed, can someone of you tell me witch 6.X ROM is worth for flasing?

I need only Android 6/7 sadly, because of improved battery life(DOZE mode + Forcing Doze ON).

Thank's again and please answer ;)
[HTC Desire 310 Guides, News, & Discussion] MaRtYy01:
The kitkat firmware is not meant for daily usage,its just required to get the 3.4.67 kernel.Cm13 and Resurrection Remix 6.0.1 would do the job,but there are many roms to try,so its your choice.
[HTC Desire 310 Guides, News, & Discussion] MrCzAjNiK:
Thanks alot for reply, so RR is the best choice from 6.X roms yep?

OK then ill do Philz recovery today and try how it works.

By the way my gf feels good performace with this KK rom, im curious we can make fix for that wi-fi and bt?

Maybe its some libs to change only?
[HTC Desire 310 Guides, News, & Discussion] Swoopae:
jesus christ don't use the stock rom it's just awful and filled with bloatware

just try any marshmallow rom, or any OTHER rom for that matter (mokee 3 is probs the most stable - or as stable as any rom for this phone gets)
[HTC Desire 310 Guides, News, & Discussion] Evilenzo:
Kernel

Guys, you know I am from Russia and my English is very bad. If anybody will find kenel developer I will port LineageOS , CyanogenMod 14 ( maybe). I need kernel version 3.10.103
[HTC Desire 310 Guides, News, & Discussion] GENDROID:
what to do HARD BRICKED can't flash even d320 firmware on htc desire 310.

help me what can i do :( no one knows anything about this error on google, even if ill try to flash without secro.img it shows sign header error :( help please this error also occurs when trying to flash d320 firmware on d310. phone is not turning on, it doesn't reacts on power button which means it's hard bricked and i have no idea what to do after trying to flash every spflashtoolable firmware .. shows errors.. any idea ?
[HTC Desire 310 Guides, News, & Discussion] phoberus:
Is the TemastekPLUS stable or should I flash Cm13.1 v3 from evilenzo?

Asking because TemaseekPLUS is alpha0.01

HTC Desire 320
[HTC Desire 310 Guides, News, & Discussion] MaRtYy01:
Swoopae loves playing with names like alpha and so,but it should be fine.You can try both and choose yourself.
[HTC Desire 310 Guides, News, & Discussion] MaRtYy01:
New rom

''My last and my best MM ROM. (And probably my last Desire 310 one, too.)'' -Swoopae

Lineage OS Marshmallow

Features:

*SD Card as default.

*Fully working, fully stable.

*Android N-like settings.

*All CM and Lineage features.

link: https://drive.google.com/file/d/0Bxt2ZcebeXHyYTB6czYtcUU3U28/view

ported by [MENTION=7598704]Swoopae[/MENTION]

note: Needs some more advanced testing although everything should be fine,any feedback is accepted.
[HTC Desire 310 Guides, News, & Discussion] denkazzzget:
Hi, I have a problem. I installed linesage os, but I can not continue to set up the language, click to continue but again comes to the language setting. Can you help? :good:

Sorry for my english.
[HTC Desire 310 Guides, News, & Discussion] MaRtYy01:
Should an issue from the gapps.Did you use arm 6.0 pico?If yes,try flashing the rom,booting once and flashing gapps after that.
[HTC Desire 310 Guides, News, & Discussion] denkazzzget:
I used nano gapps, now I try with pico with your scheme.

---------- Post added at 01:30 PM ---------- Previous post was at 12:36 PM ----------

It did not help, same problem.
[HTC Desire 310 Guides, News, & Discussion] MaRtYy01:
New lineage os update:

https://drive.google.com/file/d/0Bxt2ZcebeXHyV19aeDhtczRRX1E/view

''kappa this one actually works''

by [MENTION=7598704]Swoopae[/MENTION]
[HTC Desire 310 Guides, News, & Discussion] denkazzzget:
Hi, I have the rom cyanogenmod 13 (from xda) and there is not working GPS, can you help?
[HTC Desire 310 Guides, News, & Discussion] rainbowtable:
[MENTION=7991266]denkazzzget[/MENTION]:

On some phones like the desire 310 there is a special nvram partition which contains device specific files that manage GSM, GPS, wifi and so on.

If you flash a rom most likely the information will be lost afterwards.

Search for "restore nvram". This can be the problem.

[MENTION=6326747]MaRtYy01[/MENTION]:

Do you know how to root the desire 310 without a root app like kingoroot? I prefer rooting the manual way. Any chance to root lineageos appless?

Is the bug with the white line above the screen solved with lineageos?

What does "SD Card as default" mean? Will all partitions be on the sd card?
[HTC Desire 310 Guides, News, & Discussion] denkazzzget:
Restored nvram, but gps sees satellites, but did not take them.
[HTC Desire 310 Guides, News, & Discussion] MaRtYy01:
I think you can enable root in lineage os like every other rom,from the developer settings.The bug with the white line cant be fixed,since its from the kernel and you will face it in every rom except the 4.2.2 ones using stock d310 3.4.5 kernel.SD by default means it will install the apps on the sdcard for more storage.
[HTC Desire 310 Guides, News, & Discussion] rainbowtable:
This root setting in the dev settings wasn't there in older android versions. Good to know.

Can someone please confirm gps works with "lineageos-mm-d310-310117-stable.zip"?

Unfortunately no gps icon is displayed in the status bar although a gps app is running. Gps apps don't even show 0/0 satellites.

Lost NVRAM some time ago and restored it. Everything works but gps.

BUG: Trying to view app details for any app (even system ones) crashes the settings for me. Clearing data of settings app via adb didn't help.

logcat writes every 2 seconds:

[agps] WARNING: [CP] cp2_fd_1_req_sim_num_timeout

[agps][n][CP] [MD_1] write sim_info_req

This is propably due to a missing gps driver.

The gps module doesn't get recognized. Note that I don't have gapps installed yet.
[HTC Desire 310 Guides, News, & Discussion] Roberto Nigel:
after flashing cm13 the white color turns red-ish is that a known bug or i missed something?
[HTC Desire 310 Guides, News, & Discussion] MaRtYy01:
Nope,never heard or seen this before.Seems weird.
[HTC Desire 310 Guides, News, & Discussion] Roberto Nigel:
umm

can you share 320 framework link

I couldnt download it from the link in the OP and ended up downloading it from the web it could be the problem
[HTC Desire 310 Guides, News, & Discussion] denkazzzget:
https://drive.google.com/file/d/0B-j9TI_7D-ddeGF4eE5aUWxHSUk/view?usp=sharing
[HTC Desire 310 Guides, News, & Discussion] MaRtYy01:
Thanks for mirror,I didnt know that d320 stock rom link is broken.

added to OP(replaced old link)
[HTC Desire 310 Guides, News, & Discussion] MaRtYy01:
New lineageos update:

https://onedrive.live.com/?authkey=...!109&parId=A65F6EE935540A50!107&action=locate

Tested for a week,fully bugless.

Also new LP rom-Resurrection Remix 5.5.9

https://onedrive.live.com/?cid=a65f6ee935540a50&id=A65F6EE935540A50!108&authkey=!ADOx5O4WO51FEyU

-bugless

both by [MENTION=7598704]Swoopae[/MENTION]
[HTC Desire 310 Guides, News, & Discussion] denkazzzget:
Hi, I want to know, kingroot may be installed on 442 without the Internet?

Or supersu.zip in stock 3e recovery.

Because my main laptop is broken, I took another laptop but with kingo root he have some problem with drivers, thanks.
[HTC Desire 310 Guides, News, & Discussion] rainbowtable:
I think kingroot only works with internet. I haven't heard of an offline way.

Anything new on the gps issue?
[HTC Desire 310 Guides, News, & Discussion] doctor-who:
none of Roma can't be installed either with twrp or cwm I get error. Btw I'm on stock 4.2.2

---------- Post added at 04:10 PM ---------- Previous post was at 04:09 PM ----------

Do I need fastboot? Bcs I can't access my pc
[HTC Desire 310 Guides, News, & Discussion] rainbowtable:
"WARNING:YOU NEED THE DESIRE 320 FIRMWARE TO FLASH ROMS WITH NEWER VERSION THAN 4.2.2"

It's not easy to unterstand, but you should install the 320 firmware and afterwards "Philz Touch Mod edit - Link removed in this zip you have all stuff required for the rooting and installing the recovery on the d320 kitkat rom."
[HTC Desire 310 Guides, News, & Discussion] doctor-who:
But my usb ports on laptop are dead :( what to do?
[HTC Desire 310 Guides, News, & Discussion] doctor-who:
If I can't do anything how to fix this?

Fixed, flashed lolifox , sim card not working
[HTC Desire 310 Guides, News, & Discussion] rainbowtable:
Search for "fix cid" or similar. Do you really want to use Android 4.2.2?

You could test the new lineageos and report if GPS works for you...
[HTC Desire 310 Guides, News, & Discussion] doctor-who:
I would like to but flashing fails I'm on 310 firmware, and I'm not sure does this device have locked boot loader or not? My USB ports on PC are dead so I'm not able to do anything with PC. If have other way help me and I will participate in testing lineage is.

Thanks in advance
[HTC Desire 310 Guides, News, & Discussion] rainbowtable:
Forget about the bootloader.

You definitely need a working usb port so you can flash the 320 rom with spflashtool.

Find a working port or another pc.
[HTC Desire 310 Guides, News, & Discussion] doctor-who:
I will try with my gf laptop when I go these days to her, will inform you how it goes my friend
[HTC Desire 310 Guides, News, & Discussion] rainbowtable:
Don't forget to backup your nvram, so you won't loose the device specific data including your imei, wifi and gps stuff.
[HTC Desire 310 Guides, News, & Discussion] doctor-who:
I don't know how to do all that
[HTC Desire 310 Guides, News, & Discussion] rainbowtable:
__
[HTC Desire 310 Guides, News, & Discussion] doctor-who:
Mod edit - quoted post removed.

first im sorry for too many posts, second, i know now how it works (readed after good sleep :D ) One question i have im windows xp user and those drivers are in txt file, how to install it? Also will it work with battery removed? My imei is lost but i have it written on paper so may i fix it with that tool? Thanks
[HTC Desire 310 Guides, News, & Discussion] rainbowtable:
I don't know. SPFlashTool should work without battery in the phone.
[HTC Desire 310 Guides, News, & Discussion] doctor-who:
my ports on laptop are weird, they works for flash mouse web cam etc but not for phone always says unknown device
[HTC Desire 310 Guides, News, & Discussion] MacronCPP:
Hard brick, previously described by GENDROID

Hi!

I've a problem mention by [MENTION=7120933]GENDROID[/MENTION], I can't flash a stock ROM on my HTC Desire 310.

When I'm flashing with DL Checksum enabled, I get "BROM ERROR : S_CHKSUM_ERROR (1031)".

I can't do auto format, when I'm trying to do so, I get "BROM ERROR : S_PART_NO_VALID_TABLE (1037) No valid partition table for NAND Flash!"

When I'm trying to do Firmware Upgrade - "PRO_INFO: Failed to get PMT info"

I guess the partition table is messed up, but is there any way to repair/replace it?

I tried flashing Stock rom for 320, with provided in the first post in this topic drivers and SP Flash Tool.
[HTC Desire 310 Guides, News, & Discussion] doctor-who:
flashing firmware 320 ok, flashing ota via stock recoverz error abortet, so ill skip tht nd flash lineage os whatever happen

Nvram error in lineage mm, guys please give me idea to fix it

FIXED!

Now I wanna know is it Xposed framework available for lineage mm?

Any solution to remove white line over status bar?

How to move apps to SD? Making SD as internal cause corrupted SD card

Battery optimization not working

Going to check other ROM

Flashed cm12.1 so far its OK.... Is this white line over status bar kernel related bug or I have damaged screen? On screenshots its not visible

How to go back to stock jelly bean? :(
[HTC Desire 310 Guides, News, & Discussion] doctor-who:
Cm12.1 is crap because of this!

Where is native swap partition? This is modded swap which is not ethic
[HTC Desire 310 Guides, News, & Discussion] doctor-who:
Sorry for spanmibg but nobody replies. I found this one without swap witch can move apps to SD, so I'll stay with it, only problem is can't read bug list any where
[HTC Desire 310 Guides, News, & Discussion] doctor-who:
This one is weird , first of all I have a lot space in data and rom
[HTC Desire 310 Guides, News, & Discussion] rainbowtable:
I can't help both of you as I don't know how to repartition the internal storage although I did it once in the past. Don't know about the partition table error.

The white line is kernel related and won't be solved.

Before asking questions please consider using the search function as this is a quite common question.

Does GPS work for you?
[HTC Desire 310 Guides, News, & Discussion] doctor-who:
gps work in every rom i flashed (abt 6 roms)

Can i or not revert to stock rom jelly bean? I tried with sp tools and says that common file from downloaded 310 firmware is ilegal and cant be continued
[HTC Desire 310 Guides, News, & Discussion] rainbowtable:
spflashtool errors can be really hard to track down. I can't imagine why it shouldn't work to flash stock rom. You can search your way through the Internet to get an answer.
[HTC Desire 310 Guides, News, & Discussion] doctor-who:
Seems no cure for this device, stay on stock don't change anything otherwise you will just destroy it
[HTC Desire 310 Guides, News, & Discussion] denkazzzget:
Hi, miui 8 by swoopae for d310 have a white line on screen? And version of android is 422 or 442?
[HTC Desire 310 Guides, News, & Discussion] doctor-who:
i think is 4.2.2 and no line if u are on htc 310 firmware
[HTC Desire 310 Guides, News, & Discussion] doctor-who:
Im on jb stock.. searched everywhere can't find fix for cid error, done of you guys must know how to fix it which files to copy from where to where
[HTC Desire 310 Guides, News, & Discussion] denkazzzget:
Hello, in the phone lenovo a328 there is a processor mtk6582 and the kernel 3.4.67 on android 4.4, so is possible port it to our device, and then install it via an update to android 5.x or 6.x without bugs, an example to remove the white line. At 4pda there is one message that he ported it and there was not a bug with a white line. The message was written 1 year ago, I wrote this guy if he still had this firmware, now I'm waiting for his answer.
[HTC Desire 310 Guides, News, & Discussion] MaRtYy01:
I think I know this.We have already tried flashing a328 firmware on d310 and it doesnt have whitle line but there are many other issues like volume buttons not working,sensors still not working,camera not working and others.The volume buttons alone are pretty crappy issue since you cant easily get in recovery without them.We have tried many other firmwares different from the d320 one,but they all had more issues.
[HTC Desire 310 Guides, News, & Discussion] MaRtYy01:
The cid error doesnt really affect anything except it pops up on every reboot.But you should be able to fix it with this method-root your phone, open /system/build.prop and take a line:

ro.cid=HTC__000

replace HTC_000 with the boot alert.
[HTC Desire 310 Guides, News, & Discussion] doctor-who:
Where is boot alert? Tell me more please

No such line in build.prop here is attachment

https://drive.google.com/file/d/0B11EEOKYoTUPOWtqSG56UjkxNVU/view?usp=docslist_api
[HTC Desire 310 Guides, News, & Discussion] denkazzzget:
If you still have this firmware, please give it, I do not care for these bugs. I just do not know how to port and

I haven't access to the computer.
[HTC Desire 310 Guides, News, & Discussion] doctor-who:
This app opens when I dial #243# from dial pad and serves to fix that cid but after launch it closes immediately

Here is apk that I extracted from stock jb system apps

https://drive.google.com/file/d/0B11EEOKYoTUPQXZjcUpaRW1XQzA/view?usp=docslist_api
[HTC Desire 310 Guides, News, & Discussion] denkazzzget:
It put it through recovery or flash tool?