yashsingh1/xdaforums huggingface dataset:
[General Topics] ebola75:
i have use the driver of the Xda http://xdaforums.com/showthread.php?t=836022, the process in Terminal Emulator on the driver goes without a hitch, when I configure the AndroidVNC and give a mandate to run the program I get the following error message "VNC connection failed" ,Can someone to help?? plz
[Galaxy S I9000 General] shantzu:
This post will contain instructions for *nix based operating systems

Because I am using Linux myself and because it is much easier to do stuff in the command line on Linux than it is on Windows, I will mostly post instructions for *nix systems. If anyone wants to help out by "translating" them over for Windows machines, I can include it in the next post.

Optimizing and zipaligning

I have managed to Optimize and zipalign the apps in /system/apps with the following code.

You need to run this on a *nix distribution (I used Ubuntu) with at least the following packages installed: bash, zip, unzip, optipng. Put all the .apk files from /system/app in a folder on your machine, cd to that folder and execute this code snippet.

Also, beware that some of the apps might not work (I had for example FCs with the camera and the phone app), I'll try to figure this out and make it pretty much foolproof. Currently everything but the .9.png files are optimized (the .9.png files are some special files that can't be treated like normal png files).

for apk_file in *.apk; do
file_name=`echo $apk_file | sed -r s/.apk//`
echo -ne "Unpacking\t$file_name.apk... "
mkdir $file_name
unzip -qq $file_name.apk -d $file_name
cd $file_name
echo -ne "Done.\n"
echo -ne "Optimizing\t$file_name.apk... "
for pngfile in $(find . -name '*.png' | fgrep -v .9.png); do
optipng -quiet -o 5 $pngfile
done
echo -ne "Done.\n"
echo -ne "Repacking\t$file_name.apk... "
zip -q -0 -r ../$file_name.apk *
cd ..
rm -rf $file_name
echo -ne "Done.\n"
echo -ne "Zipaligning\t$file_name.apk... "
zipalign -fv 4 $apk_file $apk_file.za
mv $apk_file.za $apk_file
echo -ne "Done.\n"
done

EDIT: I added the -0 flag to the zip command, since you should never "compress" apk files, because this leads to the FCs I was experiencing.
[Galaxy S I9000 General] shantzu:
Post also reserved.
[Galaxy S I9000 General] shantzu:
Last reserved post. You can start flaming now. :)
[Galaxy S I9000 General] davidf:
Posted in the wrong place... try reading the faq's about where this belongs.
[Galaxy S I9000 General] shantzu:
Well, the rules of the development section state: "Rom Development - only meant for very advanced technical discussion directly related to ROM development activity and the delivery of actual ROMs and ROM components ONLY."

I'd regard this as an "advanced tehnical discussion", since it also contains information on how to deodex and (to come soon) optimize/zipalign your apps, that's why I thought it would belong here. I would also like this to be a place for advanced discussions on best practices on deodexing, theme-ing, and otherwise modifing a stock ROM manually. If the moderators still think that this doesn't belong here, I'm sorry, and would like to ask them to move it to the proper Forum.
[Galaxy S I9000 General] ragin:
Sticky Material.

Don't you think your Title is misnamed? The thread contains much more than just a guide getting most out of our SGS.

Very good effort anyway.
[Galaxy S I9000 General] shantzu:
Well, I didn't know what else to name it, and didn't want to use a really long name. I think this title best describes what it's about... :)

Thank you for your reply!
[Galaxy S I9000 General] NeoXTC:
very good post. It'll be extremely helpful for new users i reckon.
[Galaxy S I9000 General] waveboy2u:
question

can this method be used on almost any samsung galaxy? (i have galaxy 551)

and about deodexing...is xUltimate a general app for any Android phone or only for SGS ?
[Galaxy S I9000 General] Atb_555:
Awesome stuff thanks for this cleared up a few things
[Galaxy S I9000 General] shantzu:
Well, the program seems to be posted in the "Motorolla Droid" forum, so I don't think it was even intended for the Galaxy S. If I were to guess, I'd say it might work on any Android device. Just be sure to make a backup in case anything goes wrong. :)
[Galaxy S I9000 General] syamsoul:
Thanks alot! Never knew the degrades display.
[Galaxy S I9000 General] sirphunkee:
Shantzu, first, thank you very much for this valuable contribution!

While I agree that it is related to "highly technical discussion", it's not directly connected to ROM cooking/development. In fact, this is the kind of thing that people should read before they start mucking about in the dev section ;)

I've gone ahead and moved it to the general section and made it a sticky topic for now. However, those are starting to pile up in this section, so we'll likely roll up several useful threads like this one into one unified reference sticky here soon.
[Galaxy S I9000 General] shantzu:
I was thinking about this guide as some kind of "cook your own ROM directly on the device", that's why I was also including tips on how to deodex the apps and I'd also like to include tips on how to set up themes (not install third party themes, but rather explain where each icon can be found and how it can be modified) and other mods. Anyway, if you think it better fits in the General section, I'm fine with that, as you can see I'm pretty new in these forums and not that experienced (for example I have also seen a guide on how to manually unlock the phone that was stickied on the Developers section).

Anyway, sorry again for the trouble and thanks for clearing it up!
[Galaxy S I9000 General] iCatchU:
Very good post. Thank you!!
[Galaxy S I9000 General] liraindon:
Very good work. One thing i noticed though: you use ext fs for the system rw remount. This i think will only work for ext converted system partitions not the original rfs system.
[Galaxy S I9000 General] shantzu:
I know, it normally shouldn't work, but it actually does. I don't have any lagfix applied and it works just fine. I will try and see though if I can come up with a more general command that 100% works in all cases.

EDIT: ok, not specifying any filesystem at all works too. I will have to see if this also works with a lagfix enabled, but I guess there shouldn't be any problems.

Thanks for your comment!
[Galaxy S I9000 General] eventidephoenix:
whoa didnt know about degradation... thanks!
[Galaxy S I9000 General] sOt0nGx:
nice

very good write up.. +1
[Galaxy S I9000 General] chillibanana:
Thanks for teh post. Always good to get some tips and increase knowledge.
[Galaxy S I9000 General] mossy1963:
right on....but this is a VERY good guide isn't it?

http://xdaforums.com/showpost.php?p=14753105&postcount=406
[Galaxy S I9000 General] DarkSorcerer:
Really good guide! Ty for that! :)
[Galaxy S I9000 General] GoThere123:
Very good guide and info.

I help me a lot.

Thanks.
[Galaxy S I9000 General] makisgeorg:
Thanks for useful information
[Galaxy S I9000 General] Dara`:
Very helpfull guide
[Galaxy S I9000 General] makisgeorg:
Very good guide
[Galaxy S I9000 General] Lakshay Sethi:
Yeah,helpfull guide :)
[Galaxy S I9000 General] mihapodb:
Thank you!!

10char
[Galaxy S I9000 General] Mirciulikkk:
Getting the best out of your SGS: Flash a custom ROM with a fast-ass kernel

8D
[Galaxy S I9000 General] iVastone:
excellent post
[Galaxy S I9000 General] tamaleddon:
I'd rather have rock solid low battery consumption than fast ass :D
[Galaxy S I9000 General] zedbg:
Thanks , quite a lot of info:D
[Galaxy S I9000 General] Phil1988:
Sorry, but do i misunderstood something?

"By deodexing, you will get rid of the .odex files that come with every apk and jar file and you will be able to edit the apks like any other apk. It will also save you a wee bit of space, and make your apps launch a wee bit faster."

Everywhere i read about it is mentioned that deodexing make apps launch SLOWER. To reduce this the apks where zippaligned but not as fast as normal odexed.

Is this information wrong?
[Galaxy S I9000 General] titijuli:
Great job m8!!

sure it will help a lot of people!!:)
[Galaxy S I9000 General] slyferx:
Wow i learn a bit more about the amoled display. Thx. Is very usefull info!!

Enviado desde mi GT-I9000
[Galaxy S I9000 General] ★Martux★:
Thank you, will use in my ROM ;)
[Galaxy S I9000 General] .ioannis:
Will try most of these the upcoming days- what I really want though is a Phone.apk with a non-increasing ringtone....
[Galaxy S I9000 General] Wakahoola:
The screen stuff was very informative. Although I don't use blue wallpapers and stuff, I'm gonna avoid them in future. Thanks alot
[Galaxy S I9000 General] wassk:
good to know all this.thanks
[Galaxy S I9000 General] tarunvarshney:
thanks... awesome post :)
[Galaxy S I9000 General] tcibo:
If you are using Odin, select the file you downloaded in the PDA box and click Start
[Galaxy S I9000 General] 3vil5:
really nice post!

Thx
[Galaxy S I9000 General] B3nnyTh3KiD:
Nice guide dude.

THX +1
[Galaxy S I9000 General] wpowah:
thanks for all!
[Galaxy S I9000 General] JKM2247:
Very comprehensive post. I have learnt a great deal Thanks
[Galaxy S I9000 General] Yankeeromeo448:
Hi I am really new to all this tech, but really try hard. It is just like reading a foreign language. All I want to do is unlock my Sam Galaxy s2. Can somebody please post an idiots guide ! What is rooting, why and how do you unzip a Odin file. I know this is probably very easy for all of you but we all have to start somewhere. Dare I say it but this is why Mr. Jobs can charge so much for apple products, they are simple to use. They just ask you the obvious questions and you answer yes or no. Samsung have made a great piece of hardware but KIES SOFTWARE IS RUBBISH. They need to sack their software team.
[Galaxy S I9000 General] chymore:
thanks for your guide,very helpful!
[Galaxy S I9000 General] B-Ace:
Hmm I thought a odexed system load apk faster than deodexed....

So I'm confused now...

I still cant decide wether to use deodexed or odexed.... which one is more stable and which one is faster ?
[Galaxy S I9000 General] kuribo67:
nice guide!
[Galaxy S I9000 General] dragonkhan9:
very good guide for the GS
[Galaxy S I9000 General] user98:
just wanted to say thanks for the guide
[Galaxy S I9000 General] Snailmarvel:
Nice guide. Maybe i´ll read it somtimes carefull
[Galaxy S I9000 General] jefrda:
Great, informative guide, thx. The part about protecting your screen (screen degradation) was very interesting.
[Galaxy S I9000 General] 3vil5:
edited message
[Galaxy S I9000 General] raosid:
This is a very useful post. Thank you so much
[Galaxy S I9000 General] ssunny:
doubt

hi my baseband verson is xxjp2 and for this 2.3 update is not available. Can i change the baseband version and how????
[Galaxy S I9000 General] Yousef-SYI:
Having EXT4 file system is the best advice I can give to android users.
[Galaxy S I9000 General] jose.celestino:
Some people here swear that ext2 is the best. I'm yet to see (ok, I haven't looked for) tests to back one or the other.

You download the modem you want and flash it.
[Galaxy S I9000 General] fuzionmicro:
;) Many thanks for the post! Great for SGS newbies like me!
[Galaxy S I9000 General] M_GUN:
thanks.

that's what i was looking for!
[Galaxy S I9000 General] elhennig:
Well, on flash devices ext4 seems to outperform ext2:

http://www.linuxplanet.com/linuxplanet/tutorials/7208/1/
[Galaxy S I9000 General] bauersein:
Great work,

I have to say big THANKS shantzu
[Galaxy S I9000 General] 9overflow:
Thanks a lot!!! :D
[Galaxy S I9000 General] seotaiji:
Yeah my SGS seemed a little faster after converting to EXT4. Would be even better if i could convert my external SD to ext4 as well - stupid Windows! I know i know, there's always Linux.
[Galaxy S I9000 General] johnsin5393:
yeah , it become faster after convert to ext 4...

running smooth
[Galaxy S I9000 General] bilouxp:
thanks

Very good guide for beginners
[Galaxy S I9000 General] dtc4ever:
thank you for this!
[Galaxy S I9000 General] balaji345:
Useful info

Thanks for posting this. Very useful..
[Galaxy S I9000 General] Sybregunne:
Thanks for this very useful. Most probably why it was stickied. :D
[Galaxy S I9000 General] lordskid:
Nice all in one kinda thread
[Galaxy S I9000 General] are609:
Nice work!
[Galaxy S I9000 General] TheeWolf:
You said that for call record you need a 2.2.1 firmware, But I gingerbread 2.3, can I still use it?
[Galaxy S I9000 General] eriamel:
good reading :)
[Galaxy S I9000 General] cc0201:
It's useful:D
[Galaxy S I9000 General] madushan92:
thanks for the tute, it helped me a lot... :)
[Galaxy S I9000 General] pesc96:
thx you very much
[Galaxy S I9000 General] canbas:
Thank you. It is very usefull document
[Galaxy S I9000 General] onecosmic:
Thanks!, really good information.
[Galaxy S I9000 General] sivajithee:
thanks for the information
[Galaxy S I9000 General] v1rajesh:
thnxxxxxxxxxxxx q
[Galaxy S I9000 General] tkruijer:
Good stuf...
[Galaxy S I9000 General] onecosmic:
great info, thanks!
[Galaxy S I9000 General] investmenttechnology:
this might be a stupid question, but is there any change ICS will come to i9000? If so when is the estimated release date?
[Galaxy S I9000 General] hasanalikhattak:
thanks a lot
[Galaxy S I9000 General] dgpham:
nice tips, i'll give it a try xD
[Galaxy S I9000 General] Riv3n:
Good stuff...

Thanks. Didn't think that it can be quite that easy. :D
[Galaxy S I9000 General] pofy:
Nice overview. Thank you
[Galaxy S I9000 General] muchopoli83:
The best guide to our galaxy

thank you very much
[Galaxy S I9000 General] jose.celestino:
Naa, the best is from Douglas Adams. This is the second best.
[Galaxy S I9000 General] vhinchies:
nice tips !
[Galaxy S I9000 General] doomoo:
This is a lot of good and usefull information,

Thanks!

---------- Post added at 02:10 PM ---------- Previous post was at 02:00 PM ----------

This is a very helpfull page with lots of usefull information!
[Galaxy S I9000 General] weezill:
great guide
[Galaxy S I9000 General] roland23:
very nice and complete guide. Thanks
[Galaxy S I9000 General] alwo1303:
Thank you for the Guide!
[Galaxy S I9000 General] Fenisu:
Nice guid! Although kind of strange that thing with the blue color and the AMOLED screen as the new Android is blue colored haha, they want us to change our phones ASAP!!

I also wonder if that unlock phone trick would work with other phones, not just sgs.
[Galaxy S I9000 General] xNyan:
:D

great tips
[Galaxy S I9000 General] IbrahimNassef:
Great tips indeed
[Galaxy S I9000 General] jacobuscuracao:
thank you very much, it is very helpful
[Galaxy S I9000 General] gabbarsingh2000:
Good post. Never knew about screen burn. Have start using Green wallpaper and black theme.
[Galaxy S I9000 General] on4ill:
Nice post, I used it as a general guide with several adaptions because of the age of the post.

Still very nice though!

Now running CM7 too on the SGS
[Galaxy S I9000 General] salzheld:
This was really a time saver.

Gesendet von meinem GT-I9000 mit Tapatalk 2
[Galaxy S I9000 General] Monkeywoman:
I have downloaded FlexHex and I have the file open but I only see two lines of txt. If i go to the address 181468 nothing is there. tips?

EDIT: rom on phone is AOKP 4.04 Milestone6
[Galaxy S I9000 General] iamadigo1:
Google Play error

Used the given links to install all the google programs but apps from google play encounter errors while downloading. Any help??
[Galaxy S I9000 General] Trax_:
best

i get the longest battery time with Greenify and HellyBean rom...All Synch on and always 3g or wlan on....:laugh:
[Galaxy S I9000 General] Terranigmus:
snip wrong thread
[Galaxy S I9000 General] smohanv:
very good tips and tricks...

thanks for the compilation. I like the unlock method which worked for me..
[Galaxy S I9000 General] Fuma:
Thanks for the guide.

Helpful stuff!

Liked the OLED part.
[Galaxy S I9000 General] DocMarc73:
Thanks a lot! Really helpful!
[Galaxy S I9000 General] scorpeeon:
thanks for this, it is really useful!
[Galaxy S I9000 General] xaav bp:
Good thread but you should talk about lagfix and Custom rom like teamwhyskey bionix V and darky's rom but other than theat your thread is clear and really helpfull
[Galaxy S I9000 General] shantzu:
More stuff (including lagfix, custom ROMs and much more) is coming soon. Stay tuned and thanks for your replies! :)
[Galaxy S I9000 General] xmfpdlemalnz@hotmail.com:
please post how to apply themes!! been waiting for ages :)

This is so much useful and clearer than

[STOP!! Before You Post, Read This NOW!! UPDATED: 10/29/10] thread.

Above thread is so clustered with too much information and too technical without any explanation for new users.

I believe this thread should replace above one.

Just keep it simple with easy explanation for new users and this should be the ultimate guide.

Cheers again for your work.

Thanks
[Galaxy S I9000 General] ragin:
A couple of things.

1 - Odin3 V1.7 is better at NOT semi-bricking than 1.3. There are many instances where right at the beginning of a flash in 1.3, it STOPS & you are left with a phone that only shows a computer & a phone connected with a hazard signal with '!' in it. You can search for & find several examples of this. V1.7 with pit files you can find in my signature.

2 - When you are flashing a stock rom, it seems prudent to first flash ONLY the pit with re-partition, then pull the battery & again put it into download mode & flash the rom WITHOUT re-partition. That way you are avoiding a minor chance of a semi-brick.

PS : People who got stuck with a semi-brick using 1.3 have used 1.7 & successfully resolved all issues.
[Galaxy S I9000 General] jiyosyed:
thanks for this wonderful guide
[Galaxy S I9000 General] ronmtorres:
dang it, i never knew the oled would degrade!! now i'm kinda paranoid about mine..

many thanks for this, this is very useful and informative :)
[Galaxy S I9000 General] xaav bp:
It's not just the amoled that degrade all screen degrade overtime and they all will degrade faster if you use the maximum brightness but don't be too worry they dont degrade that fast the point of this thread is if you plan to use your phone for a long period of time like 2-3 years also some technologies have been developed to compensate the degradation of those screen
[Galaxy S I9000 General] Rod_74:
thanks for the guide (i needed 1 month ago..)
[Galaxy S I9000 General] dennis46419:
thank you, for the tutorial

lg dennis
[Galaxy S I9000 General] Alberto Fernandes:
excellent post....very useful for me....Many thanks from portugal
[Galaxy S I9000 General] Rixsta:
Getting the most out of your SGS??

Then what are you doing here...

Get your butts over to the dev section..

My SGS....Think I may have got the most out of mine :)

What are you waiting for !!
[Galaxy S I9000 General] shantzu:
Although I have only used v1.3 I have never encountered a soft brick because of odin, I'll include this info in the OP though, thank you!
[Galaxy S I9000 General] shantzu:
Not sure what you mean, but the post was moved to the general section because the moderators don't think it belongs in the dev section. I plan to include informations on how to manually create your own custom rom (not a distributable one, but directly on the device). Hopefully after that they'll consider moving it back...
[Galaxy S I9000 General] jetgomes:
HOT DAMN!!!!

One sick phone you got there my friend!!

I'll get comfortable first with my phone and read like crazy here on XDA,so i know what i'm doing and set my phone as SICK as your's..

To the poster,

excellent post....very useful for me....Many thanks!!!
[Galaxy S I9000 General] Rixsta:
Thanks....If you need any help then just ask...Im usually about in the dev forums ect...
[Galaxy S I9000 General] lucabaldo3:
Very good!
[Galaxy S I9000 General] filippm:
Thanks a lot ;)
[Galaxy S I9000 General] HM.Carbide:
helps a lot
[Galaxy S I9000 General] alex.bacer:
great job !
[Galaxy S I9000 General] madmax916sps:
Yes very Good choice of Options ;)
[Galaxy S I9000 General] returnix:
Thanks alot, helped me!
[Galaxy S I9000 General] martijn00:
Really helpfull, thanks!
[Galaxy S I9000 General] russellhoff:
Thanks for the tips!! very useful :)
[Galaxy S I9000 General] xenitu:
Thank you. I learned a lot.
[Galaxy S I9000 General] bacha_13:
Cheers, Thanks for that!
[Galaxy S I9000 General] mygunboy:
Thank You.
[Galaxy S I9000 General] ataky:
Great thread
[Galaxy S I9000 General] doomsdaycs:
Hey could u pls tell me wat this guy has done to his phone.. its damn cool.. i want to make mine like that.. i'm a noob.. pls explain me how to do it.. Thanx
[Galaxy S I9000 General] Ledaa:
Be cautious with CallRecord...

I've copied the 3 .so files.

That's bricked my phone.

(Froyo 2.2)

Regards.
[Galaxy S I9000 General] shantzu:
I omitted to put up the information that this would only work on 2.2.1 firmwares. If you used this on a 2.2 firmware, you could try a 2.2.1 one, it should work on all the 2.2.1 ones.

Thanks for your input and sorry for the trouble.
[Galaxy S I9000 General] MaverickHHH:
No wonder! This happened to me too on my Froyo 2.2 custom ROM. No problem. That's why I have titanium backup :D
[Galaxy S I9000 General] stor3x:
Thanks a lot !
[Galaxy S I9000 General] fashloka:
Nice post. haha
[Galaxy S I9000 General] aadis:
thanks for this guide
[Galaxy S I9000 General] shinigami2010:
Great post, has a lot of info.
[Galaxy S I9000 General] retskrad:
Is SGS's sound quality better than iphone?
[Galaxy S I9000 General] pixiejoe:
this is definitly the best phone pda i ever had but i don t understand why we need 10posts to may post in dev forums if you are just observating and don t talk a lot and trying things out doesn t mean you cant help
[Galaxy S I9000 General] DerBo84:
That´s true. I want to reply to a thread in the developer forum and you prohibited me to answer, until i get 10 posts... so i post stupid stuff in stupid threads to reach 10 posts... damn stupid, sorry guys!
[Galaxy S I9000 General] thunderteaser:
I didn't know about this... I've done a couple of bump charges but didn't notice any significant changes. Better stop doing this! :P
[Galaxy S I9000 General] VonOben:
Thank you for this guide.

I have upgraded to 2.2.1, and installed the files related to call recording. I'm a a country where this is perfectly legal (thank god...) and I'm using the program that's recommended in the guide.

It works quite nice, but I would like to be able to choose to what directory it records.

Anyhow, there's a small problem with the recorded audio. There's a very breif drop-out every second (2nd) second, or so. It's not that horrible, the drop-out is very very short, so it doesn't ruin the recording. But it annoys me a little bit. ;)

Does anyone know if this is related to the .so-files, the hardware or the recording software? Any chance that switching recording software will make a difference?
[Galaxy S I9000 General] Rixsta:
Vortex is coming.........

http://img34.imageshack.us/g/snap20110314132346.png/
[Galaxy S I9000 General] buachaille:
I would never have known English was your 3rd language. You shouldn't be apologising. Most of the native English speaking people I know cant write or punctuate anywhere near as well as you !!
[Galaxy S I9000 General] zx6r_98:
were you running froyo 2.2 ?
[Galaxy S I9000 General] zx6r_98:
Would this unlock method work for froyo 2.2 ?
[Galaxy S I9000 General] shantzu:
Please stop the spamming!

Thank you very much! :-)

Should be working on all ROMs/versions.
[Galaxy S I9000 General] Rixsta:
How the hell is this spamming, people want to get the most out of there sgs...this is a great theme for the sgs...

Jesus man......

Is this not getting the most out of it??

Do you call this a backwards step then.??

Does it look like I go around spamming threads...

Whats wrong with you.
[Galaxy S I9000 General] shantzu:
If you want to do it properly, make a thread and tell people how to create their theme or how to mod their device and don't go around in other's threads posting your setup. That is called spamming.
[Galaxy S I9000 General] jimmmaras:
very nice theme rixsta !do you know when its coming out ?
[Galaxy S I9000 General] Rixsta:
Whatever....
[Galaxy S I9000 General] Rixsta:
Keep an eye out in the insanity thread...

Staying out of this thread...the OP is bonkers..