yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Apps and Games] michoob:
Will you developp an iniEditor in C++ for me? :p

Honestly, I won't have time to learn developping on Windows Mobile, but thank you for the information. Maybe someone will be motivated to work on this, but I doubt it because of WP7... :(
[Windows Mobile Apps and Games] Deleted member 1890170:
Of course NOT!

BTW: Here I small routine I made to prepare using iniEditor v0.4, may be others are interested in

Sub IniToIniDesc(ini)
Local(inicontent,idx,line,trimline,newini,desc,newdesc,fpos,feature)
desc=ini&".desc"
Copy(ini,desc,1)
inicontent=Split(ReadFile(ini)&"^NL^","^NL^")
#
#pass ONE
newini=Array()
idx=0
ForEach line In Array(inicontent)
If(Find(line,";"))
Continue
EndIf
trimline=Replace(line," ","")
If(Length(trimline)=0)
Continue
EndIf
idx+=1
newini[idx]=line
EndForEach
WriteFile(ini,Join(newini,"^NL^"),0)
Clear(newini)
#
#pass TWO
newdesc=Array()
idx=0
ForEach line In Array(inicontent)
trimline=Replace(line," ","")
If(Length(trimline)=0)
Continue
EndIf
idx+=1
newdesc[idx]=line
fpos=Find(trimline,"=0")
If(NOT fpos)
fpos=Find(trimline,"=1")
EndIf
If(fpos)
#test whether 0 and/or 1 is the only character here
If((fpos+2)>Length(trimline))
feature=Substr(trimline,1,(fpos-1))
idx+=1
newdesc[idx]=";Set 0 to disable "&feature&".^NL^;Set 1 to enable "&feature&"."
EndIf
EndIf
EndForEach
WriteFile(desc,Join(newdesc,"^NL^"),0)
EndSub

As one will notice, this script 1) trims the original ini - thus the goal to gain speed when processing it will definitly be reached, and 2) only adds some ;Set lines to the desc, hence one of course have to edit the desc after having run this script.
[Windows Mobile Apps and Games] michoob:
It just prepares it for 0 or 1 values ini fields, doesn't it?

Then, to use iniEditor as a switch for 0 or 1 values to disable or enable a feature, it would be better to use a list with a choice between 0 or 1 ;).

I wonder which scripts do you use iniEditor with.
[Windows Mobile Apps and Games] Deleted member 1890170:
1) To satisfy your curiosity, the ini is attached

2) Only a suggestion:

If (endNextLinePos > 0)

valueTypeList[keyIndex] = ToLower(SubStr(iniDescFile, endLinePos + 2, endNextLinePos - endLinePos - 3))

endLinePos = endNextLinePos

Else

valueTypeList[keyIndex] = ToLower(SubStr(iniDescFile, endLinePos + 2, Length(iniDescFile) - endLinePos - 1))

endLinePos = endLinePos +1

EndIf
[Windows Mobile Apps and Games] Deleted member 1890170:
Don't know this useful for others too: I added to v0.4 valueTypes as follows:

alpha

num

alphanum

hex

range

The modified version v0.4-p1 is attached.
[Windows Mobile Apps and Games] michoob:
Well done, great idea!
[Windows Mobile Apps and Games] RoryB:
@michoob I have made some tweaks to an older version that I wanted to share. It skips the choose [settings] group if there is only one setting group. Also it updates the array with the latest saved changes so if you go to another setting group and then go back to a previously edited one the updates show. And I think lastly I added some code to keep the original settings if you cancel the change since some of them went blank.
[Windows Mobile Apps and Games] michoob:
Thanks, I'll have a look at this. :)

Good idea! :D

Hum... the latest version already does that. Maybe because you edited an older version :p.

I don't get it. But I'll have a look at this ;).
[Windows Mobile Apps and Games] RoryB:
What I mean is for one example when I went to set name and pressed cancel it would become blank even though Michoob was in the text box.
[Windows Mobile Apps and Games] michoob:
Ah, ok, then you are really working on an old version :p.

In the version 4, it will prompt if you really want to set it to blank or not, and if not, it will prompt if you want to set back to the default value which is the value in the .ini.desc file! :)

But still I like your idea of skiping the section part in you only have one section :).

I'll compile this idea with the change of jwoegerbauer in a new version so everyone can have these features in one version :).

I'm so glad to see other people using iniEditor.
[Windows Mobile Apps and Games] RoryB:
I'll look at your latest when you release. Another thing I did was remove the confirmation. Could you add a flag check to not ask for confirmation of changes?
[Windows Mobile Apps and Games] michoob:
Why not a flag, I was also thinking of a flag to enable the .bkp copy ;).
[Windows Mobile Apps and Games] RoryB:
Great, that would be helpful.

-------------------------------------

I played with version 4 from 1st post. Added switches to allow description file or not. Call is CallScript("iniEditor.mscr", "sample", "Dummy", TRUE, TRUE) where old calls without the last two TRUEs will work as calling the desc file and requiring confirmation. Please give me your feedback if I missed something.

Just added another flag for the size of the selection boxes in choice so now CallScript("iniEditor.mscr", "sample", "Dummy", TRUE, TRUE, 30)
[Windows Mobile Apps and Games] michoob:
Ok, I have one suggestion: do not edit your post if you make a change several days later in the latest post of a thread :D.

Because I'm subscribed to this thread and I'm seeing your work only now :(.

;).

Other than that, your changes are interesting.

But personnally, I don't want to have all these options in iniEditor.

So it seems like we will have different branches of iniEditor :).

I wonder if I should'nt start a new Google Code project for iniEditor. It would be way easier to merge the changes of each contributor :).

Anyway, my version v05 that I'm just publishing comes with two additionnal parameters that are optional (if empty, you'll have the behaviour of v04).

Here is the list of v05 parameters:

# Parameters:

# 1 - string: name of the .ini file to edit

# 2 - string: name of the application that uses the .ini file (just for display purpose)

# 3 - boolean (optional, default is FALSE): if 1 or TRUE, create a .ini.bkp backup file if changes are made

# 4 - boolean (optional, default is TRUE): if 0 or FALSE, do not prompt for change confirmation. If FALSE, the cancel button will just cancel the change

I took some of your ideas, and some of jwoegerbauer ideas.

EDIT: I'm attaching here versions v04 and v05 for history purpose ;)

So, what do you think?
[Windows Mobile Apps and Games] RoryB:
I'll look at it some more later, but it appears you require a description file. I have a simple ini file that has no descriptions and iniEditor works fine if I allow it to not require a descr file as in the version I sent.

I agree we should avoid different versions. Let me know how I could help. I have not published my version anywhere, but I do have it included in my CHT Widget. I can move my code into my other script so there will not be another version of iniEditor floating around.

I have noticed if you accept a change to an item, but then cancel the main page it does not go back to the original settings.
[Windows Mobile Apps and Games] michoob:
Actually, it is not that I don't want to have several different versions floating around.

But still, we can indeed try to have a single version with the requirements of everybody.

My idea is also that the new version should be able to behave the same way as previous versions if no parameters are given.

Please note that in v05, I've also added a check not to display the section choice if you have only one or no section at all ;).

Maybe iniEditor could just check the existence of the .ini.desc file instead of retrieving a parameter for the filetype?
[Windows Mobile Apps and Games] RoryB:
My concern of several versions is if someone overwrites a one version with a different based one that causes failure. Like in my widget versus someone else's work.

It would be easy to take argv[1] and add .desc to it and check fileexists.

If(fileexists(filename & ".desc"))

Descfile = filename & ".desc"

Else

Descfile = filename

endif
[Windows Mobile Apps and Games] michoob:
@RoryB: totally, you're right actually. If I have time tonight, I'll create a Google Code Project for iniEditor. And I could then also add you as a contributor (PM a Google Code login of your own) so you can commit any change whenever you want :). I'll also add your change for the .desc file to iniEditor.
[Windows Mobile Apps and Games] RoryB:
Great. I could not wait to think of something else. If they forget to put ".ini" at the end of argv[1] or they put ".desc" instead or if we want to let people leave it out.

if(substr(filename, -4) NE ".ini")
if(substr(filename, -5) NE ".desc")
iniFileName= filename & ".ini"
else
iniFileName= part(filename, ".", 1, FALSE ) & ".ini"
endif
else
iniFileName = filename
endif

Also, if we leave out the SystemPath("ScriptPath") we could allow iniEditor.mscr to exist in a different folder. The user would have to make sure SampleConfig.mscr included paths in the arguments as in

CallScript("\programs\script\iniEditor.mscr", "\programs\sample\sample.ini", "Dummy", TRUE, FALSE)
[Windows Mobile Apps and Games] michoob:
=> me no like :(

You might want to use a different extension than .ini for ini files...

I would rather do a FileExists test, and if the file doesn't exist, then do the check and append the .ini extension ;).

=> me like :)

But again, with a FileExists test, we could keep the old behaviour together with this suggestion ;).
[Windows Mobile Apps and Games] RoryB:
I see. So you could have sample.cfg and sample.cfg.desc

Definitely, we could add an error message of "file filename or filename.ini was not found".
[Windows Mobile Apps and Games] michoob:
Actually, I just checked again, and the SystemPath("ScriptPath") is used only if no path has been given to the .ini file.

So calling CallScript("\programs\script\iniEditor.mscr", "\programs\sample\sample.ini", "Dummy", TRUE, FALSE) works perfectly well with v05 :).

Nothing to do here. :D
[Windows Mobile Apps and Games] RoryB:
My mistake. I missed the if filepath="" part. My apologies.
[Windows Mobile Apps and Games] howdykeith:
Added to the Compendium

Hiya Michoob.

Happy New years...

I added your script to the compendium.

I also wrote routines to delete a [Section] or key of an ini file:

Sub IniSectionDelete (Section)
INIline = "start"
NewIni = ""
While( NOT IsEmpty( INIline ) )
INIline = ReadLine( iniFile )
If (CharAt( INIline, 1 ) eq "[")
Skipper = (INIline eq "[" & Section & "]") ? True : False
EndIf
If (NOT Skipper)
NewIni &= INIline & "^NL^"
EndIf
EndWhile
WriteFile( iniFile, NewIni )
EndSub

This should delete a Key from a certain [Section] of an ini file:

Sub IniKeyDelete (Section, Value)
IniLoaded = ReadFile( iniFile )
Skipper = False
ForEach line in split ( IniLoaded, "^LF^", TRUE )
If (Find (Line, "[" & Section & "]") )
SkipSection = True
WriteLine( iniFile, line, True )
EndIf
#Skip the "Value=" line
If (SkipSection AND (Substr ( Line, 1, (Length(Value) + 1)) eq ( Value & "=")))
Else
WriteLine( iniFile, line, True )
EndIf
#Next [Section] or done
If (CharAt( line, 1 ) eq "[")
SkipSection = False
EndIf

EndForEach

EndSub

Thanks much,

HowdyKeith
[Windows Mobile Apps and Games] michoob:
Hi howdykeith, thanks for the info, even though I will not add this section or key deletion features into iniEditor, because this is not the purpose of iniEditor.

Actually, I have perhaps not chosen the best name for iniEditor, as the idea is to easily edit the values for end users, and only the values.

I should have better called it iniValueEditor :p.

Anyway, thanks for your interest in my work, and thanks for your great work in the MortScript world :).
[Galaxy S I9000 Q&A, Help & Troubleshooting] mandy121:
hi all . im new to site so hope i got right section.. my bf put the vodoo lag fix on his samsung galaxy s i9000 but no wifi or nothing works so he wants to put phone bak to normal ,, he tried restoring factory settings but no good . can any one help me to put the firmware bak or put new one on it please thanks
[Galaxy S I9000 Q&A, Help & Troubleshooting] Prasad:
Search the forum for ODIN. That should put you on the right track. You should be able to flash a firmware to the phone and have a fresh start :-)
[Galaxy S I9000 Q&A, Help & Troubleshooting] mandy121:
oh ok. ive seen the odin program but do i need a firmware with it or does it come with it .. ? sorry im lost x
[Galaxy S I9000 Q&A, Help & Troubleshooting] Prasad:
You need to acquire the firmware separately from http://www.samfirmware.com and use odin to flash it onto your phone. Read PM. :-)
[Droid X General] dvigue:
i got my X on friday and i have noticed a strange discharge issue. it will stay on 100% for a few hours, then suddenly drop to 90%, not 95% or 93%, 90. does your X's display in 10% increments.

and i had read that the froyo update helped battery life. granted i have only had the phone 3 days, i am not noticing great battery life. i have everything shut off that i should, and i have done a factory reset right after the froyo update.

any ideas? thanks gang..I LOVE my X..
[Droid X General] CaseV8:
Don't worry, there isn't anything wrong with your X. That's just the way it displays battery info. (The only % that doesn't end in a "0" is 15% when it yells at you to plug it in!)

Enjoy your X!
[Droid X General] zehkaiser:
And also 5% if you really let it go. :-p And the X doesn't have amazing battery life, even if it is the best of the recent android phone releases. Just make sure that you don't have background apps running that auto update your location (like weather widgets and stuff that "follow" you). I use a widget called Battery Left that estimates your battery life based on your usage. Make sure that you go to the battery profile and uncheck the box that says "Stop calibrating after accurate" so that it will be the closes estimate.
[Droid X General] chrisanderin:
They are right, by 10's only... my wifes Incredible goes 1 by 1...but anyways...have you got the 2.2 OTA yet.. it helps alot. I called Verizon and they said if it hasnt pushed to your phone yet to go to settings....about phone....system updates and it will update to 2.2
[HD2 Windows Mobile 6.5 Q&A, Help & Troubleshooting] H3ALY:
After dropping my phone i'm going to claim on my mobile insurance and thought might be a good idea to return it back to SPL 1.42.00 incase they decide to try diddle me out of a replacement. I've read the How to flash everything thread and saw step 4 (below)

4) Uninstallation

Only way to remove the HSPL is to flash an original SPL from SD card.

- Take any "RUU_signed.nbh" from a ship ROM and copy it to SD card.

- Rename it to "leoimg.nbh"

- Reset the device while pressing the volume down button.

Will it matter which stock rom i do this with? Should i use the 1.48 it shipped with or the current 1.66 Rom?

Thanks for reading!

PS. Sorry for the picture quality
[HD2 Windows Mobile 6.5 Q&A, Help & Troubleshooting] samsamuel:
mm need for sd flashing run hspl2 and choose 1.42.0000

though in full answer yes it does matter which stock you use. vthey will all remove hspl, but only the correct stock for your phone will successfully flash.
[HD2 Windows Mobile 6.5 Q&A, Help & Troubleshooting] H3ALY:
Whats MM?

Would you say i need to put the original 1.48 ROM on then?
[HD2 Windows Mobile 6.5 Q&A, Help & Troubleshooting] DN41:
nope, just connect your phone via active sync or in bootloader and run hspl2.exe

you can choose there to install 1.42.0000spl :)

what you mentioned is for hspl, but hspl2 and 3 contain many spls as well.

DN41
[HD2 Windows Mobile 6.5 Q&A, Help & Troubleshooting] samsamuel:
oh, lol mm should be 'no', stupid predictive txt, heh.

from your sig i see you are running a generic 1.66 rom, so no need to go back to true stock, just run hspl2 and choose 1.66.0000 to match your rom, , , so long as it is a real rom, not cooked, and the spl ends 0000 (but not 2.08.0000 thats for tmouses) then its good for warranty.
[HD2 Windows Mobile 6.5 Q&A, Help & Troubleshooting] H3ALY:
Thanks for clearing that up for me.

Haven't updated my sig in a while it's a 1.66 base with my own cooked inbits and bobs but nothing to serious should be able to get it back to "stock" for the warrenty mongs to swop out.

Thanks for the help guys.
[Galaxy S I9000 Q&A, Help & Troubleshooting] slaman:
I woke up this morning and my phone won't turn on! I hold down power and see the Samsung splash screen... then the display goes off and nothing happens. I can't launch into recovery mode... I can launch into Download Mode, but can't do anything from there... (no response to any buttons)

I tried pulling out the battery and SIM - to no avail...

I am running a rooted Bell phone with the lag fix.

Please give me suggestions! What do I need to do to recover this using my PC and adb?
[Galaxy S I9000 Q&A, Help & Troubleshooting] atan.ismail:
Time to recharge your SGS?
[Galaxy S I9000 Q&A, Help & Troubleshooting] AllGamer:
Before i give you the bad news

try Flashing the phone with Odin, see if you can complete a successful flash

However you'll most likely see an Odin error concerning mounting the drive, your Internal SD drive is most likely dead, and it'll need to be replaced by Samsung/Bell service center.

there are many known cases like this related to the lag fix
[Galaxy S I9000 Q&A, Help & Troubleshooting] slaman:
It's fully charged... it was charging all night. What's weird is that I've plugged it in and it's flashing the battery symbol.... I can't turn off the screen - it keeps flashing this symbol
[Galaxy S I9000 Q&A, Help & Troubleshooting] AllGamer:
if you hold the power button, does it turn on at all?

how far does it go into the boot process?

does it get stuck after the pretty Galaxy S swirling logo?
[Galaxy S I9000 Q&A, Help & Troubleshooting] slaman:
I don't get the swirling logo... I just get the static splash page "Samsung Galaxy S" - it stays for about a second, then the screen goes black.

I'm trying to figure out what to do once I'm in download mode... I have Samsung Kies (which won't detect it...) and Odin (which won't detect it)
[Galaxy S I9000 Q&A, Help & Troubleshooting] AllGamer:
that doesn't sounds right

try installing Odin on another machine

seems like the PC you are trying to use has the USB port locked up.

i've had that happen on mine before

if you turn off the PC, remove the power cord

power it on, then put the power cord

and power it on again

that should reset it
[Galaxy S I9000 Q&A, Help & Troubleshooting] slaman:
Ok, Odin seems to recognize the phone (it installed all the drivers when it was in Download Mode) - I clicked "start" and got the following:

<ID:0/008> Added!!

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

<ID:0/008> File analysis..

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

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

<ID:0/008> Removed!!

then the phone went back into the flashing battery symbol... I need to grab the official Bell Samsung Galaxy S .pit file I guess.

Samsung Kies just sat there trying to connect when the phone was in Download Mode...
[Galaxy S I9000 Q&A, Help & Troubleshooting] slaman:
Okay, so I've downloaded the 0803.pit file... I just need to know which firmware to flash it with under PHONE, PDA, CSC, and DUMP...

Would really appreciate the help!
[Galaxy S I9000 Q&A, Help & Troubleshooting] rmanaudio:
JH2 firmware for all 3 and flash with correct pit file and click partition (but will wipe all data).
[Galaxy S I9000 Q&A, Help & Troubleshooting] slaman:
I found the thread for JH2, but none of the links in it work!

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

Got one that you can spare?

Also, 0803.pit works for JH2 right?

Really appreciate your help!
[Galaxy S I9000 Q&A, Help & Troubleshooting] slaman:
I'm just going to try to find JG9 and upgrade via Samsung Kies... that's if I can find JG9 - these are so hard to find!
[Galaxy S I9000 Q&A, Help & Troubleshooting] Mr Woolf:
Hi Mate,

I just had the same problem - could not reboot from normal recovery, could not reboot from clockworkmod recovery. I had to launch nandroid recovery.

On my unit, it seems that the problem was caused by a conflict between setcpu profiles and the alter minfree settings from ryanza's oclf.

If you have clockworkmod installed and have backed up your rom, you should be able to use nandroid recovery.

I have now changed setcpu not to run on boot, and have not used alter minfree - prob seems to be sorted.

Hope this helps (you or somebody else).

Regards, Paul.
[Galaxy S I9000 Q&A, Help & Troubleshooting] rmanaudio:
Go here to download firmware: http://www.samfirmware.com/firmwares.htm
[Galaxy S I9000 Q&A, Help & Troubleshooting] slaman:
Saw that.. but there's no I-Series... I can't see any firmwares for Samsung Galaxy S there - am I blind?

EDIT: Found it - thanks.

This JH2 on his site is the "updated" version of JH2 that fixes the 3-button recovery as per the Facebook page right?

http://www.facebook.com/note.php?note_id=10150262535205538&id=260085296049

or is this the "earlier" version of JH2?
[Galaxy S I9000 Q&A, Help & Troubleshooting] rmanaudio:
http://www.multiupload.com/ZNBT2RY5Y0

Use 512 pit file.
[Galaxy S I9000 Q&A, Help & Troubleshooting] Uss_Defiant:
http://samfirmware.webs.com/samsungandroid.htm

Top left, just had to click on "android phones" to get here... good luck!
[Galaxy S I9000 Q&A, Help & Troubleshooting] rmanaudio:
It is there...dont look for I series...click on Android. Then grey area for america files.
[Galaxy S I9000 Q&A, Help & Troubleshooting] slaman:
Got the file... tried to update through Odin... and it's stuck on the following for 15 minutes...

<ID:0/008> Added!!

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

<ID:0/008> File analysis..

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

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

<ID:0/008> zImage

The phone still shows Download mode.

Do I need Odin v1.3 or is Odin v1.0 sufficient? Using PIT0512

EDIT: Pulled out battery... tried again... now see blue status bar moving along the bottom... fingers crossed that this works!
[Galaxy S I9000 Q&A, Help & Troubleshooting] slaman:
:(

It completed... and same thing is happening. Can't start it up...
[Galaxy S I9000 Q&A, Help & Troubleshooting] AllGamer:
just to confirm.

you flashed JH2, it completed successfully according to the status bar

but it's not booting.

did you select the option to REPARTITION in Odin?

you used the 512 pit file right?
[Galaxy S I9000 Q&A, Help & Troubleshooting] slaman:
All correct.

Odin said "Reset!" and my phone reboot... but then went into the flashing battery symbol.
[Galaxy S I9000 Q&A, Help & Troubleshooting] AllGamer:
take it out of the charger/usb cable

hit the power button, see if it comes up
[Galaxy S I9000 Q&A, Help & Troubleshooting] slaman:
Did that... get the same issue as before... Samsung static splash screen, then black.

How can this happen? It was working when I went to bed!!!
[Galaxy S I9000 Q&A, Help & Troubleshooting] lgkahn:
sounds like you are suffering from internal sd card failure like others.. were you running a lag fix?
[Galaxy S I9000 Q&A, Help & Troubleshooting] AllGamer:
my guess is the lag fix, but that's just me, i might be wrong

but it falls into the same pattern as the rest of the people that had problem with the phone that had the lag fix installed.

One last thing to try before pronouncing it dead on the scene...

boot into RECOVERY MODE, try to wipe data and wipe cache

reboot, see if it boots further into the OS
[Galaxy S I9000 Q&A, Help & Troubleshooting] slaman:
Can't reboot into recovery mode... I thought JH2 was supposed to fix that? Perhaps the flash didn't work?

And yes, I had lag fix installed...
[Galaxy S I9000 Q&A, Help & Troubleshooting] AllGamer:
wait... you can boot into Download Mode but not into Recovery Mode?

if download mode still works

then so should the Recovery Mode

the Recovery Mode is Volume Up + Home + Power

release power for a sec (when you see the first flash on the soft button), then hold Power button again
[Galaxy S I9000 Q&A, Help & Troubleshooting] slaman:
I not able to get into Recovery Mode... it just shows the Samsung static splash page, then goes black. Just tried flashing again with Odin, it completed successfully... still won't boot up.