• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[MOD] Disable the increasing ring on Galaxy S - JVT

Search This thread

YG007

Senior Member
Jul 26, 2010
134
33
GTA
Get rid of the increasing ring when someone calls you. As long as I can remember, most samsung phones had a "feature" where when you receive a call, the ringtone will gradually fade in to the volume that you have set. This mod will get rid of that annoying fade in and allow your ringtone to play at the volume YOU set it to!

REMEMBER~! Your phone needs to be deodexed for this to work!!! Also, this mod is version specific! Only use the modified APK with the same deodexed ROM. You have been warned.

Here is the fixed Phone.apk I created for firmware JPK:
http://forum.xda-developers.com/showpost.php?p=8515539&postcount=49

Instructions: (Thanks goes to Ferdimage for the Flight Mode trick!)
MAKE SURE your firmware is deodexed and you are using the right fix to the proper firmware!!
1. Put the phone into "Flight Mode" either by holding power while the device is on and selecting Flight Mode from the submenu, or by selecting Flight Mode from the Settings menu.
2. Use a terminal, or root explorer, or any app you want to copy Phone.apk to /system/app/. Make sure the file is Phone.apk instead of phone.apk. Some people copied it as phone.apk (lowercase P) and in the linux world, both files would exist, and the Android OS would use Phone.apk instead of phone.apk. --(If you still get a FC, don't worry, just proceed to step 3.)
3. Reboot the phone.

Attached is the Phone.apk for JPO firmware. I made it using Doc's 7.5 ROM.

UPDATE: Added Phone.apk for JPU firmware.

UPDATE 12/31/2010: The deodexed file from Doc's JPY ROM and the JPY kitchen did NOT work, so I deodexed the file myself this time. Here is the Phone.apk for JPY firmware!!!

Happy new year everyone! Enjoy!

Anyone who wants to thank me, feel free to buy me a beer!! Enjoy!

PS: Sorry for the delay, but I was one of the guys who bought a i9000M phone with the failing internal SD [replaced 4 times!!]. I just got my phone back last night and went straight to work to build you guys this working Phone.apk for JPY. Hope you guys appreciate it as much as I do!!

UPDATE 12/5/2011:
Wow, its been almost a year since I last used my i9000. I decided to pick it up again and update it to JVT, so... here's the Phone.apk made by me for JVT. DEODEXED only! It's CWM this time!! Enjoy!
 
Last edited:

RazvanG

Senior Member
Aug 1, 2010
359
80
I know this is on the Galaxy S I9000 General section of the forum, but this seems like its going to need a lot of dev people to find a solution to this one. The increasing ring "feature" should be an option and not enforced on people who do not want this feature on.

So, I propose we put our heads together and find a solution to this problem.

My .02, for what its worth (probably not much.. :rolleyes: ), but when I owned the Samsung u900 (soul), the fix was to go into the service menu, under SPK Config Menu -> AV-QTune (MP3) Menu -> SPK MP3 Vol. Menu -> Then change one of the lower volume levels (I used volume level 1) to a dB that is high. The reason for this was, the increasing ring method was only implemented at higher volume settings. So, changing the ring volume to a lower volume setting where the increasing ring method implementation wasn't used and setting THAT volume to a high volume level solved all my problems.

... but, those menu items do not exist in the Samsung Galaxy S service menu. :(

Also, the thing I notice here is the only volume where the increasing ring does not get implemented is volume 1. (which still might be implemented since the volume is so quiet). So, for the SGS, the increasing ring method might be implemented all the time, which will make it harder to disable, who knows.

Hopefully someone can figure this one out. I've been poking around the device and even the sound files to see if theres anything about the device modifying the volume, but I guess I'm not looking in the right spot.

+1.

I really hate the ascending ringtone "feature"
 

riNNma

Member
May 7, 2010
16
2
I hate it so much!! What idiot made it as a feature?!
My temporary solution was to use the app called Volume Locker. The delay should be "0". But... In that case you have the same audio settings all the time. If you want to use Profile manager with different audio settings you have to switch off Volume Locker first. Every time. Not good. :)

Anyone who indeed kan solve the problem??
 

YG007

Senior Member
Jul 26, 2010
134
33
GTA
I did some poking around... I still didn't solve the problem with the increasing ring, but I did find something that might be useful.

This is in asound.conf, which is in the /system/etc/ folder:

Code:
pcm.AndroidPlayback_Earpiece_ringtone {
	type hooks
	slave.pcm {
		type hw
		card 0
		device 0	# Must be of type "digital audio playback"
	}
	hooks.0 {
		type ctl_elems
		hook_args [
			# Enable audio output from the DSP
			{name "Playback Path"	value 6}	# 0:OFF 1:RCV 2:SPK 3:HP 4:DUAL 5:BT 6:RING_SPK 7:RING_HP 8:RING_DUAL 9:EXTRA_DOCK_SPEAKER
		]
	}
}

pcm.AndroidPlayback_Speaker_ringtone {
	type hooks
	slave.pcm {
		type hw
		card 0
		device 0	# Must be of type "digital audio playback"
	}
	hooks.0 {
		type ctl_elems
		hook_args [
			# Enable audio output from the DSP
			{name "Playback Path"	value 6}	# 0:OFF 1:RCV 2:SPK 3:HP 4:DUAL 5:BT 6:RING_SPK 7:RING_HP 8:RING_DUAL 9:EXTRA_DOCK_SPEAKER
		]
	}
}

pcm.AndroidPlayback_Headset_ringtone {
	type hooks
	slave.pcm {
		type hw
		card 0
		device 0	# Must be of type "digital audio playback"
	}
	hooks.0 {
		type ctl_elems
		hook_args [
			# Enable audio output from the DSP
			{name "Playback Path"	value 7}	# 0:OFF 1:RCV 2:SPK 3:HP 4:DUAL 5:BT 6:RING_SPK 7:RING_HP 8:RING_DUAL 9:EXTRA_DOCK_SPEAKER
		]
	}
}

pcm.AndroidPlayback_Bluetooth_ringtone {
	type hooks
	slave.pcm {
		type hw
		card 0
		device 0	# Must be of type "digital audio playback"
	}
	hooks.0 {
		type ctl_elems
		hook_args [
			# Enable audio output from the DSP
			{name "Playback Path"	value 4}	# 0:OFF 1:RCV 2:SPK 3:HP 4:DUAL 5:BT 6:RING_SPK 7:RING_HP 8:RING_DUAL 9:EXTRA_DOCK_SPEAKER
		]
	}
}

pcm.AndroidPlayback_Speaker_Headset_ringtone {
	type hooks
	slave.pcm {
		type hw
		card 0
		device 0	# Must be of type "digital audio playback"
	}
	hooks.0 {
		type ctl_elems
		hook_args [
			# Enable audio output from the DSP
			{name "Playback Path"	value 8}	# 0:OFF 1:RCV 2:SPK 3:HP 4:DUAL 5:BT 6:RING_SPK 7:RING_HP 8:RING_DUAL 9:EXTRA_DOCK_SPEAKER
		]
	}
}

I tried changing earpiece and speaker ringtone to 2, headset to 3, and speaker_headset to 4. Rebooted, and tried calling myself... still has the increasing ring. So, the sound is being altered before it outputs to the sound card it seems.

I hope this points SOMEONE into the right direction, as I really don't like having this increasing ring "feature" as it is really annoying.
 

the_ozyrys

Senior Member
Dec 15, 2008
122
14
Kraków
Hello,
I've just found a (not easy) way to disable increasing ring.
This involves using Apk Manager to backsmali Phone.apk,
which then have to be replaced by patched version, either by root access or creation of update.zip.

Procedure:

1. Get your Phone.apk (\system\app\Phone.apk) and copy it to computer.
2. Use Apk Manager to decompile it.
3. Open folder with Phone source (<Apk Manager folder>\projects\Phone.apk\smali\com\android\phone).
4. Open file Ringer$1.smali with your favourite text editor.
5. Find line that reads:
Code:
invoke-virtual {v1, v5, v4, v3}, Landroid/media/AudioManager;->setStreamVolume(III)V
6. Delete this line, save the file.
7. Compile Phone.apk, put it back to phone.
8. Enjoy constant-volume ringtones. ;)

Side effects:
- currently not known
- if you have problem decompiling Phone.apk, >here< is the solution

Maybe somebody will make pre-patched packages, I'm currently using JM5
so I can only provide one for this firmware.
 

vipercubic

Senior Member
Jun 30, 2009
81
3
Thessaloniki
Just gave it a try but i stuck in the part you have to edit the file. Actually after successfully decompiling without errors, it seems that i dont have "smali" folder under \Phone.Apk\ :confused: I also manually search for the file "Ringer$1.smali" (the one that needs to get edited) but didn't find it also :/

Edit. JM8
 
Last edited:

the_ozyrys

Senior Member
Dec 15, 2008
122
14
Kraków
Just gave it a try but i stuck in the part you have to edit the file. Actually after successfully decompiling without errors, it seems that i dont have "smali" folder under \Phone.Apk\ :confused:

Are you sure that decompilation was successful?
Check log.txt file in Apk Manager directory.
Maybe you just unpacked it, not decompiled?

I'm attaching patched JM5 Phone.apk, for those who want to try it.
 

Attachments

  • Phone.apk.zip
    1.8 MB · Views: 86

vipercubic

Senior Member
Jun 30, 2009
81
3
Thessaloniki
Are you sure that decompilation was successful?
Check log.txt file in Apk Manager directory.
Maybe you just unpacked it, not decompiled?

Well i'm not really sure :p But i saw no errors when running decompile (just did it again)

There's my log

Code:
-------------------------------------------------------------------------- 
|’œ« 06/10/2010 -- 14:30:14,31| 
-------------------------------------------------------------------------- 
java version "1.6.0_21"
Java(TM) SE Runtime Environment (build 1.6.0_21-b07)
Java HotSpot(TM) Client VM (build 17.0-b17, mixed mode, sharing)
ƒœ¤ ™¨βŸž΅œ C:\apk_manager_4.9\place-apk-here-for-modding\../place-apk-here-for-modding/signedPhone.apk
ƒœ¤ ™¨βŸž΅œ C:\apk_manager_4.9\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedPhone.apk
I: Loading resource table...
W: Skipping "android" package group
I: Decoding resources...
I: Loading resource table from file: C:\Documents and Settings\User\apktool\framework\1.apk
I: Loading resource table from file: C:\Documents and Settings\User\apktool\framework\2.apk
I: Copying assets and libs...
 

doctorxerxes

Senior Member
Aug 17, 2010
154
12
Mumbai
Are you sure that decompilation was successful?
Check log.txt file in Apk Manager directory.
Maybe you just unpacked it, not decompiled?

I'm attaching patched JM5 Phone.apk, for those who want to try it.

Unable to decompile ... tried options 9 and 10 ... Even looked at that link which you posted but that seems a little too much for my n00b brain to comprehend ...
when i click option 9 i get:

java version "1.6.0_21"
Java(TM) SE Runtime Environment (build 1.6.0_21-b07)
Java HotSpot(TM) Client VM (build 17.0-b17, mixed mode, sharing)
'adb' is not recognized as an internal or external command,
operable program or batch file.
Could Not Find C:\Documents and Settings\Khambatta\My Documents\Downloads\apk_manager_4.9\place-apk-here-for-modding\../place-apk-here-for-modding/signedPhone.apk
Could Not Find C:\Documents and Settings\Khambatta\My Documents\Downloads\apk_manager_4.9\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedPhone.apk
I: Loading resource table...
W: Skipping "android" package group
I: Decoding resources...
I: Loading resource table from file: C:\Documents and Settings\Khambatta\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x0207000d
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x0207000e
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x0207000f
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x0207000f



And when i click option 10 the log shows:

Exception in thread "main" brut.androlib.AndrolibException: java.io.FileNotFoundException: decompile (The system cannot find the file specified)
at brut.androlib.res.AndrolibResources.installFramework(Unknown Source)
at brut.androlib.Androlib.installFramework(Unknown Source)
at brut.apktool.Main.cmdInstallFramework(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Caused by: java.io.FileNotFoundException: decompile (The system cannot find the file specified)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
... 4 more
'and' is not recognized as an internal or external command,
operable program or batch file.
Exception in thread "main" brut.androlib.AndrolibException: Arsc file contains zero or multiple packages
at brut.androlib.res.decoder.ARSCDecoder$ARSCData.getOnePackage(Unknown Source)
at brut.androlib.res.AndrolibResources.installFramework(Unknown Source)
at brut.androlib.Androlib.installFramework(Unknown Source)
at brut.apktool.Main.cmdInstallFramework(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
'and' is not recognized as an internal or external command,
operable program or batch file.


Any ideas ?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 6
    it's not a cwm package

    here thw cwm flashable package
    5
    Get rid of the increasing ring when someone calls you. As long as I can remember, most samsung phones had a "feature" where when you receive a call, the ringtone will gradually fade in to the volume that you have set. This mod will get rid of that annoying fade in and allow your ringtone to play at the volume YOU set it to!

    REMEMBER~! Your phone needs to be deodexed for this to work!!! Also, this mod is version specific! Only use the modified APK with the same deodexed ROM. You have been warned.

    Here is the fixed Phone.apk I created for firmware JPK:
    http://forum.xda-developers.com/showpost.php?p=8515539&postcount=49

    Instructions: (Thanks goes to Ferdimage for the Flight Mode trick!)
    MAKE SURE your firmware is deodexed and you are using the right fix to the proper firmware!!
    1. Put the phone into "Flight Mode" either by holding power while the device is on and selecting Flight Mode from the submenu, or by selecting Flight Mode from the Settings menu.
    2. Use a terminal, or root explorer, or any app you want to copy Phone.apk to /system/app/. Make sure the file is Phone.apk instead of phone.apk. Some people copied it as phone.apk (lowercase P) and in the linux world, both files would exist, and the Android OS would use Phone.apk instead of phone.apk. --(If you still get a FC, don't worry, just proceed to step 3.)
    3. Reboot the phone.

    Attached is the Phone.apk for JPO firmware. I made it using Doc's 7.5 ROM.

    UPDATE: Added Phone.apk for JPU firmware.

    UPDATE 12/31/2010: The deodexed file from Doc's JPY ROM and the JPY kitchen did NOT work, so I deodexed the file myself this time. Here is the Phone.apk for JPY firmware!!!

    Happy new year everyone! Enjoy!

    Anyone who wants to thank me, feel free to buy me a beer!! Enjoy!

    PS: Sorry for the delay, but I was one of the guys who bought a i9000M phone with the failing internal SD [replaced 4 times!!]. I just got my phone back last night and went straight to work to build you guys this working Phone.apk for JPY. Hope you guys appreciate it as much as I do!!

    UPDATE 12/5/2011:
    Wow, its been almost a year since I last used my i9000. I decided to pick it up again and update it to JVT, so... here's the Phone.apk made by me for JVT. DEODEXED only! It's CWM this time!! Enjoy!
    5
    Deodex version JVH - deodex - no increasing ring
    3
    auto-rotating dialer+call screen/non increasing ringtone JVP deodex
    http://forum.xda-developers.com/showpost.php?p=14576879&postcount=16
    2
    Hello,
    I've just found a (not easy) way to disable increasing ring.
    This involves using Apk Manager to backsmali Phone.apk,
    which then have to be replaced by patched version, either by root access or creation of update.zip.

    Procedure:

    1. Get your Phone.apk (\system\app\Phone.apk) and copy it to computer.
    2. Use Apk Manager to decompile it.
    3. Open folder with Phone source (<Apk Manager folder>\projects\Phone.apk\smali\com\android\phone).
    4. Open file Ringer$1.smali with your favourite text editor.
    5. Find line that reads:
    Code:
    invoke-virtual {v1, v5, v4, v3}, Landroid/media/AudioManager;->setStreamVolume(III)V
    6. Delete this line, save the file.
    7. Compile Phone.apk, put it back to phone.
    8. Enjoy constant-volume ringtones. ;)

    Side effects:
    - currently not known
    - if you have problem decompiling Phone.apk, >here< is the solution

    Maybe somebody will make pre-patched packages, I'm currently using JM5
    so I can only provide one for this firmware.