yashsingh1/xdaforums huggingface dataset:
[Upgrading, Modifying and Unlocking] kenny108:
Testing USB preloader connection

Has it ever worked in Ubuntu? If not, maybe Ubuntu is not detecting the phone in preloader mode. To check this, exit from SPFT, unplug phone from USB, open a command terminal, plug phone back in, wait about 5 seconds, type in command 'dmesg'. Towards the end of the result you should see something like this...

[ 6017.324022] usb 2-1: new high-speed USB device number 12 using ehci-pci

[ 6017.456759] usb 2-1: New USB device found, idVendor=0e8d, idProduct=2000

[ 6017.456764] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0

[ 6017.456768] usb 2-1: Product: MT65xx Preloader

[ 6017.456771] usb 2-1: Manufacturer: MediaTek

[ 6017.518359] cdc_acm 2-1:1.1: ttyACM0: USB ACM device

[ 6019.974151] usb 2-1: USB disconnect, device number 12

[ 6019.974495] cdc_acm 2-1:1.1: failed to set dtr/rts

[ 6026.368018] usb 2-1: new high-speed USB device number 13 using ehci-pci

[ 6026.501805] usb 2-1: New USB device found, idVendor=0bb4, idProduct=0166

[ 6026.501810] usb 2-1: New USB device strings: Mfr=2, Product=3, SerialNumber=4

[ 6026.501814] usb 2-1: Product: MT65xx Android Phone

[ 6026.501817] usb 2-1: Manufacturer: MediaTek

[ 6026.501821] usb 2-1: SerialNumber: 0123456789ABCDEF

[ 6026.504230] usb-storage 2-1:1.0: USB Mass Storage device detected

[ 6026.504343] scsi12 : usb-storage 2-1:1.0

[ 6027.510244] scsi 12:0:0:0: Direct-Access Linux File-CD Gadget 0310 PQ: 0 ANSI: 2

[ 6027.510741] sd 12:0:0:0: Attached scsi generic sg7 type 0

[ 6027.522474] sd 12:0:0:0: [sdd] Attached SCSI removable disk

The last ten or so are from when the phone went into battery charge mode...these are not so important. Look at the ones before that (with the timestamp [6017...] in my case). In particular, look for one that has 'Preloader' in it. If that isn't there then check step1 in post#1 about installing usb drivers, and also step 4 about installing a udev rule.

Get all that working first...otherwise if Ubuntu is not recognising the phone's preloader then SPFT won't work.

After you get that working try SPFT again, but remember the preloader is only available for the first two seconds after you plug the phone in. If SPFT hasn't recognised it by then and started it's activity then cancel it, unplug the phone, and start again. It's just a timing thing...even when everything is installed properly the preloader sometimes isn't recognised in those first few seconds.

:)
[Upgrading, Modifying and Unlocking] bigsupersquid:
[MENTION=7250821]kenny108[/MENTION]

thanks, i didn't realize the xda labs app quoted the op with quick reply button. fixed it.
[Upgrading, Modifying and Unlocking] edent:
I'm unable to get this working - the SP Tool just times out.

I have a MediaTek 6582 device. I've followed the tutorial, added the udev rules, blacklisted the modem manager, tried in fastboot mode - nothing seems to work.

It's a tablet with a non-removeable battery. No matter what I try - I get this

./flash_tool
QMetaObject::connectSlotsByName: No matching signal for on_pushButton_browser_clicked()
QThread::setPriority: Cannot set priority, thread is not running
"06-26-2016"
QObject::moveToThread: Cannot move objects with a parent
Connecting to BROM...
Scanning USB port...
Search usb, timeout set as 120000 ms

Timeout(120000 ms) for searching USB port!
SearchUSBPortPool failed!
Failed to find USB port
Connect BROM failed: S_TIMEOUT
Disconnect!
BROM Exception! ( BROM ERROR : S_TIMEOUT (1042)

[HINT]:
)((ConnectBROM,../../../flashtool/Conn/Connection.cpp,85))

The device identifies as idVendor=0bb4, idProduct=0c01 - and the preloader as idVendor=0e8d, idProduct=2000

Any clue as to what the problem is?

Thanks!
[Upgrading, Modifying and Unlocking] edent:
Hmm... If I start flash_tools then plug in the tablet while it is switched off, I get COM_PORT_OPEN_FAIL. So, getting closer!

vid is 0e8d

device vid = 0e8d

pid is 2000

device pid = 2000

com portName is: /dev/ttyACM0

Total wait time = -1469611351.000000
USB port is obtained. path name(/dev/ttyACM0), port name(/dev/ttyACM0)
USB port detected: /dev/ttyACM0
Connect BROM failed: S_COM_PORT_OPEN_FAIL
Disconnect!
BROM Exception! ( BROM ERROR : S_COM_PORT_OPEN_FAIL (1013)

[COM] Failed to open COM port.
[Upgrading, Modifying and Unlocking] arnold444:
dear edent,

I had the same as you (error1013)

I just started flash_tool in root mode (sudo ./flash_tool.sh)

and it worked...

arnold
[Upgrading, Modifying and Unlocking] alen192:
Hi, i modied rules of udev, but if i see a lsusb i see mt65preload only for few seconds, if i see a varlogmessages i see that the mt65preload disconnect immediatly. If i lunch flashtool and try to download logo i received a 1013 error.someone can help me.
[Upgrading, Modifying and Unlocking] Miss Montage:
Which SP Flash Tool Version do you use? Which phone do you want to flash?

Have you tried a different USB Data Cable and/or a different port? Have you tried to hold vol- or vol+ while connecting the phone? (If possible) Have you tried to remove the battery before connecting the phone?

Also, could you be so kind to remove the full quote of my original post? It clutters the thread ;)
[Upgrading, Modifying and Unlocking] theincognito:
Hi. First of all,thank you for the guide. I am using Kali Linux Rolling (64 bit).. My phone is Lenovo K5 Note(A7020a48).. I tried to port TWRP and flashed it.. Obviously,my recovery was corrupted.. I couldn't boot the phone anymore,so I downloaded my firmware zip and tried to flash it..

Stage: checksum processing:100% percent, checksum:0x910e
Connecting to BROM...
Scanning USB port...
Search usb, timeout set as 3600000 ms
add@/devices/pci0000:00/0000:00:14.0/usb1/1-1

add@/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.0

add@/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.1

add@/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.1/tty/ttyACM0

vid is 0e8d

device vid = 0e8d

pid is 2000

device pid = 2000

com portName is: /dev/ttyACM0

Total wait time = -1471706263.000000
USB port is obtained. path name(/dev/ttyACM0), port name(/dev/ttyACM0)
USB port detected: /dev/ttyACM0
BROM connected
Downloading & Connecting to DA...
connect DA end stage: 2, enable DRAM in 1st DA: 0
DA Connected
executing DADownloadAll...
Stage:
[0] WRITING TO PARTITION [ preloader ]

Stage:
[2] WRITING TO PARTITION [ recovery ]

Stage:
[15] WRITING TO PARTITION [ efuse ]

Stage:
[16] WRITING TO PARTITION [ md1img ]

Download failed.
Disconnect!
BROM Exception! ( ERROR : STATUS_SEC_IMGHDR_TYPE_MISMATCH (-1073610711) , MSP ERROE CODE : 0x00.

What do i do? My phone is bricked and can't use it? :'( :crying:

SP_Flash_Tool_exe_Linux_v5.1632.00.100

EDIT: Used the same firmware zip and flashed via SP Flash Tool in Windows.. It worked!! I mean,I am happy that my phone is up and running,but why it didn't work on Linux? :confused:
[Upgrading, Modifying and Unlocking] Miss Montage:
I don't know why it failed at a later stage in Linux. Did you use DA-Agent MTK_Allinone_DA.bin?
[Upgrading, Modifying and Unlocking] Lovas:
Useful guide

Hello there,

for me was very useful THIS ONE GUIDE

Step by step. It is easy, and working in my case :)
[Upgrading, Modifying and Unlocking] Miss Montage:
But that guide is for Sony Flash Tool :)
[Upgrading, Modifying and Unlocking] Lovas:
Nope, it is not just for Sony. It is for SP flash tool. It is universal tool for flashing a lot of phones, roms...
[Upgrading, Modifying and Unlocking] Miss Montage:
There is no "universal" flash tool available for both Sony and MediaTek Phones, the video you linked clearly refers to this website: http://www.flashtool.net/downloads.php

and a Sony device:
[Upgrading, Modifying and Unlocking] Lovas:
OK, now i see there is some difference. I am apology.

BUT, i use this guide to overcome errors in SP flash tools. Especially that screenshot you posted show me how to make /etc/udev/rules.d/51-flashtool.rules files.

So, i did:

1. Download SP flash tool from official site

2. Unzip file

3. In SP_flash_tool foltder i opened terminal and type 1. chmod +x flash_tool 2. chmod +x flash_tool.sh

4. Connect cell phone to pc and in terminal type lsusb. As in video shown i copied marked part of my device information (just 4 signs)

5. sudo gedit /etc/udev/rules.d/51-flashtool.rules i copied this line into - SUBSYSTEM=="usb", ACTION=="add", ATTRS{idVendor}=="0fce", ATTRS{idProduct}=="*", MODE="0777" Bolded star i changed with that 4 signs (device information), save and close file

6. After that i opened terminal in SP flash tool folder and type Sudo -s

7. And finally double click on flash_tool or in terminal ./flash_tool to start

And i succeeded to flash TWRP and rom to UMI ROME cell phone without errors
[Upgrading, Modifying and Unlocking] Miss Montage:
I'm glad that it works for you with fewer steps, but you still have the Sony vendor ID in the udev rule ;)
[Upgrading, Modifying and Unlocking] Lovas:
Honestly i dont now what are this commands for, but...

SUBSYSTEM=="usb", ACTION=="add", ATTR{idVendor}=="0e8d", ATTR{idProduct}=="*" (copied from 1st post)

SUBSYSTEM=="usb", ACTION=="add", ATTRS{idVendor}=="0fce", ATTRS{idProduct}=="*", MODE="0777" (this one is mine)

For me this command lines are pretty similar with small difference. Can you explain to me what is suggesting on Sony vendor? Sorry if i disturbs you.

And really, yes, it works for me. :)
[Upgrading, Modifying and Unlocking] Miss Montage:
As far as I understand, udev rules help your computer to recognize a device and to set permissions, actions, certain names for devices etc. Here you find additional information.

"My" rule (I copied that from a tutorial for the Sony Flash Tool, but changed the vendor ID to "0e8d" - MediaTek) simply helps the recognition. Your rule also sets the rights to read, write and execute for all users. That doesn't seem to be necessary.
[Upgrading, Modifying and Unlocking] Sinek_:
Hi! First of all I'd like to thank you for the tutorial. Next I'd like to ask something:

I'm running Arch Linux and I'm not being able to flash anything through SPFlashtools because I can't get my phones recognized by the program. I even tried setting up a persistent USB rule with no luck.

I've tried with 2 different phones and while with one of them the tool stays "flashing for ever" with the other one I get an error as soon as I connect the phone:

USB port is obtained. path name(/dev/ttyACM0), port name(/dev/ttyACM0)

USB port detected: /dev/ttyACM0

Connect BROM failed: STATUS_ERR

Disconnect!

BROM Exception! ( ERROR : STATUS_ERR (-1073676287) , MSP ERROE CODE : 0x00.

Does anyone know how to make SpFlashtools (or Arch Linux) to recognize my phones? Thank you very much.
[Upgrading, Modifying and Unlocking] gerstavros:
Did you run it as root? I m using arch-based Manjaro, i run sp flash tool fine.
[Upgrading, Modifying and Unlocking] Sinek_:
Afff! That was probably the case. Just after posting I re-read the first post and noticed I hadn't add my user into the uccp group, so i did it, restarted, and now the SPFlashtools works perfect.
[Upgrading, Modifying and Unlocking] tecno1:
I had to restart my PC for the driver to work
[Upgrading, Modifying and Unlocking] Stretchion:
While you're plugging your cellphone make sure to interrupt the auto power-on e.g by holding volume down button
[Upgrading, Modifying and Unlocking] paxh2o:
~/SP_Flash_Tool_v5.1616_Linux $ sudo ./flash_tool

QThread::setPriority: Cannot set priority, thread is not running

"10-20-2016"

QObject::moveToThread: Cannot move objects with a parent

Connecting to BROM...

Scanning USB port...

Search usb, timeout set as 3600000 ms

add@/devices/pci0000:00/0000:00:10.0/usb1/1-1

add@/devices/pci0000:00/0000:00:10.0/usb1/1-1/1-1:1.0

add@/devices/pci0000:00/0000:00:10.0/usb1/1-1/1-1:1.0/tty/ttyACM0

vid is 0e8d

device vid = 0e8d

pid is 0003

device pid = 0003

com portName is: /dev/ttyACM0

Total wait time = -1479667634.000000

USB port is obtained. path name(/dev/ttyACM0), port name(/dev/ttyACM0)

USB port detected: /dev/ttyACM0

BROM connected

Downloading & Connecting to DA...

COM port is open. Trying to sync with the target...

Failed to Connect DA: S_BROM_DOWNLOAD_DA_FAIL

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,../../../flashtool/Conn/Connection.cpp,127))

thanks for the tutorial

did anyone else encounter error 2004?
[Upgrading, Modifying and Unlocking] davidsmit:
Hm, I am flat out of ideas. Using Arch to run SP flashtool for Maya Max.

Trying to install an older full rom on my MT6750 (Bluboo Maya Max), it does not show up in dmesg / journalctl at all. I connected an S3 or S5 and the Maya Max. Journalctl -f that, nothing!

Nov 22 10:21:57 trvl kernel: usb 4-1.2.2: new high-speed USB device number 13 using ehci-pci
Nov 22 10:21:58 trvl kernel: usb 4-1.2.2: USB disconnect, device number 13

Nov 22 10:22:24 trvl kernel: usb 4-1.2.2: new high-speed USB device number 14 using ehci-pci
Nov 22 10:22:28 trvl kernel: usb 4-1.2.2: USB disconnect, device number 14

So this was:

Plug in S5, unplug S5.

Plug in Maya Max, unplug Maya Max.

Repeat.

I put in the blank lines, to be able to distinguish between S5 and Maya, but the Maya never showed up. It just seems like there is no more USB in the Maya at all. ..

edit: pressing Vol+ while connecting USB boots the phone to stock recovery, Vol- when connecting boots to factory mode, Vol+&Vol- together boot the phone normal (to Android) and not pressing anything when connecting USB starts charge animation, then dark screen + green charging LED.

Is there something I can do? I mean besides another cable?
[Upgrading, Modifying and Unlocking] sambo2299:
it worked finally ;)

thanks
[Upgrading, Modifying and Unlocking] k4n4li4:
vkworld v3s

And how to root vkworld v3s phone? Spflashtool doesnt read PAC files and i need to install language pack for my mom.
[Upgrading, Modifying and Unlocking] gerstavros:
Sp flash tool is for Mediatek SoCs. You phone has Spreadtrum SoC so you need other tool, the SPD Upgrade tool
[Upgrading, Modifying and Unlocking] k4n4li4:
and where to get linux version?
[Upgrading, Modifying and Unlocking] gerstavros:
doesn't exist. use windows, no other way.
[Upgrading, Modifying and Unlocking] k4n4li4:
ill have to do on virtualbox, 4 pc's and noone has windows
[Upgrading, Modifying and Unlocking] gerstavros:
You cannot do it on virtualbox, must have direct connection. There is no other option than installing normally the windows.
[Upgrading, Modifying and Unlocking] k4n4li4:
then fk it
[Upgrading, Modifying and Unlocking] rgnr:
Failed to open COM port.

Here's the screen: View attachment 4042469

Each time ttyACM incerases on 1.
[One (M8) Q&A, Help & Troubleshooting] Harellevy:
Hi guys I have HTC One M8 with lollipop 5.0.1 android Revolution 43 and I can't get the hotspot to work every time it doesn't save the settings or the SSID.

Help?
[Galaxy Grand Duos i9082 Q&A, Help & Troubleshootin] yigajoel:
I accidentally bought i9082 clone thinking it was original I ended up messing it up so it boot looped ..now I want to get the mtk stock firmware for it and maybe use sp flash tool to revive it but I don't know the exact chip set for the phone all I know its mtk65xx...those last two I don't know so I was asking how do I find out the numbers in the xx..cause I saw two ROMs for the phone one being for i9082 mtk6572 and another i9082 mtk6575..

.so am confused on wic one is for my exact phone
[Xperia SP Q&A, Help & Troubleshooting] TMates:
Hello guys, im new in here, sorry for my bad english i`m just started to learn how good speak english.

anyway, i have torouble with xperia sp stuck in logo repair image in attachment

has been 2 days i`m charge xperia sp light still red and not detecting in flashmode to flash with flashtool and sony companion.

im spent 3 days to search how to fix this problem and i got nothing.

edit : many view but no answer :(

please help.

many thanks.
[Xperia SP Q&A, Help & Troubleshooting] Rupant:
Try to charge the phone for few hours and then flash stock rom via flashtool.
[Xperia SP Q&A, Help & Troubleshooting] TMates:
charge till green or not ? because my phone light is not getting green after 3 days.

thx for advice i`ll try.
[Xperia SP Q&A, Help & Troubleshooting] RandomUser017:
1. Download "C5303_12.1.A.1.207_AU.ftf" (Stock firmware) from here

2. Take of your back cover.

3. Open Flashtool (I expect you to have the Xperia SP drivers installed).

4. Turn off your phone by taking a pen and pressing the "off" hole and wait until it has vibrated 3x.

5. Press volume up (to get into flash mode) and connect your USB cable to the computer and wait until you get a green light.

6. Click on the flash icon in Flashtool and select flash mode. Now select the folder "Downloads" and select the "C5303_12.1.A.1.207_AU.ftf" file you have downloaded and wait 5-10 minutes.
[Xperia SP Q&A, Help & Troubleshooting] TMates:
hi, thx for advice.

I've done it and still does not work.

today i try again with charge and flashing my xperia.
[Xperia SP Q&A, Help & Troubleshooting] RandomUser017:
Please click on "thanks" and what error do you get? Please tell us more.
[Xperia SP Q&A, Help & Troubleshooting] TMates:
still the same error stuck in repairing logo and when flashing always stuck in here my log :

just stuck in there status and has several times i try results remain the same.

I've been looking at some of the threads with the same log problem remains unsuccessful.

sorry i use google translate and still bad.
[Xperia SP Q&A, Help & Troubleshooting] Kaneki Kun:
Help

Hello. I have the same problem. I was just backing up my recovery ,all ok , installing new official ROM 12.1 from Cyanogenmod site , but then its says it only support C5030 or whatever and my device is 1bhuashan. Well , that was wierd for me. Then i gave up and just click reboot system now. And now im stuck on SONY logo . Well , sh*t. I did what you said , I downloaded FTF , all drivers for Xperia SP , then I moved to Flashmode , but it wont go to the Flash mode. Now its just waiting for flashmode . While I push Volume down to go to the flashmode , LED turn green , but after 10 sec , sony logo appear . I dont know what to do. Its bricked or what ? Im desperate . Please help :(
[Xperia SP Q&A, Help & Troubleshooting] Phoenix854:
You need to install drivers again. They seem to be broken. Are you using Windows 8.1??

If yes, then disable driver signature verification and then install the drivers again.
[Xperia SP Q&A, Help & Troubleshooting] RandomUser017:
If your device vibrates and/or shows a Sony logo, your device isn't bricked. This guide is also for you, [MENTION=6835522]TMates[/MENTION] | PLEASE FOLLOW SLOWLY ALONG

Follow this tutorial. (It was hard work):

http://xdaforums.com/xperia-sp/general/tutorial-windows-8-1-10-driver-t3162123
[Xperia SP Q&A, Help & Troubleshooting] Kaneki Kun:
Well , everything is fine , ftf is working , but theres another problem . It says , it need USB debbuging on , but i have no idea how to do it because the phone is dead.

---------- Post added at 04:26 PM ---------- Previous post was at 03:57 PM ----------

Actually , I have USB debugging on , but PC dont recognize it.
[Xperia SP Q&A, Help & Troubleshooting] RandomUser017:
Debugging mode is only for a phone in turned on state.

When you flash the device you do it in Flashmode which has nothing to do with debugging mode on or off.

Just press the "Flash" button.

Select firmware from list.

Press OK, and go into Flashmode.
[Xperia SP Q&A, Help & Troubleshooting] TMates:
xperia sp untill today not going green light, thx sir for ur advice.

i`ll follow ur step and update here for progress.

thank you very much.
[Xperia SP Q&A, Help & Troubleshooting] RandomUser017:
Please do not skip any step.
[Xperia SP Q&A, Help & Troubleshooting] RandomUser017:
Hello? Could you report?
[Xperia SP Q&A, Help & Troubleshooting] TMates:
sorry, i almost forgotten to update progress about my phone because i`m busy to fix it and now my xperia cant charging again, so desperate.

i have a plan to replace my battery and back to try your step and flash again.

btw, im not give up until my xperia sp work again.

really sorry.
[Xperia SP Q&A, Help & Troubleshooting] Ice530:
Hi, did you solve the problem. Because I have exactly the same problem with you.
[Samsung Galaxy Star] Nagarjun Circuit:
Hey guys!

I am back with some thing new and fresh this time!

A totally relayouted stock launcher for star pro!

Features​

-White Background for App drawer.

-Changed default app drawer icon.

Download the Attached zip and flash it via CWM/TWRP and you are done!

Don't forget to hit thanks!​

Credits:
[MENTION=6172725]Nagarjun Circuit[/MENTION]

You :D
[Samsung Galaxy Star] bittooshubham:
Awesome :D
[Samsung Galaxy Star] Rahul Rao:
Nice...
[Android Q&A, Help & Troubleshooting] XeniX_Force:
Hello

Im really worried about my mobile and cant fix the play store error

My device lg optimus lte 2's playstore is constantly getting stuck on downloading.

Ive tried factory resets, clearing data of play services and playstore, uninstalling their updates, and even reflashing the firmware but it always gets stuck on downloading. Either in starting or after some time.

Please help.

Sorry for wrong forum but couldnt find my device's forum.