yashsingh1/xdaforums huggingface dataset:
[Galaxy S I9000 Android Development] the_ozyrys:
Oh, now I see what's going on - your ROM is not deodexed.

You need to provide me deodexed JM8 Phone.apk to do this.

Or, just try to use mine - since as I know, there's not a big

difference between JM5 and JM8. Backup (move to SD card)

your Phone.apk and Phone.odex you have next to it in the

same folder, and then copy my Phone.apk there.
[Galaxy S I9000 Android Development] thunderteaser:
So if I've got a JM1-new stock rom I can't disable the increasing ring because it's not deodexed? :(
[Galaxy S I9000 Android Development] the_ozyrys:
Yes, you can't edit not deodexed applications.

Maybe someone wiser than me could find the solution.
[Galaxy S I9000 Android Development] vipercubic:
Just to report back, I tried with the_ozyrys's JM5 Phone.apk and didnt work in my JM8 (still this fade in thing kicks in) Anyway thnx for your help!
[Galaxy S I9000 Android Development] the_ozyrys:
Have you removed Phone.odex file too?
[Galaxy S I9000 Android Development] vipercubic:
No i thought i was supposed to kepp my old .odex file? Should i remove it and try again?
[Galaxy S I9000 Android Development] ykkfive:
u have to delete classes.dex under /keep also
[Galaxy S I9000 Android Development] coretheory:
What should I do with stock JM8 rom?

Sent from my GT-I9000
[Galaxy S I9000 Android Development] GantengX:
How does .odex file is created anyway? AFAIK when you delete the odex file the system will recreate it again, since decompiling Phone.apk only shows the res folder, I'm sure Phone.odex is created from somewhere else... Anyone has any ideas?
[Galaxy S I9000 Android Development] doctorxerxes:
Dude any progress ? Did it work for you ?
[Galaxy S I9000 Android Development] :
tried the decompile & recompile method of deodexed Phone.apk (JPK)

resulting Phone.apk is 2.10Mb compared to original 3.02Mb, after replacing it in/system/app, get many force close the phone is completely unusable. Reverted back to original Phone.apk and the phone is all good again.

Anyway has a better (easier) solution to this? really hate the increasing ring "feature" :(

Many thanks~
[Galaxy S I9000 Android Development] the_ozyrys:
OK, post here your deodexed Phone.apk, and I'll try to fix it. :)
[Galaxy S I9000 Android Development] ed10000:
I use PhoneWeaver for customizing my ringing profiles, and it always rings in the volume set in the specific profile (no ascending ringtone). Not sure if anyone is interested but just thought I'd say.
[Galaxy S I9000 Android Development] thunderteaser:
Nope, it's not working.
[Galaxy S I9000 Android Development] doctorxerxes:
Ive attached my phone.apk ... Im running jm8 same as vipercubic ..

Thanks ...
[Galaxy S I9000 Android Development] YG007:
I'm at work right now, and I'm trying to get this done for the JPK firmware. Here is the ORIGINAL Phone.apk from the JPK firmware. I'll try doing it myself, but this is my first time decompiling an apk file so I don't know how successful I'll be.

So, if anyone who can do it real quick and is willing to do it, the file for FW JPK is here.
[Galaxy S I9000 Android Development] ed10000:
Ah! I'm so sorry. Just tested it again. Actually, on the profile I was using earlier (and always use when I'm home), the ringing volume was set to lower than the starting volume of the ascending ringtone. So it didn't increase gradually :o Just tried it with the max volume profile and it's still ascending.:( Sorry!
[Galaxy S I9000 Android Development] pedall:
Omg a phone.apk for JPK would be awesome!!! :-)
[Galaxy S I9000 Android Development] the_ozyrys:
Sorry guy, but your files are from not deodexed ROMs, so they are of no use to me.

Phone.apk must be from deodexed ROMs, the one which does not have *.odex files

next to *.apk in /system/app.
[Galaxy S I9000 Android Development] DaveJeep:
Is there anyway to do if we don't have Phone.apk from deodexed ROMs
[Galaxy S I9000 Android Development] YG007:
YEAHH!!! My first contribution to xda-developers!! :D

Here it is. Deodexed and unsigned Phone.apk for JPK firmware!!

NOTE: I am not responsible for any damage done to the phone, blah blah blah. (Just covering my @$$ here :D).

MAKE SURE YOUR FIRMWARE IS JPK AND IT IS DEODEXED!!!!

It works, I tested it on my DEODEXED firmware, which I had to flash after finding out earlier that the FW had to be deodexed. After finding 2 lines of code that you have to erase in the Ringer$1.smali file from Phone.apk in the JPK firmware, it worked.

Basically, I erased the 2 lines that called the setStreamVolume() function.

Thanks to the_ozyrys for pointing me in the right direction with the deodexed build.

Anyways, hope you guys have fun with this one, I REALLY hated the increasing ring on this phone, and all the other Samsung phones I owned!

***EDIT***

Make sure you reboot after copying the apk, getting FCs right after replacing the Phone.apk is normal.

*2nd edit

It FCs if you have connect tone and disconnect tone enabled. I'm looking into it now.

*** 3rd EDIT***

Everything is working now on JPK, Use version 1.1 from post #49.
[Galaxy S I9000 Android Development] YG007:
YES! I got it ALL working! Ill upload it when I get home...

Standby....
[Galaxy S I9000 Android Development] joecisd:
so, how to solve the FCs problem?

I want to make it by myself.

Thanks.
[Galaxy S I9000 Android Development] YG007:
Ok. Here it is. I've been testing it the whole time I was out. It works perfectly. Doesn't have the FC on connection tone and disconnect tone anymore.

Enjoy!! (Remember, this is for JPK, deodexed)
[Galaxy S I9000 Android Development] joecisd:
can you tell me the way to solve the FC problem?

I want to do it by myself.

Thanks
[Galaxy S I9000 Android Development] satpanos:
Confirmed , working great on JPK...

THANK YOU
[Galaxy S I9000 Android Development] doctorxerxes:
Could you pls try one for jm8 fw ... pls pls pls ... i had attached my phone.apk file a couple of posts back ...
[Galaxy S I9000 Android Development] mastercut:
we would like an universal mod for all firmware ;)
[Galaxy S I9000 Android Development] alanlsmith:
Here is one for a deodexed JM8 Rom.

Unzip and run the batch file within the folder, (with the phone connected to the PC).

This way it should overwrite your existing phone.apk without any force closes occurring as a result of replacing the phone.apk (it also backs up you original phone.apk > phone.apk.bak, to the sd card in case anything goes wrong, (note you can use the batch file to replace the apk even if the phone is not responding...most times)
[Galaxy S I9000 Android Development] doctorxerxes:
Any chance for a stock jm8 mod ???
[Galaxy S I9000 Android Development] kiay:
it says like this when i click on the batch file

===============================================================

'Install' modified phone.apk

===============================================================

* daemon not running. starting it now *

* daemon started successfully *

failed to copy 'phone.apk' to '/sdcard/phone.apk': Permission denied

failed to copy 'phone.sh' to '/sdcard/phone.sh': Permission denied

Permission denied

Press any key to continue . . .
[Galaxy S I9000 Android Development] doctorxerxes:
Your rom must be deodexed...
[Galaxy S I9000 Android Development] kiay:
is there any apk for JPA based rom?
[Galaxy S I9000 Android Development] :
I'm trying to work out for a JPM/JP6 version of Phone.apk but failed :(

There're two lines of:

invoke-virtual {v1, v5, v4, v3} Landroid/media/AudioManager;->setStreamVolume(III)V

Not sure which lines should I remove?

As I tried to removed both and recompile the apk, after patching over to my phone it keeps popping up force close

Any help is most appreciated~
[Galaxy S I9000 Android Development] kalpik:
Yep.. There are 2 lines in JP6.. Which one to delete?
[Galaxy S I9000 Android Development] :
Maybe we should have a whole new thread for this since the author of this topic has not updated the first post making it hard to find the appropriate patch for each firmware -AND- samsung did not disable the *annoying* increasing ring in recent firmware releases.

In short, the increasing ring will make the first few seconds of your ringtone goes almost "silent" and "unheard" hence if I have part of mp3 chorus ringtone it will be sort of "ugly" when my phone rings :D

attached is a working version for JPM/JP6. just patch Phone.apk over /system/app/Phone.apk

--backup/copy your old Phone.apk to Phone.apk.ori (using root explorer)

--u must have root and mount rw /system/app for this to work)

--when patching u'll get about 2 force closes which is fine, after that voila, rings aloud!!! :D

Nov 4 update:

--Added

optimized

Phone.apk from/for JPA (might able to use it on JPM/JP6).

--use the above method to replace the Phone.apk in your /system/app

Dec 1 update: [untested, let me know if it works]

--Added Phone.apk from/for Eclair (from this

post

, asking author for exact Eclair version:D).

--use the above method to replace the Phone.apk in your /system/app
[Galaxy S I9000 Android Development] kalpik:
Which line did you delete? ;)
[Galaxy S I9000 Android Development] :
I deleted both lines. But seems like there is a problem with calling out (incoming no problem though) ;)

still figuring it out, hmm...
[Galaxy S I9000 Android Development] dande:
Does not work.

It's the same as before. Stock JP6.

Thanks
[Galaxy S I9000 Android Development] :
Refer #61 - in a shortwhile, I'll post a working version for JPM/JP6 without any FC problem :D
[Galaxy S I9000 Android Development] Ferdimage:
THANKYOU for your efforts Truemagic, looking forward to your fix!

i have been annoyed with the increasing ringtone since ive had Samsung Windows Mobile Phones! lol ..
[Galaxy S I9000 Android Development] :
YUP it's ready. pls goto this post to download it right away :D

http://xdaforums.com/showpost.php?p=8738649&postcount=61
[Galaxy S I9000 Android Development] kalpik:
How did you fix it? :D

Btw, I'm including this in my ROM (http://xdaforums.com/showthread.php?t=813954), hope you don't mind :)
[Galaxy S I9000 Android Development] doctorxerxes:
Can this be done through root explorer ? Or do you have to use adb ?

A lil more detail on the instructions would be really helpful ... thanks
[Galaxy S I9000 Android Development] Ferdimage:
SEXY TIME!! Finally a working ring fix!!

Thanks so much now i can enjoy my chorus ringtones :D!

To install:

1. Put phone into Flight Mode (To avoid FC)

2. Overwrite /system/app/Phone.apk using Root Explorer.

3. Reboot & Test
[Galaxy S I9000 Android Development] dande:
You are True Magic man!

It works fine now!

Thank you very much
[Galaxy S I9000 Android Development] authmn:
thanks a big deal.

didnt read the previous post. Ended with lots of FC. but a restart fixed all those
[Galaxy S I9000 Android Development] ivanchin99:
Still the same on my JPM phone..

Downloaded phone.apk and override into system/app/

Reboot.

The phone still have the ascending ring :confused:
[Galaxy S I9000 Android Development] tigerminx:
Same here, running JPM. Used root explorer. Still no go.
[Galaxy S I9000 Android Development] :
1.Make sure ur ROM is deodexed (i.e. there is no /system/app/Phone.odex)

2.Have u rooted ur ROM so the file can actually be patched over system apps?

3.Jot down the size of Phone.apk before & after the patch, they shud be different ;)

pls try again :D
[Galaxy S I9000 Android Development] kalpik:
I'd really like to know how you got it working! Mine was force-closing when I compiled :(
[Galaxy S I9000 Android Development] :
Oops sorry forgot to mention abt it, u hv to set the compression lvl to '0' in order for this to work perfectly ;)

cheers and nice ROM u have there. gotta try it :D
[Galaxy S I9000 Android Development] kalpik:
Oh so deconpile -> delete BOTH lines -> compile with 0 compression.. Got it! Thanks! Will try it and report back!

And you're most welcome to try my ROM, do leave some feedback :)
[Galaxy S I9000 Android Development] alanlsmith:
A bit late but the two lines are not the same:

Line 236: invoke-virtual {v1, v5, v3, v4}, Landroid/media/AudioManager;->setStreamVolume(III)V

Line 513: invoke-virtual {v1, v5, v2, v4}, Landroid/media/AudioManager;->setStreamVolume(III)V

The one to delete is the first one, with {v1, v5, v3, v4} in it.
[Galaxy S I9000 Android Development] YG007:
Updated post 1.

Thanks truemagic and Ferdimage for keeping this going while I am phoneless!!

I gotta get my Galaxy S back soon! I'm going through withdrawl!! ... so many other mods I want to do!! >.<

Also, I should get someone to change [REQ] to [MOD]. :D
[Galaxy S I9000 Android Development] Tayutama:
You can change the title yourself when you press on edit then go into advanced and you can change it
[Galaxy S I9000 Android Development] amir_rafie:
What about JPA ?!
[Galaxy S I9000 Android Development] ivanchin99:
Jackpot, truemagic magically got it on the first guess :)

So now I'd have to find a deodexed rom for this to work?

thanks
[Galaxy S I9000 Android Development] YG007:
OMG, I can't believe I didn't even notice that!! :rolleyes:

Thanks Tayutama!!
[Galaxy S I9000 Android Development] m4ssnet:
anyone have tryed this with tayutama rom 1.0 (JP6/JPM based rom) with voodoo (beta6) ?

I was waiting for it, with my noob knowleadge i have intended that this wasn't possible, so, THANKS for have built this !!!

Samsung 0 - Developers 10 (notifications, lagfixs, voodoo color/sound, thisone, themes, batterynotification mod, speedup fixs, market fix, ecc........ :D)
[Galaxy S I9000 Android Development] Ladduro:
I am tryint to do this in my ODEXED JPK firmware. I backed smali /system/framework/Phone.odex but I can find that line in Ringer$1.smali

Any idea about this ? Can someone help me ?
[Galaxy S I9000 Android Development] Ladduro:
Bump... I am not asking for a step by step tut, just some guidance, if any.

Thx
[Galaxy S I9000 Android Development] ivanchin99:
Just some advice. I find it much easy just to stick with using the clutters of rom s in the forum :D

Dont let me discourage you tho xD
[Galaxy S I9000 Android Development] doctorxerxes:
Thanks a lot .. It also works on JPA. (Using it on Kalpik's Voodoo Doctor v2.1) Works perfectly..
[Galaxy S I9000 Android Development] ione2380:
Doesnt work on Darky's Raw Steel Edition v2.2 witch is rooted and deodexed, tried it many times, thanks anyway!
[Galaxy S I9000 Android Development] thunderteaser:
So I've read some deodex instruction but all I've understood is just what is an odex and how it works.

I would like to ask some of you already experienced in deodexing if it's possible to deodex my stock JP6/JPM rom directly from my phone, because right now I'm not really keen on flashing a new rom and I really want to fix the increasing ring!

Thank you in advance! :)
[Galaxy S I9000 Android Development] lelf:
I'm trying this (http://xdaforums.com/showthread.php?t=765270) to deodexed my phone with JMP, no mod firmware. it seems to work.
[Galaxy S I9000 Android Development] GantengX:
Hi,

I'm trying to do this on deodexed JM9 but I keep getting force close when I receive a call.

Attached is the logcat file

I noticed that this line was the error message

E/AndroidRuntime( 4526): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.phone/com.android.phone.InCallScreen}: android.view.InflateException: Binary XML file line #6: Error inflating class com.android.phone.CallCard

But I didn't modify CallCard.smali at all. Anyone else have the same problem and fixed it?

Btw the steps that I took was

1. unpack Phone.apk using Apk-Manager

2. modify Ringer$1.smali

3. Set compression to 0

4. compile app

I've tried everything on the next step, including

- sign apk ==> no signal

- sign & zipalign apk ==> no signal

- replace META-INF and AndroidManifest.xml from compiled apk with original Phone.apk ==> force close

- sign apk and replace META-INF and AndroidManifest.xml

- sign & zipalign apk and replace META-INF and AndroidManifest.xml
[Galaxy S I9000 Android Development] kasper_h:
Do I need a fully deodexed ROM, or is it also possible to just remove the Phone.APK & Phone.odex, and replace with the Phone.APK from this thread?

Update: decided just to try it. Renamed Phone.apk to Phone.apk.bak - even in flight mode this give FC problems. But pasting the Phone.apk from post #61 in thread stopped the FC-messages. Then I also renamed Phone.odex to Phone.odex.bak. Then rebooted the phone and disabled flight mode. After that it worked perfectly: finally the increasing ring volume is gone!!!
[Galaxy S I9000 Android Development] :
Nov 4 update:

--Added optimized Phone.apk from/for JPA (might able to use it on JPM/JP6).

--use the above method to replace the Phone.apk in your /system/app

visit: http://xdaforums.com/showpost.php?p=8738649&postcount=61
[Galaxy S I9000 Android Development] flypubec:
Why would anyone not like the increasing ring ?

you people are weird
[Galaxy S I9000 Android Development] GantengX:
Because it's annoying and it takes time to get to the correct volume. By the time the ring became loud, I still need to reach my phone and the person who called me already hang up. This happens a lot especially in public/noisy area
[Galaxy S I9000 Android Development] r3loaded2010:
Does this mod work on JPO? I have DocROM 7.5, which is deodexed btw.
[Galaxy S I9000 Android Development] CrisInuyasha:
I would like to know if this works with JPO (Doc v7.5)
[Galaxy S I9000 Android Development] kasper_h:
I would say: just test, takes a few minutes.....
[Galaxy S I9000 Android Development] CrisInuyasha:
Well, tested here and it worked. I didn't check too much, just had a call and played a bit with contact list & checked if the ringtone was normal on Doc JPO v7.5

edit: I tested the new JPA phone.apk version that was posted earlier
[Galaxy S I9000 Android Development] nixd:
I'm still on JM1. So do you reckon this mod'ed apk would work on my system? Or should i get on some kind of froyo first?
[Galaxy S I9000 Android Development] YG007:
This mod is version specific. Also, the ROM you are using also needs to be deodexed.

Some people have used this mod on other versions, that is because the Phone.apk hasn't changed code-wise from one version to another. If you decide to do this, YOU ARE DOING IT AT YOUR OWN RISK. Personally, I'd advise against it.
[Galaxy S I9000 Android Development] nixd:
So, no go on JM1. Got it. =)

But I'm planning to update to JPO soon. Do I still need to get it deodexed? I'm asking because people were talking about not needing to have the whole system deodexed, just some portions related to the apk that we're to replace.

Is that so?
[Galaxy S I9000 Android Development] silverstorm:
Like kasper_h above, I took the plunge with the updated Phone.apk from post #61 on my stock JPO which is not de-odexed. I renamed both my original Phone.apk and Phone.odex files by adding '.bak' at the end. Then copied truemagic's version through ADB and rebooted. No force closes and phone rings at max volume from the start!

Thanks truemagic and thanks kasper_h for leading the way into unknown territory ;-)
[Galaxy S I9000 Android Development] GantengX:
No one has the same problem? :(
[Galaxy S I9000 Android Development] hka148:
I try to deodex my phone myself and follow the instuction mentioned in this post http://xdaforums.com/showthread.php?t=765270. I got I got "cp: write error: No space left on device" when I'm overwriting the ori as and frameworks at final step. Anyone can give me a hand?:(
[Galaxy S I9000 Android Development] thunderteaser:
I'm trying to edit my framework-res.apk (which is a system app too) and I heard many people had troubles, from graphical glitches to force closes. So I googled around and looked into kinda every topic talking about it here on xda and it seems I've found a proper way to do it. In this case, since you're just editing a file, it's even simpler. You shouldn't need to rebuild, zipalign and resign the package. Of course, you ought to have a deodexed ROM.

I haven't tried it yet, so I don't know if it works or if it will damage your phone, so you'd better listen to someone more experienced than me.

If you still want to try it at your own risk, here we go:

1) Make a copy of your Phone.apk;

2) Decompile it with Apk Manager;

3) Edit Ringer$1.smali;

4) Recompile it with Apk Manager;

5) Open (

without extracting

) your original Phone.apk with a good archive manager (if you don't have one, try PeaZip);

6) Drag your Ringer$1.smali from the recompiled apk folder into the archive you opened before (while honoring the folder structure);

7) If it asks you to overwrite the file, hit Yes, then close it;

8) Push it to your device with adb or Apk Manager (or make a flashable zip to install via CMR);

9) Done!

Please, tell me if it works! :)
[Galaxy S I9000 Android Development] GantengX:
Thanks for the tips! Will try tonight and let you know how it goes :D
[Galaxy S I9000 Android Development] jmadotme:
I'm currently using JPA version from #61 and it works flawless with no-deodexed JPO stock rom.

I really hate this samsung feature...

Very thanks to all!
[Galaxy S I9000 Android Development] GantengX:
I tried it last night but it's not possible to do actually

Once the app decompile I can modify Ringer$1.smali, but when I compile it again, obviously there is no smali files any longer. So I wouldn't be able to drag the Ringer$1.smali from recompiled to the original Phone.apk...

Anyone have any other idea? :confused:
[Galaxy S I9000 Android Development] thunderteaser:
Sorry about that, I told you I'm a noob! :P You could try extracting that file and dragging it back without decompiling/recompiling, though.

EDIT: Just learned about smali... lol at myself!
[Galaxy S I9000 Android Development] GantengX:
No problem. Thanks for that though :)

Actually it's impossible to drag the smali file, because .apk file itself contains no smali file - but rather then compiled version.. I might try to drag the compiled version into the original .apk and see how it goes tonight :D
[Galaxy S I9000 Android Development] reglaspv:
I don't get it .. i rename my phone.apk with Rootexplorer, everything seems ok, i can see the file renamed but if i change the folder (to sdcard to copy the modified phone.apk), when i return in \system\app, the original file is there but not renamed.

If I force a paste over that original Phone.apk, Rootexplorer says that the file was successfully overwritten but if i check the file, again, nothing's changed and the file is the original one.

Could you give me some advice? Thank you.
[Galaxy S I9000 Android Development] kasper_h:
Did you click R/W access when you were in the folder? Otherwise Rootexplorer won't rename/replace the file...
[Galaxy S I9000 Android Development] aktizol:
Is it possible such a feature to be included in a system menu so that we can select between the two options? Probably in a custom ROM?
[Galaxy S I9000 Android Development] reglaspv:
yes, is already r/w because i have the option to mount as r/o

and when i renamed the file or simply deleted, there isn't any error message, just confirmations (the files has been deleted/renamed) but in fact, nothing has happened.

le: solved :) .. even if system\app was r/w, system wasn't. Now phone.apk is working as it should be.
[Galaxy S I9000 Android Development] catfre:
Sorry, I did not understand if this procedure works on firmware JPO, thanks.
[Galaxy S I9000 Android Development] prujinkamix:
me too :( i need for JPO
[Galaxy S I9000 Android Development] kasper_h:
This also works on JPO, you just have to be careful to choose the phone.apk file for your JPO.
[Galaxy S I9000 Android Development] synester:
Hi, may i know if anyone has tried removing the ascending ringtone using Spike Speedy Edition rom? http://xdaforums.com/showthread.php?t=831038

I really wish to remove this bloody feature. =(
[Galaxy S I9000 Android Development] MaZaGnGy:
plz do it for me

i hope some one help me for that

i uploaded my phone.apk

and hope that someone do it for me ( decompile,mod it and compile)

and i hope someone tell me how to replace the new one by adb

sry for my bad english

my version is jg8 2.1
[Galaxy S I9000 Android Development] :
For FroYo based (JPO/JPA/JPD etc), the Phone.apk (JPO since it's optimized) from post #61 should work fine for you :D

download it here:

http://xdaforums.com/showpost.php?p=8738649&postcount=61