yashsingh1/xdaforums huggingface dataset:
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] mfreeman3769:
Hello,

Hello,

Samsung S4 from Canada - Provider Bell - Model SGH-I337M

Phone was functional, new in box, with latest November firmware.

Soft Bricked it when Odin failed (auth) to downgrade from latest frimware to 4.22 (reason for downgrade: unlock codes not working; USB unlock not working due to new security features in latest update).

Tried steps in http://xdaforums.com/showthread.php?t=2261153 using Kies and that also fails with - PC failed to recognise the mobile phone

Now trying to upload latest firmware using Odin 3.09, i get FAILED:

<OSM> Enter CS for MD5..

<OSM> Check MD5.. Do not unplug the cable..

<OSM> Please wait..

<OSM> I337MVLUEMK6_I337MOYAEMK6_I337MVLUEMK6_HOME.tar.md5 is valid.

<OSM> Checking MD5 finished Sucessfully..

<OSM> Leave CS..

<ID:0/003> Added!!

<ID:0/003> Odin v.3 engine (ID:3)..

<ID:0/003> File analysis..

<ID:0/003> SetupConnection..

<ID:0/003> Initialzation..

<ID:0/003> Get PIT for mapping..

<ID:0/003> Firmware update start..

<ID:0/003> SingleDownload.

<ID:0/003> boot.img

<ID:0/003> NAND Write Start!!

<ID:0/003> recovery.img

<ID:0/003> system.img.ext4

<ID:0/003> Complete(Write) operation failed.

<OSM> All threads completed. (succeed 0 / failed 1)

On Phone, looks like 2% done (blue bar)

Is this phone garbage????

Thanks !!
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] snoops609:
Hey have you tried re-flashing the original bell rom? Or did you have a backup? I haven't bricked my s4 but I bricked my S3 multiple times and I ended up bringing it back with a basic ATT rom before getting the rom I wanted to work.

So first try flashing your original stock rom (if you have it or go to your backup)

Next step try an ATT stock rom.

If that doesn't fix it, someone more experienced will have to chime in.
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] mfreeman3769:
Odin fails due to the firmware

Hello,

Finally I found the issue. The File at Sam Mobile version 4.2.2 for Bell is the cause. It fails at 2% upload. The 4.3 file restored the phone, but had to root using CF-AUTO-ROOT in order to get the /data folder back (phone stuck in a loop in boot animation).

The other file available there, an older 4.2.2 is corrupt once downloaded (tried 3 times).

Reason I was flashing back to 4.2.2 is because with the new Bell 4.3 firmware, network unlock codes no longer work (changed??) and neither does USB unlocking (new security feature).

It is conceivable that the new 4.3 frimware from this provide is the cause of the Odin failure at 2% for 4.2.2 ?

Any other good reliable sources for a 4.2.2 firmware version pre ME1 ?

Samsung S4 i337m for Bell (Canada) ??

Thanks!
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] chochonany:
Try this: launch Samsung Kies and go to Tools -> Firmware Upgrade and Initialization.

I tied it (my phone work now) but i have always the same trouble with ODIN (nothing can't put in except CF-AUTO-ROOT don't tell me fail)
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] Gage_Hero:
You might want to check which bootloader you are on, you can do this through terminal on the the phone (instructions burried somewhere in one of the threads) or download Phone INFO from the play store, it will display which bootloader you are on. Once you know that, see if you can find a thread (search) on downgrading from 4.3 to 4.2
[Galaxy S III Q&A, Help & Troubleshooting] saijm4444:
How do I Perform Nandroid backup on SamsungGS3 Int i9300? It is rooted.

I searched everywhere, but couldn't find a good guide.

Any link would also be fine.:D
[Galaxy S III Q&A, Help & Troubleshooting] haziqfikri:
If u have cwm just boot into recovery and select restore or backup. From there u select back up to sd card or just to your phone. And if u dont have cwm just install rom manager from the market and install cwm using rom manager.
[Galaxy S III Q&A, Help & Troubleshooting] JJEgan:
Please dont use rom manger or cwm use TWRP or PhilZ Recovery .

See faqs and guides .

STICKYS

http://xdaforums.com/showthread.php?t=2344125

UNDERSTAND FIRST

http://xdaforums.com/showthread.php?t=2362743
[Galaxy S III Q&A, Help & Troubleshooting] Renegade1504:
Wiki for i9300

Here is a good overview of all i9300 related topics:

http://xdaforums.com/wiki/Samsung_Galaxy_S_III/GT-I9300
[Galaxy S III Q&A, Help & Troubleshooting] saijm4444:
Why do you not advise cwm?
[Galaxy S III Q&A, Help & Troubleshooting] JJEgan:
Please read the faqs and guides its all answered .
[Galaxy S III Q&A, Help & Troubleshooting] saijm4444:
Right. Thanks!
[Galaxy Note II Q&A, Help & Troubleshooting] baista23:
experts.. please help me... i want my note 2 be back to official and normal status.... but i'm afraid because every time i flash i always receive emergency calls only... and when i use triangle away it always leave 1 count in the binary... please i want to make my phone in original status.. because i want to upgrade my firmware to 4.3 even though and i think it is not yet available in the Philippines... thank you in advance and God bless!!!!!
[Galaxy Note II Q&A, Help & Troubleshooting] madmike593:
I would also like to know if this is possible on 4.3.
[Galaxy Note II Q&A, Help & Troubleshooting] baista23:
sir

i don't know.. but im still waiting for 4.3 OTA....
[Galaxy Note II Q&A, Help & Troubleshooting] xxswagga1xx:
What ROM are you currently using? Look into downloading Samsung Kies, just plug phone, it will recognize it and automatically do the upgrade. I did that with my rooted GT-N7100, of course then I lost root access.
[Droid RAZR M Q&A, Help & Troubleshooting] atison:
I have noticed in cm 10.2 and now in cm 11 that when in the car dock (with car mode on) the notification light blinks. I have confirmed that when you tap on the notification and turn car mode off, but keep the phone in the dock, that the light then turns off.

I have messed around in the notification light settings and can't find a solution. I have also hunted around to figure out how to disable car mode permanently since I don't use a car mode app or anything and can't find a solution for that either. Looked under All Apps to try to disable it there but it isn't listed.

Anyone know how to disable the car mode notification light or how to disable car mode.
[Sprint Samsung Galaxy Note II] Smidgers:
I moved desks over the weekend at work (different floor/side, same building). At my old desk I used to get a decent 4g signal. Now I get a very weak 3g signal. However, if I go to the bathroom (roughly 50 ft away) I can get a strong 4g signal.

So, rather than spending the day in the bathroom with my laptop(does anyone have any suggestions?

I am on ParanoidAndroid 4.3 - Does TW tend to get better signal? Or maybe a 4.4 ROM?
[Nexus 5 Q&A, Help & Troubleshooting] supguise:
The battery level is now displayed as a percentage when charging and the phone is off. Just press the power button but not long enough to boot the phone up. Nice little number in green. Anybody else notice this? Never seen it b4 on stock Android.

My bad if it's been discussed.
[Nexus 5 Q&A, Help & Troubleshooting] Ciroc20:
Hi I recently rooted (4.4) then updated to to 4.4.1 and only after that i notice that my internal storage went from 27gb free to 12gb free. Before i updated to 4.4.1 i had a problem with my google now so i had to alter it which brought problems preventing me to update to 4.4.1 (velvet.apk error). I downloaded stock 4.4 from google servers and flash it then updated to 4.4.1 and root again. What could have cause this error?
[Nexus 5 Q&A, Help & Troubleshooting] lowandbehold:
Happened to this guy, he formatted data in recovery and fixed it. Here is the thread http://xdaforums.com/showthread.php?t=2513101&highlight=32gb+to+16gb
[Huawei Ideos X5 U8800] Ax1qwer:
Hi, is any chance to make swap partition on SDcard ?

I have standart U8800. Thanks.
[Huawei Ideos X5 U8800] Ax1qwer:
Any answer ? :(
[Nexus 7 Q&A, Help & Troubleshooting] Googsx:
My stock/unlocked nexus 7 2012 updated to android 4.4.0 KRT16S after being idle about 12 hours, i picked it up and just a couple minutes into browsing it started rebooting on it's own.

The weird things don't end here, since after every reboot it goes back to the exact same state it was before: if it were done updating an app, or I enabled ADB or turned off the wifi or whatever, and then suddenly reboots, all these things would go to the state they were before (WIFI on, ADB off, changes in apks, even files sideloaded).

I tried to clear the cache through recovery, but it didn't work, I also tried sideloading the ota update to 4.4.2, but it won't find the file in the root folder, as it just disappears. When i went to the nexus tool kit i was not able to unlock the bootloader, or to factory reset( not even from the device itself) or do anything to get out of this situation.

The only thing i can do for now is turn the tablet off and do nothing with it.

Has anyone an idea i can try?
[Nexus 7 Q&A, Help & Troubleshooting] Googsx:
Can really nobody help?
[Nexus 7 Q&A, Help & Troubleshooting] bftb0:
You have to create a hypothesis and then perform an experiment that tests that hypothesis. (There's a ferociously complicated processor and millions of lines of code involved; nobody is going to put their finger on the exact cause of a vaguely described problem from across the internet)

For instance:

Hypothesis A: There is a significant hardware problem which causes spontaneous reboots, and it doesn't matter what software is running for the fault to appear.

Test A: Plug the tablet in to the charger and boot it in to the recovery. Let it sit a while. Does it spontaneously reboot?

Hypotheses B: There is a software problem with the ROM I am using that causes sponateous reboots.

Test B: Back up your data, wipe the tablet, install a brand new ROM, and use it for a while. Does it still reboot?

Hypotheses C: The userdata partition got corrupted somehow which causes it to remount automatically in read-only mode. (Changes are not persistent and the ROM reboots all the time as a result)

Test C: Similar to test B, but destroy the userdata partition and reformat it using fastboot. Put a new ROM on a USB memory stick and use the OTG mounting features of the recovery to deliver a new ROM to the tablet. Is it still rebooting?

See how that goes?

Not trying to be mean or anything, but the lack of responses are probably due to several things; the leading candidate of which is that you mentioned using a toolkit - a sure sign of lack of understanding of how most of this stuff actually works.

It's OK to not understand everything - all of us are learning all the time, and everybody has to start at the beginning. Toolkits surely make some jobs faster - at the cost of hiding the details of how things actually work - and making their users helpless when something goes wrong. Try to avoid them if you can.

good luck
[Nexus 7 Q&A, Help & Troubleshooting] Googsx:
Thank you for the long and elaborate response! I will be the first to admit that I have limited knowledge about these things but the main reason that I used the toolkit was that everything else I tried failed. Of course, as you said there are plenty of things I could have tried, and I tried to explain everything I did to make the job easier for someone to help me out, surely not to let my questions unanswered!

So thank you for the answer, and i'll try everything as soon as possible and keep it posted up
[Nexus 7 Q&A, Help & Troubleshooting] Googsx:
Ok after a series of tests, and by the looks of it I think that the right hypothesis is number C, every time it boots back up it loses every change in the system. In the few minutes the tablet stays on, I managed to download the ota update to 4.4.2 but once it rebooted itself into recovery it said no command, hence the files it downloaded were erased and this was also the reason why I couldn't install the update via recovery myself, every time I put the update into the root folder and rebooted into recovery, it told me no command available. And the files would just disappear. The only option i'm left with is to destroy the user data partition using fastboot ( a method i'm not familiar with, but that i'm willing to try) I'll look for a guide, or if you be so kind to recommend one i'd be extremely thankful!
[Nexus 7 Q&A, Help & Troubleshooting] bftb0:
Normally user-level changes would be recorded in the /data partition, so if it got corrupted some way AND the OS mounts that filesystem with a errors=remount-ro then that would explain lack of persistence.

However, not every OS or recovery boot uses the same mount options. I'm looking at a CM boot right now and I don't see that

/dev/block/platform/sdhci-tegra.3/by-name/UDA /data ext4 rw,seclabel,nosuid,nodev,noatime,errors=panic,user_xattr,acl,barrier=1,nomblk_io_submit,data=ordered 0 0

But anyway, if you are going to reformat your "userdata" partition, try and rescue everything off of the tablet.

Is the recovery boot stable? If so, you might want to use "adb pull" to recursively pull everything off of the /sdcard. If it doesn't reboot every couple minutes, that could be of some use for backing up the /sdcard. Otherwise it will be impossible if your ROM reboots every 2 minutes.

Yes you can use fastboot to format the userdata partition. You can also use "mke2fs" as a shell command (that is, with adb) when the recovery is running.

TWRP 2.6.3.1

mke2fs
Usage: mke2fs [-c|-l filename] [-b block-size] [-f fragment-size]
[-i bytes-per-inode] [-I inode-size] [-J journal-options]
[-G meta group size] [-N number-of-inodes]
[-m reserved-blocks-percentage] [-o creator-os]
[-g blocks-per-group] [-L volume-label] [-M last-mounted-directory]
[-O feature[,...]] [-r fs-revision] [-E extended-option[,...]]
[-T fs-type] [-U UUID] [-jnqvFKSV] device [blocks-count]

.

If you use an ext2/3/4 filesystem formatter (e.g. mke2fs) running under the recovery, you need to be very very careful about specifying the exact partition name (e.g. /dev/block/mmcblk0p9 for GROUPER - data might be at a different partition number on a Tilapia device).

You can check by doing a

adb shell ls -l /dev/block/platform/sdhci-tegra.3/by-name/*

the userdata partition is "UDA".

BTW, before you go nuking your data partition, it might be useful to check to see if it is actually corrupted. For instance, with TWRP you can unmount all partitions, and then check using the program "e2fsck" :

C:\> adb shell
# e2fsck -f -n /dev/block/mmcblk0p9

the above command will perform a check (p9 = grouper /data partition) without attempting to make any repairs. You'll know if there are any problems: you will get page after page of error messages. If the filesytem is free of errors, you will only see 8-10 summary lines.
[Nexus 7 Q&A, Help & Troubleshooting] Googsx:
Ok before I start with all this i have to say a few things! The tablet now started rebooting even in recovery! and also since the first time it started rebooting I tried enabling usb debugging, but as I explained earlier after every reboot every change disappears, meaning usb debugging is not enabled when i enter the recovery! Will I be able to do anything at all with fastboot if the usb debugging is not enabled? If not do I have any other option?
[Nexus 7 Q&A, Help & Troubleshooting] bftb0:
The settings you (try to) apply when the ROM is running (eg the USB debugging toggle) do not affect the recovery. The entire point of a recovery is to have a standalone boot that doesn't depend on other partitions.

Having said that, the use of a "pseudo" SD card that is actually part of the userdata filesystem sometimes does cause problems for the recovery - it tries to mount /data to get you access to ROM files, nandroid backups, etc. I recall getting my N7 into a condition where TWRP's touch interface wouldn't come up because of problems with the userdata partition. But, adb was still available as was fastboot (in the bootloader mode). Also, I was not having spontaneous reboots.

The fact that you are observing spontaneous reboots in the recovery indicates that you might have Hypothesis A going on - flaky hardware. At a minimum however, it means you will not be able to run any long duration backups... for instance, trying to make a rescue backup of your SD card.

You could try and do

fastboot erase userdata
fastboot format userdata

with the tablet in bootloader mode. Obviously this step will destroy all of your data.

If your tablet is still spontaneously rebooting after that (in the recovery) then your only option will be to return it for repair (motherboard replacement).
[Windows Mobile Development and Hacking General] Sektor:
Hi everybody,

I'm trying to comunicate with my SIM, which supports SIM application tookit, using the RIL API.

In order to do that I think I need:

- Send Command to the SIM (Envelope)

- Receive Response from the SIM (Fetch)

- Send Command Response to the SIM (Terminal Response)

At this moment I can do only the first two things.

I can send command using RIL_SendSimToolkitEnvelopeCmd function and using, as input, a well formed string as defined in the specification GSM 11.14; for example, in order to select the second item of the SIM Application Menu, I use this code:

BYTE envcmd[9];

envcmd[0] = 0xd3; // Menu selection tag

envcmd[1] = 0x07; // Length

envcmd[2] = 0x02; // Device Identity Tag

envcmd[3] = 0x02; // Device Identity length

envcmd[4] = 0x82; // Source: ME

envcmd[5] = 0x81; // Destination: SIM

envcmd[6] = 0x10; // Item Identifier tag

envcmd[7] = 0x01; // Item Identifier length

envcmd[8] = 0x02; // Item chosen

hres = RIL_SendSimToolkitEnvelopeCmd(m_hRil, envcmd, 9);

The response for this command is trapped in the notify handler (second thing I can do).

After the notification I need to send a Command Response to the SIM and to do that I think I need to use RIL_SendSimToolkitCmdResponse using, as input parameter, a well formed string as specified in the GSM 11.14; something like this:

// Response for DISPLAY TEXT

response[0x00] = 0x81;

response[0x01] = 0x03;

response[0x02] = 0x01;

response[0x03] = 0x21;

response[0x04] = 0x81;

response[0x05] = 0x02;

response[0x06] = 0x02;

response[0x07] = 0x82;

response[0x08] = 0x81;

response[0x09] = 0x03;

response[0x0a] = 0x01;

response[0x0b] = 0x00;

hres = RIL_SendSimToolkitCmdResponse(m_hRil, response, 12);

But the result (hres) is always 0x80070057 (E_INVALIDARG).

Could anyone help me?

Thanks in advance.

Sektor

P.S.: please note that the response I send is the same as that I sniffed using a Season logger which can intercept all traffic between SIM and PDA.
[Windows Mobile Development and Hacking General] Chatty:
Although I can't help, I've got a question: Once you're finished - could this then be used to implement Bluetooth SIM Access Profile?
[Windows Mobile Development and Hacking General] Sektor:
No.

In order to implement SAP, we need a "flat" access to the SIM and to do that the radio module has to export a commad like AT+CSIM (GSM 07.07).

If the radio module implements that command, using the RIL_SendSimCmd we can send all possible commands to the SIM and so we could develope a SAP layer.

Unfortunally, as I know, there is no radio module that permits a complete access to the SIM.

Before to take the SAT street I tryed to use SendSimCmd on my JasJar but the reult was always E_NOTIMPL.

Bye

Sektor
[Windows Mobile Development and Hacking General] Arisme:
SendSimCmd is implemented on the Wizard, at least (I'm using it :D) - but it'll only be useful if you want to access a specific application on the card (if you're trying to talk to the GSM application on channel 0 you're out of luck)

Regarding SendSimToolkitEnvelopeCmd I've got mixed results according to the devices - working on some, and failing on others with this return code, and do not know why, yet. But here since you're failling on the SendSimToolkitCmdResponse, that seems different. Even if I never used this function before (I always let the handset provide its own Terminal Reponse) I think it's badly formatted. The response to a Display Text should only include a General Result (0x03 0x01 0x00).
[Windows Mobile Development and Hacking General] Sektor:
What do you mean when you say "...to access a specific application on the card"?

What kind of PDU are you able to send to the SIM? And how can you specify which channel you want to open?

BTW, in order to implement SAP, we need to access to channel 0 for sending GSM commands.

Regarding RIL_SendSimToolkitCmdResponse, I tryed also to send General Result (0x03 0x01 0x00), as you suggested, but with no luck.

I think SendSimToolkitCmdResponse wants a specific struct as input parameter (something like specified in this document http://www.intrinsyc.com/whitepapers/RIL_whitepaper_MS_Intrinsyc_June2004.pdf).

I tryed with the struct specified in that document and the resut is changed: 0x8007000e (E_OUTOFMEMORY) :-(

Any ideas?

I have a JasJar with WM 5.0.

Bye

Sektor
[Windows Mobile Development and Hacking General] Arisme:
I mean access a SIM card application located by its AID

Basically you'll need to open a channel to your application with an ISO 7816-4 Open Channel command, then you are in your own world :)

OK, then it's going to be difficult I think. Unless you have a 3G card and a multi-selectable USIM application that you could select on another channel to send your APDUs, but I don't know if this is supported by any card (never tested it).

I did a small project some years ago that can be used to install a dummy driver that'll record everything. I think you can use it for RIL and try to dump the structure that's sent to understand it better (and publish the results here :))

http://arisme.free.fr/hacks/binaries/XBridge.zip
[Windows Mobile Development and Hacking General] Sektor:
Arisme, your application is very cool :-)

With your driver I can see all traffic between RIL.dll and rilgsm.dll and so I can see the commands sent by STK_Service.dll (SIM Application Toolkit layer in the JasJar) to the rilgsm.dll via ril.dll.

The structure used by the RIL.dll to communicate with rilgsm.dll in the function RIL_SendSimToolkitCmdResponse is:

typedef struct rilsimtoolkitrsp_tag

{

DWORD cbSize; // Structure and text size in bytes

DWORD dwParams; // Indicates valid parameters

DWORD dwId; // ID number of command

DWORD dwTag; // Command tag (with comprehension bit)

DWORD dwType; // Type of command (DISPLAY TEXT, etc.)

DWORD dwQualifier; // Command details qualifier

DWORD dwResponse; // Command result from SIM toolkit layer

DWORD dwAdditionalInfo; // Additional command result information.

} RILSIMTOOLKITRSP;

as defined in the document linked in my previous post.

I used the same structure as parameter for RIL_SendSimToolkitCmdResponse, but the question is: is it correct?

That structure is used between RIL.dll and rilgsm.dll and not between my application and RIL.dll.

BTW I tryed to fill the fields with the info logged with your driver and the result is always the same: 0x8007000e (E_OUTOFMEMORY).

I think I need to intercept the call that STK_Service.dll makes to RIL.dll.

Now I'll try to bypass RIL.dll using RIL1: device and DeviceIoControl.

Bye

Sektor
[Windows Mobile Development and Hacking General] Arisme:
Did you check if the info passed in the IOControl associated to this RIL function (you'll have to find which one it is first :)) logged by the bridge matches this structure ?